/* Общий стиль страниц сайта (/about, /oferta, /privacy). Без внешних шрифтов
   и скриптов: страницы смотрит модерация ЮKassa и люди по ссылке из бота. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #16191d;
  --muted: #5d6670;
  --line: #e2e5e9;
  --accent: #1f5ea3;
  --accent-soft: #e6eef8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --surface: #1b2129;
    --text: #e8ebef;
    --muted: #9aa4af;
    --line: #2b333d;
    --accent: #7db3ee;
    --accent-soft: #1e2c3d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { font-weight: 700; color: var(--text); text-decoration: none; }

nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main { padding: 28px 0 40px; }

h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 6px; }

.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); font-size: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
}

@media (prefers-color-scheme: dark) {
  .button { color: #0f1620; }
}

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

ol, ul { padding-left: 22px; }
li { margin: 4px 0; }

.price { font-size: 24px; font-weight: 700; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer p { margin: 4px 0; }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { border-radius: 6px; }

/* Главная: сюжеты выпуска и тренды дня */
.stories { list-style: none; padding: 0; margin: 12px 0 0; }
.story { margin: 0 0 12px; padding: 14px 16px; }
.story p { margin: 0; }
.story p + p { margin-top: 6px; }
.story-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.trends { padding: 14px 16px 14px 36px; }
.trends li { margin: 6px 0; }

/* Ежедневные страницы: навигация по датам и список дней */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 8px;
}
.pager span { min-width: 90px; }
.day-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.day-list a {
  display: block;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
