:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #111;
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; padding: 0 28px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 32px;
  z-index: 10;
  padding: 12px 18px;
  border: 1px solid #111;
  background: #fff;
}
.skip-link:focus { top: 12px; }

.site-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  max-width: 1240px;
  min-height: 1080px;
  margin: 32px auto;
  border: 1px solid #222;
  border-radius: 24px;
}
.sidebar { min-width: 0; padding: 220px 24px 36px; }
.sidebar-inner { position: sticky; top: 32px; }
.menu-label { margin: 0 12px 14px; font-weight: 600; }
.site-nav ul { padding: 0; margin: 0; list-style: none; }
.site-nav a {
  display: block;
  margin: 4px 0;
  padding: 12px;
  border: 1px solid transparent;
  font-size: 1.0625rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { border-color: #222; font-weight: 600; }
.menu-toggle { display: none; }

.page-content { position: relative; min-width: 0; padding: 68px 52px 72px; }
.page-content::before {
  content: '';
  position: absolute;
  top: 188px;
  bottom: 48px;
  left: 0;
  border-left: 1px solid #222;
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: 1.8125rem; line-height: 1.35; font-weight: 600; }
h2 { margin-bottom: 16px; font-size: 1.5rem; line-height: 1.4; font-weight: 600; }
p { line-height: 1.6; }
.draft-note { margin-bottom: 0; color: #555; font-size: .875rem; }
.slot-label { margin-bottom: 15px; color: #555; font-size: .875rem; line-height: 1.5; }
.case-opening { padding: 0 2px; margin: 38px 0 32px; }
.text-lines { display: grid; gap: 12px; }
.text-lines span { display: block; height: 7px; width: 100%; background: #e9e9e9; }
.text-lines span:nth-child(3n + 2) { width: 91%; }
.text-lines span:last-child { width: 68%; }
.quiz-slot { border: 1px solid #222; border-radius: 22px; padding: 28px 34px; }
.quiz-slot .slot-label { margin-bottom: 18px; }
.quiz-slot h2 { max-width: 550px; }
.quiz-slot p:last-child { margin-bottom: 0; color: #555; }
.quiz-loss { min-height: 190px; }
.case-body { min-height: 250px; display: flex; flex-direction: column; justify-content: center; padding: 40px 2px; }
.quiz-service { min-height: 238px; }
.page-intro { color: #555; max-width: 580px; }
.service-list { margin-top: 44px; border-top: 1px solid #222; }
.service-row { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid #222; }
.service-row h2 { font-size: 1.1875rem; }
.page-placeholder { margin-top: 52px; padding: 36px; min-height: 300px; border: 1px dashed #888; }
.home-hero { margin-bottom: 44px; }
.home-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.home-route { min-width: 0; border: 1px solid #222; padding: 20px; }
.home-route a { font-weight: 600; line-height: 1.5; }
.home-route p { margin: 12px 0 0; }
.home-section { border-top: 1px solid #222; padding-top: 28px; margin-top: 36px; }
.home-section p { max-width: 650px; }
.section-link { display: inline-block; margin-top: 4px; line-height: 1.6; }
.partner-list { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 20px 0; list-style: none; }
.site-footer { grid-column: 1 / -1; border-top: 1px solid #222; padding: 26px 32px; min-width: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 0; margin: 0; }
.site-footer li { min-width: 0; }
.site-footer a { font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; }
.site-footer a[aria-current="page"] { font-weight: 600; }

@media (max-width: 1040px) {
  .site-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .page-content { padding: 52px 30px 56px; }
  h1 { font-size: 1.625rem; }
  .quiz-slot { padding: 26px; }
}

@media (max-width: 760px) {
  body { padding: 0 14px; }
  .site-shell { display: block; min-height: 0; margin: 14px auto; border-radius: 16px; }
  .sidebar { padding: 14px 18px; border-bottom: 1px solid #222; }
  .sidebar-inner { position: static; }
  .menu-label { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 0; border: 0; background: #fff; font-weight: 600; cursor: pointer; }
  .site-nav { display: none; margin-top: 12px; }
  .site-nav.is-open { display: block; }
  .site-nav a { font-size: 1rem; }
  .page-content { padding: 30px 20px 36px; }
  .page-content::before { display: none; }
  h1 { font-size: 1.5rem; line-height: 1.4; }
  h2 { font-size: 1.25rem; }
  .case-opening { margin-top: 28px; }
  .quiz-slot { padding: 24px 20px; border-radius: 16px; }
  .quiz-loss { min-height: 195px; }
  .case-body { min-height: 220px; }
  .quiz-service { min-height: 250px; }
  .service-row { display: block; }
  .service-row h2 { margin-bottom: 18px; }
  .page-placeholder { margin-top: 32px; padding: 26px 20px; }
  .home-routes { grid-template-columns: minmax(0, 1fr); }
  .home-route { padding: 18px; }
  .home-section { margin-top: 28px; padding-top: 24px; }
  .site-footer { padding: 24px; }
  .site-footer ul { flex-direction: column; gap: 14px; }
}
