/* Blog — bazavektor.ru */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

.blog-page {
  --blog-green: #7cc63f;
  --blog-green-dark: #5fb030;
  --blog-dark: #1f2d3d;
  --blog-dark-hero: #152536;
  --blog-text: #46566a;
  --blog-muted: #9aa6b4;
  --blog-border: #e6e9ee;
  --blog-bg: #f4f6f8;
  font-family: 'Montserrat', Arial, sans-serif;
}

.blog-page .page {
  padding: 0;
}

.blog-page,
main.page:has(.blog-page) {
  overflow: visible;
}

/* Hero (listing) */
.blog-hero {
  background: linear-gradient(135deg, #1b2e47 0%, #152536 55%, #0f1c2b 100%);
  color: #fff;
  padding: 28px 0 64px;
}

.blog-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-hero__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #9aa6b4;
  margin-bottom: 36px;
}

.blog-hero__breadcrumbs a {
  color: #9aa6b4;
  text-decoration: none;
}

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

.blog-hero__breadcrumbs span.current {
  color: #fff;
  font-weight: 700;
}

.blog-hero__label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blog-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin-bottom: 20px;
}

.blog-hero__label::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--blog-green);
  display: inline-block;
}

.blog-hero__title {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -0.5px;
}

.blog-hero__title span {
  color: var(--blog-green);
}

.blog-hero__desc {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.55;
  color: #b3c2d6;
}

/* Grid */
.blog-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 24px 80px;
}

.blog-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--blog-border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(31, 45, 61, 0.1);
  transform: translateY(-2px);
}

.blog-card__image {
  height: 218px;
  background: repeating-linear-gradient(90deg, #1b2e47 0 3px, #243a57 3px 6px);
  flex: none;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.blog-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blog-muted);
  font-size: 13px;
}

.blog-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.32;
  color: var(--blog-dark);
}

.blog-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--blog-text);
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.blog-card__link {
  font-weight: 700;
  font-size: 14px;
  color: var(--blog-green-dark);
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 48px 0 64px;
}

.blog-pagination__arrow,
.blog-pagination__page {
  width: 46px;
  height: 46px;
  border: 1px solid #e0e4ea;
  background: #fff;
  border-radius: 8px;
  color: #3a4a5c;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.blog-pagination__arrow {
  color: #8a98a8;
}

.blog-pagination__arrow:hover:not(.blog-pagination__arrow--disabled) {
  border-color: var(--blog-green-dark);
  color: var(--blog-green-dark);
}

.blog-pagination__page:hover {
  border-color: var(--blog-green-dark);
  color: var(--blog-green-dark);
}

.blog-pagination__page--active {
  border: none;
  background: var(--blog-green-dark);
  color: #fff;
  cursor: default;
}

.blog-pagination__arrow--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.blog-pagination__dots {
  color: #8a98a8;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}

/* Article */
.blog-article {
  background: var(--blog-bg);
  padding-bottom: 70px;
}

.blog-article__top {
  background: #fff;
  border-bottom: 1px solid var(--blog-border);
  padding: 20px 0;
}

.blog-article__top-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-article__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--blog-muted);
}

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

.blog-article__breadcrumbs a:hover {
  color: var(--blog-dark);
}

.blog-article__breadcrumbs .current {
  color: #3a4a5c;
}

.blog-article__layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.blog-article__main {
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  padding: 36px 40px 48px;
  border: 1px solid var(--blog-border);
}

.blog-article__tag {
  display: inline-flex;
  align-items: center;
  background: var(--blog-green-dark);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
  text-decoration: none;
}

.blog-article__tag:hover {
  background: var(--blog-green);
  color: #fff;
}

.blog-article__title {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.18;
  color: var(--blog-dark);
  letter-spacing: -0.4px;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--blog-border);
  margin-bottom: 30px;
}

.blog-article__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-article__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--blog-green-dark);
  font-size: 18px;
  flex: none;
  overflow: hidden;
}

.blog-article__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-article__author-name {
  font-weight: 700;
  color: var(--blog-dark);
  font-size: 15px;
  line-height: 1.35;
}

.blog-article__author-role {
  color: #8a98a8;
  font-size: 13px;
}

.blog-article__stats {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--blog-muted);
  font-size: 13.5px;
}

.blog-article__cover {
  height: 330px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #23364f 0 8px, #2b405c 8px 16px);
  margin-bottom: 30px;
  overflow: hidden;
}

