:root {
  --page: #fbfcfb;
  --surface: #ffffff;
  --surface-soft: #f6f8f8;
  --ink: #101719;
  --muted: #59656b;
  --line: rgba(16, 23, 25, .15);
  --line-strong: rgba(16, 23, 25, .25);
  --primary: #0b3b63;
  --primary-dark: #092c4e;
  --green: #245d4e;
  --blue-gray: #273135;
  --shadow: 0 28px 70px rgba(16, 23, 25, .10);
  --container: 1240px;
  --fs-small: 14px;
  --fs-base: 17px;
  --fs-medium: 22px;
  --fs-title: 52px;
  --sans: "Onest", Arial, system-ui, sans-serif;
  --serif: "Noto Serif Display", Georgia, serif;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/noto-serif-display-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/noto-serif-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 23, 25, .045) 1px, transparent 1px) center top / min(8.333vw, 120px) 100%,
    radial-gradient(circle at 78% 18%, rgba(15, 82, 125, .08), transparent 30%),
    var(--page);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.58;
  text-rendering: geometricPrecision;
}

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

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

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

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

.breadcrumbs {
  background: rgba(251, 252, 251, .82);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
}

.breadcrumbs__list li {
  display: flex;
  align-items: center;
  min-width: 0;
}

.breadcrumbs__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumbs__list a {
  color: var(--primary-dark);
}

.breadcrumbs__list a:hover {
  color: var(--primary);
}

