/* Внутренние страницы блога — светлый макет как у услуг */
.header.blog-header,
.header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(160deg, #0B1B3A, #13294F);
  box-shadow: 0 6px 24px rgba(11, 27, 58, .25);
}

.blog-page,
.blog-article {
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.blog-page__crumbs,
.blog-article .blog-page__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  color: var(--c-text-light);
  margin-bottom: 28px;
}
.blog-page__crumbs a { color: var(--c-text-muted); }
.blog-page__crumbs a:hover { color: var(--c-blue); }
.blog-page__crumbs span:last-child { color: var(--c-text); font-weight: 600; }

.blog-page__title,
.article__title {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--c-text);
  margin-bottom: 16px;
  max-width: 900px;
}

.blog-page__lead {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: 48px;
}
.blog-page__lead::first-letter,
.blog-seo p::first-letter {
  font-family: var(--font-drop-cap);
  font-size: 1.72em;
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1;
  letter-spacing: -0.02em;
}
.blog-page__lead.drop-cap-solo::first-letter,
.blog-seo p.drop-cap-solo::first-letter {
  margin-right: 0.22em;
  padding-right: 0.04em;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--c-blue-soft);
  color: var(--c-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.post-card__meta {
  font-size: 13px;
  color: var(--c-text-light);
  margin-bottom: 10px;
}

.post-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--c-blue); }

.post-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-muted);
  flex: 1;
  margin-bottom: 18px;
}

.post-card__more {
  font-weight: 600;
  color: var(--c-blue);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.post-card__more:hover { gap: 10px; }

/* Статья */
.article__head { max-width: 760px; margin-bottom: 28px; }

.article__tag {
  display: inline-block;
  background: var(--c-blue-soft);
  color: var(--c-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--c-text-light);
}
.article__meta time { color: var(--c-text-muted); }

.article__cover {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
  max-width: 900px;
}
.article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text-muted);
}
.article__body h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 40px 0 16px;
  letter-spacing: -.01em;
  color: var(--c-text);
}
.article__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--c-text);
}
.article__body p { margin-bottom: 18px; }
.article__body ul,
.article__body ol {
  margin: 0 0 20px 1.25em;
  padding: 0;
}
.article__body li { margin-bottom: 8px; }
.article__body ul li { list-style: disc; }
.article__body ol li { list-style: decimal; }

.article__body blockquote {
  border-left: 4px solid var(--c-blue);
  background: var(--c-blue-soft);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 24px;
  color: var(--c-text);
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
}

.article__body a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article__body a:hover { color: var(--c-blue-dark); }

.article__cta {
  margin-top: 48px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c-navy-2), var(--c-bg-grad-bottom));
  color: #fff;
  text-align: center;
  max-width: 760px;
}
.article__cta h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.article__cta p {
  color: rgba(255, 255, 255, .78);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.article__back {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
  max-width: 760px;
}
.article__back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-blue);
}
.article__back a:hover { color: var(--c-blue-dark); }

.blog-seo {
  max-width: 860px;
  margin: 0 auto 20px;
  padding: 48px 0 0;
  border-top: 1px solid var(--c-border);
}
.divider + .container .blog-seo {
  border-top: none;
  padding-top: 12px;
}
.blog-seo h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--c-text);
  letter-spacing: -.01em;
}
.blog-seo p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.legal {
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.legal__wrap { max-width: 820px; margin: 0 auto; }
.legal__updated { color: var(--c-text-light); font-size: 14px; margin-bottom: 30px; }
.legal__body { font-size: 16px; line-height: 1.8; color: var(--c-text-muted); }
.legal__body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 34px 0 14px;
  color: var(--c-text);
  letter-spacing: -.01em;
}
.legal__body p { margin-bottom: 16px; }
.legal__body ul { margin: 0 0 16px 22px; }
.legal__body li { margin-bottom: 8px; list-style: disc; }
.legal__body a { color: var(--c-blue); text-decoration: underline; }

@media (max-width: 1000px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .posts-grid { grid-template-columns: 1fr; }
  .blog-page__title,
  .article__title { font-size: 30px; }
  .blog-page__lead { font-size: 16px; margin-bottom: 36px; }
  .article__body { font-size: 16px; }
  .article__cover { margin-bottom: 28px; }
}
