/* Collections intro block */

.collections-intro {
    width: 100%;
    background: #FAFAFA; /* фон блока "Коллекции" делаем светло-серым */
    padding: 120px 0 40px;
}

.collections-intro__wrapper {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 180px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.collections-intro__eyebrow {
    grid-column: 1 / 2;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4.8px;
    text-transform: uppercase;
    color: #ACACAC;
    margin: 0;
}

.collections-intro__title {
    grid-column: 1 / 2;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    color: #0C181A;
    margin: 0;
}

.collections-intro__title-accent {
    font-style: italic;
}

.collections-intro__description {
    grid-column: 2 / 3;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #3D3D3D;
    margin: 0;
}

@media screen and (max-width: 1599px) {
    .collections-intro__wrapper {
        padding: 0 100px;
    }
}

@media screen and (max-width: 1199px) {
    .collections-intro {
        padding: 80px 0 32px;
    }
    
    .collections-intro__wrapper {
        flex-direction: column;
        padding: 0 50px;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .collections-intro__title {
        color: var(--Garda_Black-Color, #0C181A);
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 30px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%; /* 33px */
        text-transform: uppercase;
    }
    
    .collections-intro__description {
        grid-column: 1 / 2;
        color: var(--Garda-Deep-Grey-text, #3D3D3D);
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%; /* 24px */
    }
}

/* Mobile (640px и меньше) */
@media screen and (max-width: 639px) {
    .collections-intro {
        padding: 60px 0 24px;
    }
    
    .collections-intro__wrapper {
        padding: 0 20px;
        gap: 32px;
        flex-direction: column;
    }
    
    .collections-intro__eyebrow {
        font-size: 10px;
        letter-spacing: 2.4px;
    }
    
    .collections-intro__title {
        color: var(--Garda_Black-Color, #0C181A);
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 30px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%; /* 33px */
        text-transform: uppercase;
    }
    
    .collections-intro__description {
        color: var(--Garda-Deep-Grey-text, #3D3D3D);
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%; /* 24px */
    }
}

/* Small Mobile (480px и меньше) */
@media screen and (max-width: 479px) {
    .collections-intro {
        padding: 48px 0 20px;
    }
    
    .collections-intro__wrapper {
        padding: 0 16px;
        gap: 24px;
    }
    
    .collections-intro__eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }
    
    .collections-intro__title {
        color: var(--Garda_Black-Color, #0C181A);
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 30px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%; /* 33px */
        text-transform: uppercase;
    }
    
    .collections-intro__description {
        color: var(--Garda-Deep-Grey-text, #3D3D3D);
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%; /* 24px */
    }
}

/* Collections grid */

.collections-grid-section {
    width: 100%;
    background: #FAFAFA; /* делаем фон сетки коллекций серым */
    padding: 100px 0 100px;
}

.collections-grid-section__wrapper {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 clamp(20px, 8vw, 180px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collections-card {
    position: relative;
}

.collections-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.collections-card__image {
    position: relative;
    width: 100%;
    padding-top: 128%;
    border-radius: 12px;
    overflow: hidden;
    background: #F6F6F6;
    box-shadow: 0px 25px 50px 0px rgba(0, 0, 0, 0.2);
}

.collections-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collections-card__tags {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 1;
}

.collections-card__tag {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.12;
    text-transform: none;
    color: #0C181A;
    white-space: nowrap;
}

/* Блок с цветами с эффектом backdrop blur (как в Figma) */
/* TODO: вернуть когда наладим связь
.collections-card__colors {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2;
}

.collections-card__color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}
*/

.collections-card__arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    margin-bottom: 16px;
}

.collections-card__arrow svg {
    width: 48px;
    height: 48px;
}

.collections-card__title {
    position: absolute;
    bottom: 60px; /* Над плашкой с цветом */
    left: 18px;
    margin: 0;
    color: rgba(242, 242, 242, 1); /* Белый с 5% в сторону серого */
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 112%; /* 26.88px */
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* На десктопе название двумя строками */
.collections-card__title-line {
    display: block;
}

/* На мобилке название на изображении */
@media screen and (max-width: 1199px) {
    .collections-card__title {
        position: absolute;
        left: 12px;
        bottom: 60px; /* Над плашкой с цветом */
        margin: 0;
        color: rgba(242, 242, 242, 1); /* Белый с 5% в сторону серого */
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 30px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%;
        text-transform: uppercase;
        z-index: 2;
        display: flex;
        flex-direction: column;
    }
    
    .collections-card__title-line {
        display: block;
    }
}

.collections-grid-section__action {
    text-align: center;
    margin-top: 65px;
}

.collections-grid-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #0C181A;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
    color: #0C181A;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.collections-grid-section__button:hover {
    background: #0C181A;
    color: #FFFFFF;
}

/* Tablet (до 1024px) */
@media screen and (max-width: 1023px) {
    .collections-grid-section__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (640px и меньше) */
@media screen and (max-width: 639px) {
    .collections-grid-section {
        padding: 32px 0 60px;
    }
    
    .collections-grid-section__wrapper {
        padding: 0 20px;
        gap: 24px;
        grid-template-columns: 1fr;
    }
    
    .collections-card__image {
        padding-top: 120%;
        border-radius: 8px;
    }
    
    .collections-card__tags {
        top: 12px;
        left: 12px;
        gap: 6px;
    }
    
    .collections-card__tag {
        padding: 5px 10px;
        font-size: 12px;
        font-weight: 400;
        border-radius: 22px;
        background: rgba(255, 255, 255, 1);
        color: #0C181A;
    }
    
    /* TODO: вернуть когда наладим связь
    .collections-card__colors {
        left: 12px;
        bottom: 12px;
        top: auto;
        gap: 5px;
        padding: 8px;
    }
    
    .collections-card__color-swatch {
        width: 24px;
        height: 24px;
        border-radius: 5px;
    }
    */
    
    .collections-card__arrow {
        right: 12px;
        bottom: 12px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .collections-card__arrow svg {
        width: 48px;
        height: 48px;
    }
    
    .collections-card__title {
        position: absolute;
        left: 12px;
        bottom: 60px; /* Над плашкой с цветом */
        margin: 0;
        color: rgba(242, 242, 242, 1); /* Белый с 5% в сторону серого */
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 30px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%;
        text-transform: uppercase;
        z-index: 2;
        display: flex;
        flex-direction: column;
    }
    
    .collections-card__title-line {
        display: block;
    }
    
    .collections-card__arrow {
        margin-right: 16px;
        margin-bottom: 16px;
    }
    
    .collections-grid-section__action {
        margin-top: 40px;
    }
    
    .collections-grid-section__button {
        padding: 10px 20px;
        font-size: 11px;
    }
}

/* Small Mobile (480px и меньше) */
@media screen and (max-width: 479px) {
    .collections-grid-section {
        padding: 24px 0 48px;
    }
    
    .collections-grid-section__wrapper {
        padding: 0 16px;
        gap: 20px;
    }
    
    .collections-card__image {
        padding-top: 110%;
    }
    
    .collections-card__tags {
        top: 10px;
        left: 10px;
        gap: 4px;
    }
    
    .collections-card__tag {
        padding: 5px 10px;
        font-size: 12px;
        font-weight: 400;
        border-radius: 22px;
        background: rgba(255, 255, 255, 1);
        color: #0C181A;
    }
    
    /* TODO: вернуть когда наладим связь
    .collections-card__colors {
        left: 10px;
        bottom: 10px;
        top: auto;
        gap: 5px;
        padding: 8px;
    }
    
    .collections-card__color-swatch {
        width: 24px;
        height: 24px;
        border-radius: 5px;
    }
    */
    
    .collections-card__arrow {
        right: 10px;
        bottom: 10px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .collections-card__arrow svg {
        width: 48px;
        height: 48px;
    }
    
    .collections-card__title {
        position: absolute;
        left: 10px;
        bottom: 60px; /* Над плашкой с цветом */
        margin: 0;
        color: rgba(242, 242, 242, 1); /* Белый с 5% в сторону серого */
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 30px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%;
        text-transform: uppercase;
        z-index: 2;
        display: flex;
        flex-direction: column;
    }
    
    .collections-card__title-line {
        display: block;
    }
    
    .collections-card__arrow {
        margin-right: 16px;
        margin-bottom: 16px;
    }
    
    .collections-grid-section__action {
        margin-top: 32px;
    }
    
    .collections-grid-section__button {
        padding: 8px 16px;
        font-size: 10px;
    }
}

