  /* =========================================================
   BLOG base
========================================================= */
.blog-page {
  background-color: #faf8f5;
  color: #0a2540;
}

/* =========================================================
   HERO (as Technologies)
========================================================= */
.blog-page .hero-section .container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px 20px;
  box-sizing: border-box;
}

.blog-page .hero-section .company-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  padding: 0 0 40px 0;
  border-bottom: 2px solid #ffbf00;
}

.blog-page .hero-section .left-content {
  max-width: 50%;
  z-index: 2;
}

.blog-page .hero-section .main-heading {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 600;
  color: #0d0d0d;
  margin: 0;
}

.blog-page .hero-section .main-heading .hl {
  background-color: #ffc600;
  padding: 0 6px;
  display: inline-block;
  margin-bottom: 10px;
  font-size: inherit;
  font-weight: inherit;
}

.blog-page .hero-section .description,
.blog-page .hero-section .description p {
  font-size: 18px;
  line-height: 27px;
  color: #323638;
  margin-top: 20px;
  max-width: 500px;
  font-weight: 400;
}

.blog-page .hero-section .right-content {
  width: 50%;
  text-align: right;
  position: relative;
  flex: 8;

  background-position: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  height: 470px;

  display: flex;
  justify-content: end;
  align-items: end;

  /* FIX: no hardcoded domain */
  background-image: url("../img/five-back-cubes.svg");

  pointer-events: none;
}

.blog-page .svg-background {
  pointer-events: none;
}

.blog-page .hero-section .company-heading {
  margin: 0;
  z-index: 2;
  position: relative;
  font-size: 104px;
  font-weight: 700;
  line-height: 104px;
  letter-spacing: -0.035em;
  text-align: right;
  color: #05131e;
  user-select: none;
  display: inline-block;
}

.blog-page .hero-section .bottom-line {
  display: none;
}

/* =========================================================
   POSTS container
========================================================= */
.blog-page .hero-section + .container.blog-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =========================================================
   Sections
========================================================= */
.blog-page .blog-section {
  padding: 18px 0 10px;
}

.blog-page .blog-section__title {
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 18px;
  color: #0a2540;
  font-weight: 800;
}
.blog-page .normal {
  font-weight: 600;
  color: black;
}

/* =========================================================
   Links (look like text)
========================================================= */
.blog-page .featured-post__title-link,
.blog-page .post-card__title-link,
.blog-page .featured-post__excerpt-link,
.blog-page .post-card__excerpt-link {
  color: inherit;
  text-decoration: none;
}

.blog-page .featured-post__excerpt-link,
.blog-page .post-card__excerpt-link {
  display: block;
}

.post-card__by-name{
      color: #07121f;
    }

.blog-page .featured-post__title-link:hover,
.blog-page .post-card__title-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* =========================================================
   CURRENT
========================================================= */
.blog-page .featured-post {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 10px;
}

.blog-page .featured-post__thumb {
  display: block;
  position: relative;
  box-sizing: border-box;

  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 8px;
  padding-left: 0;
}

.blog-page .featured-post__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
      border-top: 4px solid #cd6f47;
      border-right: 8px solid #cd6f47;
      border-bottom: 8px solid #cd6f47;
      clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%);
}

.blog-page .featured-post__thumb::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #faf8f5;
  transform: translate(50%, -50%) rotate(45deg);
  transform-origin: center;
  z-index: 2;
  pointer-events: none;
}

.blog-page .featured-post__img,
.blog-page .featured-post__img--placeholder {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
  border: 0;
  background: rgba(10, 37, 64, 0.06);
}

.blog-page .featured-post__cat {
  font-weight: 600 !important;
  display: inline-block;
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(10, 37, 64, 0.5);
  text-decoration: none;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-page .featured-post__cat:hover {
  text-decoration: underline;
}

.blog-page .blog-current .featured-post__title,
.blog-page .blog-current .featured-post__title .featured-post__title-link {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600; 
  letter-spacing: 0;
  margin: 0 0 14px;
  color: #0a2540;
}

.blog-page .featured-post__meta {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(10, 37, 64, 0.6);
}

.blog-page .featured-post__by-label {
  color: rgba(10, 37, 64, 0.6);
  font-weight: 400;
}
.blog-page .featured-post__by-name {
  color: #07121f;
  font-weight: 600;
}

.blog-page .featured-post__date {
  color: rgba(10, 37, 64, 0.6);
  font-weight: 400;
}

.blog-page .featured-post__excerpt {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(10, 37, 64, 0.75);
}
.blog-page .featured-post__excerpt p {
  font-weight: 400;
}
.blog-page .normal a {
  color: black;
}

.company-heading .category-name-span {
    text-transform: uppercase !important;
    /* Если спан стал невидимым или странным из-за общих стилей, 
       явно пропишем нужные параметры: */
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important; /* Берет цвет у заголовка h2 */
    font-size: inherit !important; /* Берет размер у h2 */
    font-weight: inherit !important;
    background:none;
}

/* =========================================================
   EARLIER grid/cards
========================================================= */
.blog-page .blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  padding: 16px 0 36px;
}

