:root {
  --bg: #f3f6fc;
  --bg-deep: #eaf0fa;
  --panel: #ffffff;
  --panel-2: #f7f9fd;
  --text: #142445;
  --text-strong: #0c1830;
  --muted: #62708f;
  --line: rgba(23, 64, 148, 0.12);
  --line-strong: rgba(23, 64, 148, 0.22);
  --blue: #1b56d6;
  --blue-deep: #0d2f80;
  --blue-light: #eaf1ff;
  --cyan: #16b8d6;
  --gold: #f0b429;
  --gold-deep: #c9860a;
  --gold-light: #ffe9b0;
  --footer-bg: #0a1631;
  --footer-bg-deep: #060d20;
  --shadow-soft: 0 10px 28px rgba(19, 42, 97, 0.09);
  --shadow-card: 0 6px 18px rgba(19, 42, 97, 0.07);
  --header-h: 60px;
  --shell: 1240px;
  --content: 860px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 22px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

button,
a,
summary,
input {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(var(--shell), calc(100% - 44px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 9px 13px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-deep) 100%);
  box-shadow: 0 8px 24px rgba(3, 8, 20, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.mobile-toc {
  position: relative;
  display: none;
  margin-left: auto;
}

.mobile-toc summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  color: #eaf1ff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
  list-style: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.mobile-toc summary::-webkit-details-marker {
  display: none;
}

.mobile-toc[open] summary,
.mobile-toc summary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-toc-icon {
  font-size: 13px;
  line-height: 1;
}

.mobile-toc-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  display: grid;
  width: 208px;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.mobile-toc-panel a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  transition: color 150ms ease, background 150ms ease;
}

.mobile-toc-panel a:hover {
  color: var(--blue-deep);
  background: var(--blue-light);
}

.brand img {
  width: 132px;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  color: #3a2400;
  border: 1px solid rgba(201, 134, 10, 0.55);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe9a8 0%, #f0b429 55%, #d68a12 100%);
  box-shadow: 0 8px 22px rgba(201, 134, 10, 0.28);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.012em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 134, 10, 0.36);
  filter: brightness(1.03);
}

.hero {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(6, 16, 43, 0.42) 0%, rgba(6, 16, 43, 0.14) 42%, rgba(6, 16, 43, 0.2) 100%),
    url("../images/hero/hero.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 18, 46, 0.1) 0%, rgba(8, 18, 46, 0.06) 46%, rgba(9, 21, 53, 0.55) 80%, var(--bg) 100%);
  content: "";
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 400px;
}

.hero-copy {
  width: min(780px, 64vw);
  padding: 34px 0 76px;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 6px 11px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(11, 25, 64, 0.5);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.55);
}

.hero-lead {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.58;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-fade {
  position: relative;
  z-index: 2;
  height: 66px;
  margin-top: -66px;
  background: linear-gradient(180deg, rgba(9, 21, 53, 0) 0%, rgba(9, 21, 53, 0.14) 40%, var(--bg) 96%);
  pointer-events: none;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--content)) minmax(240px, 300px);
  justify-content: start;
  align-items: start;
  gap: 34px;
  padding-top: 30px;
  padding-bottom: 62px;
}

.content-main {
  min-width: 0;
}

.content-section {
  margin-top: 30px;
}

.content-section h2,
.content-section h3 {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.content-section h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  padding-bottom: 11px;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.26;
  letter-spacing: -0.02em;
}

.content-section h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 58px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
}

.h2-icon,
.h3-icon {
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.92em;
}

.content-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 9px;
  color: var(--blue-deep);
  font-size: 16px;
  line-height: 1.38;
  letter-spacing: -0.008em;
}

