:root {
  --ink: #191b17;
  --muted: #555c52;
  --soft: #f5f4ef;
  --paper: #fffdfa;
  --line: #dddcd3;
  --olive: #868670;
  --forest: #4b5249;
  --brown: #705640;
  --orange: #eb550f;
  --orange-soft: #fff0e7;
  --shadow: 0 22px 70px rgba(25, 27, 23, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: 0;
}

a {
  color: var(--orange);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  min-height: 112px;
  padding: 24px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--forest);
  font-weight: 850;
  font-size: 21px;
  text-decoration: none;
  line-height: 1.1;
}

.brand-logo {
  display: block;
  width: min(400px, 34vw);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 16px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdfa;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: var(--forest);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0 13px;
  border-bottom: 3px solid transparent;
}

.nav-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 56px 42px 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 58px;
  align-items: center;
  padding: 20px 0 64px;
}

.kicker {
  width: fit-content;
  margin: 0 0 24px;
  padding: 8px 16px;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(46px, 5.2vw, 82px);
  font-weight: 900;
}

.lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: #40483f;
  font-size: 24px;
  line-height: 1.58;
}

.hero-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 34px;
  background: linear-gradient(135deg, #fffdfa 0%, #f6f4ee 100%);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 22px;
  color: var(--forest);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-grid {
  display: grid;
  gap: 14px;
}

.signal {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.signal b {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.signal span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 900px);
  gap: 72px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 148px;
  padding: 22px 0;
  border-top: 2px solid var(--forest);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}

.toc a:hover {
  color: var(--orange);
}

.article {
  width: 100%;
}

.article h2 {
  margin: 72px 0 22px;
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 900;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin: 44px 0 14px;
  font-size: 28px;
  font-weight: 900;
}

.article p {
  margin: 0 0 24px;
  color: #384036;
}

.article strong {
  color: var(--ink);
  font-weight: 850;
}

.article ul,
.article ol {
  display: grid;
  gap: 12px;
  margin: 26px 0 34px;
  padding: 0;
}

.article ul {
  list-style: none;
}

.article ol {
  list-style: none;
  counter-reset: article-steps;
}

.article li {
  position: relative;
  padding: 18px 20px 18px 48px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--olive);
  border-radius: var(--radius);
  background: #fff;
  color: #363d34;
  box-shadow: 0 10px 34px rgba(25, 27, 23, 0.04);
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 27px;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
}

.article ol li {
  counter-increment: article-steps;
  padding-left: 62px;
}

.article ol li::before {
  content: counter(article-steps);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
}

.article p:has(+ ul) {
  margin-bottom: 10px;
}

.table-scroll {
  width: 100%;
  margin: 28px 0 44px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(25, 27, 23, 0.04);
}

.article table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.article th,
.article td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article th {
  background: #f3f1ea;
  color: var(--ink);
  font-weight: 900;
}

.article td {
  color: #384036;
}

.article tr:last-child td {
  border-bottom: 0;
}

.note {
  margin: 34px 0;
  padding: 28px 32px;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange-soft);
}

.signal-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.signal-link:hover {
  border-color: rgba(235, 85, 15, 0.55);
  box-shadow: 0 12px 34px rgba(25, 27, 23, 0.08);
  transform: translateY(-1px);
}

.home-section {
  margin-top: 74px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 3.4vw, 56px);
  font-weight: 900;
  line-height: 1.08;
}

.section-heading p:not(.kicker) {
  margin: 0;
  color: #384036;
  font-size: 21px;
  line-height: 1.6;
}

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

.topic-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--olive);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(25, 27, 23, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.topic-card:hover {
  border-left-color: var(--orange);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.topic-card span {
  display: block;
  margin-bottom: 22px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.topic-card h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.topic-card p {
  margin: 0;
  color: #444c42;
  line-height: 1.55;
}

.home-band {
  padding: 42px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--forest);
  border-radius: var(--radius);
  background: #f7f6f1;
}

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

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

.insight b,
.route b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.insight p {
  margin: 0;
  color: #444c42;
  line-height: 1.55;
}

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

.route {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.route:hover {
  border-left-color: var(--forest);
  box-shadow: 0 12px 34px rgba(25, 27, 23, 0.08);
  transform: translateY(-1px);
}

.route span {
  display: block;
  color: #444c42;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 22px;
  margin: 30px 0 56px;
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fdfcf8;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(235, 85, 15, 0.18);
  border-color: var(--orange);
  background: #fff;
}

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

.field-error {
  margin: 0;
  color: #a3332a;
  font-size: 15px;
  line-height: 1.4;
}

.form-status {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-status-success {
  border: 1px solid rgba(75, 82, 73, 0.28);
  background: #eef3ea;
  color: var(--forest);
}

.form-status-error {
  border: 1px solid rgba(163, 51, 42, 0.28);
  background: #fff0eb;
  color: #a3332a;
}

.button-primary {
  width: fit-content;
  border: 0;
  border-radius: var(--radius);
  padding: 15px 22px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(235, 85, 15, 0.22);
}

.button-primary:hover {
  background: #d94c0d;
}

.faq {
  margin-top: 82px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.faq h2 {
  margin-top: 0;
}

.faq h3 {
  margin: 14px 0 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f8f5;
  font-size: 20px;
}

.faq p {
  margin: 0 0 14px;
  padding: 18px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
}

.site-footer {
  background: var(--paper);
  color: var(--muted);
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 34px 42px 42px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 15px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--forest);
  font-weight: 900;
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.site-footer a {
  color: var(--forest);
  font-weight: 800;
  text-decoration-color: rgba(75, 82, 73, 0.28);
}

.site-footer a:hover {
  color: var(--orange);
  text-decoration-color: rgba(235, 85, 15, 0.5);
}

.footer-nav span {
  color: var(--orange);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .header-inner {
    min-height: 94px;
  }

  .nav {
    gap: 18px;
    font-size: 16px;
  }

  .hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--forest);
    border-radius: var(--radius);
    background: #fff;
  }

  .toc-title {
    grid-column: 1 / -1;
  }

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

  .topic-grid,
  .insight-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .header-inner,
  .footer-inner {
    padding-inline: 20px;
  }

  .header-inner {
    position: relative;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    min-height: 82px;
    padding-block: 16px;
  }

  .brand {
    font-size: 20px;
    max-width: calc(100% - 64px);
  }

  .brand-logo {
    width: min(194px, 56vw);
  }

  .nav-toggle {
    display: grid;
    margin-left: auto;
    gap: 5px;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--orange);
    border-radius: var(--radius);
    background: #fffdfa;
    box-shadow: 0 16px 44px rgba(25, 27, 23, 0.08);
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 13px 14px;
    border-bottom: 0;
    border-radius: 6px;
  }

  .nav-icon {
    display: none;
  }

  .nav a[aria-current="page"],
  .nav a:hover {
    background: var(--orange-soft);
    border-bottom-color: transparent;
  }

  .page-shell {
    padding: 38px 20px 72px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 20px;
  }

  .hero-card {
    padding: 24px;
  }

  .content-layout {
    gap: 46px;
  }

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

  .article h2 {
    margin-top: 58px;
    font-size: 34px;
  }

  .article h3 {
    font-size: 24px;
  }

  .article li {
    padding-right: 16px;
  }

  .home-band {
    padding: 24px;
  }

  .topic-card {
    min-height: 0;
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 28px 34px;
    gap: 14px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}