.blog-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article__content {
  font-size: 16px;
  line-height: 1.65;
  color: var(--blog-text);
}

.blog-article__content p {
  margin: 0 0 16px;
}

.blog-article__content h2 {
  scroll-margin-top: 24px;
  margin: 30px 0 16px;
  font-weight: 700;
  font-size: 25px;
  color: var(--blog-dark);
}

.blog-article__content h2:first-child {
  margin-top: 0;
}

.blog-article__content hr {
  border: none;
  border-top: 1px solid var(--blog-border);
  margin: 30px 0;
}

.blog-article__content ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-article__content ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
}

.blog-article__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--blog-green-dark);
  transform: rotate(45deg);
}

.blog-article__content b,
.blog-article__content strong {
  color: var(--blog-dark);
}

.blog-article__tip {
  background: #f0f7eb;
  border-left: 4px solid var(--blog-green-dark);
  padding: 18px 20px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}

.blog-article__tip strong {
  color: var(--blog-green-dark);
}

.blog-article__table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.blog-article__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.blog-article__table th,
.blog-article__table td {
  border: 1px solid var(--blog-border);
  padding: 12px 14px;
  text-align: left;
}

.blog-article__table th {
  background: #f7f9fb;
  font-weight: 700;
  color: var(--blog-dark);
}

.blog-article__caption {
  font-size: 13px;
  color: var(--blog-muted);
  margin-top: 10px;
}

.blog-article__figure {
  margin: 28px 0;
}

.blog-article__figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.blog-article__figure figcaption {
  font-size: 13px;
  color: var(--blog-muted);
  margin-top: 10px;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 140px;
  align-self: start;
}

.blog-toc {
  border: 1px solid var(--blog-border);
  border-radius: 10px;
  padding: 22px 20px;
  background-color: #fff;
}

.blog-toc__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #8a98a8;
}

.blog-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-toc__list a {
  color: #5d6b7c;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  display: block;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 400;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.blog-toc__list a:hover {
  color: #3a4a5c;
}

.blog-toc__list a.is-active {
  color: #3a4a5c;
  font-weight: 700;
  background: #eef7e8;
  border-color: #d6ebc6;
}

.blog-cta {
  background: #5fb030;
  border-radius: 10px;
  padding: 24px 22px;
  color: #fff;
}

.blog-cta__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #dff4cf;
  margin-bottom: 10px;
}

.blog-cta__title {
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
}

.blog-cta__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-cta__field {
  display: block;
  margin: 0;
}

.blog-cta__field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-cta__input {
  width: 100%;
  padding: 13px 15px;
  border: none;
  border-radius: 7px;
  background: #fff;
  color: #33424f;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.blog-cta__input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.blog-cta__input::placeholder {
  color: #8a98a8;
}

.blog-cta__field-error {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}

.blog-cta__field-error:empty {
  display: none;
}

.blog-cta__message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.45;
}

.blog-cta__message:empty {
  display: none;
}

.blog-cta__message--success {
  color: #245b13;
  background: #effae8;
}

.blog-cta__message--error {
  color: #8b1e1e;
  background: #fff0f0;
}

.blog-cta__btn {
  margin-top: 4px;
  padding: 14px;
  background: #fff;
  color: #3a8a1e;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}

.blog-cta__btn:hover {
  opacity: 0.92;
}

.blog-cta__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.blog-cta__note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #d6efc4;
}

/* Form notification */
.blog-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  width: min(390px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #1f2d3d;
  color: #fff;
  box-shadow: 0 14px 40px rgba(15, 28, 43, 0.28);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.blog-toast[hidden] {
  display: none;
}

.blog-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.blog-toast__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--blog-green-dark);
  font-size: 17px;
  font-weight: 800;
}

.blog-toast__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.blog-toast__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb9c5;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.blog-toast__close:hover {
  color: #fff;
}

/* Related */
.blog-related {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.blog-related__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--blog-muted);
}

.blog-related__subtitle {
  margin: 0 0 28px;
  font-weight: 700;
  font-size: 24px;
  color: var(--blog-dark);
}

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

.blog-related .blog-card__image {
  height: 160px;
}

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

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

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-hero__title {
    font-size: 32px;
  }

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

  .blog-article__main {
    padding: 24px 20px 32px;
  }

  .blog-article__title {
    font-size: 26px;
  }

  .blog-article__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-toast {
    right: 16px;
    bottom: 16px;
  }
}
