/* Блог автошколы — стили поверх /newsite/assets/site.css */

.blog-page { padding: 44px 0 96px; background: var(--paper); }

/* ---------- хлебные крошки ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 26px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.breadcrumbs a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(30,91,154,.28); }
.breadcrumbs a:hover { border-bottom-color: var(--blue); }
.breadcrumbs span[aria-current] { color: #8b99a9; }

/* ---------- шапка раздела ---------- */
.blog-head { max-width: 830px; margin-bottom: 44px; }
.blog-head h1 { margin: 0 0 18px; color: var(--navy-deep); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; }
.blog-head h1 em { color: var(--orange); font-style: normal; }
.blog-head p { max-width: 660px; margin: 0; color: #4d6079; font-size: 16px; line-height: 1.62; }

/* ---------- сетка карточек ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(22,52,98,.07); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(22,52,98,.14); }
.post-card__media { display: block; overflow: hidden; background: #e7eef5; }
.post-card__media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 22px 24px 24px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; color: #8494a6; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.post-card__meta span:first-child { color: var(--blue); }
.post-card__title { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2.1vw, 25px); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.post-card__title a { color: var(--navy-deep); text-decoration: none; }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { margin: 0 0 18px; color: #55708a; font-size: 14px; line-height: 1.6; }
.post-card__link { display: inline-flex; width: max-content; align-items: center; gap: 7px; margin-top: auto; border-bottom: 1px solid rgba(14,75,164,.35); padding-bottom: 3px; color: #0e4ba4; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.post-card__link:hover { color: var(--orange-dark, #df7d18); border-color: var(--orange); }

/* ---------- страница статьи ---------- */
.article-shell { max-width: 1180px; }
.article-head { max-width: 900px; margin: 0 0 26px; }
.article-head h1 { margin: 0 0 18px; color: var(--navy-deep); font-size: clamp(30px, 3.8vw, 47px); line-height: 1.08; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; color: #8494a6; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-hero { margin: 0 0 42px; }
.article-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #e7eef5; box-shadow: 0 12px 30px rgba(17,44,86,.12); }
.article-hero figcaption, .article-figure figcaption { margin-top: 9px; color: #8b99a9; font-size: 11px; line-height: 1.5; }
.article-hero figcaption a, .article-figure figcaption a { color: #7b8b9d; border-bottom: 1px solid #cfd8e2; }

.article-body { max-width: 820px; }
.article-body > p, .article-body > ul, .article-body > ol, .article-body > blockquote { margin: 0 0 20px; color: #33455c; font-size: 16.5px; line-height: 1.72; }
.article-lead { margin-bottom: 30px !important; color: #22374f !important; font-size: 18.5px !important; line-height: 1.65 !important; }
.article-body h2 { margin: 44px 0 16px; color: var(--navy-deep); font-size: clamp(23px, 2.5vw, 30px); line-height: 1.18; letter-spacing: -.03em; }
.article-body h3 { margin: 30px 0 12px; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; letter-spacing: -.02em; line-height: 1.25; }
.article-body strong, .article-body b { color: #16263c; font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 9px; }
.article-body li::marker { color: var(--blue); font-weight: 700; }
.article-body a { color: #0e4ba4; border-bottom: 1px solid rgba(14,75,164,.3); }
.article-body a:hover { border-bottom-color: #0e4ba4; }

.article-figure { margin: 34px 0; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 10px; background: #e7eef5; }

.article-callout { margin: 30px 0; border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; padding: 20px 24px; background: #f6f9fd; }
.article-callout p { margin: 0; color: #1e3450; font-size: 17px; font-weight: 700; line-height: 1.6; }

.article-checklist { margin: 26px 0; border: 1px solid #d9e6f1; border-radius: 12px; padding: 24px 26px 10px; background: #f8fbfe; }
.article-checklist h2, .article-checklist h3 { margin-top: 0 !important; }
.article-checklist ol, .article-checklist ul { margin-bottom: 12px; }

/* ---------- CTA внутри статьи ---------- */
.article-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 26px; margin: 46px 0 10px; border-radius: 14px; padding: 30px 32px; color: #eaf3fb; background: linear-gradient(120deg, #123a67, #0b2749 62%); }
.article-cta b { display: block; margin-bottom: 8px; color: #fff; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.article-cta p { margin: 0; color: #cfe1f2; font-size: 13.5px; line-height: 1.6; }
.article-cta__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.article-cta__phone { color: #fff; font-size: 19px; font-weight: 800; text-align: center; text-decoration: none; }
.article-cta__phone:hover { color: var(--orange); }

/* ---------- читайте также ---------- */
.article-related { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 40px; }
.article-related h2 { margin: 0 0 24px; color: var(--navy-deep); font-size: 26px; letter-spacing: -.02em; }
.article-related .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-related .post-card__title { font-size: 19px; }
.article-related .post-card__excerpt { font-size: 13px; }

/* ---------- назад в блог ---------- */
.back-to-blog { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; color: #0e4ba4; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(14,75,164,.35); padding-bottom: 3px; }
.back-to-blog:hover { color: var(--orange-dark, #df7d18); border-color: var(--orange); }

/* ---------- кнопка «наверх» ---------- */
.scroll-to-top { display: none; position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(12,40,80,.28); }
.scroll-to-top.is-visible { display: grid; }
.scroll-to-top svg { width: 20px; height: 20px; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .article-related .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .blog-page { padding: 30px 0 64px; }
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-head { margin-bottom: 30px; }
  .article-hero { margin-bottom: 28px; }
  .article-hero img { border-radius: 9px; }
  .article-body > p, .article-body > ul, .article-body > ol, .article-body > blockquote { font-size: 16px; }
  .article-lead { font-size: 17px !important; }
  .article-cta { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px; }
  .article-related { margin-top: 46px; padding-top: 30px; }
  .article-related .blog-grid { grid-template-columns: 1fr; }
  .scroll-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

/* ---------- версия для слабовидящих ---------- */
html.bvi-mode .post-card, html.bvi-mode .article-cta, html.bvi-mode .article-callout, html.bvi-mode .article-checklist { border: 2px solid #fff !important; color: #fff !important; background: #000 !important; }
html.bvi-mode .article-body h2, html.bvi-mode .article-body h3, html.bvi-mode .article-body p, html.bvi-mode .article-body li,
html.bvi-mode .blog-head h1, html.bvi-mode .blog-head p, html.bvi-mode .post-card__title a, html.bvi-mode .post-card__excerpt,
html.bvi-mode .article-head h1, html.bvi-mode .article-meta, html.bvi-mode .breadcrumbs, html.bvi-mode .breadcrumbs a,
html.bvi-mode .article-cta b, html.bvi-mode .article-cta p, html.bvi-mode .article-related h2, html.bvi-mode .post-card__meta span,
html.bvi-mode .article-hero figcaption, html.bvi-mode .article-figure figcaption { color: #fff !important; }
html.bvi-mode .article-body img, html.bvi-mode .article-hero img { filter: grayscale(1) contrast(1.4) !important; }

/* ссылка на новости под сеткой статей */
.blog-note { margin: 40px 0 0; color: #6b7c90; font-size: 13.5px; line-height: 1.6; }
.blog-note a { color: #0e4ba4; border-bottom: 1px solid rgba(14,75,164,.3); }
.blog-note a:hover { border-bottom-color: #0e4ba4; }
