/* Картинка в слайдере на главной блога */
.compilation img {
    height: 176px;
    object-fit: cover; /* чтобы картинка не растягивалась по ширине */
    width: 100%;       /* или auto, в зависимости от макета */
    display: block;
}

body {
  background: none; /* убираем фон */
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400; /* обычный текст — Regular */
  font-size: 16px;  /* базовый размер, заголовки будут переопределяться */
  line-height: 1.5; /* примерно 24px при 16px шрифте */
  color: #2F333F;   /* общий цвет текста как в макете */
  font-feature-settings: 'pnum' on, 'onum' on;
}

h1 {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 130%; /* или 42px */
  color: #2F333F;
  font-feature-settings: 'pnum' on, 'onum' on;
}

.single-post-top {
  border-radius: 24px;
  overflow: hidden; /* чтобы изображение не выходило за углы */
}

.main-post__content {
    border-radius: 16px;
}

.post{
  background: #F6F6F6;
  border-radius: 16px;
}

.post__title {
    font-size: 18px;
}

.post-category,
.post-date {
  font-size: 14px;
  line-height: 120%;
}

.main-post .post-category {
    font-size: 14px;
    line-height: 120%;
}

.post__level {
  border-radius: 45px;
}

.sidebar-header, .another-posts__name {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  line-height: 130%; /* или 36px */
  font-feature-settings: 'pnum' on, 'onum' on;
  color: #16181E;
}

.btn.blog_button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 193px;
  height: 59px;
  padding: 20px 28px;
  background: #1928F0;
  border-radius: 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  color: #FFFFFF;
  text-decoration: none; /* убираем подчёркивание */
  box-shadow: none;
  white-space: nowrap; /* запрет переноса текста */
}

.btn.blog_button:hover {
  background: #141fc0; /* немного темнее */
}

.btn.blog_button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0; /* запрет сжатия и масштабирования */
}

/* Кнопка для мобильного устройства */
.btn.blog_button-mobile {
  display: none; /* скрыта в полноразмерном режиме */
  justify-content: center;
  align-items: center;
  gap: 12px;

  /* ширина уже задаётся старым классом, оставляем */
  padding: 16px 20px;

  background: #1928F0;
  border-radius: 40px;

  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  color: #FFFFFF;
  text-decoration: none;

  box-shadow: none;
  white-space: nowrap; /* текст в одну строку */
}

.btn.blog_button-mobile svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .btn.blog_button-mobile {
    display: flex;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
  }

  .btn.blog_button-mobile svg {
    width: 14px;
    height: 14px;
  }
}

/* Самые читаемые подборки */
.compilation.compilation-style-1 {
  background: #F6F6F6;
  border-radius: 16px;
  overflow: hidden; /* чтобы изображение и контент не «обрезали» скругление */
}

.compilation-sidebar .compilation__button.compilation__button-blog {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  width: 193px;
  height: 49px;
  padding: 16px 24px;

  border: 1px solid #1928F0;
  border-radius: 71px;
  background: transparent;

  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #1928F0;
  text-decoration: none;
  box-sizing: border-box;
}

.compilation__button.compilation__button-blog .compilation__count {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;

  color: #1928F0;
  background: none;

  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
}