.content-section p {
  margin: 0 0 11px;
  color: var(--text);
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section strong {
  color: var(--text-strong);
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid rgba(201, 134, 10, 0.35);
  border-radius: 11px;
  background: linear-gradient(135deg, #fff7e6, #fffaf0);
}

.callout-icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1.5;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.info-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  margin-top: 0;
}

.info-card p:last-child {
  margin-bottom: 0;
}

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

.steps-col h3 {
  margin-top: 0;
}

.content-list {
  display: grid;
  gap: 8px;
  margin: 13px 0 15px;
  padding: 0;
  list-style: none;
}

ul.content-list li,
ol.content-list li {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 36px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

ul.content-list li::before {
  position: absolute;
  top: 10px;
  left: 11px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #fff;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 10px;
  font-weight: 900;
  content: "✓";
}

ol.content-list {
  counter-reset: step;
}

ol.content-list li {
  counter-increment: step;
}

ol.content-list li::before {
  position: absolute;
  top: 9px;
  left: 10px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #3a2400;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-size: 10px;
  font-weight: 850;
  content: counter(step);
}

.table-wrap {
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  margin: 15px 0 17px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.data-table th,
.data-table td {
  padding: 11px 13px;
  vertical-align: middle;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

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

.data-table th {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%, var(--cyan));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.data-table td {
  color: var(--text);
}

.data-table tr:nth-child(even) td {
  background: var(--panel-2);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  min-width: 0;
  align-self: start;
}

.toc-card {
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
}

.toc-title {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.toc-card ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-card a {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.4;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.toc-card a:hover {
  color: var(--blue-deep);
  border-color: rgba(27, 86, 214, 0.2);
  background: var(--blue-light);
}

.faq-section {
  padding-bottom: 14px;
}

.faq-item {
  overflow: hidden;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  position: relative;
  padding: 13px 46px 13px 15px;
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #fff;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
  content: "+";
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 15px 13px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  margin: 11px 0 0;
}

.cta-section {
  margin-top: 34px;
  padding: 24px 26px;
  border: 1px solid rgba(27, 86, 214, 0.16);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--blue-light) 0%, #eafaff 60%, #fff8e6 100%);
  text-align: center;
}

.cta-section h2 {
  justify-content: center;
}

.cta-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.cta-section p {
  max-width: 560px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
}

.site-footer {
  background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-deep) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr 0.85fr 1fr;
  gap: 42px;
  padding-top: 42px;
  padding-bottom: 28px;
}

.footer-brand img {
  width: 158px;
  max-height: 48px;
  margin-bottom: 13px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 390px;
  margin: 0;
  color: #9aa8c9;
  font-size: 12px;
  line-height: 1.7;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-trust-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  color: #dbe4fb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 750;
}

.footer-title {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-nav,
.footer-legal {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-legal span {
  color: #a4b1d1;
  font-size: 12px;
  line-height: 1.45;
}

.footer-nav a {
  transition: color 150ms ease, transform 150ms ease;
}

.footer-nav a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-warning {
  margin-top: 6px;
  margin-bottom: 26px;
  padding: 18px 22px;
  border: 1px solid rgba(240, 180, 41, 0.32);
  border-radius: 14px;
  background: rgba(240, 180, 41, 0.06);
}

.footer-warning p {
  margin: 0;
  color: #b7c2de;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.footer-warning strong {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: #6d7ba0;
  font-size: 10.5px;
}

.footer-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.footer-icons--responsible {
  justify-content: flex-end;
}

.footer-icon--responsible img {
  max-width: 74px;
  max-height: 30px;
  filter: brightness(0) invert(1) opacity(0.72);
}

.footer-icons--responsible a {
  opacity: 0.85;
  transition: opacity 150ms ease, transform 150ms ease;
}

.footer-icons--responsible a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (min-width: 1500px) {
  :root {
    --shell: 1360px;
    --content: 900px;
  }

  .hero {
    min-height: 440px;
  }

  .hero-inner {
    min-height: 440px;
  }
}

@media (min-width: 1900px) {
  :root {
    --shell: 1480px;
    --content: 940px;
  }

  .hero {
    min-height: 480px;
    background-position: center 46%;
  }

  .hero-inner {
    min-height: 480px;
  }
}

@media (max-width: 1080px) {
  .hero-copy {
    width: min(700px, 68vw);
  }

  .hero h1 {
    font-size: clamp(28px, 3.8vw, 38px);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(var(--shell), calc(100% - 30px));
  }

  .hero-copy {
    width: min(650px, 76vw);
  }

  .hero h1 {
    font-size: clamp(25px, 4.2vw, 33px);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout .sidebar {
    display: none;
  }

  .mobile-toc {
    display: block;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 52px;
  }

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

  .site-header {
    min-height: var(--header-h);
  }

  .header-inner {
    min-height: var(--header-h);
  }

  .brand img {
    width: 112px;
    max-height: 32px;
  }

  .mobile-toc summary {
    padding: 7px 11px;
    font-size: 11.5px;
  }

  .hero {
    min-height: 0;
    aspect-ratio: 941 / 1672;
    background-image:
      linear-gradient(180deg, rgba(6, 16, 43, 0.08) 0%, rgba(6, 16, 43, 0.02) 30%, rgba(6, 16, 43, 0.38) 64%, rgba(6, 16, 43, 0.86) 100%),
      url("../images/hero/hero-mobile.webp");
    background-position: center top;
    background-color: var(--footer-bg);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(8, 18, 46, 0.1) 0%, rgba(8, 18, 46, 0.04) 74%, var(--bg) 98%);
  }

  .hero-inner {
    align-items: flex-end;
    height: 100%;
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 22px 8px 34px;
    text-align: center;
  }

  .hero-kicker {
    margin-bottom: 9px;
  }

  .hero h1 {
    max-width: none;
    margin-inline: auto;
    font-size: clamp(21px, 6.2vw, 28px);
    line-height: 1.14;
  }

  .hero-lead {
    max-width: 480px;
    margin: 11px auto 0;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 16px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding-inline: 17px;
    font-size: 12.5px;
  }

  .hero-fade {
    height: 40px;
    margin-top: -40px;
  }

  .page-layout {
    gap: 14px;
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .content-section {
    margin-top: 26px;
  }

  .info-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cta-section {
    padding: 20px 17px;
  }

  .content-section h2 {
    font-size: 19px;
  }

  .content-section h3 {
    font-size: 14.5px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 9px 9px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
    padding-top: 32px;
    padding-bottom: 24px;
  }

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

  .footer-icons--responsible {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .brand img {
    width: 98px;
    max-height: 28px;
  }

  .hero-copy {
    padding: 18px 6px 26px;
  }

  .hero h1 {
    font-size: clamp(20px, 6vw, 25px);
  }

  .hero-lead {
    font-size: 11.5px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(290px, 100%);
    margin-inline: auto;
  }

  table.data-table {
    font-size: 11px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 7px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
