:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --surface-3: #2b2b2b;
  --green: #17a84b;
  --green-dark: #0d7d36;
  --yellow: #ffd43b;
  --text: #f5f5f5;
  --muted: #c9c9c9;
  --border: #353535;
  --max: 1180px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #000;
  border-bottom: 1px solid #1f1f1f;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.4px;
}

.brand-logo {
  display: block;
  width: 170px;
  height: auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.top-actions .btn {
  white-space: nowrap;
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  background: #111;
  color: #fff;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
  content: '';
}

.burger-lines::before {
  position: absolute;
  top: -6px;
}

.burger-lines::after {
  position: absolute;
  top: 6px;
}

.mobile-drawer {
  display: none;
  background: #0d0d0d;
  border-top: 1px solid #212121;
  border-bottom: 1px solid #212121;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-inner {
  padding: 14px 0 16px;
}

.mobile-nav {
  display: grid;
}

.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid #232323;
  font-weight: 700;
  color: #f1f1f1;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline {
  border-color: var(--green);
  color: #fff;
  background: transparent;
}

.btn-primary {
  background: var(--yellow);
  color: #111;
}

.menu-strip {
  background: var(--green);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-strip nav {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 11px 0;
  font-weight: 700;
  font-size: 0.95rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.menu-strip nav::-webkit-scrollbar {
  display: none;
}

.promo-banner-wrap {
  background: #0e0e0e;
  border-bottom: 1px solid #252525;
  padding: 14px 0;
}

.promo-banner {
  display: block;
  border: 1px solid #2d8f46;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  background: #0f0f0f;
}

.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 560;
  object-fit: cover;
  background: linear-gradient(135deg, #1aa24a 0%, #0d7d36 48%, #151515 48.5%, #0f0f0f 100%);
}

.hero {
  background:
    linear-gradient(180deg, rgba(23, 168, 75, 0.18), rgba(23, 168, 75, 0) 40%),
    linear-gradient(135deg, #181818, #101010 60%, #0d0d0d);
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  justify-items: center;
}

.hero-card,
.side-card,
.content-card,
.table-wrap,
.faq-item,
.note-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 26px;
  text-align: center;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 900;
}

.lead {
  font-size: 1.03rem;
  color: #e4e4e4;
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.pill {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid #414141;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.quick-links {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.quick-links a {
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
}

main {
  padding: 26px 0 42px;
}

.toc {
  padding: 18px 20px;
  margin-bottom: 22px;
}

.toc h2,
section h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--yellow);
}

.toc-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.toc a {
  display: block;
  background: var(--surface-2);
  border: 1px solid #3f3f3f;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
}

.content-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.content-card {
  padding: 22px;
  min-width: 0;
}

section h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #fff;
}

ul.clean {
  margin: 10px 0 0 18px;
  padding: 0;
}

ul.clean li + li {
  margin-top: 8px;
}

.sidebar-sticky {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 16px;
  align-self: start;
}

.mini-nav {
  padding: 18px;
}

.mini-nav h3,
.note-box h3 {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 1.05rem;
  line-height: 1.35;
}

.mini-nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #303030;
  color: #e8e8e8;
  font-size: 0.96rem;
}

.mini-nav a:last-child {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 760px;
}

th,
td {
  padding: 14px 14px;
  border-bottom: 1px solid #333;
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
}

tr:nth-child(even) td {
  background: #171717;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.04rem;
  line-height: 1.35;
}

.note-box {
  padding: 18px 20px;
}

footer {
  border-top: 1px solid #222;
  background: #0b0b0b;
  color: #bfbfbf;
  padding: 18px 0 28px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}

.footer-links a {
  color: #d7d7d7;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

@media (max-width: 980px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-sticky {
    position: static;
  }

  .toc-links,
  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-strip {
    display: none;
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    min-height: 64px;
    gap: 10px;
  }

  .brand-logo {
    width: 140px;
    max-width: 100%;
    height: auto;
  }

  .top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
  }

  .top-actions .btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .burger-btn {
    display: inline-flex;
    justify-self: end;
  }

  .hero {
    padding: 18px 0 14px;
  }

  .breadcrumbs {
    font-size: 0.82rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .hero-card {
    padding: 18px;
  }

  h1 {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .lead {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-pills {
    gap: 8px;
    margin-top: 14px;
  }

  .pill {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .quick-links {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
    max-width: 100%;
  }

  .quick-links a {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .toc {
    padding: 16px;
    margin-bottom: 18px;
  }

  .toc-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .content-stack {
    gap: 16px;
  }

  .content-card,
  .faq-item,
  .note-box,
  .mini-nav {
    padding: 16px;
  }

  .toc h2,
  section h2 {
    font-size: 1.24rem;
  }

  section h3,
  .faq-item h3,
  .mini-nav h3,
  .note-box h3 {
    font-size: 1rem;
  }

  .mini-nav a {
    padding: 12px 0;
  }

  .footer-links {
    gap: 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand burger"
      "actions actions";
    gap: 10px;
  }

  .brand {
    grid-area: brand;
  }

  .burger-btn {
    grid-area: burger;
  }

  .top-actions {
    grid-area: actions;
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .top-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }

  .topbar-inner {
    min-height: 60px;
  }

  .brand-logo {
    width: 126px;
  }

  .hero-card,
  .side-card,
  .content-card,
  .toc,
  .faq-item,
  .note-box,
  .mini-nav {
    padding: 14px;
    border-radius: 8px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .lead {
    font-size: 0.93rem;
  }

  .hero-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pill {
    width: 100%;
    text-align: center;
  }

  .promo-banner {
    border-radius: 10px;
  }

  .promo-banner img {
    aspect-ratio: 16 / 7;
  }

  .table-wrap {
    margin-top: 14px !important;
    border-radius: 8px;
  }

  table {
    min-width: 640px;
  }

  th,
  td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  ul.clean {
    margin-left: 16px;
  }
}

@media (max-width: 420px) {
  .hero-pills {
    grid-template-columns: 1fr;
  }

  .breadcrumbs {
    font-size: 0.78rem;
  }

  h1 {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 0.91rem;
  }

  .quick-links a,
  .toc a,
  .btn {
    min-height: 42px;
  }

  th,
  td {
    font-size: 0.86rem;
  }
}