/* Тема arenda-nomera.ru — «календарь подписки».
   Мотив месячного абонемента: в hero проступает сетка календарных ячеек
   (редкие квадратные линии), номера секций оформлены «датами» — чипами,
   карточки — страницами отрывного месяца с утолщённой полосой сверху,
   кнопки — «выбранные дни»: скруглённая ячейка с вертикальным тёмным
   ребром снизу. Палитра — прохладная лиловая бумага и лаванда-фиолет
   (#7c4f9e) обложки абонемента; финальная секция — глубокий ночной фиолет.
   Шрифт заголовков — плоскоширокая антиква Clarendon/Bookman (у соседей
   Georgia/Palatino/Optima/Baskerville/моно/Verdana/Trebuchet/Futura/Didot/
   Gill Sans/Franklin Gothic — такой плоской антиквы нет). Пунктир не
   используем (у горчичного соседа чек рвётся пунктиром), диагональных
   жёстких теней тоже нет (у коммутатора клавиши). */

:root {
  --font-head: "Clarendon", "Superclarendon", "Bookman Old Style", "Century Schoolbook", Georgia, serif;
  --mono: "SF Mono", "Menlo", "Consolas", monospace;
  --bg: #f8f6fb;             /* лиловая бумага */
  --bg-alt: #f0ecf6;
  --card: #fefdfa;
  --line: #ddd5ea;
  --ink: #2b2340;            /* чернила с фиолетовым подмесом */
  --radius: 10px;
  --tint: #ede4f7;           /* лавандовая подсветка */
  --deep: #241b3a;           /* ночной фиолет — финальная плита */
}

/* Заголовки: плоскоширокая антиква абонемента */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.005em; }
h2 { line-height: 1.26; }

/* Шапка: белая, снизу цельная полоса «шапки месяца» */
.topbar { background: var(--card); border-bottom: 4px solid var(--accent); box-shadow: none; }
.topbar .brand { font-family: var(--font-head); font-size: 17.5px; color: var(--ink); }
.topbar .brand::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--accent) 0 30%, transparent 30%);
}
.topbar .nav a { color: var(--muted); }
.topbar .nav a:hover { color: var(--accent); }

/* Кнопки: «выбранный день» — скруглённая ячейка с ребром снизу */
.btn {
  border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--accent-dark);
  transition: none;
}
.btn:hover { filter: brightness(0.92); box-shadow: 0 1px 0 var(--accent-dark); }

/* Hero: страница месяца — сетка календарных ячеек проступает фоном */
.hero {
  padding: 58px 0 52px;
  background:
    linear-gradient(to right, rgba(124, 79, 158, 0.055) 1px, transparent 1px) 0 0 / 56px 100%,
    linear-gradient(to bottom, rgba(124, 79, 158, 0.055) 1px, transparent 1px) 0 0 / 100% 56px,
    var(--bg);
  border-top: none;
}
.hero .wrap { border-left: none; padding-left: 0; }
.hero h1 { max-width: 23em; }
.hero h1 em, .hero h1 strong { font-style: normal; background: linear-gradient(transparent 58%, var(--tint) 58%); }
.hero .btn { padding-left: 30px; padding-right: 30px; }
.hero .lead { max-width: 32em; }

/* Номера секций: «дата» в чипе-ячейке */
section.sec h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  min-width: 2.4em;
  padding: 3px 9px;
  margin-right: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: 0.35em;
  text-align: center;
}

/* Карточки: страницы отрывного месяца с полосой сверху */
.cards { gap: 16px; }
.card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(124, 79, 158, 0.08);
  padding: 18px 20px;
}
.card h3 { font-size: 18px; }
.card.quote { border-left: 1px solid var(--line); }
.card.quote p:first-child { font-style: normal; }
.card.quote p:first-child::first-letter { color: var(--accent); }
.card.quote p.muted { font-family: var(--mono); font-size: 12.5px; }

/* Список: маркер — квадратная ячейка календаря */
.checks { padding: 0; list-style: none; }
.checks li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 10px; height: 10px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--accent) 0 32%, transparent 32%);
}

/* Таблица фактов: недели — строки между линиями, ключи лавандой */
.facts { border-top: 2px solid var(--accent); }
.facts th { color: var(--accent); font-weight: 700; font-size: 15px; }
.facts td { color: var(--ink); }

/* FAQ: вопрос — строка месяца, плюс в квадратике */
details { border-bottom: 1px solid var(--line); }
details summary { padding: 14px 34px 14px 0; }
details summary::after {
  content: "+";
  width: 22px; height: 22px;
  line-height: 20px;
  text-align: center;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
}
details[open] summary::after { content: "–"; }

/* Статьи: в карточке статьи заголовок подчёркнут лавандовой полосой */
section.sec .card a { color: var(--ink); }
section.sec .card a:hover { color: var(--accent); }

/* Финальный CTA: ночная обложка абонемента */
section.sec-cta {
  background: var(--deep);
  border-top: 4px solid var(--accent);
  padding: 52px 0;
}
section.sec-cta h2::before { background: var(--accent); color: #fff; }
section.sec-cta .btn { background: var(--accent); color: #fff; }
section.sec-cta .btn:hover { filter: brightness(1.08); }

/* Футер: лиловая подложка с сеткой в самом низу страницы */
.footer {
  background:
    linear-gradient(to right, rgba(124, 79, 158, 0.05) 1px, transparent 1px) 0 100% / 56px 100%,
    var(--bg-alt);
  border-top: none;
}
.footer-brand { font-family: var(--font-head); }
