/* ==========================================================================
   XL-Travelling — design system
   White ground, navy structure, green for the small signals.
   ========================================================================== */

:root {
  --navy: #0b2239;
  --navy-soft: #123354;
  --navy-line: rgba(11, 34, 57, 0.12);
  --ink: #10202f;
  --body: #2c3a4a;
  --muted: #5e6e80;
  --line: #e4e9ef;
  --line-strong: #cfd8e3;
  --bg: #ffffff;
  --soft: #f6f8fa;
  --soft-2: #eef2f6;
  --green: #14795a;
  --green-ink: #0f5e46;
  --green-soft: #e9f5ef;
  --amber: #8a5a12;
  --amber-soft: #fdf3e2;
  --red: #a03030;
  --red-soft: #fbeeee;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(16, 32, 47, 0.05);
  --shadow-m: 0 12px 32px -18px rgba(16, 32, 47, 0.28);
  --shadow-l: 0 30px 60px -34px rgba(16, 32, 47, 0.4);
  --max: 1160px;
  --header-h: 70px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--green-ink);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid rgba(20, 121, 90, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------------------------------------------------------------- layout */

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

.section {
  padding: 88px 0;
}

.section--soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head--wide {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
}

.section-head p {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 20px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

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

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--body);
  font-weight: 500;
}

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

.nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--navy-line);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(11, 34, 57, 0.7);
}

.btn--primary:hover {
  background: var(--navy-soft);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.btn--green {
  background: var(--green);
  color: #fff;
}

.btn--green:hover {
  background: var(--green-ink);
  color: #fff;
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-busy='true'] {
  opacity: 0.62;
  cursor: not-allowed;
}

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  height: auto;
  padding: 0;
  font-weight: 600;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 480px at 82% -10%, #eef6f2 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(700px 420px at 12% 0%, #f2f6fb 0%, rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 92px 0 96px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 15em;
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 34em;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__note {
  margin-top: 26px;
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__note svg {
  flex-shrink: 0;
  color: var(--green);
}

/* route card ------------------------------------------------------------- */

.route-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 26px 26px 22px;
}

.route-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 18px;
}

.route-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  color: var(--green-ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.route-card__badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.route-card__list {
  display: grid;
  gap: 0;
}

.route-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.route-row:last-child {
  border-bottom: 0;
}

.route-row__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  justify-self: center;
}

.route-row:first-child .route-row__dot {
  border-color: var(--navy);
  background: var(--navy);
}

.route-row__name {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 550;
}

.route-row__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.route-row__time {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.route-card__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
  gap: 12px;
}

.route-card__price {
  color: var(--ink);
  font-weight: 650;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- cards */

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

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

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

.value {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.value__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--navy);
  margin-bottom: 16px;
}

.value h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.value p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  height: 100%;
}

.service-card:hover {
  border-color: var(--navy-line);
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.service-card__no {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.service-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.62;
  flex: 1;
}

.service-card__link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.service-card__link svg {
  transition: transform 0.18s ease;
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 28px 26px 8px 0;
  border-top: 2px solid transparent;
  margin-top: -1px;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 2px;
  background: var(--green);
}

.step__no {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-ink);
  display: block;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.62;
}

/* ---------------------------------------------------------------- vehicles */

.vehicle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vehicle__art {
  background: var(--soft);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--navy);
}

.vehicle h3 {
  font-size: 1rem;
}

.vehicle__specs {
  display: flex;
  gap: 18px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.vehicle__specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vehicle p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.vehicle__note {
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

/* ---------------------------------------------------------------- cta band */

.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 52px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  max-width: 22em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 12px;
  font-size: 0.9375rem;
  max-width: 46ch;
}

.cta-band .btn--ghost {
  background: #fff;
  border-color: #fff;
}

/* ---------------------------------------------------------------- page hero */

.page-head {
  padding: 64px 0 46px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfd 0%, #fff 100%);
}

.page-head h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  max-width: 20em;
}

.page-head p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.0625rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--navy);
}

/* ---------------------------------------------------------------- detail */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 56px 0 88px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--body);
  line-height: 1.75;
}

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

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
}

.spec {
  background: #fff;
  padding: 18px 20px;
}

.spec dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 6px;
}

.spec dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.55;
}

.subhead {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin: 34px 0 14px;
}

.tick-list {
  display: grid;
  gap: 10px;
}

.tick-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.55;
}

.tick-list li svg {
  margin-top: 3px;
  color: var(--green);
}

.tick-list--out li svg {
  color: var(--muted);
}

.quote-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-m);
}

.quote-panel__price {
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.quote-panel__price small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 4px;
}

.quote-panel__rows {
  margin: 20px 0 22px;
  display: grid;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.quote-panel__rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quote-panel__rows b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- cards / panel */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
}

.panel--soft {
  background: var(--soft);
  border-color: var(--line);
}

.stack {
  display: grid;
  gap: 16px;
}

/* ---------------------------------------------------------------- forms */

.field {
  display: grid;
  gap: 7px;
}

