/* Стили контентных страниц (блог, SEO-посадочные).
   Отдельный файл, а не styles.css лендинга: контент собирается без React и Vite-бандла,
   поэтому CSS отдаём статикой из public/. Палитра и шрифты — те же, что на лендинге. */
:root {
  --cream: #fff4f2;
  --white: #ffffff;
  --ink: #090335;
  --coral: #fc736c;
  --peach: #ffb0a1;
  --graphite: #434352;
  --hair: #dcd7d9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Шапка ─────────────────────────────────────────────── */
.c-nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--hair);
}
.c-nav__in {
  max-width: 760px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.c-logo {
  font-family: var(--serif); font-weight: 700; font-size: 21px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.c-logo span { color: var(--coral); }

/* ── Кнопки ────────────────────────────────────────────── */
.c-btn {
  display: inline-block; background: var(--coral); color: var(--white);
  text-decoration: none; font-weight: 700; border-radius: 6px;
  padding: 12px 22px; font-size: 16px; line-height: 1.2;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.c-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.c-btn--sm { padding: 9px 16px; font-size: 14px; }
.c-btn--lg { padding: 15px 30px; font-size: 17px; }

/* ── Каркас страницы ───────────────────────────────────── */
.c-main { max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; }

.c-crumbs { font-size: 14px; color: var(--graphite); margin-bottom: 28px; }
.c-crumbs a { color: var(--graphite); text-decoration: none; border-bottom: 1px solid var(--hair); }
.c-crumbs a:hover { color: var(--coral); }
.c-crumbs span { opacity: 0.5; }

/* ── Текст статьи ──────────────────────────────────────── */
.c-article h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 5vw, 45px); line-height: 1.15;
  letter-spacing: -0.015em; margin-bottom: 22px;
}
.c-article h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 31px); line-height: 1.25;
  letter-spacing: -0.01em; margin: 48px 0 16px;
}
.c-article h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 20px; line-height: 1.35; margin: 32px 0 10px;
}
.c-article p { margin-bottom: 18px; color: var(--graphite); }
.c-article h1 + p, .c-lead { font-size: 19px; color: var(--graphite); }
.c-article strong, .c-article b { color: var(--ink); font-weight: 700; }
.c-article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: 3px; }
.c-article a:hover { color: var(--coral); }

.c-article ul, .c-article ol { margin: 0 0 20px 22px; color: var(--graphite); }
.c-article li { margin-bottom: 9px; }
.c-article li::marker { color: var(--coral); }

.c-article blockquote {
  margin: 26px 0; padding: 18px 22px;
  background: var(--white); border-left: 3px solid var(--coral); border-radius: 0 8px 8px 0;
  color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.5;
}
.c-article blockquote p:last-child { margin-bottom: 0; }

.c-tablewrap { overflow-x: auto; margin: 26px 0; -webkit-overflow-scrolling: touch; }
.c-article table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
.c-article th, .c-article td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--hair); }
.c-article th { background: var(--white); font-weight: 700; }
.c-article td { color: var(--graphite); }

.c-article hr { border: 0; border-top: 1px solid var(--hair); margin: 40px 0; }

/* ── Карточки в индексе блога ──────────────────────────── */
.c-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.c-card {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: 8px; padding: 22px 24px; margin: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.c-card:hover { border-color: var(--peach); transform: translateY(-2px); }
.c-card a { text-decoration: none; }
.c-card h2 {
  font-family: var(--serif); font-size: 23px; line-height: 1.3;
  margin: 0 0 8px; color: var(--ink);
}
.c-card p { margin: 0; font-size: 15px; color: var(--graphite); }

/* ── CTA и подвал ──────────────────────────────────────── */
.c-cta {
  margin: 56px 0 32px; padding: 34px 32px;
  background: var(--white); border-radius: 8px; border: 1px solid var(--hair);
  text-align: center;
}
.c-cta h2 {
  font-family: var(--serif); font-size: clamp(23px, 3vw, 29px);
  line-height: 1.25; margin-bottom: 12px;
}
.c-cta p { color: var(--graphite); margin-bottom: 22px; max-width: 46ch; margin-left: auto; margin-right: auto; }

.c-disclaimer {
  font-size: 14px; line-height: 1.6; color: var(--graphite);
  padding: 16px 18px; border: 1px dashed var(--hair); border-radius: 8px;
}

.c-footer {
  border-top: 1px solid var(--hair); padding: 24px;
  text-align: center; font-size: 14px; color: var(--graphite);
}
.c-footer a { color: var(--graphite); text-decoration: none; border-bottom: 1px solid var(--hair); }
.c-footer a:hover { color: var(--coral); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .c-main { padding: 24px 18px 48px; }
  .c-nav__in { padding: 12px 18px; }
  .c-cta { padding: 26px 20px; }
}
