/* ============ Правила без медиа-запросов ============ */

/* Убираем/уменьшаем верхний отступ, если нужно */
.header__bg-text {
  margin-top: 0 !important; /* или другой нужный размер */
}

/* Исправляем опечатку в названии класса */
.menu__logo {
  margin-right: 14px; /* вместо .nemu__logo */
}

/* Остальные ваши общие стили (если есть) */
section {
  overflow-x: hidden;
}

/* ============ Ниже — объединённые медиа-запросы ============ */


/* ==================== max-width: 1919px ==================== */
@media (max-width: 1919px) {
    .container {
        padding: 0 40px;
    }
    .header__bg-text, .news__bg-text {
        font-size: 280px;
    }
    .news__second {
        grid-template-columns: repeat(3, 306px);
        margin-right: -40px;
    }
    .slider__footer {
        margin-right: -40px;
    }
    .robook {
        width: 25%;
    }
    .menu__robook {
        top: 170px;
        width: 200px;
    }
    .menu__content-wrapper {
        grid-template-columns: 482px 760px;
    }
    .menu__content-nav {
        grid-row: span 2;
    }
    .menu__content-media {
        width: 521px;
        justify-self: center;
    }
    .menu__header {
        padding-left: 25px;
        padding-right: 25px;
    }
    .menu__header-link {
        font-size: 16px;
        line-height: 20px;
    }
    .menu__close {
        right: 110px;
    }

    /* Второй блок, ранее дублировался в другом месте */
    .accordion__content {
        -ms-grid-columns: 400px auto;
        grid-template-columns: 400px auto;
    }
    .accordion__content-wrapper {
        -ms-grid-columns: auto 421px;
        grid-template-columns: auto 421px;
    }
    .accordion__slider-slide {
        width: 321px !important;
    }
    .accordion__top {
        -ms-grid-columns: auto 421px;
        grid-template-columns: auto 421px;
    }
    .accordion__top-text {
        font-size: 16px;
    }
    .accordion__longslide-title {
        font-size: 46px;
    }
    .itc-slider-item {
        width: 400px;
    }
    .itc-slider-item img,
    .itc-slider-item iframe {
        width: 350px;
        height: 490px;
    }
    .accordion__grid {
        margin-right: 0;
    }
    .accordion__bottom {
        margin: 0;
    }
    .accordion__bottom-title {
        font-size: 40px;
    }
    .logo__bg-text {
        font-size: 280px;
        line-height: 280px;
    }
}

/* ==================== max-width: 1439px ==================== */
@media (max-width: 1439px) {
    .navigation__text {
        display: none;
    }
    .header__bg-text, .news__bg-text {
        font-size: 200px;
    }
    .blogs__wrap {
        grid-template-columns: repeat(2, 441px);
    }
    .news__items {
        grid-template-columns: 234px 520px 160px;
        gap: 15px;
    }
    .news__item-title {
        font-size: 42px;
        line-height: 40px;
    }
    .news__media {
        grid-template-columns: repeat(2, 256px);
        gap: 8px;
    }
    .news__media-iframe {
        width: 100%;
        height: 360px;
    }
    .news__text {
        font-size: 16px;
        line-height: 20px;
    }
    .news__nav-item {
        font-size: 18px;
        line-height: 18px;
    }
    .news__second {
        grid-template-columns: repeat(3, 240px);
    }
    .news__signature {
        font-size: 18px;
        line-height: 24px;
    }
    #swiper-news {
        width: 660px;
        height: 360px;
    }
    .swipper-iframe {
        width: 520px;
        height: 360px;
    }
    .slider__footer-wrapper {
        height: 395px;
    }
    .slider__footer-slide {
        height: 295px;
    }
    .slider__footer-prev {
        left: 43%;
    }
    .slider__footer-next {
        right: 43%;
    }
    .post__new {
        flex-direction: column;
    }
    .form {
        column-gap: 20px;
    }
    .post__new-title {
        margin-right: 0;
    }
    .post-slide {
        max-width: 232px;
    }
    .post-prev, .post-next {
        top: 180px;
    }
    .robook {
        width: 20%;
    }
    .project__content {
        grid-template-columns: repeat(2, 440px);
    }
    .faq__item-wrapper {
        grid-template-columns: 658px;
        justify-content: center;
    }
    .faq__item-left {
        width: 100%;
        margin-top: 16px;
        grid-row-start: 2;
    }
    .faq__item-right {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        margin-top: 24px;
    }
    .faq__btn-recreate {
        margin-bottom: 0;
    }
    .files {
        margin-left: 0;
        margin-right: 0;
    }
    .files__download-btn,
    .files__download-text,
    .function__item-label,
    .function__item-input {
        font-size: 12px;
    }
    .function__item-input {
        padding: 6px 12px;
    }
    .footer {
        margin-top: -295px;
    }
    .footer__item {
        flex-direction: column;
        align-items: center;
    }
    .footer__title {
        margin-bottom: 16px;
        text-align: center;
    }
    .footer__item-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 32px;
    }
    .footer__menu:nth-child(2n+2) {
        border: none;
    }
    .menu__content-wrapper {
        grid-template-columns: 1fr;
    }
    .menu__head-content {
        border-bottom: 1px solid #CEE6F2;
        border-left: 1px solid #CEE6F2;
    }
    .menu__content {
        margin-top: -150px;
        margin-right: 25px;
        margin-left: 25px;
    }
    .menu__close {
        right: 0;
    }
    .menu__robook {
        display: none;
    }
    .menu__header-item {
        margin-right: 15px;
    }
    .postCreated__wrap {
        padding: 0 15px;
    }
    .postCreated__slider {
        margin-right: 0;
        margin-left: 0;
    }
    .posting__checkmark {
        left: -45px;
        bottom: 15px;
    }

    /* Второй блок (раньше был отдельно) */
    .logo__bg-text {
        font-size: 200px;
        line-height: 200px;
    }
    .accordion__content-nav {
        position: static;
    }
    .accordion__robo {
        display: none;
    }
}