.blog-page .post-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 8px 0;
}

.blog-page .post-card__media {
  position: relative;
  box-sizing: border-box;
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 8px;
  padding-left: 0;
}

.blog-page .post-card__thumb {
  display: block;
  position: relative;
  z-index: 2;
}

.blog-page .post-card__img,
.blog-page .post-card__img--placeholder {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
  border: 0 !important;
  outline: 0;
  background: rgba(10, 37, 64, 0.06);
}

.blog-page .post-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-top: 9px solid #cd6f47;
  border-right: 14px solid #cd6f47;
  border-bottom: 11px solid #cd6f47;
  clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%);
}

.blog-page .post-card__media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #faf8f5;
  transform: translate(50%, -50%) rotate(45deg);
  transform-origin: center;
  z-index: 2;
  pointer-events: none;
}

.blog-page .post-card__content {
  height: 202px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: 2px;
  padding-bottom: 0;
}

.blog-page .post-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #0a2540;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-page .post-card__title .post-card__title-link {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-page .post-card__meta {

  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: rgba(10, 37, 64, 0.6);
  min-height: 34px;
}

.blog-page .post-card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(10, 37, 64, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-page .post-card__excerpt p {
  font-weight: 400;
}

.blog-page .post-card__cats {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 37, 64, 0.5);
  margin-bottom: -2px;
}

.blog-page .post-card__cat-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;

}
.blog-page .post-card__cat-link:hover {
  text-decoration: underline;
}

.blog-page .pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 40px 0 80px !important;
}

.blog-page .pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px;
  height: 44px;
  text-decoration: none !important;
  color: #0a2540 !important;
  font-size: 22px ;
  font-weight: 800 !important;
  transition: all 0.2s ease !important;
}

.blog-page .pagination .page-numbers.current {
  background-color: #ffbc00 !important;
  color: #0a2540 !important;
}

.blog-page .pagination .page-numbers.prev,
.blog-page .pagination .page-numbers.next {
  width: auto !important;
  padding: 0 10px !important;
}

.blog-page .pagination span.page-numbers.prev,
.blog-page .pagination span.page-numbers.next {
  color: #ced4da !important;
  cursor: default !important;
  pointer-events: none !important;
}

.blog-page .pagination .dots {
  color: #0a2540 !important;
  font-weight: 800 !important;
  width: auto !important;
}

.blog-page .pagination a.page-numbers:hover:not(.current) {
  opacity: 0.7 !important;
}

/* =========================================================
   Clickability hardening (оставил как было)
========================================================= */
.blog-page .featured-post::before,
.blog-page .featured-post::after,
.blog-page .post-card::before,
.blog-page .post-card::after,
.blog-page .featured-post__content::before,
.blog-page .featured-post__content::after,
.blog-page .post-card__content::before,
.blog-page .post-card__content::after {
  pointer-events: none !important;
}

.blog-page .featured-post__title-link,
.blog-page .post-card__title-link {
  display: inline !important;
  position: relative !important;
  z-index: 3 !important;
  pointer-events: auto !important;
}

