.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.max-w-xs {
  max-width: 20rem;
}
@media (min-width: 640px) {
  .sm\:max-w-md {
    max-width: 28rem;
  }
}

/* Дополнения к утилитарному Tailwind: типографика статьи */
.blog-prose {
  max-width: 48rem;
  color: rgb(55 65 81);
}
.blog-prose > * + * {
  margin-top: 1rem;
}
.blog-prose h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 2.25rem;
  color: rgb(17 24 39);
}
.blog-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 5rem;
  color: rgb(17 24 39);
}
.blog-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: 5rem;
  color: rgb(31 41 55);
}
.blog-prose p {
  line-height: 1.625;
}
.post-excerpt {
  border-left: 4px solid rgb(147 51 234);
  padding-left: 1.25rem;
}
.blog-prose a {
  color: rgb(147 51 234);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-prose a:hover {
  color: rgb(126 34 206);
}
.blog-prose ul,
.blog-prose ol {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  list-style: revert;
}
.blog-prose blockquote {
  border-left: 4px solid rgb(196 181 253);
  padding-left: 1rem;
  font-style: italic;
  color: rgb(75 85 99);
}
.blog-prose pre {
  overflow-x: auto;
  padding: 1rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  background: rgb(243 232 255);
}
.blog-prose code {
  font-size: 0.875rem;
}
.blog-prose :not(pre) > code {
  background: rgb(243 244 246);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.blog-prose th,
.blog-prose td {
  border: 1px solid rgb(229 231 235);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.blog-carousel {
  margin: 1.25rem 0 1.75rem;
  border: 1px solid rgb(229 231 235);
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem;
  overflow: hidden;
}
.blog-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blog-carousel-track::-webkit-scrollbar {
  display: none;
}
.blog-carousel-slide {
  scroll-snap-align: start;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 0;
  background: #f8fafc;
}
.blog-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: contain;
  background: #f8fafc;
}
.blog-carousel-controls {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.blog-carousel-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgb(209 213 219);
  background: #fff;
  color: rgb(55 65 81);
  font-size: 1.15rem;
  line-height: 1;
}
.blog-carousel-btn:hover {
  background: rgb(243 244 246);
}
.blog-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  background: rgb(209 213 219);
  padding: 0;
}
.blog-carousel-dot.is-active {
  background: rgb(99 102 241);
}
.blog-carousel-hint {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: rgb(107 114 128);
}
.article-hero-carousel .blog-carousel {
  margin-top: 0;
  margin-bottom: 0;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.related-posts-block {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgb(229 231 235);
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}
.post-meta-sep {
  color: rgb(156 163 175);
}

.useful-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}
.useful-links li {
  display: inline-flex;
}
.useful-links a {
  line-height: 1.3;
  display: inline-block;
}

.blog-main-content {
  padding-top: 5.25rem;
  padding-bottom: 2.25rem;
  background: #fff;
}
.blog-header {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  border-bottom: 0 !important;
  background: #fff !important;
}
.blog-header::before,
.blog-header::after {
  display: none !important;
  content: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: box-shadow 0.25s ease, filter 0.25s ease, background-color 0.25s ease;
}
.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.45);
  filter: brightness(1.04);
}
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-cta-panel {
  background: linear-gradient(135deg, #7c3aed 0%, #4338ca 100%);
  margin-bottom: 2.25rem;
}
.blog-cta-text {
  color: rgba(255, 255, 255, 0.92);
}
.blog-cta-btn-light {
  color: #581c87;
}
.blog-cta-btn-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.blog-cta-btn-dark:hover {
  background: rgba(255, 255, 255, 0.14);
}

.blog-card-image {
  background: rgb(248 250 252);
  padding: 0.5rem;
}
.blog-card-image-wrap {
  display: block;
  background: rgb(248 250 252);
  padding: 0.5rem;
}
.blog-card-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.article-shell {
  padding-bottom: 1rem;
}
.blog-list-page {
  padding-bottom: 3rem;
}

.blog-lead-modal-panel {
  max-height: min(90vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blog-lead-modal-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (max-width: 767px) {
  .blog-main-nav {
    gap: 0.5rem;
  }
  #logo-img {
    max-width: 200px !important;
  }
  .blog-mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .blog-prose {
    max-width: 100%;
  }
  .blog-prose h2 {
    font-size: 1.25rem;
    line-height: 1.7rem;
  }
  .blog-prose h3 {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }
  .blog-main-content {
    padding-top: 4.75rem;
    padding-bottom: 1.5rem;
  }
  .blog-list-page {
    padding-bottom: 2rem;
  }
  .blog-cta-panel {
    padding: 1.25rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }
  .article-hero-carousel .blog-carousel {
    max-width: 100%;
  }
  .blog-carousel-slide img {
    max-height: 340px;
  }
  .useful-links {
    gap: 0.5rem 0.85rem;
  }
  #lead-modal {
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .blog-lead-modal-panel {
    max-height: calc(100vh - 1.5rem);
    border-radius: 1rem;
  }
  .blog-lead-modal-body {
    padding: 1rem 1rem 1.25rem;
  }
}