.compilation__button-blog svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.compilation.compilation-style-1 .compilation__title {
  width: 235px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;

  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 140%; /* ~25px */

  text-align: center;
  color: #2F333F;

  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.compilation img {
  border-radius: 16px;
}

@media (max-width: 1200px) {
  .compilation__button.compilation__button-blog .compilation__count {
    padding-left: unset;
    padding-right: unset;
  }
}

@media screen and (max-width: 990px) {
  .compilation__button.compilation__button-blog .compilation__count {
    padding-left: unset;
    padding-right: unset;
  }
}

.offer-slide {
  background: #F6F6F6;
  border-radius: 24px;
}

.offer-slide__left-title {
  width: 722px;
  height: 130px;

  display: flex;
  align-items: center;

  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 54px;
  line-height: 120%; /* ~65px */

  font-feature-settings: 'pnum' on, 'onum' on;
  text-align: left; /* или center, если нужно по макету */

  color: #2F333F;

  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

/* Заголовок */
.offer-slide__left-title {
  max-width: 722px;
  height: 130px;

  display: flex;
  align-items: center;

  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 54px;
  line-height: 120%; /* ~65px */

  font-feature-settings: 'pnum' on, 'onum' on;
  color: #2F333F;

  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

/* Выточить корпус или согнуть профиль */
.offer-slide__left-info {
  max-width: 610px;
  height: 112px;

  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 140%; /* ~28px */

  font-feature-settings: 'pnum' on, 'onum' on;
  color: #2F333F;

  display: flex;
  align-items: center;
  text-align: left;

  flex: none;
  order: 1;
  flex-grow: 0;
}

@media (max-width: 1200px) {
  .offer-slide__left-title {
    font-size: 28px;
    line-height: 120%; /* ~34px */
    width: auto;
    height: auto;
  }

  .offer-slide__left-info {
    font-size: 14px;
    line-height: 140%; /* ~20px */
  }
}

/* мобильные (до 768px) */
@media (max-width: 768px) {
  .offer-slide__left-title {
    font-size: 24px;
    line-height: 120%; /* ~29px */
  }

  .offer-slide__left-info {
    font-size: 14px;
    line-height: 140%; /* ~20px */
  }
}

@media (max-width: 375px) {
  .offer-slide__left {
    display: flex;
    flex-direction: column;
    gap: 30px; /* расстояние между заголовком, текстом и кнопкой */
  }

  .offer-slide__left-title  { order: 1; }
  .offer-slide__left-info   { order: 2; }
  .offer-slide__left-button { order: 3; } /* кнопка последней */
}

/* Кнопки */
/* Базовая кнопка */
.offer-slide__left-button .blog_btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;

  padding: 24px 36px;
  width: 204px;
  height: 67px;

  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;

  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: #FFFFFF;

  flex: none;
  order: 1;
  flex-grow: 0;

  transition: background 0.3s ease;
}

/* Цветовые варианты */
.offer-slide__left-button .blog_btn-orange {
  background: #EB5A20;
}

.offer-slide__left-button .blog_btn-orange:hover {
  background: #d94f1c; /* немного темнее */
}

.offer-slide__left-button .blog_btn-blue {
  background: #1928F0;
}

.offer-slide__left-button .blog_btn-blue:hover {
  background: #141fc0; /* немного темнее */
}

/* Адаптив для планшета/мобилы */
@media (max-width: 1200px) {
  .offer-slide__left-button .blog_btn {
    padding: 18px 28px;
    width: 172px;
    height: 53px;

    font-size: 14px;
    line-height: 17px;
  }
}

@media (max-width: 375px) {
  .offer-slide__left-button .blog_btn {
    width: 100%;
  }
}

/* Переопределение стандартной кнопки Ajax Load More */
#ajax-load-more .alm-btn-wrap .alm-load-more-btn {
  display: flex;                /* вместо block */
  justify-content: center;
  align-items: center;
  gap: 10px;

  padding: 24px 36px;
  width: 204px;
  height: 67px;

  border: none;
  border-radius: 16px;          /* скругление */
  cursor: pointer;
  text-decoration: none;

  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: #FFFFFF;

  background: #1928F0;
  transition: background 0.3s ease;
  box-shadow: none;
  text-transform: unset;
}

#ajax-load-more .alm-btn-wrap .alm-load-more-btn.blue {
  background: #1928F0;
}

#ajax-load-more .alm-btn-wrap .alm-load-more-btn:hover {
  background: #141fc0; /* более тёмный синий */
}

/* Адаптив */
@media (max-width: 1200px) {
  #ajax-load-more .alm-btn-wrap .alm-load-more-btn {
    padding: 18px 28px;
    width: 172px;
    height: 53px;

    font-size: 14px;
    line-height: 17px;
  }
}

@media (max-width: 375px) {
  #ajax-load-more .alm-btn-wrap .alm-load-more-btn {
    width: 100%;
  }
}

/* Header */
/* Контейнер: логотип + меню в одну линию */
.header-content-top {
    display: flex;
    align-items: center;
    justify-content: space-between; /* логотип слева, меню справа */
}

/* Список меню */
.header-menu {
    display: flex;
    gap: 32px; /* расстояние между пунктами */
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
}