/* =========================================================
   CONTACT FORM (Blog)
========================================================= */
.blog-page .services-contact {
  background-color: #faf8f5;
}
.blog-page .services-contact .container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
  box-sizing: border-box;
}
.blog-page .services-contact .wrapper {
  display: flex;
  background: rgba(0, 0, 0, 0);
  padding: 120px 0 0;
  width: 100%;
  background-color: #faf8f5;
  position: relative;
  margin-bottom: 40px;
}
.blog-page .services-contact .wrapper .information {
  max-width: 600px;
  width: 100%;
  z-index: 1;
}
.blog-page .services-contact .wrapper .information .description {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.blog-page .services-contact .wrapper .information .description .list-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.blog-page
  .services-contact
  .wrapper
  .information
  .description
  .list-options
  .text-option {
  padding: 0;
}
.blog-page
  .services-contact
  .wrapper
  .information
  .description
  .list-options
  .list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-page
  .services-contact
  .wrapper
  .information
  .description
  .list-options
  .list-item {
  display: flex;
  position: relative;
}
.blog-page
  .services-contact
  .wrapper
  .information
  .description
  .list-options
  .square {
  width: 10px;
  height: 10px;
  background-color: #ffbf00;
  padding-right: 10px;
  margin-top: 10px;
}
.blog-page
  .services-contact
  .wrapper
  .information
  .description
  .list-options
  p {
  padding-left: 15px;
  color: #2b353f;
}
.blog-page
  .services-contact
  .wrapper
  .information
  .description
  .list-options
  .list-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 24%;
  width: 2px;
  height: 117%;
  background-color: #ffbf00;
}
.blog-page .services-contact .wrapper .background {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url(/wp-content/themes/elpixel/assets/img/double-cubes-small.svg)
    no-repeat;
  background-position: left bottom;
  background-size: 100% 30%;
  left: -390px;
  top: 61px;
  z-index: 0;
}
.blog-page .services-contact .wrapper .form {
  padding-bottom: 70px;
  z-index: 10;
  width: 100%;
}
.blog-page .services-contact .wrapper .form .contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 35px;
  width: 100%;
  z-index: 10;
}
.blog-page .services-contact .wrapper .form .contact-form form {
  display: flex;
  padding-left: 60px;
  flex-direction: column;
  gap: 17px;
}
.blog-page .services-contact .wrapper .form .contact-form form input {
  height: 60px;
  background: #faf8f5;
  border: 2px solid #ece6d5;
}
.blog-page
  .services-contact
  .wrapper
  .form
  .contact-form
  form
  input.wpcf7-text {
  padding-left: 15px;
}
.blog-page .services-contact .wrapper .form .contact-form form input.wpcf7-text,
.blog-page
  .services-contact
  .wrapper
  .form
  .contact-form
  form
  textarea.wpcf7-textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 25px;
}
.blog-page .services-contact .wrapper .form .contact-form form textarea {
  height: 125px;
  padding-left: 15px;
  padding-top: 15px;
  background: #faf8f5;
  border: 2px solid #ece6d5;
  resize: none;
}
.blog-page .services-contact .wrapper .form .contact-form form textarea:focus,
.blog-page .services-contact .wrapper .form .contact-form form input:focus {
  outline: #e0cfb7;
  border: 2px solid #e0cfb7;
}
.blog-page
  .services-contact
  .wrapper
  .form
  .contact-form
  form
  input.wpcf7-submit {
  padding: 16px 24px;
  width: fit-content;
  cursor: pointer;
  margin-top: 33px;
  margin-bottom: 43px;
  border: 2px solid #ffbf00;
  background: transparent;
  color: #0c1e34;
  font-weight: 600;
}
.blog-page
  .services-contact
  .wrapper
  .form
  .contact-form
  form
  input.wpcf7-submit:hover {
  background: #ffbf00;
}
/* Находим контейнер, который держит и инпут, и текст */
.blog-page .wpcf7-list-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; /* Центровка по вертикали */
    justify-content: flex-start !important;
    margin: 0 0 15px 0 !important;
    line-height: 1 !important; /* Сбрасываем высоту строки */
}

/* Убираем все внешние отступы у спана, в который завернут чекбокс */
.blog-page .wpcf7-list-item input[type="checkbox"] {
    margin: 0 10px 0 0 !important; /* Отступ только справа (до текста) */
    padding: 0 !important;
    width: 18px !important; /* Задаем фиксированный размер, чтобы не прыгал */
    height: 18px !important;
    flex-shrink: 0 !important; /* Чтобы не сжимался */
    cursor: pointer;
}

/* Текст лейбла */
.blog-page .wpcf7-list-item-label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important; /* Немного увеличим для читаемости */
    cursor: pointer;
}








@media screen and (max-width: 1024px) {
  .blog-page .services-contact .wrapper {
    width: 100%;
    padding: 80px 0 120px 0;
    flex-direction: column;
    gap: 30px;
  }
  .blog-page .services-contact .wrapper .background {
    background-size: 100% 15%;
    left: -80px;
  }
  .blog-page .services-contact .wrapper .form {
    padding-bottom: 150px;
    width: 100%;
    max-width: 500px;
  }
  .blog-page .services-contact .wrapper .form .contact-form form {
    padding-left: 0;
  }
}

