:root{
  --text:#222;
  --muted:#666;
  --border:#e9e9e9;
  --bg:#fff;
  --link:#2b6cb0;

  --container: 980px;
  --content: 760px;
}

html { scroll-behavior: smooth; }

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Базовые элементы */
a{
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover{ opacity: .9; }

hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 80px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

h1{
  text-align:center;
  font-size:36px;
  font-weight:700;
  margin: 0 0 28px;
  letter-spacing: -0.03em;
}

/* Оглавление */
.toc{
  font-size:16px;
  line-height:1.9;
  max-width: 700px;
  margin: 0 auto 40px;
}
.toc a{
  color: var(--muted);
}
.toc a:hover{ color: var(--link); }

.toc .section{ margin-top: 14px; }
.toc .subsection{ margin-left: 24px; }

/* Контент */
.content{
  max-width: var(--content);
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  padding: 28px;
  border-radius: 14px;
}

.content h2{
  font-size: 28px;
  font-weight: 600;
  margin: 48px 0 14px;
  letter-spacing: -0.02em;
}

.content h3{
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: -0.015em;
}

.content p{ margin: 10px 0; }
.content ol{ margin: 10px 0 10px 22px; }
.content ul{ margin: 10px 0 10px 22px; }

/* Маркеры списков (залитые точки) */
.content ul { list-style-type: disc; }
.content ul ul { list-style-type: disc; }

/* Вес текста */
.content p,
.content li{ font-weight: 400; }

.content strong,
.content b{ font-weight: 600; }

.note{
  border-left: 4px solid #d0d0d0;
  padding: 10px 12px;
  background: #fafafa;
  margin: 14px 0;
}

.warn{
  border-left: 4px solid #ff4d4f;
  padding: 10px 12px;
  background: #fff7f7;
  margin: 14px 0;
}

/* Скрины */
.screens{
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.real-screen{
  width:100%;
  max-height:420px;
  object-fit: contain;
  border-radius:12px;
  border:1px solid #e0e0e0;
  background:#fff;
}

@media (max-width: 720px){
  .screens{ grid-template-columns: repeat(2, 1fr); }
  h1{ font-size: 30px; }
  .content h2{ font-size: 24px; }
}

/* ===============================
   LIBERTY LIGHT BRAND (WHITE)
   вставить В КОНЕЦ ФАЙЛА
   =============================== */

/* 1) Фирменные цвета Liberty */
:root{
  --liberty-blue: #6C7BFF;
  --liberty-violet: #DB63DB;
  --liberty-soft-bg: #F7F8FF;
  --liberty-border: #E6E8FF;

  /* мягкая замена существующих */
  --link: var(--liberty-blue);
  --border: var(--liberty-border);
}

/* 2) Общий фон — ОСТАЁТСЯ БЕЛЫМ */
body{
  background: #ffffff;
  color: #222;
}

/* 3) Заголовок — чуть более брендовый */
h1{
  color: #1f1f1f;
  position: relative;
}

h1::after{
  content:"";
  display:block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--liberty-blue),
    var(--liberty-violet)
  );
}

/* 4) Контент-блок — светлая бренд-карточка */
.content{
  background: linear-gradient(
    180deg,
    #ffffff,
    var(--liberty-soft-bg)
  );
  border: 1px solid var(--liberty-border);
  border-radius: 16px;
}

/* 5) Ссылки — фирменный акцент */
a{
  color: var(--liberty-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(108,123,255,.35);
}

a:hover{
  color: var(--liberty-violet);
  border-bottom-color: rgba(219,99,219,.6);
}

/* 6) Оглавление — аккуратнее */
.toc a{
  color: #444;
}

.toc a:hover{
  color: var(--liberty-blue);
}

/* 7) Note / Warn — светло и чисто */
.note{
  background: #f8f9ff;
  border-left: 4px solid var(--liberty-blue);
}

.warn{
  background: #fff5f5;
  border-left: 4px solid #ff4d4f;
}

/* 8) Скриншоты — мягкая рамка */
.real-screen{
  border: 1px solid var(--liberty-border);
  background: #fff;
}

/* ============================= */
/* ОГЛАВЛЕНИЕ — СЕРЫЙ ЦВЕТ КАК В STARTLIBERTY */
/* ============================= */

.toc a,
.toc a:visited{
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.toc a:hover{
  color: var(--text);
}

/* если есть активный пункт */
.toc a.active{
  color: var(--muted);
}

/* FIX: оглавление всегда серое + без буллетов (в т.ч. на iPhone) */
.toc{
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.toc a,
.toc a:visited{
  color: var(--muted) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.toc a:hover{
  color: var(--text) !important;
}
