/* Blog page styles (st-blog__*). Uses tokens from main.css; names avoid main.css home-blog classes. */

/* ---------- Hero ---------- */
.st-blog__hero {
  background-color: var(--st-red);
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .10), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 22px);
  padding: 56px 0 72px;
  color: #fff;
  overflow: hidden;
}
.st-blog__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.st-blog__crumbs a { color: #fff; font-weight: 500; border-bottom: 1px solid transparent; }
.st-blog__crumbs a:hover, .st-blog__crumbs a:focus-visible { border-bottom-color: #fff; }
.st-blog__crumbs-sep { color: rgba(255, 255, 255, .6); }
.st-blog__hero-txt { max-width: 860px; margin-top: 44px; }
.st-blog__hero .st-eyebrow { color: #fff; }
.st-blog__h1 {
  margin-top: 14px;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: break-word;
}
.st-blog__h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 24px; background: #fff; border-radius: 2px; }
.st-blog__lead { margin-top: 24px; max-width: 720px; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .92); }

/* ---------- Main ---------- */
.st-blog__main { background: var(--st-mist); padding: 80px 0 90px; }
.st-blog__main .st-wrap > * { min-width: 0; }

.st-blog__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.st-blog__item { min-width: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px rgba(34, 36, 41, .08); border-top: 4px solid transparent; transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; }
.st-blog__item:hover, .st-blog__item:focus-within { box-shadow: 0 18px 50px rgba(34, 36, 41, .16); transform: translateY(-4px); border-top-color: var(--st-red); }
.st-blog__item-link { display: flex; flex-direction: column; height: 100%; }
.st-blog__item-link:focus-visible { outline: 2px solid var(--st-red); outline-offset: -2px; }
.st-blog__pic { overflow: hidden; background: var(--st-coal); }
.st-blog__pic > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.st-blog__item:hover .st-blog__pic > img { transform: scale(1.05); }
.st-blog__txt { flex: 1 1 auto; display: flex; flex-direction: column; padding: 26px 28px 28px; }
.st-blog__date { display: inline-flex; align-items: center; gap: 8px; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--st-text); }
.st-blog__date img { width: 16px; height: 16px; flex: 0 0 auto; }
.st-blog__item-title { margin-top: 12px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--st-ink); overflow-wrap: anywhere; transition: color .3s ease; }
.st-blog__item:hover .st-blog__item-title { color: var(--st-red); }
.st-blog__excerpt { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--st-text); }
.st-blog__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--st-ink); transition: color .3s ease; }
.st-blog__more img { width: 16px; height: 16px; transition: transform .3s ease; }
.st-blog__item:hover .st-blog__more { color: var(--st-red); }
.st-blog__item:hover .st-blog__more img { transform: translateX(4px); }

/* ---------- Empty state ---------- */
.st-blog__empty { max-width: 640px; margin: 0 auto 10px; padding: 48px 36px; text-align: center; background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(34, 36, 41, .08); }
.st-blog__empty-ic { position: relative; display: block; width: 68px; height: 68px; margin: 0 auto 22px; background: var(--st-red); border-radius: 4px; }
.st-blog__empty-ic img { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%); }
.st-blog__empty-title { font-size: 28px; line-height: 1.2; color: var(--st-ink); }
.st-blog__empty-text { margin-top: 14px; font-size: 16px; line-height: 1.8; color: var(--st-text); }
.st-blog__empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* ---------- Pagination ---------- */
.st-blog__pag { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 54px; }
.st-blog__pag-nums { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; }
.st-blog__pag-num, .st-blog__pag-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--st-line); border-radius: 5px; background: #fff; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600; color: var(--st-ink); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.st-blog__pag-btn { gap: 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.st-blog__pag-btn img { width: 16px; height: 16px; }
.st-blog__pag-btn--prev img { transform: rotate(180deg); }
.st-blog__pag-num:hover, .st-blog__pag-btn:hover, .st-blog__pag-num:focus-visible, .st-blog__pag-btn:focus-visible { border-color: var(--st-red); color: var(--st-red); }
.st-blog__pag-num--active, .st-blog__pag-num--active:hover { background: var(--st-red); border-color: var(--st-red); color: #fff; cursor: default; }
.st-blog__pag-dots { min-width: 24px; text-align: center; color: var(--st-text); }

/* ---------- Call to action (light card) ---------- */
.st-blog__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; margin-top: 80px; padding: 44px 48px; background: #fff; border-left: 8px solid var(--st-red); border-radius: 0 8px 8px 0; box-shadow: 0 10px 40px rgba(34, 36, 41, .08); }
.st-blog__cta-title { margin-top: 10px; font-size: 32px; line-height: 1.15; color: var(--st-ink); }
.st-blog__cta-text { margin-top: 14px; font-size: 16px; line-height: 1.8; color: var(--st-text); }
.st-blog__cta-act { display: flex; flex-direction: column; align-items: stretch; gap: 18px; min-width: 240px; }
.st-blog__tel { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 700; color: var(--st-ink); border-bottom: 1px solid transparent; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.st-blog__tel img { width: 20px; height: 20px; }
.st-blog__tel:hover, .st-blog__tel:focus-visible { color: var(--st-red); border-bottom-color: currentColor; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1200px) {
  .st-blog__list { gap: 24px; }
  .st-blog__txt { padding: 24px 22px 26px; }
  .st-blog__item-title { font-size: 20px; }
  .st-blog__cta { padding: 38px 36px; }
}
@media (max-width: 1024px) {
  .st-blog__hero { padding: 48px 0 60px; }
  .st-blog__hero-txt { margin-top: 36px; }
  .st-blog__main { padding: 64px 0 72px; }
  .st-blog__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-blog__cta { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 64px; }
  .st-blog__cta-act { flex-direction: row; align-items: center; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 768px) {
  .st-blog__hero { padding: 40px 0 52px; }
  .st-blog__lead { font-size: 16px; }
  .st-blog__main { padding: 52px 0 60px; }
  .st-blog__list { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .st-blog__cta-title { font-size: 26px; }
  .st-blog__pag { margin-top: 40px; }
}
@media (max-width: 480px) {
  .st-blog__hero-txt { margin-top: 28px; }
  .st-blog__h1::after { margin-top: 18px; }
  .st-blog__txt { padding: 22px 20px 24px; }
  .st-blog__item-title { font-size: 19px; }
  .st-blog__empty { padding: 36px 20px; }
  .st-blog__empty-title { font-size: 24px; }
  .st-blog__cta { padding: 30px 22px; border-left-width: 6px; margin-top: 48px; }
  .st-blog__cta-title { font-size: 23px; }
  .st-blog__cta-act { flex-direction: column; align-items: stretch; }
  .st-blog__pag-btn span { display: none; }
  .st-blog__pag-num, .st-blog__pag-btn { min-width: 42px; height: 42px; padding: 0 10px; }
}
@media (max-width: 375px) {
  .st-blog__h1 { font-size: 31px; }
  .st-blog__crumbs { font-size: 13px; }
  .st-blog__cta { padding: 26px 18px; }
  .st-blog__pag-nums { gap: 6px; }
}
