:root {
  color-scheme: light;
  --accent: #c9212b;
  --accent-dark: #9f1420;
  --accent-soft: #fff1f2;
  --ink: #211d1e;
  --muted: #6f6668;
  --line: #eadfe1;
  --surface: #ffffff;
  --surface-soft: #faf7f7;
  --success: #147a4f;
  --success-soft: #eaf8f1;
  --warning: #8d5700;
  --warning-soft: #fff7e5;
  --shadow: 0 18px 50px rgba(58, 24, 28, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(201, 33, 43, 0.25);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(234, 223, 225, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-logo,
.brand-fallback {
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent-soft);
  border-radius: 13px;
  box-shadow: 0 5px 14px rgba(201, 33, 43, 0.11);
}

.brand-logo {
  display: block;
  object-fit: cover;
}

.brand-fallback {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 8%, rgba(201, 33, 43, 0.1), transparent 29%),
    linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
}

.hero-inner {
  padding-top: 76px;
  padding-bottom: 70px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.026em;
}

h1 {
  max-width: 820px;
  margin-bottom: 17px;
  font-size: clamp(2.05rem, 5vw, 3.7rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 52px;
  padding-top: 54px;
  padding-bottom: 76px;
}

.content-stack,
.card-grid,
.form-stack {
  display: grid;
  gap: 20px;
}

.legal-section,
.info-card,
.form-card,
.side-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.legal-section,
.info-card,
.form-card {
  padding: 27px 29px;
}

.legal-section p:last-child,
.info-card p:last-child,
.side-card p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.info-card ul,
.notice ul {
  margin: 12px 0 0;
  padding-left: 21px;
}

.legal-section li + li,
.info-card li + li,
.notice li + li {
  margin-top: 8px;
}

.side-column {
  align-self: start;
}

.side-card {
  position: sticky;
  top: 100px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.side-card .section-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.section-list a {
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.section-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.updated-label,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.updated-label {
  margin: 0 0 22px;
  padding: 7px 11px;
}

.tag {
  margin-bottom: 14px;
  padding: 5px 9px;
}

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

.info-card {
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(58, 24, 28, 0.045);
}

.info-card-wide {
  grid-column: 1 / -1;
}

.phone-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 20px 40px rgba(159, 20, 32, 0.2);
}

.phone-panel h2,
.phone-panel p {
  color: #fff;
}

.phone-panel h2 {
  margin-bottom: 6px;
}

.phone-panel p {
  margin: 0;
  opacity: 0.86;
}

.phone-button,
.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.phone-button {
  flex: 0 0 auto;
  padding: 11px 18px;
  background: #fff;
  color: var(--accent-dark);
}

.phone-button:hover {
  color: var(--accent);
}

.primary-button {
  width: 100%;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-dark);
}

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

.quick-link {
  display: block;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.quick-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 450;
}

.quick-link:hover {
  border-color: rgba(201, 33, 43, 0.35);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 28px;
  padding-top: 54px;
  padding-bottom: 76px;
}

.form-card {
  box-shadow: var(--shadow);
}

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

.field label {
  font-size: 0.93rem;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d9cdcf;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.field input {
  min-height: 49px;
  padding: 10px 13px;
}

.field textarea {
  min-height: 126px;
  padding: 12px 13px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: #b9aaad;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.required {
  color: var(--accent);
}

.notice {
  padding: 17px 19px;
}

.notice-success {
  border-color: #bce6d1;
  background: var(--success-soft);
  color: #0e5f3c;
}

.notice-error {
  border-color: #f1bdc1;
  background: var(--accent-soft);
  color: #82141c;
}

.notice-warning {
  border-color: #f1d79f;
  background: var(--warning-soft);
  color: #724600;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.steps {
  counter-reset: deletion-step;
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 38px;
  padding-left: 51px;
}

.steps li::before {
  counter-increment: deletion-step;
  content: counter(deletion-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 34px;
  padding-top: 31px;
  padding-bottom: 31px;
}

.footer-inner p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
}

.footer-links a,
.footer-phone {
  font-size: 0.86rem;
  font-weight: 650;
}

.footer-phone {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .page-layout,
  .form-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .side-card {
    position: static;
  }

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

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

  .footer-phone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
  }

  .hero-inner {
    padding-top: 50px;
    padding-bottom: 47px;
  }

  .page-layout,
  .form-layout {
    padding-top: 33px;
    padding-bottom: 50px;
  }

  .legal-section,
  .info-card,
  .form-card {
    padding: 21px 19px;
    border-radius: 15px;
  }

  .card-grid,
  .quick-links,
  .side-card .section-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .info-card-wide,
  .footer-phone {
    grid-column: auto;
  }

  .phone-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 23px 21px;
  }

  .phone-button {
    width: 100%;
  }

  .footer-inner {
    gap: 19px;
  }
}

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