.field--row {
  grid-column: span 1;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.field .hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.req {
  color: var(--red);
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235e6e80' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 34, 57, 0.1);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--red);
  background: #fffafa;
}

.field__error {
  font-size: 0.75rem;
  color: var(--red);
  min-height: 0;
}

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

.form-grid .span-2 {
  grid-column: span 2;
}

.form-actions {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.alert {
  border-radius: var(--radius-s);
  padding: 13px 15px;
  font-size: 0.875rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.alert--error {
  background: var(--red-soft);
  border-color: #efd3d3;
  color: #7d2626;
}

.alert--ok {
  background: var(--green-soft);
  border-color: #cbe6da;
  color: var(--green-ink);
}

.alert--info {
  background: var(--soft);
  border-color: var(--line);
  color: var(--body);
}

.alert strong {
  display: block;
  margin-bottom: 3px;
}

/* ---------------------------------------------------------------- status */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--pending_quote {
  background: var(--soft-2);
  color: var(--muted);
}

.badge--quoted {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge--pending_confirmation {
  background: #e8effa;
  color: #24457a;
}

.badge--confirmed {
  background: var(--green-soft);
  color: var(--green-ink);
}

.badge--cancelled {
  background: var(--red-soft);
  color: var(--red);
}

/* ---------------------------------------------------------------- account */

.inquiry-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px 24px;
}

.inquiry-card + .inquiry-card {
  margin-top: 14px;
}

.inquiry-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.inquiry-card__ref {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.inquiry-card__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 3px;
}

.inquiry-card__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0;
  font-size: 0.875rem;
}

.inquiry-card__body dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 4px;
}

.inquiry-card__body dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.inquiry-card__quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--soft);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: 0.875rem;
}

.inquiry-card__amount {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.timeline {
  margin-top: 16px;
  display: grid;
  gap: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 7px 0;
  align-items: baseline;
}

.timeline li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  margin-top: 6px;
}

.timeline time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- auth */

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 64px;
  padding: 64px 0 88px;
  align-items: start;
}

.tabs {
  display: inline-flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 24px;
}

.tabs button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.tabs button[aria-selected='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-s);
}

.otp-row {
  display: flex;
  gap: 8px;
}

.otp-row .input {
  flex: 1;
}

/* ---------------------------------------------------------------- admin */

.admin-shell {
  padding: 40px 0 88px;
}

.admin-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-tabs button {
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.admin-tabs button[aria-selected='true'] {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--line);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--body);
}

.admin-table tr[data-id] {
  cursor: pointer;
}

.admin-table tr[data-id]:hover {
  background: var(--soft);
}

.admin-table tr[data-id][aria-selected='true'] {
  background: var(--soft-2);
}

.admin-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}

.admin-detail h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  font-size: 0.875rem;
  margin: 18px 0;
}

.kv dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 3px;
}

.kv dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 24px;
  align-items: start;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.content-editor {
  display: grid;
  gap: 16px;
}

.content-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  background: #fff;
}

.content-row__key {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- prose pages */

.legal {
  max-width: 74ch;
  padding: 48px 0 88px;
}

.legal p {
  margin-bottom: 18px;
  line-height: 1.78;
  color: var(--body);
}

.legal p strong {
  color: var(--ink);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.66);
  padding: 60px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__mark {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer .brand__sub {
  color: rgba(255, 255, 255, 0.5);
}

.footer-about {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 30ch;
}

.site-footer h4 {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 650;
}

.site-footer li {
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

/* ---------------------------------------------------------------- misc */

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8125rem;
}

.center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.hide {
  display: none !important;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.grid-cards {
  display: grid;
  gap: 20px;
}

/* ---------------------------------------------------------------- chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8125rem;
  color: var(--body);
  background: #fff;
}

.plain-steps {
  display: grid;
  gap: 16px;
}

.plain-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
}

.plain-steps__no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}

.plain-steps b {
  font-size: 0.875rem;
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}

.plain-steps p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}

.nav .nav-cta {
  display: none;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 68px 0 72px;
  }

  .hero h1 {
    max-width: 20em;
  }

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

  .detail,
  .auth-shell,
  .admin-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .quote-panel {
    position: static;
  }

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

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

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

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

@media (max-width: 760px) {
  :root {
    --header-h: 62px;
  }

  .section {
    padding: 60px 0;
  }

  .wrap {
    padding: 0 20px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    box-shadow: var(--shadow-m);
  }

  .nav[data-open='true'] {
    display: flex;
  }

  .nav a {
    padding: 11px 8px;
    font-size: 1rem;
  }

  .nav .nav-cta {
    display: inline-flex;
    margin-top: 10px;
    width: 100%;
  }

  .nav .nav-cta:hover {
    color: #fff;
  }

  .header-tools .btn {
    display: none;
  }

  .hero__inner {
    padding: 44px 0 56px;
  }

  .hero__actions .btn {
    flex: 1;
    min-width: 46%;
  }

  .card-grid,
  .card-grid--3,
  .card-grid--2,
  .steps,
  .form-grid,
  .spec-list,
  .inquiry-card__body,
  .kv {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2,
  .form-actions {
    grid-column: span 1;
  }

  .step {
    padding: 22px 0 18px;
    border-top: 0;
    border-left: 2px solid var(--line);
    padding-left: 20px;
  }

  .step::before {
    left: -2px;
    top: 0;
    width: 2px;
    height: 34px;
  }

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

  .detail {
    padding: 36px 0 64px;
  }

  .cta-band {
    padding: 32px 24px;
    border-radius: var(--radius);
  }

  .quote-panel,
  .panel,
  .admin-detail {
    padding: 20px;
  }

  .inquiry-card {
    padding: 18px;
  }

  .admin-table {
    font-size: 0.8125rem;
  }

  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }
}
