:root {
  --bg: #ffffff;
  --header: #0b0f19;
  --header-text: #f4f6f8;
  --accent: #f5c518;
  --text: #16181d;
  --muted: #4b515b;
  --line: #e5e8ed;
  --max: 1040px;
  --content: 620px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
}

.header-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 1.65rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.03em;
}

.logo span {
  color: #ffe78a;
}

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--header-text);
  font-size: 0.93rem;
}

.page {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 22px 0 80px;
}

.article {
  max-width: var(--content);
  margin: 0 auto;
}

.hero-media {
  margin: 0 0 18px;
}

.hero-media img {
  width: 100%;
  border-radius: 3px;
}

.intro h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-family: "Inter", Arial, sans-serif;
}

.intro p,
.content-section p,
.content-section li,
.faq-item p,
th,
td,
figcaption {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  line-height: 1.9;
  color: #1f232a;
}

.intro p { margin: 0 0 10px; }

.intro-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid #12151c;
}

.btn-primary {
  background: var(--accent);
  color: #101114;
  border-color: var(--accent);
}

.btn-secondary {
  background: #fff;
  color: #101114;
}

.content-section {
  padding-top: 22px;
  margin-top: 10px;
}

.content-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-family: "Inter", Arial, sans-serif;
}

.section-line {
  width: 100%;
  height: 2px;
  background: var(--accent);
  margin: 10px 0 18px;
}

.content-section p {
  margin: 0 0 14px;
}

.content-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.inline-media {
  margin: 18px 0 18px;
}

.inline-media img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #fafbfd 0%, #f3f6fa 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  overflow: hidden;
}

caption {
  text-align: left;
  font-weight: 800;
  font-family: "Inter", Arial, sans-serif;
  color: #16181d;
  margin-bottom: 10px;
  font-size: 0.98rem;
}

thead th {
  text-align: left;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.93rem;
  color: #11151c;
  padding: 13px 12px;
  background: linear-gradient(180deg, #fff7d6 0%, #f6e39b 100%);
  border-bottom: 1px solid #dfc768;
}

thead th:first-child {
  border-top-left-radius: 8px;
}

thead th:last-child {
  border-top-right-radius: 8px;
}

tbody tr:nth-child(even) {
  background: #fafbfd;
}

tbody tr:hover {
  background: #f5f8fc;
}

td {
  padding: 13px 12px;
  border-bottom: 1px solid #e7ebf1;
  vertical-align: top;
}

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

tbody td:first-child {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  color: #12161d;
}

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

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: "Inter", Arial, sans-serif;
}

.article-footer {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

.article-footer p {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.floating-preview {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 114px;
  background: #fff;
  border: 2px solid #11151d;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 4px;
  overflow: hidden;
}

.floating-preview img {
  width: 100%;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .page,
  .header-inner {
    width: min(100% - 24px, var(--max));
  }

  .article {
    max-width: 100%;
  }

  .floating-preview {
    width: 88px;
    right: 12px;
    bottom: 12px;
  }
}

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

  .logo {
    font-size: 1.35rem;
  }

  .intro h1 {
    font-size: 1.9rem;
  }

  table {
    min-width: 560px;
  }

  .floating-preview {
    display: none;
  }
}
