/* Секція "Види робіт які виконуємо" */

.interior-types {
    position: relative;
    padding: 0;
    color: #ffffff;

}

.section__header {
    font-family: 'Ysabeau', sans-serif;
    background-color: #000000;
    color: #ffffff;
    font-weight: 200;
    font-size: 2.6vw;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1.56vw 10.6vw;
    border-bottom: 1px solid #ffffff; /* ← біла лінія знизу */
}

.interior-types__inner {
    margin: 0 auto;
    padding: 3vw 2.6vw;
    box-sizing: border-box;
    overflow: hidden;
    background:
        url("/static/interior/img/types-bg.png") center/cover no-repeat;
    /* заміни шлях до фонового зображення на свій */
    height: 93vw;
}

.interior-types__title {

}

/* Сітка з 3 колонок */

.interior-types__grid {
    display: flex;
    flex-wrap: wrap;             /* щоб на вузькому екрані можна було переносити */
    gap: 1.56vw;
    align-items: flex-start;      /* не розтягувати по висоті */
}

/* Картка виду робіт */

.interior-type-card {
    position: relative;
    padding: 1.05vw 0 0 0;
    background: rgba(29, 29, 29, 0.65);
    border-radius: 0;
    display: flex;
    flex-direction: column;

    flex: 0 1 calc(33.333% - 1.04vw); /* 3 колонки поруч, ширина підганяється під gap */
    /* min-height: 31vw;  ← ОБОВʼЯЗКОВО прибрати */
}

.interior-type-card__bg {
    display: none;
}

.interior-type-card__icon {
    margin-bottom: 1.05vw;
    padding: 0 2.6vw;
}

.interior-type-card__icon img {
    width: auto;
    height: 15.6vw;
    display: block;
}

/* Заголовок картки */

.interior-type-card__title {
    font-size: 2.08vw;
    font-weight: 200;
    text-transform: uppercase;
    margin: 0;
    padding: 0 2.6vw;
}

/* Список послуг */

.interior-type-card__list {
    margin: 1.56vw 2.6vw;
    padding-left: 1.71vw;
    list-style: none;
    font-size: 1.25vw;
    line-height: 1.5;
    font-weight: 400;
}

.interior-type-card__list li {
    position: relative;
    margin-bottom: 0.78vw;
}


.interior-type-card__list li.mark-check::before {
    font-family: 'Inter', sans-serif;
    content: "✔";
    position: absolute;
    left: -1.71vw;
    top: 0.1vw;
    color: #3AAA35;
    font-size: 1.05vw;
    font-weight: bold;
}

.interior-type-card__list li.mark-plus::before {
    font-family: 'Inter', sans-serif;
    content: "+";
    position: absolute;
    left: -1.71vw;
    top: 0.1vw;
    color: #3AAA35;
    font-size: 1.05vw;
    font-weight: bold;
}

/* Кнопка "Детальніше" */

.interior-type-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52vw 1.4vw;
    border-radius: 999px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.78vw;
    letter-spacing: 0.12em;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 2.1vw;
    margin-left: 2.6vw;
}

/* Плашка з ціною внизу картки */

.interior-type-card__price {
    background: #3AAA35;
    padding: 0.78vw 0;
    display: inline-flex;
    gap: 0.3vw;
    align-items: center;
    justify-content: center;
}

.interior-type-card__price-value {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.6vw;
}

.interior-type-card__price-unit {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.82vw;
}



@media (max-width: 480px){
    .why-us__item-text {
        width: 54.6vw;
    }

    .section__header {
        padding: 8vw 4.26vw;
        border-bottom: none; /* ← біла лінія знизу */
    }

    .interior-types__inner {
        margin: 0 auto;
        padding: 0;
        background: none;
        height: auto;
    }

    .interior-types__grid {
        flex-direction: column;
        gap: 0;

    }

    .interior-type-card {
        padding: 5.3vw 0 0 0;
        background: rgba(46, 45, 43, 0.7);
        flex: 0 1 100%;
        border-bottom: 2px solid #ffffff; /* ← біла лінія знизу */

    }

    .interior-type-card__bg {
        position: absolute;
        top: 0;
        height: 100%;
        width: auto;
        display: block;
        object-fit: cover;
        z-index: -1;
    }

    /* Центроване обрізання */
    .interior-type-card__bg--center {
        left: 50%;
        transform: translateX(-50%);
        object-position: center;
    }

    /* Обрізання від правого краю */
    .interior-type-card__bg--right {
        right: 0;
        left: auto;          /* ← обовʼязково скидаємо */
        transform: none;     /* ← і це теж */
        object-position: right center;
    }

    .interior-type-card__icon {
        margin-bottom: 2.6vw;
        padding: 0 4.26vw;
    }

    .interior-type-card__icon img {
        width: auto;
        height: 53.3vw;
        display: block;
    }

    /* Заголовок картки */

    .interior-type-card__title {
        font-size: 6.93vw;
        padding: 0 4.26vw;
    }

    .interior-type-card__list {
        margin: 5.3vw 4.26vw;
        padding-left: 8.26vw;
        list-style: none;
        font-size: 5.3vw;
        line-height: 1.25;
        font-weight: 400;
    }

    .interior-type-card__list li {
        margin-bottom: 3.2vw;
    }


    .interior-type-card__list li.mark-check::before {
        left: -8.26vw;
        top: 0.5vw;
        font-size: 5.3vw;

    }

    .interior-type-card__list li.mark-plus::before {
        left: -8.26vw;
        top: 0;
        font-size: 5.3vw;
    }

    .interior-type-card__btn {
        margin-bottom: 13.3vw;
        font-weight: 600;
        padding: 4vw 8vw;
        font-size: 4.26vw;
        margin-left: 4.26vw;
    }

    .interior-type-card__price {
        padding: 4vw 0;
        gap: 1.3vw;
    }

    .interior-type-card__price-value {
        font-weight: 700;
        font-size: 10.6vw;
    }

    .interior-type-card__price-unit {
        font-weight: 600;
        font-size: 6.6vw;
    }
}