@media (min-width: 320px) {

    html {
        font-size: 62.5%;
    }

}

@media (min-width:640px) {
    .forum-topics-list.swiper {
        overflow: inherit;

    }

    .forum-topics-list .swiper-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;

    }

    .forum-topics-list .swiper-slide {
        height: auto;
    }
}

@media (min-width: 1024px) {
    .container {
        width: 100%;
        max-width: 130rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin: 0 auto;
    }
}

.company__pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.company__logo.company__logo_m {
    display: none;
}

.company__rating,
.company__reviews,
.company__price {
    white-space: nowrap;
}

.company__info {
    align-items: center;
}

.company-stats {
    display: none;
}

.company,
.companies__head {
    grid-template-columns: .4fr 3fr .3fr .7fr 1fr 1.13fr;
}

.mob-rat {
    display: none;
}

.company__logo img {
    width: 6.7rem;
}
/* Пагинация для блока компаний */
.company-detail .companies__list~font.text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    font-size: 0;
    font-family: inherit;
}

.company-detail .companies__list~font.text a,
.company-detail .companies__list~font.text b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #2c3e50;
    border: 1px solid #e2e8f0;
    font-weight: normal;
}

.company-detail .companies__list~font.text b {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 500;
}

.company-detail .companies__list~font.text a:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
}

/* Скрываем текст-разделители */
.company-detail .companies__list~font.text .text,
.company-detail .companies__list~font.text br {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .company-detail .companies__list~font.text {
        gap: 6px;
        flex-wrap: wrap;
        padding: 0 16px;
    }

    .company-detail .companies__list~font.text a,
    .company-detail .companies__list~font.text b {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (max-width: 1290px) {

    .company,
    .companies__head {
        grid-template-columns: .4fr 3fr .3fr .7fr 1fr 1.4fr;
    }
}

@media (max-width: 1120px) {
    .company__tag {
        padding: 2px 6px;
        border-radius: 4px;
    }

    .company {
        gap: .5rem;
    }

    .company__tags {
        gap: 3px;
    }

    .company,
    .companies__head {
        grid-template-columns: .3fr 3fr .3fr .7fr .8fr 1.6fr;
    }
}

@media (max-width: 1024px) {
    .company__info {
        align-items: flex-start;
    }

    .company>.company__rating,
    .company>.company__reviews,
    .company>.company__price,
    .company>.company__actions {
        display: none;
    }

    .company-stats {
        display: flex;
    }

    .company-stats__items {
        display: flex;
        flex-direction: column;
        gap: 0px;
        font-size: 12px;
        padding-right: 30px;
        justify-content: center;
    }

    .company__actions .btn {
        white-space: nowrap;
    }

    .company__info {
        flex: 1;
    }

    .company__logo {
        display: inline-flex;

    }

    .company__logo img {
        width: 4.7rem;
    }

    .company__pos {
        position: relative;
        top: 4px;
    }

    .company {
        display: flex;
        align-items: stretch;
    }

    .company__name-wrapper {
        flex: 1;
        min-width: 0;
        max-width: 344px;
    }
}

@media (max-width: 840px) {

    .company__rating,
    .company__reviews,
    .company__price {
        font-size: 1.3rem;
    }

    .company-stats__items {
        margin-bottom: 10px;
        flex-direction: row;
        gap: 8px;
    }

    .company-stats {
        flex-direction: column;
    }

    .company-stats {
        padding-right: 10px;
    }
}

@media (max-width: 768px) {
    .company__pos {
        min-width: 36px;
    }

    .company__pos span {
        display: inline-block;
        padding-top: 8px;
    }

    .company__logo img {
        width: 5.7rem;
    }

    .company__tag,
    .company__rating,
    .company__reviews,
    .company__price {
        font-size: 14px;
    }

    .company__name-wrapper {
        max-width: 100%;
    }

    .company {
        position: relative;
        padding-top: 20px;
        padding-bottom: 20px;
        flex-wrap: wrap;
    }

    .company__pos img {
        width: 3.6rem;
    }

    .company-stats {
        padding-left: 111px;
        width: 100%;
        padding-right: 0;
        align-items: flex-start;
    }
}

@media (max-width:640px) {
    .swiper-wrapper{
        align-items: stretch;
    }
        .th-card{
            box-shadow: none!important;
        }
    .forum-topics-list .swiper-slide{
        height: auto;
    }
    .company__logo {
        display: none;
    }

    .company__logo.company__logo_m {
        display: inline-flex;
    }

    .mob-rat {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }

    .company-stats__items {
        display: none;
    }

    .company-stats {
        margin-top: 10px;
    }

    .company__name {
        display: flex;
        align-items: center;
        gap: 15px;
        min-height: 57px;
    }

    .company__pos {
        align-items: flex-start;
    }

    .company-stats {
        padding-left: 0;
    }

    .company__info {
        flex-direction: column;

    }

    .company__logo {
        padding-left: 50px;
    }

    .company__pos {
        position: absolute;
        top: 27px;
    }
}

/* 
.company__tiles {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.company__p-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.company__info{
    flex: 1;
}
@media (min-width: 320px) {
    html {
        font-size: 62.5%;
    }
}

@media (min-width: 1024px) {
    .container {
        width: 100%;
        max-width: 130rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin: 0 auto;
    }

    .company {
        display: flex;
        padding: 1rem 1.4rem;
    }

    .company__pos {
        flex-shrink: 0;
    }

    .company__actions {
        flex-shrink: 0;
    }

    .company__rating,
    .company__reviews,
    .company__price {
        flex-shrink: 0;
    }
}

@media (max-width: 1024px) {
    .header__nav {
        flex-direction: row;
        gap: 15px;
    }
}

@media (min-width: 1280px) {
    .container {
        width: 100%;
        max-width: 150rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin: 0 auto;
    }
}

@media (min-width: 1366px) {
    html {
        font-size: 62.5%;
    }
}

@media (max-width:2400px) {
    .companies__head {
        font-weight: 400;
    }

    .btn {
        font-size: 1.6rem;
    }

    .company__logo {
        width: 75px;
    }

    .company__logo img {
        width: 100%;
    }

    .company__tag {
        font-size: 1.4rem;
    }
}

@media (max-width: 1140px) {
    .company__tag {
        display: inline-block;
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        padding: 2px 4px;
        font-size: 12px;
        line-height: 1.4;
        font-size: 1.2rem;
        color: #333333;
        white-space: nowrap;
    }

    .company__tags {
        gap: 4px;
    }

    .company__info {
        align-items: center;
    }

    .company__logo {
        width: 57px;
    }

    .company__actions .btn {
        font-size: 1.4rem;
    }
        .company__tiles{
            gap:8px;
        }
}
@media (max-width: 1054px) {
    .company{
        grid-column-gap: 5px;
    }
    .company__rating,.company__reviews,.company__price{
        font-size: 1.3rem;
    }
        .company__name-wrapper {
         
            max-width: 332px;
        }
        .company__actions{
            flex: 1;
        }
}
@media (max-width: 1023px) {
    .company{
        display:flex ;
        align-items: flex-start;
        padding: 20px;
    }
        .company__pos img{
            width: 66px;
        }
} */