/* Сайт-визитка voda-don.ru. Без внешних шрифтов и скриптов (CSP default-src 'self'). Под телефон, кнопки от 48px. */
:root {
  --brand: #0b5fa5;      /* ссылки, галочки, рамки */
  --brand-soft: #e7f1fa;
  --btn: #0b5fa5;        /* фон кнопок с белым текстом */
  --deep: #0b5fa5;       /* первый экран (белый текст) и кнопка в нём — одинаковые в обеих темах */
  --deep-dark: #08467a;
  --ink: #15202b;
  --muted: #55636f;
  --bg: #f6f9fc;
  --card: #ffffff;
  --line: #d9e3ec;       /* рамки карточек — мягкие */
  --field-line: #7d8f9f; /* рамки полей формы: поле на фоне карточки видно только по ней — от 3:1 */
  --warn: #9a5b00;
  --danger: #b3261e;
  --radius: 14px;
  --tap: 48px;
}
/* Тёмная тема меняет фон, карточки, текст и ссылки. Светлый синий под белым текстом не читается (контраст ниже
   4,5:1), поэтому первый экран не меняется, а кнопкам — свой синий. */
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5aa9e6;
    --btn: #1a73c7;
    --brand-soft: #13293d;
    --ink: #e8eef3;
    --muted: #a4b2be;
    --bg: #0e1720;
    --card: #15212c;
    --line: #2a3a49;
    --field-line: #5b7086;
    --warn: #e0a440;
    --danger: #ef6a5f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; margin-top: 18px; }
p { margin: 0 0 10px; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; font-size: 20px; text-decoration: none; }
.icon { flex: none; }
.top-call {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--btn);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.page { max-width: 720px; margin: 0 auto; padding: 16px; }

.hero {
  padding: 24px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-dark) 100%);
  color: #fff;
}
.hero h1 { font-size: 30px; }
.hero .lead { font-size: 19px; }
.hero .hours { font-weight: 700; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.max-note { margin: 12px 0 0; font-size: 15px; opacity: 0.9; }
.nowrap { white-space: nowrap; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-main { background: var(--btn); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.hero .btn-main { background: #fff; color: var(--deep-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn-light { background: rgba(255, 255, 255, 0.16); color: #fff; }

.block {
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.block.center { text-align: center; }
.block.center .btn { max-width: 420px; margin: 0 auto; }
.highlight { border-color: var(--brand); background: var(--brand-soft); }
.water { font-size: 18px; }

.ticks, .pluses, .steps { margin: 0; padding-left: 0; }
.ticks li, .pluses li { list-style: none; position: relative; padding: 6px 0 6px 30px; }
.ticks li::before, .pluses li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
}
.steps { padding-left: 24px; }
.steps li { padding: 4px 0; }

.lead-form label { display: block; margin: 14px 0 6px; font-weight: 600; }
.lead-form .req { color: var(--muted); font-weight: 400; font-size: 14px; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="number"],
.lead-form select, .lead-form textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 18px; }
.lead-form .consent input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; }
.lead-form .policy-note { margin: 8px 0 0 34px; font-size: 15px; color: var(--muted); }
.lead-form button { width: 100%; margin-top: 18px; }
.errorlist, .errors { margin: 6px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 15px; }
.errors { padding: 10px 12px; border: 1px solid var(--danger); border-radius: 10px; margin-bottom: 8px; }

/* Ловушка для ботов: людям не видна и не читается вслух */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.legal h2 { font-size: 19px; margin-top: 20px; }
.legal li { margin-bottom: 6px; }
.todo { background: #fff3c4; color: #5a4300; padding: 0 3px; border-radius: 4px; }
.draft-note { padding: 10px 12px; border: 2px dashed var(--warn); border-radius: 10px; color: var(--warn); font-weight: 700; }

.foot { max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; color: var(--muted); font-size: 15px; }
.foot-legal a { color: var(--muted); }

@media (min-width: 640px) {
  h1, .hero h1 { font-size: 36px; }
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .btn-main { grid-column: 1 / -1; }
}