@media screen and (max-width: 576px) {
  .blog-page .services-contact .wrapper {
    max-width: 400px;
    width: 100%;
    padding: 80px 0 0;
    gap: 30px;
    margin-bottom: 0;
  }
  .blog-page .services-contact .wrapper .background {
    left: 0;
    top: 51px;
    background-size: 100% 10%;
  }
  .blog-page .services-contact .wrapper .form {
    padding-bottom: 200px;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 1024px) {
  /* Контейнер всей сетки в Hero */
  .blog-page .hero-section .company-grid {
    flex-direction: column-reverse; /* Поднимаем "Blog" (right-content) наверх */
    align-items: flex-start;
    padding: 60px 0 40px; /* Увеличиваем верхний отступ как на макете */
    border-bottom: 2px solid #ffbf00; /* Сохраняем желтую линию */
  }

  /* Блок с заголовком "Блог" и кубами */
  .blog-page .hero-section .right-content {
    width: 100%;
    height: auto;
    flex: none;
    display: block;
    text-align: left;
    margin-bottom: 24px;

    /* Позиционируем кубы в верхний правый угол */
    background-position: top right;
    background-size: 260px; /* Подбираем размер кубов под макет */
    pointer-events: none;
  }

  /* Огромный заголовок "Blog" */
  .blog-page .hero-section .company-heading {
    font-size: 110px; /* Делаем его максимально близким к макету */
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #05131e;
    z-index: 2;
  }

  /* Левая часть с текстом "Технологические инсайты..." */
  .blog-page .hero-section .left-content {
    max-width: 100%;
    width: 100%;
    z-index: 2;
  }

  .blog-page .hero-section .main-heading {
    font-size: 32px; /* Размер основного заголовка */
    line-height: 1.1;
    margin-bottom: 24px;
  }

  /* Желтые плашки для выделения слов */
  .blog-page .hero-section .main-heading .hl {
    padding: 2px 10px;
    margin-bottom: 6px;
  }

  /* Описание под заголовком */
  .blog-page .hero-section .description,
  .blog-page .hero-section .description p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 680px; /* Ограничиваем ширину текста как в Figma */
    color: #323638;
    margin-top: 0;
  }
  /* Устанавливаем точный отступ сверху для заголовка "Blog" */
  .blog-page .hero-section .company-heading {
    padding-top: 256px;
    /* Остальные стили остаются прежними */
    font-size: 48px;
    line-height: 0.9;
    letter-spacing: -0.04em;
  }

  /* Обнуляем лишние отступы у родительского контейнера, чтобы не суммировались */
  .blog-page .hero-section .company-grid {
    padding-top: 0;
  }
}

