/**
 * Partners Section Styles
 * Стили секции "Наши партнеры" согласно дизайну Figma
 */

.partners {
    display: flex;
    background-color: var(--berloga-blue);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
}

.partners__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    min-height: fit-content;
}

/* Левая колонка с заголовком и описанием */
.partners__intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* padding: 10px; */
}

.partners__title {
    color: var(--berloga-white);
    font-family: var(--h3-font-family);
    font-size: var(--h3-font-size);
    font-weight: var(--h3-font-weight);
    line-height: var(--h3-line-height);
    text-align: left;
    margin: 0;
    /* margin-bottom: 10px; */
}

.partners__description {
    color: var(--berloga-white);
    font-family: var(--regular-text-font-family);
    font-size: var(--regular-text-font-size);
    font-weight: var(--regular-text-font-weight);
    line-height: var(--regular-text-line-height);
    letter-spacing: var(--regular-text-letter-spacing);
    margin: 0;
    width: 301px;
    margin-bottom: 10px;
}

.partners__divider {
    width: 284px;
    height: 2px;
    background-color: var(--berloga-white);
    margin: 0;
}

/* Список партнеров */
.partners__list {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex: 2 1 0;
    align-items: center;
    width: 100%;
}

/* Карточка партнера */
.partners__card {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
}

.partners__logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
}

.partners__logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 0;
}

/* Особый размер для Dog Active логотипа */
/* .partners__card:last-child .partners__logo-img {
    width: 75px;
    height: 100px;
} */

.partners__info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-start;
}

.partners__name {
    margin: 0;
    padding: 0;
    font-size: 0; /* Сбрасываем для ссылки */
    
}

.partners .partners__container .partners__list .partners__card .partners__info .partners__name .partners__link {
    color: var(--berloga-white);
    font-family: var(--h3-font-family);
    font-size: var(--h3-font-size);
    font-weight: var(--h3-font-weight);
    line-height: var(--h3-line-height);
    /* text-decoration: underline;
    text-decoration-style: solid;
    text-underline-position: from-font; */
    display: block;
    transition: color 0.3s ease;
}

.partners__link:hover {
    color: var(--berloga-pink);
    text-decoration: underline;
}

.partners__text {
    color: var(--berloga-white);
    font-family: var(--font-nunito);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.64px;
    margin: 0;
}
@media (max-width: 1320px) {
    .partners__container {
        padding: 60px 20px;
    }
}
/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .partners__container {
        padding: 50px 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .partners__intro {
        flex: 1 1 0;
        width: 100%;
        /* max-width: 500px; */
        align-items: center;
    }
    
    .partners__description {
        width: 100%;
        max-width: 400px;
    }
    
    .partners__divider {
        align-self: center;
    }
    
    .partners__list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .partners__card {
        flex: 1;
        /* max-width: 380px; */
        /* flex-direction: column; */
        /* text-align: center; */
        /* align-items: center; */
        /* gap: 15px; */
    }
    .partners__text{
        font-size: 14px;
    }
    /* .partners__info {
        align-items: center;
    } */
}

/* Mobile Styles (до 768px) */
@media (max-width: 768px) {
    .partners__container {
        padding: 40px 20px;
        /* gap: 30px; */
    }
    
    /* .partners__title {
        font-size: 20px;
    } */
    
    /* .partners__description {
        font-size: 14px;
        line-height: 18px;
    } */

    .partners__intro {
        align-items: flex-start;
    }
    
    .partners__list {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    
    .partners__card {
        max-width: 100%;
        gap: 15px;
    }
    
    .partners__logo-img,
    .partners__card:last-child .partners__logo-img {
        width: 80px;
        height: 80px;
    }
    
    .partners__link {
        font-size: 24px;
    }
    
    .partners__text {
        font-size: 14px;
        line-height: 18px;
    }
}

/* Small Mobile (до 480px) */
@media (max-width: 480px) {
    .partners__container {
        padding: 30px 20px;
    }
    
    .partners .partners__container .partners__list .partners__card .partners__info .partners__name .partners__link {
        font-size: 20px;
    }
    
    .partners__link {
        font-size: 20px;
    }
}

/* h2 заголовок теперь наследует стили из typography.css */ 