/* ===== Общие стили для всех страниц remhelper.ru ===== */
:root {
  --ifx-bg: #fff;
  --ifx-bg-alt: #f5f5f5;
  --ifx-text: #1a1a1a;
  --ifx-text-muted: #666;
  --ifx-border: #e0e0e0;
  --ifx-accent: #0066cc;
  --ifx-accent-hover: #004c99;
  --ifx-radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background: var(--ifx-bg);
  color: var(--ifx-text);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

/* ===== Шапка ===== */
.page-header {
  width: 100%;
  background: var(--ifx-bg);
  border-bottom: 1px solid var(--ifx-border);
  margin-bottom: 24px;
  padding: 16px 0 20px;
}
.page-header .header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.page-header a,
.page-header .brand {
  text-decoration: none;
  color: var(--ifx-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  transition: color .2s;
}
.page-header a:hover,
.page-header .brand:hover { color: var(--ifx-accent); }
.page-header img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

/* ===== Подзаголовок шапки ===== */
.lead {
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  color: var(--ifx-text-muted) !important;
  margin-top: 8px !important;
}

/* ===== Футер ===== */
.site-footer,
footer {
  margin-top: 40px;
  padding: 24px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ifx-text-muted);
  border-top: 1px solid var(--ifx-border);
}
.site-footer p, footer p { margin-top: 10px; color: var(--ifx-text-muted); }
.site-footer a, footer a { color: var(--ifx-accent); text-decoration: none; }
.site-footer a:hover, footer a:hover { text-decoration: underline; }

/* ===== Мобильный: скрыть подзаголовок шапки ===== */
@media (max-width: 767px) {
  .lead { display: none !important; }
  .page-header { margin-bottom: 12px; padding: 10px 0 12px; }
}