@media (max-width: 1024px) {
  .blog-page .blog-grid,
  .blog-page .blog-section,
  .blog-page .blog-section__content {
    display: block !important;
    height: auto !important;
  }

  .blog-page .featured-post {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    min-height: 215px !important;
    gap: 25px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
  }

  .blog-page .featured-post__media,
  .blog-page .featured-post__media a {
    flex: 0 0 295px !important;
    width: 295px !important;
    height: 215px !important;
    display: block !important;
  }

  .blog-page .featured-post__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .blog-page .featured-post__content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 215px !important;
    padding: 0 !important;
  }

  .blog-page .featured-post__title,
  .blog-page .featured-post__title a {
    order: 1 !important;
    font-size: 20px !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
  }

  .blog-page .featured-post__meta {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.1 !important;
    gap: 8px !important;
  }

  .blog-page .featured-post__author,
  .blog-page .featured-post__date {
    font-size: 18px !important;
    display: block !important;
    margin: 4px;
  }

  .blog-page .featured-post__excerpt,
  .blog-page .featured-post__excerpt-link {
    order: 3 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .blog-page .featured-post__cat,
  .blog-page .featured-post__cat a {
    order: 4 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    font-size: 17px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    display: inline-block !important;
    width: auto !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
  }

  .blog-page .post-card {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    margin-bottom: 40px !important;
    min-height: 215px !important;
  }

  .blog-page .post-card__media,
  .blog-page .post-card__media a {
    flex: 0 0 295px !important;
    width: 295px !important;
    height: 215px !important;
    display: block !important;
  }

  .blog-page .post-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .blog-page .post-card__content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 215px !important;
  }

  .blog-page .post-card__title,
  .blog-page .post-card__title a {
    font-weight: 800;
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .blog-page .post-card__meta {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  .blog-page .post-card__excerpt {
    font-size: 18px !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .blog-page .post-card__category,
  .blog-page .post-card__category a {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    font-size: 17px !important;
    text-transform: uppercase !important;
    font-weight: normal !important;
    display: inline-block !important;
    width: auto !important;
    line-height: 1 !important;
  }

  .blog-page .blog-section__title,
  .blog-page .blog-section:before {
    display: none !important;
  }
}

@media screen and (min-width: 630px) and (max-width: 1024px){
  /* Контейнер остается фиксированным */
  .blog-page .post-card__media {
    position: relative !important;
    display: block !important;
    flex: 0 0 295px !important;
    width: 295px !important;
    height: 215px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  /* Картинка: вписываем её четко внутрь рамок */
  .blog-page .post-card__img {
    position: absolute !important;
    /* Сдвигаем картинку так, чтобы сверху и снизу рамка была видна */
    top: 4px !important;
    left: 0 !important;
    /* Уменьшаем ширину на 8px (толщина правой рамки) */
    /* Уменьшаем высоту на 12px (4px сверху + 8px снизу) */
    width: calc(100% - 8px) !important;
    height: calc(100% - 12px) !important;
    object-fit: cover !important;
    z-index: 1 !important;
    display: block !important;
  }

  /* Оранжевая обводка (рисуем вокруг картинки) */
  .blog-page .post-card__media::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important; /* Рамка поверх краев картинки */
    pointer-events: none !important;
    background:
      linear-gradient(#cd6f47, #cd6f47) left top / calc(100% - 8px) 4px
        no-repeat,
      linear-gradient(#cd6f47, #cd6f47) right top / 8px 100% no-repeat,
      linear-gradient(#cd6f47, #cd6f47) left bottom / 100% 8px no-repeat !important;
  }

  /* Уголок-срез */
  .blog-page .post-card__media::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 10px !important;
    height: 10px !important;
    background: #faf8f5 !important; /* Цвет фона твоего сайта */
    transform: translate(50%, -50%) rotate(45deg) !important;
    z-index: 3 !important;
  }
}





/* =========================================================
   MOBILE OVERRIDE
========================================================= */

@media screen and (max-width: 629px) {
    
    /* 1. ГЛАВНЫЙ КОНТЕЙНЕР — СБРОС ТАБЛЕТОЧНОГО FLEX-ROW */
    .blog-page .blog-current .featured-post,
    .blog-page .blog-container .featured-post {
        display: block !important; /* Отменяем flex вообще */
        width: 100% !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    /* САМА КАРТИНКА — СБРОС ABSOLUTE */
    .blog-page .blog-current .featured-post .featured-post__img {
        position: static !important; /* Возвращаем в нормальный поток */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 0 !important;
    }

    /* УБИРАЕМ ВСЕ ОРАНЖЕВЫЕ РАМКИ */
    .blog-page .featured-post__media::before,
    .blog-page .featured-post__media::after,
    .blog-page .featured-post__thumb::before,
    .blog-page .featured-post__thumb::after {
        display: none !important;
        content: none !important;
    }

    /* 3. КОНТЕНТ (ТЕКСТ) */
    .blog-page .blog-current .featured-post .featured-post__content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 380px !important;
        padding: 0;
        margin: 0 !important;
        flex: none !important;
        min-height: auto !important;
    }

    /* ПОРЯДОК ЭЛЕМЕНТОВ (ORDER) */

    /* [1] Заголовок */
    .blog-page .blog-current .featured-post .featured-post__title {
        order: 1 !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin: 0 0 10px 0 !important;
        display: block !important;
    }

    /* [2] Автор и дата */
    .blog-page .blog-current .featured-post .featured-post__meta {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 16px !important;
        gap: 8px !important;
        min-height: auto !important;
    }

    .blog-page .featured-post__by,
    .blog-page .featured-post__by-label,
    .blog-page .featured-post__date {
        font-size: 18px !important;
        font-weight: 600;
    }

    /* [3] Текст (Excerpt) */
    .blog-page .blog-current .featured-post .featured-post__excerpt-link,
    .blog-page .blog-current .featured-post .featured-post__excerpt {
    order: 3 !important;
    display: -webkit-box !important; /* Обязательно для работы line-clamp */
    -webkit-box-orient: vertical !important; /* Обязательно */
    -webkit-line-clamp: 5 !important; /* ЧИСЛО СТРОК — ставим 5 */
    line-clamp: 5;
    overflow: hidden !important; /* Прячем всё, что не влезло */
}

    .blog-page .featured-post__excerpt p {
        font-size: 18px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
    }

    /* [4] Категория */
    .blog-page .blog-current .featured-post .featured-post__cat {
        order: 4 !important;
        margin: 0 !important;
        font-size: 18px !important;
    }

/* 3. Белый срез угла */
.blog-page .blog-current .featured-post__media::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 10px !important;
    height: 10px !important;
    background: #faf8f5 !important; 
    transform: translate(50%, -50%) rotate(45deg) !important;
    z-index: 2 !important;
    display: block !important;
}

/* 4. Картинка внутри (чтобы была под рамкой) */
.blog-page .featured-post__img {
    position: relative !important;
    z-index: 0 !important;
    display: block !important;
}

}

@media screen and (max-width: 629px) {
    /* 1. ВОЗВРАЩАЕМ ФЛЕКС КАРТОЧКЕ, ЧТОБЫ ТЕКСТ ПОЯВИЛСЯ */
    .blog-page .post-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 380px !important;
        margin: 0 auto 60px auto !important;
        gap: 24px;
    }

    /* 2. ЧИСТИМ БЛОК КАРТИНКИ (УБИВАЕМ FLEX 0 0 295 ИЗ ДРУГИХ ЗАПРОСОВ) */
        .blog-page .post-card .post-card__media, 
        .blog-page .post-card .post-card__thumb {
        display: block !important;
        position: relative !important;
        flex: none !important;
        width: 100% !important;
        height: 240px !important;
        /* min-width: 370px !important; */
        margin: 0 auto 20px auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. САМА КАРТИНКА (Занимает всё пространство) */
    .blog-page .post-card .post-card__media img,
    .blog-page .post-card .post-card__thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 !important;
    }

    /* СРЕЗ УГЛА */
    .blog-page .post-card .post-card__media::after,
    .blog-page .post-card .post-card__thumb::after {
        content: "" !important;
        position: absolute !important;
        top: -4px !important;
        right: -8px !important;
        width: 12px !important;
        height: 12px !important;
        background: #faf8f5 !important; /* Проверь, чтобы совпадало с фоном */
        transform: translate(50%, -50%) rotate(45deg) !important;
        z-index: 11 !important;
    }

    /* 5. КОНТЕНТ (ТЕКСТ) — ВОЗВРАЩАЕМ ВИДИМОСТЬ */
    .blog-page .post-card .post-card__content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0;
        box-sizing: border-box !important;
    }
    .post-card__by-name{
      color: #07121f;
    }
    .post-card__excerpt p {
      display: -webkit-box;
      -webkit-box-orient: vertical !important;
      -webkit-line-clamp: 5 !important;
      line-clamp: 5;
    }
    .post-card__cats {
      margin-top: 16px;
    }
    .blog-page .blog-grid {
      padding: 44px 0 0px;
    }
    .blog-page .post-card__cats,
    .blog-page .blog-current .featured-post .featured-post__cat {
      margin-top: 16px !important;
    }
    .blog-page .post-card__meta {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 16px !important;
        gap: 8px !important;
        min-height: auto !important;
    }

}
@media screen and (min-width:374px) and (max-width: 629px) {
.blog-page .post-card .post-card__thumb::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: -8px !important;
        bottom: -8px !important;
        z-index: 10 !important;
        pointer-events: none !important;
  border-top: 4px solid #cd6f47 !important;
  border-right: 8px solid #cd6f47 !important;
  border-bottom: 8px solid #cd6f47 !important;
  clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%) !important;
    }
    .blog-page .blog-current .featured-post__media::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    pointer-events: none !important;
    background: 
        linear-gradient(#cd6f47, #cd6f47) left top / calc(100% - 8px) 4px no-repeat,
        linear-gradient(#cd6f47, #cd6f47) right top / 8px 100% no-repeat,
        linear-gradient(#cd6f47, #cd6f47) left bottom / 100% 8px no-repeat !important;
}

    /* 2. МЕДИА-БЛОК (КАРТИНКА) */
    .blog-page .blog-current .featured-post .featured-post__media,
    .blog-page .blog-current .featured-post .featured-post__thumb {
        display: block !important;
        width: 100% !important;
        max-width: 380px !important;
        min-width: 0 !important;
        box-sizing: border-box;
        height: 228px !important;
        margin: 0 0 20px 0 !important; /* Отступ только снизу до текста */
        padding: 0 !important;
        position: relative !important;
        flex: none !important; /* Убиваем таблеточный flex: 0 0 295px */
    }
}


@media screen and (min-width: 321px) and (max-width: 375px) {
  .blog-page .services-contact .wrapper .background {
    left: 0;
    top: 70px;
    background-size: 100% 10%;
  }

  .blog-page .featured-post__thumb {
    padding-top: 0; 
    padding-right: 0;
    padding-bottom: 48px;
  }

  .blog-page .featured-post__media, .blog-page .featured-post__media a {
        width: 100% !important;
        height: 76vw !important;
  }
}
@media screen and (max-width: 320px) {
  .blog-page .services-contact .wrapper .background {
    left: 0;
    top: 98px;
    background-size: 100% 10%;
  }
}


/* ПАГИНАЦИЯ ДЛЯ МОБИЛОК */

@media screen and (max-width: 629px) {
    /* 1. КОНТЕЙНЕР: выравниваем всё в одну компактную строку */
    .blog-page .pagination, 
    .blog-page .nav-links {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3px !important;
        margin-bottom: 40px !important;
        padding: 0 5px !important;
        flex-wrap: nowrap !important;
    }
    
    /* 2. ОБЩИЙ СТИЛЬ КНОПОК (цифры, стрелки, точки) */
    .blog-page .page-numbers {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 42px !important;
        height: 42px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        color: #001d35 !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    /* АКТИВНАЯ СТРАНИЦА */
    .blog-page .page-numbers.current {
        background: #ffbc00 !important;
    }

    /* 3. СТРЕЛКИ (ПРЕВРАЩАЕМ ТЕКСТ В ИКОНКИ) */
    .blog-page .prev.page-numbers,
    .blog-page .next.page-numbers {
        background: #ffbc00 !important;
        font-size: 0 !important; /* Скрываем слова Previous/Next */
    }

    .blog-page .prev.page-numbers::before { content: "←" !important; font-size: 17px !important; }
    .blog-page .next.page-numbers::before { content: "→" !important; font-size: 17px !important; }

    /* 4. СИММЕТРИЯ НЕАКТИВНЫХ СТРЕЛОК (Серые заглушки) */
        .blog-page .prev.page-numbers:not([href]) {
        background: var(--inactive-bg) !important;
        color: var(--inactive-color) !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }
    
    /* Цвет стрелки и фон для всех неактивных состояний */

    /* Если стрелки "Назад" нет в HTML (на 1-й странице) */
    .blog-page .nav-links:not(:has(.prev))::before {
        content: "←" !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 42px !important;
        height: 42px !important;
        background: var(--inactive-bg) !important;
        color: var(--inactive-color) !important;
        font-size: 17px !important;
        opacity: 1 !important; /* Убираем лишнюю бледность */
        pointer-events: none !important;
    }

    /* Если стрелка "Вперед" есть, но у неё нет ссылки (на последней странице) */
    .blog-page .next.page-numbers:not([href]) {
        background: var(--inactive-bg) !important;
        color: var(--inactive-color) !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }

}



@media screen and (max-width: 320px) {
    /* 1. КОНТЕЙНЕР: выравниваем всё в одну компактную строку */
    .blog-page .pagination, 
    .blog-page .nav-links {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2px !important;
        margin: 0px 0 !important;
        padding: 0 5px !important;
        flex-wrap: nowrap !important;
    }

    /* 2. ОБЩИЙ СТИЛЬ КНОПОК (цифры, стрелки, точки) */
    .blog-page .page-numbers {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        color: #001d35 !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    /* АКТИВНАЯ СТРАНИЦА */
    .blog-page .page-numbers.current {
        background: #ffbc00 !important;
    }

    /* 3. СТРЕЛКИ (ПРЕВРАЩАЕМ ТЕКСТ В ИКОНКИ) */
    .blog-page .prev.page-numbers,
    .blog-page .next.page-numbers {
        background: #ffbc00 !important;
        font-size: 0 !important; /* Скрываем слова Previous/Next */
    }

    .blog-page .prev.page-numbers::before { content: "←" !important; font-size: 15px !important; }
    .blog-page .next.page-numbers::before { content: "→" !important; font-size: 15px !important; }

    /* 4. СИММЕТРИЯ НЕАКТИВНЫХ СТРЕЛОК (Серые заглушки) */
    
    /* Цвет стрелки и фон для всех неактивных состояний */
    :root {
        --inactive-bg: #f1efeb;
        --inactive-color: #b0b0b0; /* Уравняли цвет, чтобы не было разной бледности */
    }

    /* Если стрелки "Назад" нет в HTML (на 1-й странице) */
    .blog-page .nav-links:not(:has(.prev))::before {
        content: "←" !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 32px !important;
        height: 32px !important;
        background: var(--inactive-bg) !important;
        color: var(--inactive-color) !important;
        font-size: 13px !important;
        opacity: 1 !important; /* Убираем лишнюю бледность */
        pointer-events: none !important;
    }

    /* Если стрелка "Вперед" есть, но у неё нет ссылки (на последней странице) */
    .blog-page .next.page-numbers:not([href]) {
        background: var(--inactive-bg) !important;
        color: var(--inactive-color) !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }

}


@media (max-width: 375px) {
  .blog-page .hero-section + .container.blog-container {
    padding: 0 10px;
}
.blog-page .blog-current .featured-post__media::before {
      border-top: 4px solid #cd6f47;
      border-right: 8px solid #cd6f47;
      border-bottom: 8px solid #cd6f47;
      clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%);
}
.blog-page .post-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    border-top: 4px solid #cd6f47;
    border-right: 8px solid #cd6f47;
    border-bottom: 8px solid #cd6f47;
    clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%);
}
    .blog-page .post-card .post-card__media img,
    .blog-page .post-card .post-card__thumb img {
        width: 98% !important;
        height: 97% !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 !important;
    }
        .blog-page .blog-current .featured-post .featured-post__img {
        position: static !important;
        width: calc(100% - 25px) !important;
        /* width: 100% !important; */
        height: 100% !important;
        /* min-width: 295px; */
        object-fit: cover !important;
        display: block !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 0 !important;
          border-top: 4px solid #cd6f47 !important;
  border-right: 8px solid #cd6f47 !important;
  border-bottom: 8px solid #cd6f47 !important;
  clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%) !important;
    }
}
/* 1. Стили для ПК (десктоп) */
.services-contact.blog-contact {
    position: relative;
    overflow: visible;
}