/* ==================== max-width: 1023px ==================== */
@media (max-width: 1023px) {
    .header__bg-text, .news__bg-text {
        font-size: 150px !important;
    }
    .blogs__wrap {
        grid-template-columns: 441px;
    }
    .news__items {
        grid-template-columns: 1fr;
    }
    .news__items img:focus {
        transform: scale(1.35);
    }
    .project__content img:focus {
        transform: scale(1.35);
    }
    .nav {
        grid-row-start: 1;
    }
    .news__nav-item {
        margin-bottom: 20px;
    }
    .news__item-content {
        align-items: center;
    }
    .news__media {
        justify-content: center;
    }
    .news__second {
        grid-template-columns: repeat(3, 228px);
        grid-column: span 1;
        margin-right: 0;
    }
    .news__slider {
        width: 100%;
        margin: 0;
    }
    .slider__footer {
        margin-right: 0;
    }
    .news__item-last {
        grid-column: span 2;
    }
    .form {
        grid-template-columns: 1fr;
    }
    .form__error {
        grid-column: span 1;
    }
    .prevForm-error {
        left: 0;
    }
    .post-slide {
        max-width: 254px;
        height: 180px;
    }
    .post-slide img, .post-slide iframe {
        height: 88px;
        padding: 10px 0;
    }
    .post-subtext {
        font-size: 12px;
        line-height: 14px;
    }
    .post-prev, .post-next {
        top: 156px;
        padding: 6px 14.5px;
    }
    .post-swiper {
        margin-right: 65px;
        margin-left: 65px;
    }
    .files__wrap {
        grid-template-columns: 1fr 1fr;
    }
    .files__telegram-load {
        grid-column: span 2;
    }
    .robook {
        display: none;
    }
    .project__content {
        grid-template-columns: 440px;
    }
    .project__my {
        flex-direction: column;
    }
    .project__my-title {
        margin-bottom: 24px;
    }
    .functions {
        grid-template-columns: repeat(2, 1fr);
    }
    .files__download-btn,
    .files__download-text,
    .function__item-label,
    .function__item-input,
    .posting__item-text {
        font-size: 10px;
    }
    .posting {
        grid-template-columns: repeat(2, 1fr);
    }
    .post__back {
        flex-direction: column;
    }
    .post__back-advertising {
        margin-top: 10px;
    }
    .footer__wrapper {
        padding-top: 200px;
    }
    .footer__title {
        font-size: 22px;
    }
    .menu__close {
        width: 50px;
        height: 50px;
    }
    .navigation {
        padding-right: 20px;
        padding-left: 20px;
    }

    /* Второй блок (раньше был отдельно) */
    .stages__wrap {
        margin-top: 150rem;
    }
    .accordion {
        margin-top: -150px;
    }
    .accordion__wrapper {
        padding-right: 16px;
        padding-left: 16px;
        padding-bottom: 0;
    }
    .accordion__top {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    .accordion__content-wrapper {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        margin-right: 0;
    }
    .accordion__content-media {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        width: 100%;
    }
    .accordion__slider {
        width: 321px;
    }
    .accordion__content-basic {
        padding: 0 16px;
    }
    .accordion__longslide {
        margin-right: -16px;
    }
    .accordion__slider-slide {
        width: 221px !important;
    }
    .accordion__grid {
        gap: 16px;
    }
    .accordion__grid-svg {
        margin-right: 16px;
    }
    .accordion__grid-text {
        font-size: 12px;
        line-height: 16px;
    }
    .accordion__bottom {
        gap: 16px;
    }
    .accordion__bottom-title {
        font-size: 30px;
        line-height: 36px;
    }
    .itc-slider-item {
        width: 320px;
    }
    .itc-slider-item img,
    .itc-slider-item iframe {
        width: 290px;
        height: 406px;
    }
    .itc-slider-text {
        font-size: 12px;
        line-height: 16px;
    }
    .logo__bg {
        top: -80px;
    }
    .logo__bg-text {
        font-size: 150px;
        line-height: 150px;
    }
}

/* ==================== max-width: 767px ==================== */
@media (max-width: 767px) {
    /* === Уменьшенные боковые отступы === */
    .container {
        padding: 0 10px !important;
    }
    .header__wrap {
        padding-top: 112px;
    }
    .header__nav {
        padding-bottom: 80px;
    }
    .header__list {
        flex-direction: column;
    }

    /* === Увеличенные шрифты заголовков === */
    .header__bg-text, .news__bg-text {
        font-size: 100px !important;
        line-height: 110px !important;
    }

    .blogs__wrap {
        grid-template-columns: 1fr;
    }
    .blogs__img {
        text-align: center;
    }
    .blogs__img-img,
    .blogs__img-iframe {
        width: 385px;
        height: 460px;
    }

    .news__items {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .news__items img:focus {
        transform: scale(1.3);
    }
    .project__content img:focus {
        transform: scale(1.3);
    }
    .news__item {
        grid-column: 1 / -1;
    }
    .news__item:first-child {
        grid-column: span 1;
    }
    .nav {
        margin-bottom: 10px;
    }
    .news__nav-item {
        margin-bottom: 10px;
    }
    .news__item-title {
        margin-bottom: 15px;
    }
    .news__text {
        font-size: 16px !important;
        line-height: 22px !important;
    }
    .news__media {
        grid-template-columns: 385px;
    }
    .news__text-sub {
        margin-bottom: 15px;
    }
    .news__iframe {
        width: 385px;
        height: 265px;
    }
    .news__second {
        grid-template-columns: 385px;
        justify-content: center;
        margin-right: 0;
    }
    .news__scroll {
        height: 200px;
    }
    .news__slider {
        margin-left: -20px;
        margin-right: -20px;
    }
    #swiper-news {
        width: 425px;
        height: 210px;
        margin-left: -20px;
    }
    .swipper-iframe {
        width: 385px;
        height: 100%;
        margin: 0 20px;
    }
    .news__slider-prev,
    .news__slider-next {
        padding: 0 9px;
    }
    .slider__footer-prev {
        left: 25%;
    }
    .slider__footer-next {
        right: 25%;
    }
    .slider__footer {
        grid-column: span 1;
        margin-right: -20px;
        margin-left: -20px;
    }
    .slider__footer-wrapper {
        width: 425px;
        height: 300px;
    }
    .slider__footer-slide {
        height: 170px;
    }

    .post__new-title {
        min-width: 290px;
        font-size: 20px !important;
        line-height: 24px !important;
    }
    .faq__item {
        width: 355px;
    }
    .post__back-link,
    .post__new-text {
        font-size: 14px !important;
        line-height: 18px !important;
    }
    .postNews__content {
        flex-direction: column;
    }
    .postNews__select {
        width: 100%;
        margin-bottom: 10px;
    }
    .post__footer-wrap {
        flex-direction: column;
    }
    .post__footer-p {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 20px;
    }
    .post__footer-btn {
        display: none;
    }
    .postNews__title {
        font-size: 20px;
        line-height: 26px;
    }
    .files__wrap {
        grid-template-columns: 1fr;
    }
    .files {
        margin: 0;
    }
    .files__telegram-load {
        grid-column: span 1;
    }
    .error {
        font-size: 10px;
        line-height: 12px;
    }
    .post-prev, .post-next {
        top: 170px;
        padding: 6px 14.5px;
    }
    .post-slide {
        max-width: 215px;
    }
    .postNews__item-textarea,
    .form__textarea {
        padding: 9px 6px 9px 16px;
        font-size: 14px !important;
        line-height: 18px !important;
    }
    .postNews__clue {
        left: -30px;
    }
    .project__my-items {
        flex-direction: column;
        align-items: flex-start;
    }
    .project__my-item {
        margin-bottom: 24px;
    }
    .project__content {
        grid-template-columns: auto;
    }
    .faq__item-wrapper {
        grid-template-columns: 355px;
    }
    .now__item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .posting__item-add {
        margin-top: 0;
    }
    .now__item {
        margin-bottom: 20px;
    }
    .functions,
    .posting {
        grid-template-columns: 1fr;
    }
    .files__items {
        grid-template-columns: 1fr;
    }
    .files__item {
        margin-bottom: 20px;
    }
    .footer {
        margin-top: -210px;
    }
    .footer__wrapper {
        padding-top: 110px;
    }
    .footer__btn-text {
        margin-right: 0;
    }
    .footer__btn-btn {
        display: none;
    }
    .footer__item-grid {
        grid-template-columns: 1fr;
    }
    .footer__menu {
        border: none;
    }
    .footer__item-title {
        font-size: 40px;
        line-height: 48px;
    }
    .footer-rights__wrapper {
        flex-direction: column;
    }
    .footer__right:first-child {
        margin-bottom: 16px;
    }
    .menu__header-list {
        flex-direction: column;
    }
    .menu__header-item {
        max-width: 375px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .menu__content {
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
    }
    .menu__content-media {
        width: 425px;
    }
    .navigation__menu {
        margin-right: 10px;
    }
    .navigation__registration {
        margin-right: 20px;
    }
    .navigation__autosmm {
        padding-left: 14px;
    }
    .menu__logo {
        margin-right: 14px; /* исправили nemu__logo */
    }
    .menu__link {
        padding-left: 14px;
        font-size: 12px !important;
        line-height: 16px !important;
    }
    .menu__slider-slide {
        width: 325px !important;
    }
    .menu__content-basic {
        padding-right: 20px;
        padding-left: 20px;
    }
    .menu__slider-title {
        font-size: 20px;
        line-height: 24px;
    }
    .menu__slider-text {
        font-size: 14px;
        line-height: 18px;
    }
    .menu__slider-link {
        font-size: 12px !important;
        line-height: 16px !important;
    }
    .basic__item-text {
        font-size: 14px;
        line-height: 18px;
    }
    .menu__head-h {
        font-size: 12px;
        line-height: 18px;
    }
    .menu__head-list {
        font-size: 12px;
        line-height: 18px;
    }
    .posting__checkmark {
        left: 90%;
    }
    .postNews__content-textarea {
        padding: 6px;
    }
    .post__back-arrow {
        padding: 10px 12px;
    }
    .btn-submit {
        margin-top: 0;
        margin-bottom: 20px;
    }
}

/* ==================== max-width: 424px ==================== */
@media (max-width: 424px) {
    .container {
        padding: 0 10px !important;
    }
    .header__wrap {
        padding-top: 183px;
    }
    .modal-form__submit span {
        width: 226px;
    }
    .header__logo-title {
        font-size: 40px;
        line-height: 40px;
    }
    .header__logo {
        margin-bottom: 30px;
    }
    .header__list {
        flex-direction: column;
    }
    .header__bg-text, .news__bg-text {
        font-size: 80px !important;
        line-height: 88px !important;
    }
    .header__list-btn {
        font-size: 16px !important;
        line-height: 20px !important;
    }
    .blogs__wrap {
        grid-template-columns: 280px;
    }
    .blogs__img-img, .blogs__img-iframe {
        width: 280px;
        height: 335px;
    }
    .blogs__content-title {
        font-size: 24px;
        line-height: 24px;
    }
    .blogs__content-text {
        font-size: 14px !important;
        line-height: 20px !important;
    }
    .blogs__content-link {
        font-size: 14px !important;
        line-height: 18px !important;
    }
    .news__items {
        grid-template-columns: 280px;
        gap: 0;
        justify-content: center;
    }
    .news__items:first-child {
        margin-top: 200px;
    }
    .news__media {
        grid-template-columns: 280px;
    }
    .news__iframe {
        width: 280px;
    }
    .news__second {
        grid-template-columns: 280px;
        gap: 25px;
    }
    #swiper-news {
        width: 320px;
        height: 160px;
    }
    .swipper-iframe {
        width: 280px;
        margin: 0 20px;
    }
    .news__nav-item {
        font-size: 16px !important;
        line-height: 20px !important;
    }
    .news__item-title {
        font-size: 36px;
        line-height: 30px;
    }
    .news__text {
        font-size: 16px !important;
        line-height: 22px !important;
    }
    .news__signature {
        font-size: 20px !important;
        line-height: 24px !important;
    }
    .faq {
        margin: 0 5px;
    }
    .news__text-sub {
        width: 270px;
    }
    .faq__item {
        width: 270px;
    }
    .faq__item-svg {
        display: none;
    }
    .faq__item-title p {
        margin-right: 0;
    }
    .ui-accordion .ui-accordion-content {
        padding-left: 0;
    }
    .faq__item-text {
        font-size: 14px !important;
        line-height: 18px !important;
    }
    .form__select {
        width: 250px;
    }
    .postNews__title {
        font-size: 16px !important;
        line-height: 20px !important;
    }
    .postNews__slider {
        margin-right: -15px;
        margin-left: -15px;
    }
    .post-swiper {
        margin-right: 35px;
        margin-left: 35px;
    }
    .post-prev, .post-next {
        top: 145px;
        padding: 0px 8.5px;
    }
    .post-prev {
        left: -15px;
    }
    .post-next {
        right: -15px;
    }
    .post-slide {
        max-width: 201px;
    }
    .post__footer-p {
        font-size: 12px !important;
        line-height: 16px !important;
    }
    .project__footer-page {
        margin-right: 8px;
        padding: 8px 15px;
    }
    .faq__item-wrapper {
        grid-template-columns: 270px;
    }
    .postCreated-item {
        padding: 0;
    }
    .postNews__content-textarea {
        width: 220px;
    }
    .btn-submit {
        width: 250px;
    }
    .function__item-input {
        padding: 6px 6px;
    }
    .footer__title {
        font-size: 16px;
    }
    .footer__btn-text {
        width: 300px;
        height: 80px;
    }
    .footer__menu {
        padding: 0;
    }
    .footer__item-title {
        font-size: 32px;
        line-height: 40px;
    }
    .footer__right, .footer__rights-link {
        font-size: 10px;
    }
    .menu__content {
        margin-right: 0;
        margin-left: 0;
        margin-top: 45px;
    }
    .menu__content-media {
        width: 320px;
    }
    .menu__slider-slide {
        width: 220px !important;
    }
    .menu__head-plus {
        display: none;
    }
    .menu__head-title {
        margin-right: 0;
    }
    .basic__title {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 16px;
    }
    .basic__text {
        font-size: 14px;
        line-height: 18px;
    }
    .basic__btn {
        padding-left: 10px;
        padding-right: 10px;
    }
    .basic__btn svg {
        width: 48px;
        margin-left: 10px;
    }
    .navigation {
        height: auto;
        padding-left: 70px;
        padding-right: 70px;
    }
    .navigation__wrapper {
        flex-direction: column;
        align-items: center;
    }
    .navigation__menu, .navigation__registration {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .navigation__autosmm {
        padding-left: 0;
    }
    .logo__bg {
        top: -40px;
    }
    .logo__bg-text {
        font-size: 60px;
        line-height: 60px;
    }
    /* Карточки делаем гридом */
.blogs__wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  gap: 30px;
}

/* При желании корректируем брейкпоинты,
   сохранив ваш подход со 2-мя, 1-й колонкой и т.д. */
@media (max-width: 1439px) {
  .blogs__wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .blogs__wrap {
    grid-template-columns: 1fr;
  }
}

/* Сами карточки */
.blogs__item {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: #fff;
  /* Подойдет и без фиксированной высоты */
}

/* Блок для изображения/видео */
.blogs__item .blogs__img {
  width: 100%;
  height: 220px; /* фиксируем высоту под ваш вкус */
  overflow: hidden;
  margin-bottom: 10px;
}
.blogs__img-img,
.blogs__img-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Контентный блок, где текст и ссылка */
.blogs__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

/* Ограничиваем количество строк основного текста
   либо ставим min-height/overflow, чтобы все карточки были одной высоты */
.blogs__content-text {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* кол-во строк, например 4 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
  /* без фиксированной высоты, но с обрезкой строк */
}

}
