:root {
  --bg: #0b0b0c;
  --bg-soft: #121214;
  --card: #151518;
  --text: #f3f3f1;
  --muted: #bbb8b0;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #d6b36a;
  --gold-soft: rgba(214, 179, 106, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --radius-sm: 16px;
  --content: 860px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(214, 179, 106, 0.08), transparent 28%),
    linear-gradient(180deg, #0a0a0b 0%, #101012 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page {
  padding: 36px 18px 72px;
}

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

.article-header,
section,
.section-media {
  margin-bottom: 34px;
}

.hero-media,
.section-media {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-media img,
.section-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.lead,
section {
  background: rgba(18, 18, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff8ea;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(214, 179, 106, 0.18);
}

h3 {
  margin-top: 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

p:last-child,
ul:last-child,
table:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: var(--text);
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2d28f, #b78c35);
  box-shadow: 0 0 0 6px var(--gold-soft);
  transform: translateY(-50%);
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

thead th {
  background: rgba(214, 179, 106, 0.1);
  color: #fff4d8;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.step-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.step-item:hover {
  border-color: rgba(214, 179, 106, 0.28);
  background: rgba(214, 179, 106, 0.04);
  transform: translateY(-2px);
}

.step-item h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff8ea;
}

a {
  color: #f1cc7b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(214, 179, 106, 0.28);
  color: #fff;
}

@media (max-width: 768px) {
  .page {
    padding: 18px 12px 48px;
  }

  .lead,
  section {
    padding: 20px;
    border-radius: 18px;
  }

  .hero-media,
  .section-media {
    border-radius: 18px;
  }

  table {
    min-width: 100%;
  }

  th,
  td {
    padding: 13px 12px;
    font-size: 0.95rem;
  }

  .step-item {
    padding: 16px;
  }
}