/* Пункты меню */
.header-menu li a {
    display: flex;               /* чтобы текст центрировался */
    align-items: center;
    justify-content: center;

    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;           /* соответствует 26px */

    color: #16181E;
    text-decoration: none;

    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Дополнительно: эффект наведения */
.header-menu li a:hover {
    color: #000;                 /* или другой цвет из макета */
    text-decoration: underline;  /* если нужно подчёркивание */
}

.main-logo {
    height: 27px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

.main-logo img {
    display: block;
    height: 24px;
    min-width: 65px;
}

@media (max-width: 1200px) {
  .header-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-content {
    gap: 10px;
  }
  .main-logo, .mobile-menu-logo {
    height: 24px;
  }
}

@media screen and (max-width: 440px) {
    .main-logo, .mobile-menu-logo {
        height: 24px;
    }
}

.logo-menu {
    display: flex;
    align-items: center;
    gap: 16px; /* расстояние между элементами */
}

/* Вертикальная черта */
.logo-separator {
    display: inline-block;
    width: 2px;
    height: 26px;
    background: #2E3C45;
}

/* Текст "Блог" */
.logo-blog {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 450;
    font-size: 22px;
    line-height: 22px;
    color: #2E3C45;
    font-variation-settings: 'slnt' 0;
}

/* Мобильная версия (375px) */
@media (max-width: 375px) {
    .logo-separator {
        height: 24px;
    }
    .logo-blog {
        font-size: 20px;
        line-height: 20px;
    }
}

/* Login button */
.login_btn {
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    padding: 14px 20px;
    gap: 10px;

    width: auto;
    height: 45px;

    border: 1px solid #1928F0;
    border-radius: 32px;

    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;

    color: #1928F0;
    text-decoration: none;

    flex: none;
    order: 2;
    flex-grow: 0;

    transition: all 0.3s ease;
}

/* Ховер‑эффект */
.login_btn:hover {
    background-color: #1928F0;
    color: #fff;
}

@media (max-width: 520px) {
  .login_btn {
    display: none;
  }
}

.search-toggle {
  background-color: unset;
  height: 40px;
}

.header__controls .header__search {
  background-color: unset;
}

.mobile-burger {
  background-color: unset;
}

.mobile-menu-items li a {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 160%;           /* соответствует 26px */
  color: #16181E;
  text-decoration: none;
  background-color: unset;
}

.header__search-form-mobile .search-toggle {
  background-color: unset;
}

.mobile-menu-close {
  background-color: unset;
}

.header__search {
  height: 40px;
}

/* Подменю */
.header-content-bottom {
  display: flex;
  justify-content: space-between; /* категории слева, поиск справа */
  align-items: center;
  gap: 40px;
  max-width: 1320px;
  height: 45px;
  margin: 20px auto 10px;

}

.header-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.header-category {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #F6F6F6;
  border-radius: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 130%;
  color: #2F333F;
  text-decoration: none;
  transition: background 0.2s ease;
}

.header-category:hover {
  background: #e0e0e0;
}

.header__controls {
  margin-left: auto; /* прижимаем поиск и бургер вправо */
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 1200px) {
  .header-categories {
    display: none;
  }
}

.header__search #searchform {
  top: 0;
}

/* Footer */
.footer .footer-logo a {
  display: flex;
  align-items: center;   /* вертикальное выравнивание */
  gap: 8px;              /* расстояние между логотипом, чертой и текстом */
  text-decoration: none; /* убираем подчёркивание у ссылки */
}

.footer .logo-blog {
  color: #637D9B;        /* нужный цвет */
  font-size: 22px;       /* можно подогнать под макет */
  line-height: 1;        /* чтобы не было лишнего воздуха */
}

.footer-logo img {
  display: flex;
}

.footer-terms {
  display: inline-block;
  margin-top: 12px; /* отступ от логотипа */
  text-decoration: underline;
  color: #BABABA;
}
.footer-terms:hover {
  color: #BABABA; /* при наведении цвет не меняется */
}

/* ПК */
.footer__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 150%;
  color: #BABABA;
}

/* Планшет */
.footer-tablet {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 150%;
  color: #BABABA;
}
@media (max-width: 768px) {
  .footer__content { display: none; }
  .footer-tablet { display: grid; }
}

/* Мобила */
.footer-mobile {
  display: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 150%;
  color: #BABABA;
}
.footer-mobile a {
  text-decoration: underline;
  color: #BABABA;
}
@media (max-width: 375px) {
  .footer-tablet { display: none; }
  .footer-mobile { display: block; }
}

/* Email */
.footer-email {
  color: #BABABA;
  text-decoration: none !important;
}
.footer-email:hover {
  color: #BABABA; /* при наведении цвет не меняется */
}

/* Мобильный логотип */
.footer-mobile .footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px; /* небольшой отступ вниз */
}

.footer-mobile .footer-logo a {
  display: flex;
  align-items: center;
  gap: 8px; /* расстояние между картинкой и надписью "Блог" */
}
