:root {
  --bg: #071b27;
  --surface: #0d2b3b;
  --surface-soft: #12384b;
  --text: #eef8fb;
  --muted: #b6d2db;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #20d7b5;
  --accent-strong: #ffd666;
  --ink: #061017;
  --content: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 27, 39, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.breadcrumbs,
main,
.footer-inner {
  width: var(--content);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 10px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.logo-link picture,
.logo-link img {
  display: block;
}

.logo-link img {
  width: clamp(84px, 16vw, 134px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.btn,
.text-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.btn-primary,
.text-cta {
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent-strong), #ffffff);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.breadcrumbs {
  padding: 16px 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumbs ol {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs a {
  text-decoration: none;
}

main {
  padding-bottom: 48px;
}

.hero {
  position: relative;
  width: 100%;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero picture,
.hero img {
  display: block;
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content {
  padding: 22px;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hero-cta {
  width: fit-content;
}

.toc,
.content-section {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 43, 59, 0.72);
}

.toc {
  padding: 0;
}

.toc summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding: 0 22px 20px 44px;
}

.toc li + li {
  margin-top: 8px;
}

.content-section {
  padding: clamp(22px, 4vw, 36px);
}

h2,
h3 {
  line-height: 1.18;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

caption {
  margin-bottom: 10px;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px;
  vertical-align: top;
  text-align: left;
}

thead th {
  background: rgba(32, 215, 181, 0.16);
}

tbody th {
  width: 34%;
  color: #d9fbf4;
}

.faq article {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.faq article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #05131c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-inner a {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 760px) {
  .hero-content {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    width: 48%;
    min-width: 430px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 3.2vw, 40px);
    background: linear-gradient(90deg, rgba(7, 27, 39, 0.92), rgba(7, 27, 39, 0.52) 72%, rgba(7, 27, 39, 0));
  }

  .hero p {
    font-size: 0.96rem;
    line-height: 1.52;
  }
}

@media (max-width: 759px) {
  :root {
    --content: calc(100% - 20px);
  }

  .header-inner {
    min-height: 66px;
    gap: 8px;
  }

  .logo-link img {
    width: clamp(68px, 23vw, 92px);
    height: 48px;
  }

  .header-actions {
    gap: 6px;
    min-width: 0;
  }

  .btn {
    min-height: 40px;
    padding: 9px 8px;
    font-size: clamp(0.76rem, 3.15vw, 0.92rem);
  }

  .hero {
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }

  .hero-content {
    background: var(--surface);
  }

  .hero h1 {
    font-size: clamp(1.62rem, 8vw, 2.18rem);
  }

  .content-section,
  .toc summary {
    padding-right: 16px;
    padding-left: 16px;
  }

  th,
  td {
    padding: 10px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner nav {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

@media (max-width: 420px) {
  .header-actions {
    flex: 1 0 auto;
  }

  .header-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}
