/* ====== СЕКЦІЯ "ВИДИ РОБІТ ЯКІ ВИКОНУЄМО" ДЛЯ РЕМОНТУ ====== */

.repair-types {
    font-family: 'Ysabeau', sans-serif;
}

.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;
}

.repair-types__inner {
    padding: 0 10.6vw 5.3vw;
    margin-top: 1.56vw;
    box-sizing: border-box;
}

/* верхній ряд карток */

.repair-types__cards {
    display: flex;
    gap: 1.56vw;
    margin-bottom: 3.12vw;
    overflow: visible; /* ← ніякого скролу */
}

.repair-type-card {
    flex: 1 1 0; /* ← кожна картка займає рівну частину ширини */
}

.repair-type-card__image-wrap {
    position: relative;
    overflow: hidden;
    height: 18.2vw; /* фіксована висота блоку */
    width: 14.53vw;
    margin-bottom: 1.05vw;
}

/* Картинка */
.repair-type-card__image-wrap img {
    position: absolute;
    top: 0;
    left: 50%;

    height: 100%;          /* вписуємо картинку по висоті */
    width: auto;           /* ШИРИНА ФІКСУЄТЬСЯ автоматично */

    transform: translateX(-50%); /* обрізання по центру */
    object-fit: cover;     /* захист від викривлення */
    object-position: center;

    display: block;
}

/* зелена плашка з ціною всередині картинки */

.repair-type-card__price-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #3AAA35;
    padding: 0.41vw 0.78vw;
    color: #ffffff;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    border-radius: 0 10px 0 0;
    align-items: center; /* щоб вирівняти */
    gap: 0.62vw;          /* якщо треба відступ */
}

.repair-type-card__price-main {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.56vw;
    line-height: 1.1;
}

.repair-type-card__price-unit {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.05vw;
}

/* підпис під картинкою */

.repair-type-card__title {
    margin: 0;
    font-size: 1.56vw;
    font-weight: 500;
}

/* текст + кнопка прайсу */

.repair-types__note {
    margin-bottom: 3.12vw;
}

.repair-types__note-main {
    font-size: 2.08vw;
    font-weight: 200;
    color: #8B8B8B;
    padding-bottom: 0.4vw;
    border-bottom: 1px solid rgba(139, 139, 139, 0.25);
    margin-bottom: 0.52vw;
}

.repair-types__note-sub {
    font-size: 1.56vw;
    margin: 0 0 1.3vw 0;
    font-weight: 500;
    color: #000000;
}

.download__icon {
    width: 1.25vw;
    height: 1.25vw;
}

/* блоки таблиць */

.price-block {
    margin-bottom: 3.2vw;
}

.price-block__header {
    background-color: #3AAA35;
    color: #ffffff;
    padding: 1.56vw 1.3vw;
    font-size: 1.56vw;
    font-weight: 500;
    margin-bottom: 1.05vw;
}

/* обгортка для горизонтального скролу на мобілці */

.price-table__wrap {
    overflow-x: auto;
}

/* сама таблиця */

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 1.3vw 1.3vw;
    border: 1px solid #e4e4e4;
}

.price-table thead th {
    font-size: 1.35vw;
    background-color: #f5f5f5;
    font-weight: 500;
    color: #8B8B8B;
}

.th__name {
    text-align: left;
    width: 45.4vw;
}

.th__unit,
.th__price{
    text-align: center;
    width: 16.6vw;
}

.price-table tbody td {
    font-family: 'Inter', sans-serif;
    font-size: 1.05vw;
}

.td__name {
    text-align: left;
    font-weight: 400;
}

.td__unit,
.td__price {
    text-align: center;
    font-weight: bold;
}

.price-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

@media (max-width: 480px) {

    .section__header {
        padding: 8vw 4.26vw;
        border-bottom: none; /* ← біла лінія знизу */
    }

    .repair-types__inner{
        padding: 0;
        margin-top: 5.3vw;
    }

    .repair-types__cards {
        overflow-x: auto;     /* ← горизонтальний скрол */
        overflow-y: hidden;
        white-space: nowrap;
        scroll-snap-type: x mandatory; /* приємний “прилипання” ефект */
        -webkit-overflow-scrolling: touch;
        margin-left: 4.26vw;
        margin-bottom: 13.3vw;
        gap: 8vw;
    }

    .repair-type-card {
        flex: 0 0 70vw;      /* ← фіксована ширина картки */
        scroll-snap-align: start;
        white-space: normal; /* текст переноситься */
    }

    .repair-type-card__image-wrap {
        height: 93.3vw; /* фіксована висота блоку */
        width: 74.13vw;
        margin-bottom: 5.3vw;
    }


    .repair-type-card__price-badge {
        padding: 2.13vw 4vw;
        border-radius: 0 8vw 0 0;
        gap: 3.2vw;
    }

    .repair-type-card__price-main {
        font-weight: 600;
        font-size: 8vw;
    }

    .repair-type-card__price-unit {
        font-size: 5.3vw;
    }

    .repair-type-card__title {
        font-size: 8vw;
    }

    .repair-types__note {
        margin: 0 4.26vw 13.3vw 4.26vw;
    }

    .repair-types__note-main {
        font-size: 6.93vw;
        padding: 0 0 2.6vw 0;
        margin-bottom: 2.6vw;
    }

    .repair-types__note-sub {
        font-size: 5.3vw;
        margin-bottom: 6.6vw;
    }

    .download__icon {
        width: 6.4vw;
        height: 6.4vw;
    }

    .price-block {
        margin-bottom: 6.6vw;
    }

    .price-block__header {
        padding: 8vw 6.6vw;
        font-size: 6.93vw;
        font-weight: 500;
        margin: 0 0 5.3vw 0;
    }

    .price-table th,
    .price-table td {
        padding: 4vw 2.6vw 4vw 4.26vw;
    }

    .price-table thead th {
        font-size: 4.8vw;
    }

    .th__name {
        text-align: left;
        width: 49.8vw;
    }

    .th__unit,
    .th__price{
        text-align: center;
        width: 25vw;
        padding: 4vw 2.6vw!important;
    }

    .price-table tbody td {
        font-size: 3.73vw;
    }

    .td__name {
        text-align: left;
        font-weight: 400;
    }



}