/* ================================
   BLOG PAGE – BASE
================================ */

.blog-page {
  background: var(--bg);
}

/* ================================
    BLOG HERO
 ================================ */

.blog-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../images/hero.jpg") center / cover no-repeat;
  color: #fff;
}

.blog-hero__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
}

.blog-hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.blog-hero__title {
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 15px;
}

.blog-hero__subtitle {
  font-size: 1.1rem;
  color: #e0e0e0;
  max-width: 620px;
}

/* ================================
    HERO BADGE
 ================================ */

.blog-hero__badge-card {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.blog-hero__badge-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
}

.blog-hero__badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-hero__badge-row i {
  color: var(--primary);
}

.blog-hero__badge-row a {
  color: #fff;
  text-decoration: none;
}

.blog-hero__badge-row a:hover {
  text-decoration: underline;
}

/* ================================
    BLOG LAYOUT
 ================================ */

.blog-content {
  background: var(--bg-alt);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* ================================
    BLOG MAIN
 ================================ */

.blog-section-title {
  margin-bottom: 30px;
}

.blog-section-title h2 {
  margin-bottom: 5px;
}

.blog-section-title p {
  color: var(--text-light);
}

/* ================================
    BLOG GRID
 ================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.blog-card__link {
  display: block;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.blog-card__meta {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.blog-card__cta {
  font-weight: 600;
  color: var(--primary);
}

.blog-card__cta i {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card__cta i {
  transform: translateX(4px);
}

/* ================================
    BLOG SIDEBAR
 ================================ */

.blog-sidebar__box {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.blog-sidebar__title {
  font-weight: 600;
  margin-bottom: 15px;
}

.blog-sidebar__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.blog-sidebar__row i {
  color: var(--primary);
}

.blog-sidebar__row a {
  color: var(--text);
  text-decoration: none;
}

.blog-sidebar__row a:hover {
  text-decoration: underline;
}

.blog-sidebar__tip {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ================================
    TAGS
 ================================ */

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag {
  border: 1px solid rgba(255, 102, 0, 0.25);
  background: rgba(255, 102, 0, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-tag:hover {
  background: rgba(255, 102, 0, 0.22);
}

.blog-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ================================
    OFFCANVAS (TABLET)
 ================================ */

.blog-offcanvas {
  background: #111;
  color: #fff;
}

.blog-offcanvas .blog-sidebar__box {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.blog-offcanvas .blog-sidebar__title {
  color: #fff;
}

.blog-offcanvas a {
  color: #fff;
}

/* ================================
    TOGGLE BUTTON
 ================================ */

.blog-sidebar-toggle {
  margin-top: 25px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 10px 22px;
}

.blog-sidebar-toggle:hover {
  background: var(--primary-dark);
}

/* ================================
    RESPONSIVE
 ================================ */

@media (max-width: 992px) {
  .blog-hero__inner {
    grid-template-columns: 1fr;
  }

  .blog-hero__badge {
    display: none;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero__title {
    font-size: 2rem;
  }

  .blog-hero__subtitle {
    font-size: 1rem;
  }

  .blog-layout {
    display: flex;
    flex-direction: column;
  }

  /* 🔴 ВАЖНО: делаем sidebar flex */
  .blog-sidebar {
    display: flex;
    flex-direction: column;
  }

  /* 1️⃣ СТАТЬИ — СНАЧАЛА */
  .blog-main {
    order: 1;
  }

  /* 2️⃣ CONTACT + TIP */
  .blog-sidebar__box:not(:first-child) {
    order: 2;
  }

  /* 3️⃣ ФИЛЬТР — В САМОМ НИЗУ */
  .blog-sidebar__box:first-child {
    order: 3;
    margin-top: 24px;
  }
}

.blog-sidebar {
  position: static;
}
.blog-filter-status {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.blog-sidebar__hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.blog-sidebar__cta {
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.blog-card {
  cursor: pointer;
}
.blog-card__link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.blog-hero__trust {
  font-size: 0.95rem;
  color: #ddd;
  margin-top: 10px;
}

/* DESKTOP + LARGE TABLET */
@media (min-width: 992px) {
  .blog-sidebar {
    margin-top: 97px;
  }
}
.link-text {
  color: #ff6a00;
  text-decoration: none;
  font-weight: 500;
}

.link-text a:hover {
  text-decoration: underline;
}
