/* ===================================
   SEO-блог sharonov.agency — Стили
   Дизайн-токены сайта:
   - Шрифт: Inter
   - Тёмный: #2d384a
   - Акцент (оранжевый): #f5b231
   - Заголовки: #1a202c
   - Текст: #718096
   - Контейнер: 1200px
   =================================== */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: #1a202c;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Container === */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header / Navigation === */
.blog-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 20px;
}

.blog-nav {
  max-width: 1200px;
  margin: 0 auto;
  background: #2d384a;
  border-radius: 50px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-nav__logo {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

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

.blog-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.blog-nav__links a {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.2s;
}

.blog-nav__links a:hover {
  opacity: 0.8;
}

.blog-nav__links a.active {
  font-weight: 600;
}

.blog-nav__cta {
  background: #fffffe;
  color: #2d384a;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.blog-nav__cta:hover {
  opacity: 0.9;
}

/* Mobile menu */
.blog-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.blog-nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s;
}

/* === Breadcrumbs === */
.blog-breadcrumbs {
  padding: 100px 0 20px;
  font-size: 14px;
  color: #718096;
}

.blog-breadcrumbs a {
  color: #718096;
  transition: color 0.2s;
}

.blog-breadcrumbs a:hover {
  color: #2d384a;
}

.blog-breadcrumbs span {
  margin: 0 8px;
}

/* ===========================
   BLOG INDEX PAGE (список статей)
   =========================== */

.blog-hero {
  padding: 100px 0 40px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 18px;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

/* Cluster filters */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.blog-filters__btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #718096;
  font-size: 14px;
  font-family: 'Inter', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-filters__btn:hover,
.blog-filters__btn.active {
  background: #2d384a;
  color: #fff;
  border-color: #2d384a;
}

/* Article cards grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(45, 56, 74, 0.1);
  transform: translateY(-2px);
}

.blog-card__body {
  padding: 24px;
}

.blog-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #f5b231;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.blog-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card__title a {
  color: inherit;
  transition: color 0.2s;
}

.blog-card__title a:hover {
  color: #2d384a;
}

.blog-card__excerpt {
  font-size: 15px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #a0aec0;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 60px;
}

.blog-pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #718096;
  font-size: 14px;
  font-family: 'Inter', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-pagination__btn:hover,
.blog-pagination__btn.active {
  background: #2d384a;
  color: #fff;
  border-color: #2d384a;
}

/* ===========================
   ARTICLE PAGE (отдельная статья)
   =========================== */

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

.article__header {
  margin-bottom: 40px;
}

.article__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #f5b231;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.article__title {
  font-size: 36px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.25;
  margin-bottom: 20px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #718096;
}

.article__meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e0;
}

/* Article content */
.article__content {
  font-size: 17px;
  line-height: 1.75;
  color: #2d3748;
}

.article__content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin: 48px 0 20px;
}

.article__content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1a202c;
  margin: 36px 0 16px;
}

.article__content p {
  margin-bottom: 20px;
}

.article__content ul,
.article__content ol {
  margin: 0 0 20px 24px;
}

.article__content li {
  margin-bottom: 8px;
}

.article__content blockquote {
  border-left: 4px solid #f5b231;
  padding: 16px 24px;
  margin: 24px 0;
  background: #fafafa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5568;
}

.article__content strong {
  font-weight: 600;
  color: #1a202c;
}

.article__content a {
  color: #f5b231;
  text-decoration: underline;
  text-decoration-color: rgba(245, 178, 49, 0.3);
  transition: text-decoration-color 0.2s;
}

.article__content a:hover {
  text-decoration-color: #f5b231;
}

.article__content img {
  border-radius: 12px;
  margin: 24px 0;
}

.article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.article__content table th {
  background: #2d384a;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.article__content table th:first-child {
  border-radius: 8px 0 0 0;
}

.article__content table th:last-child {
  border-radius: 0 8px 0 0;
}

.article__content table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.article__content table tr:hover td {
  background: #f7fafc;
}

/* === Case Insert (кейс-врезка) === */
.case-insert {
  background: #2d384a;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 36px 0;
  color: #fff;
}

.case-insert__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f5b231;
  margin-bottom: 12px;
}

.case-insert__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.case-insert__result {
  font-size: 15px;
  color: #cbd5e0;
  margin-bottom: 16px;
  line-height: 1.5;
}

.case-insert__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5b231;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.case-insert__link:hover {
  opacity: 0.8;
}

/* === Diagnostic Offer (диагностический оффер) === */
.diagnostic-offer {
  background: linear-gradient(135deg, #fef9ed 0%, #fff7e0 100%);
  border: 1px solid rgba(245, 178, 49, 0.2);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 36px 0;
}

.diagnostic-offer__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.diagnostic-offer__text {
  font-size: 15px;
  color: #4a5568;
  margin-bottom: 16px;
  line-height: 1.6;
}

.diagnostic-offer__btn {
  display: inline-block;
  background: #f5b231;
  color: #1a202c;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', Arial, sans-serif;
  transition: opacity 0.2s;
}

.diagnostic-offer__btn:hover {
  opacity: 0.9;
}

/* === Final CTA === */
.final-cta {
  background: #2d384a;
  border-radius: 16px;
  padding: 48px 40px;
  margin: 60px 0 40px;
  text-align: center;
  color: #fff;
}

.final-cta__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.final-cta__text {
  font-size: 16px;
  color: #cbd5e0;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__btn {
  display: inline-block;
  background: #f5b231;
  color: #1a202c;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', Arial, sans-serif;
  transition: opacity 0.2s;
}

.final-cta__btn:hover {
  opacity: 0.9;
}

/* === Related Articles === */
.related-articles {
  margin: 60px 0;
}

.related-articles__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 24px;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* === Footer === */
.blog-footer {
  background: #2d384a;
  color: #fff;
  padding: 40px 0;
  margin-top: 60px;
}

.blog-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-footer__copy {
  font-size: 14px;
  color: #a0aec0;
}

.blog-footer__links {
  display: flex;
  gap: 24px;
}

.blog-footer__links a {
  color: #cbd5e0;
  font-size: 14px;
  transition: color 0.2s;
}

.blog-footer__links a:hover {
  color: #fff;
}

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

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-nav__links {
    display: none;
  }

  .blog-nav__cta {
    display: none;
  }

  .blog-nav__burger {
    display: flex;
  }

  .blog-nav.open .blog-nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d384a;
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
    gap: 16px;
  }

  .blog-nav.open .blog-nav__cta {
    display: block;
    margin-top: 10px;
    text-align: center;
  }

  .blog-hero h1 {
    font-size: 32px;
  }

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

  .article__title {
    font-size: 28px;
  }

  .article__content {
    font-size: 16px;
  }

  .article__content h2 {
    font-size: 24px;
  }

  .article__content h3 {
    font-size: 20px;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 32px 24px;
  }

  .final-cta__title {
    font-size: 24px;
  }

  .case-insert {
    padding: 24px;
  }

  .diagnostic-offer {
    padding: 24px;
  }

  .blog-footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 26px;
  }

  .article__title {
    font-size: 24px;
  }

  .blog-filters {
    gap: 6px;
  }

  .blog-filters__btn {
    font-size: 13px;
    padding: 6px 14px;
  }
}