.services-contact.blog-contact > img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(700px - 100px) !important; 
    max-width: 100% !important; 
    height: auto;
    z-index: 1;
    pointer-events: none;
}

/* 2. Стили для МОБИЛОК (адаптивность) */
@media screen and (max-width: 1024px) {

    .services-contact.blog-contact > img {
        max-width: 720px !important;
        width: 100vw !important;
        left: 0;
        bottom: 0;
    }
    
}
@media (max-width: 374px) {
  footer .social-link {
    display: flex;
    flex-wrap: wrap;          /* ключевое — разрешаем перенос */
    justify-content: center;  /* чтобы выглядело аккуратно */
    gap: 12px;                /* контролируем расстояния */
    max-width: 100%;
  }

  footer .social-link > a {
    flex: 0 1 auto;
    max-width: 107px;         /* чтобы не расползались */
  }
}
@media (max-width: 374px) {
  .blog-page .post-card .post-card__media::after,
  .blog-page .post-card .post-card__thumb::after {
    right: 0 !important;
    transform: translate(0, -50%) rotate(45deg) !important;
  }

  /* если есть аналогичные уголки у featured-post — тоже */
  .blog-page .blog-current .featured-post__media::after,
  .blog-page .featured-post__thumb::after {
    right: 0 !important;
    transform: translate(0, -50%) rotate(45deg) !important;
  }
}

@media (max-width: 480px) {
  .blog-page .hero-section .company-heading{
    max-width: 100%;
    font-size: clamp(40px, 10.5vw, 68px);
    line-height: 1.05;

    white-space: normal;
    overflow-wrap: break-word; /* переносит нормально, слово рвёт только если совсем не влазит */
    word-break: normal;        /* важно: не force-break */
    hyphens: auto;             /* красивые переносы, если язык страницы задан правильно */
    text-wrap: balance;        /* (Chrome/Safari/FF) делает переносы визуально приятнее */
  }

  .blog-page .hero-section .company-heading .category-name-span{
    display: inline !important; /* не inline-block, чтобы перенос был естественным */
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .blog-page .hero-section .company-heading{
    font-size: clamp(34px, 10vw, 56px);
  }
}
