/*
  Общий стиль для статических страниц /offer, /privacy, /contacts.
  Это НЕ часть React-бандла — обычный CSS-файл, правки вступают в силу
  сразу, без пересборки и без перезапуска чего-либо.
*/

:root {
  --bg: #0f172a;
  --bg-card: #161f36;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #24314f;
  --accent: #6c7bff;
  --placeholder-bg: #3f2f12;
  --placeholder-border: #a1691a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 20px 80px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.doc {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 40px 48px;
  overflow-wrap: break-word;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { color: var(--text); }

h1 {
  font-size: 26px;
  margin: 0 0 8px;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

h2 {
  font-size: 18px;
  margin: 32px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: none; padding-top: 0; }

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

.placeholder {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 6px;
  padding: 10px 14px;
  color: #f3d9a8;
  font-size: 14px;
  margin: 0 0 12px;
}

table.requisites { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
table.requisites td { padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.requisites td:first-child { color: var(--text-muted); width: 45%; }

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

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

/* Узкие экраны: меньше отступов, таблица реквизитов складывается в две строки */
@media (max-width: 600px) {
  body { padding: 20px 12px 56px; }

  .doc {
    padding: 22px 18px 32px;
    border-radius: 10px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 17px; margin-top: 26px; }

  table.requisites tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  table.requisites td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: none;
  }
  table.requisites td:first-child {
    width: auto;
    font-size: 13px;
    margin-bottom: 2px;
  }
}
