/* ==========================================================================
   Steelbit Auto: main stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0A0D3A;
  --surface: #10144A;
  --raised: #171C57;
  --border: #252A66;
  --border-strong: #363C7C;
  --text: #E9EAF2;
  --muted: #A1A5C7;
  --accent: #c8803a;
  --accent-hover: #dd9450;
  --accent-ink: #15110c;
  --error: #e5534b;
  --success: #4caf7a;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1180px;
  --gutter: 16px;
  --header-h: 68px;
  --shadow: 0 20px 50px -20px rgba(2, 3, 20, 0.75);
  --footer-bg: #06082A;
  --faint: #6E73A3;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-hover); }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--accent); color: var(--accent-ink); }

.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: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline:hover, .btn--outline[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.btn--outline:hover .icon:last-child { transform: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 58, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__logo { width: 44px; height: 44px; }
.site-footer .brand__logo { width: 40px; height: 40px; }
.brand__text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__text span { color: var(--muted); font-weight: 500; margin-left: 0.4em; }

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block; height: 2px; background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav li a {
  display: block; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text);
}
.site-nav li a:hover, .site-nav li a[aria-current="page"] { color: var(--accent); }
.site-nav__login { margin-top: 20px; width: 100%; }
.site-nav__login .icon { width: 1em; height: 1em; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 36px;
    background: none; border: 0; padding: 0;
  }
  .site-nav ul { flex-direction: row; gap: 32px; }
  .site-nav li a {
    padding: 6px 0; border: 0; font-size: 1.05rem; position: relative;
  }
  .site-nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .site-nav li a:hover::after, .site-nav li a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav__login { margin-top: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(200, 128, 58, 0.14), transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.025) 50%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #12165A 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__title {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-bottom: 28px;
}
.hero__title span {
  background: linear-gradient(100deg, #F1F2F8 0%, #A1A5C7 45%, #DADCEB 60%, #7F84AD 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 580px; font-size: 1.125rem; color: var(--muted); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  opacity: .5;
}

@media (min-width: 960px) {
  .hero { padding: 140px 0 150px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(200, 128, 58, 0.1), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #12165A, var(--bg));
}
.page-hero__lead { max-width: 640px; color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 32px 0; }
.section--flush-top { padding-top: 24px; }
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 960px) {
  .section { padding: 104px 0; }
  .section--tight { padding: 40px 0; }
  .section--flush-top { padding-top: 32px; }
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head__lead { color: var(--muted); font-size: 1.075rem; margin: 0; }

.split { display: grid; gap: 24px; }
.split__body p { color: var(--muted); font-size: 1.075rem; }
.split__body p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
/* Desktop: three per row; a short last row is centered */
@media (min-width: 960px) {
  .card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .card-grid > .card { flex: 0 0 calc((100% - 40px) / 3); }
}