.breadcrumbs__list [aria-current="page"],
.breadcrumbs__list li[aria-current="page"] {
  color: var(--ink);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 251, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.3vw, 34px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo__mark {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.logo__mark svg,
.logo__mark img {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.logo__mark svg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo__text strong {
  display: block;
  color: var(--ink);
  max-width: 315px;
  font-size: 18px;
  line-height: 1.06;
  font-weight: 800;
  text-transform: none;
}

.logo__text small {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-gray);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.4vw, 24px);
  flex-wrap: wrap;
}

.menu a {
  padding: 8px 0;
  border-radius: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.menu a:hover {
  color: var(--primary);
  background: transparent;
}

.menu .menu__button {
  color: #fff;
  background: var(--primary);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  box-shadow: 0 16px 36px rgba(11, 59, 99, .18);
}

.menu .menu__button:hover {
  color: #fff;
  background: var(--primary-dark);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.hero {
  padding: 74px 0 58px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
  gap: 52px;
  align-items: center;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1,
.section-head h2,
.process__grid h2,
.bankruptcy__grid h2,
.safety__box h2,
.contacts__copy h2,
.subpage h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: var(--fs-title);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  font-family: var(--serif);
}

.hero__lead {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.hero__caption {
  margin: 0;
  color: #776b6e;
  font-size: var(--fs-small);
  font-weight: 700;
}

.hero__paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 16px;
}

.hero__paths article {
  min-height: 126px;
  padding: 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero__paths h2 {
  margin: 0 0 8px;
  color: #342f3b;
  font-size: var(--fs-small);
  line-height: 1.2;
  font-weight: 850;
  text-transform: uppercase;
}

.hero__paths p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.hero__side {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__side picture {
  display: block;
}

.hero__side img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff0e8;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero__facts span {
  min-height: 92px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
  border-right: 1px solid var(--line);
}

.hero__facts span:last-child {
  border-right: 0;
}

.hero__facts strong {
  display: block;
  color: var(--primary);
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.15;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(182, 111, 77, .22);
}

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

.button--secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button--secondary:hover {
  background: #fff2ea;
}

.notice {
  background: #2f3442;
  color: #fff;
}

.notice__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
}

.notice strong {
  color: #f0d3c1;
  font-weight: 850;
}

.notice p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}

.section {
  padding: 86px 0;
  background: var(--surface-soft);
}

@supports (content-visibility: auto) {
  .section,
  .notice,
  .contacts,
  .footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}

.section--compact {
  padding-top: 76px;
}

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

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

.section--urgent {
  background: #303744;
  color: #fff;
}

.section--urgent .eyebrow {
  color: #f0d3c1;
}

.section--urgent h2 {
  color: #fff;
}

.section--urgent .section-head p {
  color: rgba(255, 255, 255, .78);
}

.section--results {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.section--cabinet {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.section-head p,
.process__grid > .section-head p,
.bankruptcy__grid p,
.contacts__copy p,
.safety__box p,
.subpage p {
  margin: 0;
  color: var(--muted);
}

.section-head p + p,
.safety__box p + p {
  margin-top: 14px;
}

.action-grid,
.issue-grid,
.result-grid,
.roadmaps-grid,
.stories-grid,
.forum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.urgent__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.cabinet__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.urgent-list {
  display: grid;
  gap: 12px;
}

.cabinet-list {
  display: grid;
  gap: 12px;
}

.action-grid article,
.issue-grid article,
.result-grid article,
.roadmaps-grid article,
.stories-grid article,
.cabinet-list article,
.urgent-list article,
.forum-grid article,
.bankruptcy-box,
.form,
.disclaimer-box,
.subpage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.action-grid article,
.issue-grid article,
.result-grid article,
.roadmaps-grid article,
.stories-grid article,
.cabinet-list article,
.urgent-list article,
.forum-grid article,
.bankruptcy-box,
.subpage-card {
  padding: 24px;
}

.action-grid article,
.result-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.action-grid article {
  grid-template-rows: auto auto 1fr auto;
  min-height: 260px;
}

.result-grid article {
  min-height: 190px;
  background: #fffdfb;
}

.cabinet-list article {
  display: grid;
  gap: 8px;
  background: #fffaf6;
}

.urgent-list article {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}

.forum-grid article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: 10px;
}

.action-grid span,
.issue-grid span {
  display: inline-flex;
  min-width: 42px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  background: #fff1e8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
}

.action-grid h3,
.issue-grid h3,
.result-grid h3,
.steps-list h3,
.roadmaps-grid h3,
.stories-grid h3,
.cabinet-list h3,
.urgent-list h3,
.forum-grid h3,
.bankruptcy-box h3,
.form__header h3,
.footer h3,
.subpage-card h2,
.disclaimer-box h2 {
  margin: 0 0 10px;
  color: #342f3b;
  font-size: var(--fs-medium);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: 0;
}

.urgent-list h3 {
  color: #fff;
}

.action-grid p,
.issue-grid p,
.result-grid p,
.steps-list p,
.roadmaps-grid li,
.stories-grid p,
.cabinet-list p,
.urgent-list p,
.forum-grid p,
.bankruptcy-box li,
.form__header p,
.form__note,
.footer p,
.footer nav a,
.disclaimer-box p,
.subpage-card p,
.subpage-card li {
  color: var(--muted);
}

.urgent-list p {
  color: rgba(255, 255, 255, .76);
}

.roadmaps-grid h3 a {
  color: inherit;
  text-decoration: none;
}

.roadmaps-grid h3 a:hover {
  color: var(--primary-dark);
}

.card-action,
.forum-link,
.forum-links a {
  color: var(--primary-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.card-action:hover,
.forum-link:hover,
.forum-links a:hover {
  color: var(--primary-dark);
}

.card-action,
.forum-link {
  align-self: end;
  margin-top: 4px;
}

.is-clickable-card {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.is-clickable-card:hover,
.is-clickable-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(11, 59, 99, .32);
  box-shadow: 0 34px 80px rgba(16, 23, 25, .14);
}

.is-clickable-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.urgent-list .card-action {
  color: #f0d3c1;
}

.urgent-list .card-action:hover {
  color: #fff;
}

.forum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.forum-discussions {
  margin-top: 28px;
  padding: 26px;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.forum-discussions h2 {
  margin: 0 0 16px;
  color: #342f3b;
  font-size: var(--fs-large);
  line-height: 1.14;
}

.forum-discussions ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.forum-discussions li {
  color: var(--muted);
}

.forum-discussions a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.forum-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.forum-links li {
  color: var(--muted);
}

.action-grid p,
.issue-grid p,
.result-grid p,
.steps-list p,
.stories-grid p,
.cabinet-list p,
.urgent-list p,
.disclaimer-box p {
  margin: 0;
}

.process__grid,
.bankruptcy__grid,
.organs__grid,
.safety__box,
.contacts__grid,
.footer__grid,
.subpage__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.steps-list {
  display: grid;
  gap: 12px;
}

.steps-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.steps-list article:first-child {
  padding-top: 0;
}

.steps-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.steps-list span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 850;
}

.bankruptcy__grid {
  align-items: center;
}

.bankruptcy-box {
  background: #fffdfb;
}

.bankruptcy-box ul,
.roadmaps-grid ol,
.subpage-card ul {
  margin: 0;
  padding-left: 20px;
}

.bankruptcy-box li,
.roadmaps-grid li,
.subpage-card li {
  margin-bottom: 10px;
}

.organs {
  background: #2f3442;
  color: #fff;
}

.organs .eyebrow {
  color: #f0d3c1;
}

.organs h2 {
  color: #fff;
}

.organs p {
  color: rgba(255, 255, 255, .78);
}

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

.org-list span {
  padding: 14px 16px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  font-weight: 750;
}

.stories {
  background: var(--surface-soft);
}

.principles {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principles-grid article {
  min-height: 190px;
  padding: 24px;
  background: #fffaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.principles-grid h3 {
  margin: 0 0 10px;
  color: #342f3b;
  font-size: var(--fs-medium);
  line-height: 1.18;
  font-weight: 850;
}

.principles-grid p {
  margin: 0;
  color: var(--muted);
}

.safety {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.safety__box {
  padding: 30px;
  background: #fffaf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.text-link,
.form__check a {
  color: var(--primary-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq {
  background: #fff4ec;
}

.faq__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  padding: 20px 58px 20px 22px;
  color: #342f3b;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #fff1e8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.contacts {
  background: var(--page);
}

.contacts__methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.contacts__methods a {
  min-height: 96px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contacts__methods strong {
  color: #8d604c;
  font-size: var(--fs-small);
  text-transform: uppercase;
}

.contacts__methods span {
  color: var(--ink);
  font-weight: 850;
}

.form {
  padding: 28px;
}

.form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.form label > span {
  color: #5f5962;
  font-size: var(--fs-small);
  font-weight: 850;
}

.form__header {
  margin-bottom: 22px;
}

.form__row {
  display: grid;
  gap: 14px;
}

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

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(182, 111, 77, .12);
}

.form__check {
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.form__check input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--primary);
}

.form__check span {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 650;
}

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

.form__button {
  width: 100%;
  margin-top: 6px;
}

.form__note {
  margin: 14px 0 0;
  font-size: var(--fs-small);
}

.disclaimer-section {
  padding: 0 0 74px;
  background: var(--page);
}

.disclaimer-box {
  padding: 24px;
}

.disclaimer-box h2 {
  font-size: 20px;
}

.disclaimer-box p {
  font-size: var(--fs-small);
}

.footer {
  padding: 48px 0 58px;
  background: #f3e7df;
  border-top: 1px solid var(--line);
}

.footer__grid {
  grid-template-columns: 1.1fr 1fr .75fr;
}

.footer .logo {
  margin-bottom: 16px;
}

.footer h3 {
  font-size: 18px;
}

.footer nav a {
  display: block;
  margin-bottom: 8px;
}

.footer nav a:hover {
  color: var(--primary-dark);
}

.subpage {
  min-height: 58vh;
}

.subpage .button {
  margin-top: 22px;
}

.subpage-card {
  background: var(--surface);
}

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

.subpage-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.subpage-meta span {
  min-height: 76px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}

.subpage-meta strong {
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}

.about-hero {
  background: linear-gradient(180deg, #fff7f1 0%, #fffaf6 100%);
}

.about-scale {
  background: #ffffff;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-stats article,
.officials-list article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-stats article {
  min-height: 300px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
}

.about-stats strong {
  display: block;
  color: var(--primary);
  font-size: var(--fs-title);
  line-height: 1;
  font-weight: 850;
}

.about-stats h3,
.officials-list h3 {
  margin: 0;
  color: #342f3b;
  font-size: var(--fs-base);
  line-height: 1.22;
  font-weight: 850;
}

.about-stats p,
.officials-list p {
  margin: 0;
  color: var(--muted);
}

.about-stats .text-link {
  align-self: end;
  font-size: var(--fs-small);
}

.about-officials .section-head {
  margin-bottom: 0;
}

.officials-list {
  display: grid;
  gap: 12px;
}

.officials-list article {
  display: grid;
  gap: 8px;
  background: #fffdfb;
}

.about-work .result-grid article {
  min-height: 210px;
}

.tool-grid,
.template-grid,
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-grid article,
.template-grid article,
.checklist-grid article,
.route-test,
.route-result {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-grid article,
.template-grid article,
.checklist-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
}

.template-grid article {
  grid-template-rows: auto 1fr auto;
}

.route-test {
  display: grid;
  gap: 22px;
}

.route-question {
  display: grid;
  gap: 12px;
  scroll-margin-top: 108px;
}

.route-question.is-unanswered {
  outline: 2px solid rgba(124, 45, 28, .34);
  outline-offset: 8px;
}

.route-question.is-unanswered h3 {
  color: #7c2d1c;
}

.route-question h3,
.tool-grid h3,
.template-grid h3,
.checklist-grid h3,
.route-result h3 {
  margin: 0;
  color: #342f3b;
  font-size: var(--fs-base);
  line-height: 1.22;
  font-weight: 850;
}

.route-options {
  display: grid;
  gap: 8px;
}

.route-options label {
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  color: var(--muted);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.route-options input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary);
}

.route-result {
  display: none;
  margin-top: 18px;
  background: #fffdfb;
}

.route-result.is-visible {
  display: block;
}

.route-result p + p {
  margin-top: 12px;
}

.route-result__next {
  color: #5f5962;
  font-weight: 750;
}

.route-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.download-link {
  align-self: end;
  color: var(--primary-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.checklist-grid ul {
  margin: 0;
  padding-left: 20px;
}

.checklist-grid li {
  margin-bottom: 10px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero__grid,
  .cabinet__grid,
  .urgent__grid,
  .process__grid,
  .bankruptcy__grid,
  .organs__grid,
  .safety__box,
  .faq__grid,
  .contacts__grid,
  .footer__grid,
  .subpage__grid {
    grid-template-columns: 1fr;
  }

  .action-grid,
  .issue-grid,
  .result-grid,
  .roadmaps-grid,
  .stories-grid,
  .forum-grid,
  .principles-grid,
  .about-stats,
  .tool-grid,
  .template-grid,
  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__content {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .burger {
    display: inline-flex;
  }

  .menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  .menu-open .menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu a {
    padding: 13px 14px;
  }
}

@media (max-width: 720px) {
  :root {
    --fs-base: 16px;
    --fs-medium: 20px;
    --fs-title: 34px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header__inner {
    min-height: 72px;
  }

  .menu {
    top: 72px;
  }

  .logo__mark {
    width: 42px;
    height: 42px;
  }

  .logo__text small {
    display: none;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero__grid {
    gap: 28px;
  }

  .hero__actions,
  .hero__actions .button,
  .cabinet-actions,
  .cabinet-actions .button,
  .forum-actions,
  .forum-actions .button {
    width: 100%;
  }

  .hero__paths,
  .hero__facts,
  .action-grid,
  .issue-grid,
  .result-grid,
  .roadmaps-grid,
  .stories-grid,
  .cabinet-list,
  .urgent-list,
  .forum-grid,
  .principles-grid,
  .about-stats,
  .tool-grid,
  .template-grid,
  .checklist-grid,
  .subpage-meta,
  .org-list,
  .contacts__methods,
  .form__row--two,
  .notice__inner {
    grid-template-columns: 1fr;
  }

  .hero__facts span {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__facts span:last-child {
    border-bottom: 0;
  }

  .notice__inner {
    padding: 18px 0;
    gap: 6px;
  }

  .section {
    padding: 68px 0;
  }

  .steps-list article {
    grid-template-columns: 46px 1fr;
  }

  .steps-list span {
    width: 46px;
    height: 46px;
  }

  .safety__box,
  .form {
    padding: 22px;
  }
}

/* Единая типографика сайта: заголовок, обычный текст, малая подпись. */
:root {
  --type-small: 14px;
  --type-base: 17px;
  --type-title: 42px;
  --fs-small: var(--type-small);
  --fs-base: var(--type-base);
  --fs-medium: var(--type-base);
  --fs-title: var(--type-title);
  --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --weight-regular: 500;
  --weight-bold: 800;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-main);
  font-size: var(--type-base);
  font-weight: var(--weight-regular);
}

.hero h1,
.section-head h2,
.process__grid h2,
.bankruptcy__grid h2,
.safety__box h2,
.contacts__copy h2,
.subpage h1 {
  font-size: var(--type-title);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.action-grid h3,
.issue-grid h3,
.result-grid h3,
.steps-list h3,
.roadmaps-grid h3,
.stories-grid h3,
.cabinet-list h3,
.urgent-list h3,
.forum-grid h3,
.bankruptcy-box h3,
.principles-grid h3,
.form__header h3,
.footer h3,
.subpage-card h2,
.about-stats h3,
.officials-list h3,
.tool-grid h3,
.template-grid h3,
.checklist-grid h3,
.route-question h3,
.route-result h3,
.disclaimer-box h2,
.faq-list summary,
.contacts__methods span {
  font-size: var(--type-small);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.logo__text strong,
.logo__text small,
.menu a,
.eyebrow,
.hero__caption,
.hero__facts span,
.button,
.hero__paths h2,
.card-action,
.forum-link,
.action-grid span,
.issue-grid span,
.contacts__methods strong,
.form label > span,
.form__check span,
.form__note,
.disclaimer-box p,
.subpage-meta span,
.text-link,
.form__check a {
  font-size: var(--type-small);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.hero__lead,
.notice p,
.section-head p,
.hero__paths p,
.process__grid > .section-head p,
.bankruptcy__grid p,
.contacts__copy p,
.safety__box p,
.subpage p,
.action-grid p,
.issue-grid p,
.result-grid p,
.steps-list p,
.roadmaps-grid li,
.stories-grid p,
.cabinet-list p,
.urgent-list p,
.forum-grid p,
.bankruptcy-box li,
.principles-grid p,
.form__header p,
.form__note,
.footer p,
.footer nav a,
.disclaimer-box p,
.subpage-card p,
.subpage-card li,
.about-stats p,
.officials-list p,
.tool-grid p,
.template-grid p,
.checklist-grid p,
.route-options label,
.route-result p,
.faq-list p,
.org-list span,
.contacts__methods a {
  font-size: var(--type-base);
  font-weight: var(--weight-regular);
}

.hero__facts strong,
.subpage-meta strong,
.about-stats strong {
  font-size: var(--type-title);
  font-weight: var(--weight-bold);
}

@media (max-width: 720px) {
  :root {
    --type-small: 13px;
    --type-base: 16px;
    --type-title: 32px;
  }
}

/* Premium prototype layer for the full site refresh. */
:root {
  --type-small: 13px;
  --type-base: 16px;
  --type-title: 48px;
  --fs-title: var(--type-title);
}

.container {
  width: min(calc(100% - 56px), var(--container));
}

.logo__text strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.06;
}

.logo__text small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .075em;
}

.menu {
  flex-wrap: nowrap;
}

.menu a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.menu .menu__button {
  color: #fff;
}

.section,
.subpage {
  background: transparent;
}

.section {
  padding: 78px 0;
}

.section--panel,
.section--results,
.section--cabinet,
.principles,
.safety {
  background: rgba(255, 255, 255, .74);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--soft,
.faq,
.stories {
  background: linear-gradient(180deg, rgba(11, 59, 99, .045), rgba(251, 252, 251, .88));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--urgent,
.notice,
.organs {
  color: #fff;
  background: #092c4e;
}

.notice strong,
.section--urgent .eyebrow,
.organs .eyebrow {
  color: rgba(255, 255, 255, .74);
}

.hero__grid,
.subpage__grid,
.process__grid,
.bankruptcy__grid,
.organs__grid,
.safety__box,
.contacts__grid,
.footer__grid,
.faq__grid {
  gap: clamp(34px, 4vw, 64px);
}

.subpage {
  position: relative;
  padding-top: 74px;
  padding-bottom: 78px;
  overflow: hidden;
}

.subpage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(16, 23, 25, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 23, 25, .045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
}

.subpage::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(54vw, 780px);
  height: 42%;
  content: "";
  background: linear-gradient(180deg, rgba(11, 59, 99, 0), rgba(11, 59, 99, .075));
  border-bottom: 1px solid rgba(11, 59, 99, .14);
}

.hero h1,
.section-head h2,
.process__grid h2,
.bankruptcy__grid h2,
.safety__box h2,
.contacts__copy h2,
.subpage h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 4.7vw, 74px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .98;
}

.section-head h2,
.process__grid h2,
.bankruptcy__grid h2,
.safety__box h2,
.contacts__copy h2 {
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1.02;
}

.subpage p,
.section-head p,
.hero__lead,
.process__grid > .section-head p,
.bankruptcy__grid p,
.contacts__copy p,
.safety__box p {
  max-width: 68ch;
  color: var(--blue-gray);
  font-size: 18px;
  line-height: 1.62;
}

.eyebrow {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.subpage-meta {
  margin: 32px 0;
  border-left: 1px solid var(--line);
}

.subpage-meta span {
  min-height: 76px;
  padding: 0 22px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.subpage-meta strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: 0;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 730;
}

.button--primary {
  background: var(--primary);
  box-shadow: 0 18px 38px rgba(11, 59, 99, .2);
}

.button--secondary {
  color: var(--primary);
  background: rgba(255, 255, 255, .64);
  border-color: rgba(11, 59, 99, .24);
}

.action-grid article,
.issue-grid article,
.result-grid article,
.roadmaps-grid article,
.stories-grid article,
.cabinet-list article,
.urgent-list article,
.forum-grid article,
.bankruptcy-box,
.form,
.disclaimer-box,
.subpage-card,
.principles-grid article,
.template-grid article,
.tool-grid article,
.checklist-grid article,
.route-question,
.route-result,
.forum-discussions,
.faq-list details,
.safety__box {
  background: rgba(255, 255, 255, .83);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 28px 64px rgba(16, 23, 25, .08);
}

.subpage-stack {
  display: grid;
  gap: 14px;
}

.subpage-card {
  padding: 28px;
  backdrop-filter: blur(8px);
}

.subpage-card h2,
.action-grid h3,
.issue-grid h3,
.result-grid h3,
.steps-list h3,
.roadmaps-grid h3,
.stories-grid h3,
.cabinet-list h3,
.urgent-list h3,
.forum-grid h3,
.bankruptcy-box h3,
.principles-grid h3,
.form__header h3,
.footer h3,
.about-stats h3,
.officials-list h3,
.tool-grid h3,
.template-grid h3,
.checklist-grid h3,
.route-question h3,
.route-result h3,
.disclaimer-box h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.subpage-card p,
.subpage-card li,
.action-grid p,
.issue-grid p,
.result-grid p,
.steps-list p,
.roadmaps-grid li,
.stories-grid p,
.cabinet-list p,
.forum-grid p,
.bankruptcy-box li,
.principles-grid p,
.template-grid p,
.tool-grid p,
.checklist-grid p,
.faq-list p,
.footer p,
.footer nav a {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.forum-links a,
.card-action,
.forum-link,
.text-link,
.form__check a {
  color: var(--primary);
  text-decoration-thickness: 1px;
}

.faq-list summary {
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.015em;
}

.faq-list summary::after {
  color: var(--primary);
}

.template-grid article,
.forum-grid article,
.result-grid article,
.tool-grid article {
  min-height: 0;
}

.footer {
  background: #101719;
  border-top: 0;
}

.footer .logo__text strong,
.footer h3 {
  color: #fff;
}

.footer p,
.footer nav a {
  color: rgba(255, 255, 255, .7);
}

.footer .logo__mark svg {
  stroke: #fff;
}

.footer .logo__mark img {
  filter: brightness(0) invert(1);
}

@media (max-width: 1120px) {
  .menu {
    gap: 14px;
  }

  .menu a {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .header__inner {
    min-height: 72px;
  }

  .logo__mark,
  .logo__mark svg,
  .logo__mark img {
    width: 42px;
    height: 42px;
  }

  .logo__text strong {
    max-width: 240px;
    font-size: 16px;
  }

  .logo__text small {
    font-size: 9px;
    letter-spacing: .06em;
  }

  .subpage,
  .section {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .subpage__grid,
  .faq__grid,
  .process__grid,
  .bankruptcy__grid,
  .organs__grid,
  .safety__box,
  .contacts__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .subpage-meta {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .subpage-meta span {
    min-height: 0;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  :root {
    --type-small: 13px;
    --type-base: 16px;
    --type-title: 34px;
  }

  body {
    background: var(--page);
  }

  .container {
    width: min(calc(100% - 34px), var(--container));
  }

  .subpage h1,
  .hero h1 {
    font-size: clamp(40px, 10.8vw, 48px);
    line-height: 1;
  }

  .section-head h2,
  .process__grid h2,
  .bankruptcy__grid h2,
  .safety__box h2,
  .contacts__copy h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .subpage p,
  .section-head p,
  .hero__lead,
  .process__grid > .section-head p,
  .bankruptcy__grid p,
  .contacts__copy p,
  .safety__box p {
    font-size: 16px;
    line-height: 1.55;
  }

  .subpage-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .header__inner {
    min-height: 66px;
  }

  .logo {
    gap: 11px;
  }

  .logo__mark,
  .logo__mark svg,
  .logo__mark img {
    width: 40px;
    height: 40px;
  }

  .logo__text strong {
    max-width: 214px;
    font-size: 14px;
    line-height: 1.06;
  }

  .logo__text small {
    margin-bottom: 3px;
    font-size: 8px;
    letter-spacing: .055em;
  }

  .burger {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .breadcrumbs__list {
    font-size: 12px;
    line-height: 1.3;
  }

  .subpage {
    padding-top: 48px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: .11em;
  }

  .subpage h1,
  .hero h1 {
    font-size: clamp(38px, 10vw, 44px);
  }

  .subpage-meta {
    margin: 28px 0;
  }

  .button {
    width: 100%;
  }
}

/* Internal pages v2: make subpages feel like a system, not recolored articles. */
.subpage__grid {
  grid-template-columns: minmax(390px, .78fr) minmax(560px, 1fr);
  align-items: stretch;
}

.subpage__grid > div:first-child {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 34px;
}

.subpage-stack {
  position: relative;
  min-height: 560px;
  align-content: center;
  padding: 40px 0 40px 70px;
}

.subpage-stack::before {
  position: absolute;
  top: 72px;
  bottom: 72px;
  left: 26px;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, rgba(11, 59, 99, .12), rgba(11, 59, 99, .5), rgba(36, 93, 78, .24));
}

.subpage-stack::after {
  position: absolute;
  right: 10%;
  bottom: 26px;
  z-index: -1;
  width: 170px;
  height: 170px;
  content: "";
  border: 2px solid rgba(11, 59, 99, .18);
  border-radius: 999px;
  box-shadow: inset 0 0 0 18px rgba(11, 59, 99, .025);
}

.subpage-card {
  position: relative;
  min-height: 142px;
  padding: 30px 34px 30px 38px;
  overflow: hidden;
}

.subpage-card::before {
  position: absolute;
  top: 32px;
  left: -58px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 10px var(--page);
  font-size: 13px;
  font-weight: 760;
}

.subpage-card:nth-child(1)::before {
  content: "01";
}

.subpage-card:nth-child(2)::before {
  content: "02";
  background: var(--green);
}

.subpage-card:nth-child(3)::before {
  content: "03";
}

.subpage-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  content: "";
  background:
    linear-gradient(135deg, transparent 49%, var(--line-strong) 50%, transparent 51%),
    linear-gradient(135deg, rgba(16, 23, 25, .055) 0 50%, transparent 50%);
}

.subpage-card h2 {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: 22px;
}

.subpage-card ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.subpage-card li {
  position: relative;
  margin: 0;
  padding-left: 22px;
}

.subpage-card li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--primary);
}

.subpage-card .forum-links {
  padding-left: 0;
}

.subpage-card .forum-links li::before {
  width: 12px;
  background: var(--green);
}

.subpage-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}

.subpage-meta span {
  background: rgba(255, 255, 255, .42);
}

.faq {
  position: relative;
  overflow: hidden;
}

.faq::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(16, 23, 25, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 23, 25, .035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000, transparent 46%);
  pointer-events: none;
}

.faq__grid {
  position: relative;
  grid-template-columns: minmax(300px, .62fr) minmax(560px, 1fr);
}

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

.faq-list details {
  border-width: 0 0 1px;
  border-color: var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, .58);
  box-shadow: none;
}

.faq-list summary {
  min-height: 68px;
  padding: 22px 72px 22px 0;
}

.faq-list p {
  max-width: 760px;
  padding: 0 70px 24px 0;
}

.related-materials .section-head {
  margin-bottom: 28px;
}

.related-materials .template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  gap: 0;
}

.related-materials .template-grid article {
  min-height: 230px;
  padding: 28px 30px;
  border-width: 0 1px 1px 0;
  border-color: var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, .54);
  box-shadow: none;
}

.related-materials .template-grid h3 {
  font-size: 18px;
}

.related-materials .forum-links {
  padding-left: 0;
  list-style: none;
}

.related-materials .forum-links li {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(16, 23, 25, .08);
}

.related-materials .forum-links li:first-child {
  border-top: 0;
}

.route-test {
  display: grid;
  gap: 14px;
}

.route-question,
.route-result {
  border-radius: 4px;
}

@media (max-width: 1120px) {
  .subpage__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .subpage__grid > div:first-child {
    min-height: 0;
  }

  .subpage-stack {
    min-height: 0;
    padding-top: 26px;
    padding-bottom: 20px;
  }
}

@media (max-width: 720px) {
  .subpage-stack {
    padding: 20px 0 0 50px;
  }

  .subpage-stack::before {
    left: 18px;
  }

  .subpage-card::before {
    left: -50px;
    width: 42px;
    height: 42px;
    box-shadow: 0 0 0 8px var(--page);
    font-size: 12px;
  }

  .subpage-card::after {
    width: 44px;
    height: 44px;
  }

  .related-materials .template-grid {
    grid-template-columns: 1fr;
  }

  .faq-list summary {
    padding-right: 52px;
  }

  .faq-list p {
    padding-right: 0;
  }
}

/* Internal page polish: keep article pages quieter than the home hero. */
.subpage h1 {
  max-width: 620px;
  font-size: clamp(42px, 4.25vw, 66px);
  line-height: 1.02;
}

.subpage-card h2,
.subpage-card p,
.subpage-card li,
.faq-list summary,
.faq-list p {
  text-align: left;
}

@media (max-width: 720px) {
  .subpage h1 {
    font-size: clamp(38px, 9.4vw, 44px);
    line-height: 1.04;
  }
}

@media (max-width: 520px) {
  .subpage h1 {
    font-size: clamp(36px, 9.2vw, 42px);
  }

  .subpage p {
    font-size: 15.5px;
  }
}

/* Final header alignment for the prototype set. */
.header__inner {
  gap: clamp(14px, 1.8vw, 28px);
}

.logo__text strong {
  max-width: 315px;
}

.menu {
  gap: clamp(8px, 1vw, 18px);
}

.menu a {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .menu a {
    font-size: 12.4px;
  }

  .menu .menu__button {
    padding-inline: 14px;
  }
}

@media (max-width: 720px) {
  .subpage-stack {
    padding-left: 28px;
  }

  .subpage-card {
    padding: 24px 22px;
  }

  .subpage-card::before {
    left: -28px;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 0 6px var(--page);
    font-size: 10px;
  }

  .subpage-stack::before {
    left: 14px;
  }
}

@media (max-width: 900px) {
  .menu {
    z-index: 90;
    top: 70px;
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
    justify-items: stretch;
    padding: 8px;
    background: #fbfcfb;
    border-color: var(--line-strong);
    border-radius: 6px;
    box-shadow: 0 28px 70px rgba(16, 23, 25, .18);
  }

  .menu a {
    display: flex;
    width: 100%;
    justify-self: stretch;
    min-height: 48px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    color: var(--ink);
    border-bottom: 1px solid rgba(16, 23, 25, .08);
    font-size: 15px;
    font-weight: 720;
    text-align: left;
  }

  .menu a:last-child {
    border-bottom: 0;
  }

  .menu .menu__button {
    justify-content: center;
    margin-top: 8px;
    color: #fff;
    background: var(--primary);
    border-radius: 4px;
  }
}

/* Step 2: mobile subpage first screen should move from reading to action faster. */
@media (max-width: 720px) {
  .subpage {
    padding-top: 34px;
    padding-bottom: 50px;
  }

  .subpage__grid {
    gap: 30px;
  }

  .subpage__grid > div:first-child {
    justify-content: flex-start;
    padding: 0;
  }

  .subpage .eyebrow {
    margin-bottom: 12px;
  }

  .subpage p {
    line-height: 1.48;
  }

  .subpage p + p {
    margin-top: 10px;
  }

  .subpage__grid > div:first-child > .button {
    order: 5;
    margin-top: 18px;
  }

  .subpage__grid > div:first-child > .subpage-meta {
    order: 6;
  }

  .subpage-meta {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 14px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong);
  }

  .subpage-meta span {
    min-height: 56px;
    padding: 10px 12px;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: rgba(255, 255, 255, .48);
    font-size: 12px;
    line-height: 1.2;
  }

  .subpage-meta strong {
    margin-bottom: 5px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .subpage {
    padding-top: 28px;
  }

  .subpage__grid > div:first-child > .button {
    min-height: 50px;
    margin-top: 16px;
  }

  .subpage-meta span {
    min-height: 52px;
    padding: 9px 10px;
  }
}

/* Mobile action rail: keep the two primary paths available while reading. */
.mobile-action-bar {
  display: none;
}

.quality-note {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 59, 99, .035), transparent 46%),
    rgba(255, 255, 255, .58);
}

.quality-note__shell {
  display: grid;
  grid-template-columns: minmax(280px, .68fr) minmax(520px, 1fr);
  gap: clamp(30px, 4.6vw, 70px);
  align-items: start;
}

.quality-note h2 {
  max-width: 640px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1;
}

.quality-note__headline p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
}

.quality-note__panel {
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  box-shadow: 0 24px 62px rgba(16, 23, 25, .08);
}

.quality-note__row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.quality-note__row:first-child {
  padding-top: 0;
}

.quality-note__row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quality-note__row strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.48;
}

.quality-note__row a {
  color: var(--primary);
  font-weight: 760;
}

.quality-note__disclaimer {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .quality-note__shell {
    grid-template-columns: 1fr;
  }

  .quality-note__panel {
    padding: 20px;
  }

  .quality-note__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quality-note__row strong,
  .quality-note__disclaimer {
    font-size: 14px;
  }

  .mobile-action-bar {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 8px;
    padding: 8px;
    background: rgba(251, 252, 251, .94);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    box-shadow: 0 22px 54px rgba(16, 23, 25, .2);
    backdrop-filter: blur(18px);
    transition: opacity .18s ease, transform .18s ease;
  }

  .mobile-action-bar a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(11, 59, 99, .24);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-action-bar__cabinet {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
  }

  .mobile-action-bar__forum {
    color: var(--primary);
    background: rgba(255, 255, 255, .68);
  }

  .menu-open .mobile-action-bar {
    opacity: 0;
    pointer-events: none;
    transition-duration: 0s;
    transform: translateY(calc(100% + 20px));
  }
}
