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

/* Цвета пульта (Figma, страница 07). Светлая тема — для читателей со светлой системой. */
:root {
  --accent:    #9A8200;
  --accent-bg: #FBF3C8;
  --gold:      #E7C81F;
  --text:      #15161A;
  --body:      #3A3D45;
  --muted:     #6B6E78;
  --border:    #E3E4E8;
  --bg:        #F4F4F6;
  --section:   #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent:    #E7C81F;
    --accent-bg: #252119;
    --text:      #F5F5F8;
    --body:      #D3D4DA;
    --muted:     #A7A9B3;
    --border:    #363940;
    --bg:        #0B0C0F;
    --section:   #17191F;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

header {
  background: linear-gradient(180deg, #17191F 0%, #0B0C0F 100%);
  padding: 48px 24px 40px;
  text-align: center;
  color: #F5F5F8;
}
.logo { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
header h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
header p  { font-size: 15px; opacity: 0.85; margin-top: 6px; }
header nav { margin-top: 14px; font-size: 14px; }
header nav a { color: var(--gold); text-decoration: none; font-weight: 600; }
header nav a:hover { text-decoration: underline; }

.lang-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 24px 16px 0; max-width: 760px; margin: 0 auto; }
.lang-tab {
  padding: 8px 22px; border-radius: 99px; border: 2px solid var(--border); background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.lang-tab.active { background: var(--gold); border-color: var(--gold); color: #17111F; }

.content { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
[data-lang] { display: none; }
[data-lang].shown { display: block; }

.section { background: var(--section); border: 1px solid var(--border); border-radius: 20px; padding: 24px 28px; margin-bottom: 16px; }
.section-icon { font-size: 22px; margin-bottom: 6px; display: block; }
.section h2 { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.section h3 { font-size: 16px; font-weight: 700; margin: 14px 0 6px; color: var(--text); }
.section p  { color: var(--body); margin-bottom: 10px; }
.section p:last-child { margin-bottom: 0; }
.section ul { padding-left: 20px; color: var(--body); margin-bottom: 10px; }
.section ul:last-child { margin-bottom: 0; }
.section ul li { margin-bottom: 5px; }
.section a { color: var(--accent); }

.highlight {
  background: var(--accent-bg); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0;
  padding: 12px 16px; margin: 12px 0; color: var(--text); font-weight: 500;
}
.updated { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 0 12px; }

footer { text-align: center; padding: 28px 16px 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  header { padding: 36px 16px 30px; }
  header h1 { font-size: 23px; }
  .section { padding: 18px; }
}