.card {
  display: flex; flex-direction: column;
  padding: 28px 24px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  position: relative;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card--link:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card__icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #1F2566, #11154A);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon .icon { width: 24px; height: 24px; }
.card__title { font-size: 1.3rem; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.9rem; color: var(--accent);
}
.card__more .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.card--link:hover .card__more .icon { transform: translateX(4px); }

/* ---------- Standard grid ---------- */
.standard-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .standard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .standard-grid { grid-template-columns: repeat(4, 1fr); } }
.standard { background: var(--bg); padding: 32px 28px; }
.standard__icon { display: block; color: var(--accent); margin-bottom: 18px; }
.standard__icon .icon { width: 32px; height: 32px; }
.standard h3 { font-size: 1.25rem; }
.standard p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- CTA band ---------- */
.section--cta {
  background:
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(200,128,58,0.16), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}
.cta { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0; }
@media (min-width: 960px) {
  .cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Services page ---------- */
.service-index { display: flex; flex-wrap: wrap; gap: 8px; }
.service-index a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.service-index a:hover { border-color: var(--accent); color: var(--text); }

.service-list { display: grid; }
.service {
  display: grid; gap: 20px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.service:first-child { border-top: 0; padding-top: 16px; }
.service__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.service__head .card__icon { margin: 0; }
.service__num {
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.1em;
  color: var(--accent); font-size: 1rem;
}
.service__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); flex-basis: 100%; }
.service__body > p { color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.service__subhead {
  font-size: 0.95rem; letter-spacing: 0.18em; color: var(--text);
  margin: 28px 0 14px;
}
@media (min-width: 960px) {
  .service { grid-template-columns: 4fr 7fr; gap: 64px; padding: 64px 0; }
  .service__head { flex-direction: column; align-items: flex-start; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

.check-list { display: grid; gap: 10px; }
@media (min-width: 640px) { .check-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.975rem; }
.check-list .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 4px; }

.process { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .process { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.process__step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}
.process__step::before {
  content: "0" counter(step);
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.1em;
  color: var(--border-strong); font-size: 1.5rem;
}
@media (min-width: 960px) {
  .process__step { border-radius: 0; border-left-width: 0; }
  .process__step:first-child { border-left-width: 1px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .process__step:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
}
.process__icon { display: block; color: var(--accent); margin-bottom: 18px; }
.process__icon .icon { width: 30px; height: 30px; }
.process__step h3 { font-size: 1.25rem; }
.process__step p { color: var(--muted); font-size: 0.925rem; margin: 0; }

/* ---------- Prose (markdown body text, e.g. job pages) ---------- */
.prose { max-width: 760px; padding-top: 24px; }
.prose > p, .prose li { color: var(--muted); font-size: 1.05rem; }
.prose > p:first-child { font-size: 1.15rem; color: var(--text); }
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 48px 0 18px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.prose h3 {
  font-size: 0.95rem; letter-spacing: 0.18em; color: var(--accent);
  margin: 28px 0 12px;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 10px; margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose ol { counter-reset: item; }
.prose ol li { position: relative; padding-left: 36px; counter-increment: item; }
.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 0.05em;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 0.08em; color: var(--accent);
}
.prose blockquote {
  margin: 28px 0; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.prose blockquote p { margin: 0; color: var(--text); font-size: 0.975rem; }
@media (min-width: 640px) {
  .prose ul { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}

.job__actions { margin-bottom: 28px; }
.job__actions .icon { width: 1.1em; height: 1.1em; }
.prose > .job__actions + p { font-size: 1.15rem; color: var(--text); }

/* ---------- Print cards (reminder-card.md, staff-card.md) ---------- */
.rc { display: grid; gap: 32px; }
@media (min-width: 1100px) {
  .rc { grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
}
.rc__controls .panel { padding: 24px; }
.rc__controls .btn .icon { width: 1.1em; height: 1.1em; }
.rc__tips { padding-top: 8px; }
.rc__tips ul { grid-template-columns: 1fr; }
.rc__tips li { font-size: 0.925rem; }
.rc__preview { overflow-x: auto; padding-bottom: 8px; }

.rc-sheet {
  display: grid;
  grid-template-columns: repeat(2, 3.5in);
  grid-auto-rows: 2in;
  width: 7in;
  min-height: 10in;
  background: #fff;
  box-shadow: 0 0 0 0.375in #fff, var(--shadow);  /* paper margin on screen */
  margin: 0.375in;
  color: #0A2240;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.rc-card {
  display: grid;
  grid-template-columns: 0.92in 1fr;
  align-items: center;
  gap: 0.1in;
  padding: 0.16in 0.2in 0.16in 0.2in;
  outline: 1px dashed #b4b8cc;
  outline-offset: -0.5px;
  overflow: hidden;
}
.rc-card[hidden] { display: none; }
/* logo-light-bg.svg has wide built-in margins; oversize it so the mark fills the column */
.rc-card__logo { width: 1.28in; height: 1.28in; max-width: none; margin: -0.18in; }
.rc-card__body { min-width: 0; }
.rc-card__heading {
  margin: 0 0 0.08in;
  padding-bottom: 0.05in;
  border-bottom: 2px solid #c8803a;
  font-family: var(--font-head);
  font-size: 17pt; font-weight: 700; line-height: 1;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #0A2240;
}
.rc-card__line {
  display: flex; align-items: flex-end; gap: 0.06in;
  height: 0.3in;
}
.rc-card__label {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 7.5pt; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #4a5680;
  padding-bottom: 0.02in;
}
.rc-card__value {
  flex: 1; min-width: 0;
  border-bottom: 1px solid #0A2240;
  font-family: var(--font-body); font-size: 8.5pt; line-height: 1.5;
  color: #0A2240;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-height: 1.5em;
}

/* Cards without labels: full-width lines; "large" lines (e.g. a name) get bigger text */
.rc-card--no-labels .rc-card__line { height: 0.32in; }
.rc-card__line--large { height: 0.38in; }
.rc-card__line--large .rc-card__value { font-family: var(--font-head); font-size: 13pt; font-weight: 600; letter-spacing: 0.04em; line-height: 1.3; }

/* Tagline under the heading; the copper rule moves below it */
.rc-card__heading--with-tagline { margin-bottom: 0.03in; padding-bottom: 0; border-bottom: 0; }
.rc-card__tagline {
  margin: 0 0 0.1in;
  padding-bottom: 0.06in;
  border-bottom: 2px solid #c8803a;
  font-family: var(--font-body); font-size: 7.5pt; font-style: italic; letter-spacing: 0.02em;
  color: #4a5680;
}

/* No underlines: text only, like a printed business card */
.rc-card--plain .rc-card__line { height: auto; margin-bottom: 0.02in; }
.rc-card--plain .rc-card__value { border-bottom: 0; min-height: 0; }
.rc-card--plain .rc-card__line--large { margin-bottom: 0.04in; }

@media print {
  html, body { background: #fff !important; }
  body { display: block; min-height: 0; }
  .page-print-card .site-header,
  .page-print-card .site-footer,
  .page-print-card .page-hero,
  .page-print-card .skip-link,
  .no-print { display: none !important; }
  .page-print-card .section { padding: 0 !important; }
  .page-print-card .container { padding: 0; max-width: none; }
  .rc { display: block; }
  .rc__preview { overflow: visible; padding: 0; }
  .rc-sheet { margin: 0 auto; box-shadow: none; min-height: 0; break-inside: avoid; }
}

/* ---------- Panels & forms ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .panel { padding: 40px; } }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; min-width: 0; }
.field label {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text);
}
.field__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__link { font-size: 0.85rem; }
.req { color: var(--accent); }
.optional { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  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.5l5 5 5-5' fill='none' stroke='%23a1a5c7' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 128, 58, 0.22);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { margin: 0; font-size: 0.85rem; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 0; font-size: 0.9rem; color: var(--error); }

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.925rem;
}
.alert[hidden] { display: none; }
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert--error {
  background: rgba(229, 83, 75, 0.1);
  border: 1px solid rgba(229, 83, 75, 0.45);
  color: #f3b0ab;
}
.alert--error .icon { color: var(--error); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .contact { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; }
}
.contact__aside { padding-top: 16px; }
.contact__aside h2 { font-size: 1.8rem; }
.contact__aside > p { color: var(--muted); }
.aside-list { display: grid; gap: 14px; margin: 24px 0 28px; }
.aside-list li { display: flex; gap: 14px; align-items: center; }
.aside-list .icon { color: var(--accent); width: 22px; height: 22px; }
.contact__note { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; }

.success { text-align: center; padding: 24px 0; }
.success:focus { outline: none; }
.success__icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(76, 175, 122, 0.12);
  border: 1px solid rgba(76, 175, 122, 0.5);
  color: var(--success);
  margin-bottom: 20px;
}
.success__icon .icon { width: 30px; height: 30px; }
.success p { color: var(--muted); max-width: 420px; margin: 0 auto 28px; }

/* ---------- Login ---------- */
.auth {
  display: grid; place-items: center;
  padding: 56px var(--gutter) 80px;
  min-height: calc(100vh - var(--header-h) - 160px);
  background:
    radial-gradient(ellipse 50% 50% at 50% 0%, rgba(200,128,58,0.12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
}
.auth__card { width: 100%; max-width: 460px; }
.auth__head { text-align: center; margin-bottom: 28px; }
.auth__icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent);
  margin-bottom: 16px;
}
.auth__icon .icon { width: 22px; height: 22px; }
.auth__head h1 { font-size: 2.2rem; margin-bottom: 6px; }
.auth__head p { color: var(--muted); margin: 0; }
.auth__desc { color: var(--muted); font-size: 0.925rem; margin-bottom: 20px; }
.auth__foot { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 24px 0 0; }
.auth__foot p { margin: 0; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.tabs__tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  background: transparent; border: 0; border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tabs__tab .icon { width: 18px; height: 18px; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { background: var(--raised); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound__code {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(6rem, 22vw, 12rem); line-height: 1; margin: 0 0 8px;
  background: linear-gradient(180deg, #2A3075, #10144A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
}
.notfound p { color: var(--muted); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding-top: 48px;
}
.site-footer__inner { display: grid; gap: 32px; padding-bottom: 32px; }
.site-footer__brand p { color: var(--muted); margin: 14px 0 0; font-size: 0.95rem; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__nav a {
  color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em;
}
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 20px; padding-bottom: 28px;
}
.site-footer__legal p { margin: 0; color: var(--faint); font-size: 0.825rem; }
@media (min-width: 960px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
