/* Стили для страницы embroidery */
/* Скопировано с tezis-shop.ru */

/* Основные стили для страницы embroidery */
.main__embroidery {
    padding: 0 0 81px;
}

@media (max-width: 1199px) {
    .main__embroidery {
        padding: 0 0 52px;
    }
}

.embroidery-page {
    display: flex;
    flex-direction: column;
    gap: 81px;
}

@media (max-width: 1199px) {
    .embroidery-page {
        gap: 40px;
    }
}

/* Head banner — та же структура и картинка, что на главной */
.embroidery-page__head.common-block .common-block__section-title {
    margin-bottom: 18px;
}

.embroidery-page__head .common-block__list {
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.embroidery-page__head .head__list-item {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.embroidery-page__head .head__list-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #715399;
    font-size: 24px;
    line-height: 1;
}

/* Section title */
.section-title {
    font-size: 35px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 30px;
}

@media (max-width: 1199px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
}

/* Factors section */
.embroidery-page__factors {
    margin-bottom: 81px;
}

@media (max-width: 1199px) {
    .embroidery-page__factors {
        margin-bottom: 40px;
    }
}

.factors__list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

@media (max-width: 1199px) {
    .factors__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.factors__item {
    padding: 30px;
    background-color: #f5f5f5;
}

.factors__title {
    font-size: 25px;
    font-weight: 400;
    line-height: 1.4;
    color: #715399;
    margin-top: 0;
    margin-bottom: 15px;
}

.factors__text {
    font-size: 19px;
    line-height: 1.4;
    margin: 0;
}

/* Ideas section */
.embroidery-page__ideas {
    margin-bottom: 81px;
}

@media (max-width: 1199px) {
    .embroidery-page__ideas {
        margin-bottom: 40px;
    }
}

.ideas__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
}

@media (max-width: 1199px) {
    .ideas__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

.ideas__list {
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 26px;
}

@media (max-width: 1199px) {
    .ideas__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .ideas__list {
        grid-template-columns: 1fr;
    }
}

.ideas__item {
    text-align: center;
}

.ideas__img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 15px;
    border-bottom: 4px solid #715399;
}

.ideas__img-wrap .ideas__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
}

.ideas__name {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 15px;
    color: #000;
}

.ideas__link {
    display: inline-block;
}

.ideas__text {
    font-size: 19px;
    line-height: 1.4;
    margin: 20px 0;
}

/* Clients section */
.embroidery-page__clients {
    margin-bottom: 81px;
}

@media (max-width: 1199px) {
    .embroidery-page__clients {
        margin-bottom: 40px;
    }
}

.clients__text {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.clients__brands {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

@media (max-width: 1199px) {
    .clients__brands {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .clients__brands {
        grid-template-columns: repeat(2, 1fr);
    }
}

.clients__brand-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.clients__brand-img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Button styles */
.button {
    display: inline-block;
    width: -moz-max-content;
    width: max-content;
    min-height: auto;
    padding: 15px 34px 17px;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.42;
    color: #fff;
    white-space: nowrap;
    background-color: #000;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 0;
    overflow: hidden;
    outline: 0;
    transition: all .3s ease-in;
    border: none;
}

.button--purple {
    background-color: #715399;
}

.button--outline {
    background-color: transparent;
    border: 2px solid #715399;
    color: #715399;
    padding: 13px 32px 15px;
}

.button--outline:hover {
    background-color: #715399;
    color: #fff;
}

@media (min-width: 1200px) {
    .button--purple::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        width: 300%;
        height: 100%;
        background: linear-gradient(90deg, #715399 20%, #a36bdc);
        transition: transform .3s ease-in;
        transform: translateX(-100%);
    }
    
    .button--purple:hover::before {
        transform: translateX(0);
    }
}

.button:hover {
    color: #fff;
    text-decoration: none;
}

/* Visually hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}



