.logo {
    font-weight: bold;
    font-size: 46.26px;
    text-align: center;
    margin: 26px auto;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
}

body li {
    list-style-type: none
}


section {
    padding: 2rem 1rem;
}

.hero p {
    font-family: 'Open Sans', var(--main-font-family), serif;
    color: var(--font-color-black);
    font-size: 3vw;
    font-weight: 300;
    opacity: 1;
    margin: 56px auto;
}

.link-order-button {
    display: inline-block;
    width: 75%;
    max-width: 350px; /* ограничим ширину, чтобы на десктопе не растягивалась чрезмерно */
    padding: 15px;
    background-color: var(--highlight-color);
    color: var(--font-color-white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    line-height: 1.3;
    white-space: normal; /* разрешим перенос строк */
    word-wrap: break-word;
    margin: 0 auto; /* центрирование */
}

/*Секция с иконками почему мы?*/
.why ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    list-style: none;
    margin: 2rem auto;
    max-width: 1200px;
}

.why li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgb(0 0 0 / 21%);;
    transition: transform 0.3s;
    flex: 1 1 140px;
    max-width: 300px;
    justify-content: space-between;
}

.why li:hover {
    transform: scale(1.03);
}

.why li div {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.why li img {
    width: 64px;
    height: 64px;
}

/*Стили для слайдера Что мы ремонтируем*/
.slider-types {
    position: relative;
    min-height: 460px; /* фиксированная секция с запасом под 2 строки текста и кнопки */
    overflow: hidden;
}

.type-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
}

.type-slide.active {
    display: flex;
}

.type-slide img {
    width: auto;
    max-width: 90vw;
    height: 370px;
    object-fit: contain;
    margin-bottom: 1rem;
    flex-shrink: 0;
    flex-grow: 0;
}

.type-slide p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    max-width: 90%;
    height: 3.3em; /* две строки текста максимум */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}


.type-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.type-buttons button {
    background-color: #f0f0f000;
    border: none;
}

.type-buttons button:hover {
    transform: scale(1.05);
}

.type-buttons button:active {
    transform: scale(0.95);
}

/*Секция как мы работаем*/
.how {
    background: #f9f9f9;
    padding: 3rem 1rem;
}

.how ul {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.how ul li {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    background: #fff;
    border-left: 5px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.how ul li div {
    margin-left: 15px;
    font-size: 1.4em;
}


.image-block img {
    width: 100%;
    border-radius: 10px;
}

.slider-track img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 10px;
}

.slider-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-buttons button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}


@media (max-width: 768px) {
    .image-row {
        flex-direction: column;
        align-items: center;
    }

    .hero p {
        font-size: 5vw;
    }

    .why ul {
        flex-direction: column;
        align-items: center;
    }

    .why li {
        max-width: 53%;
        font-size: 1.1rem;
    }

    .why li div {
        font-size: 1.3rem;
    }

    .why li img {
        width: 56px;
        height: 56px;
    }

    .how ul li {
        font-size: 1.2rem;
        padding-left: 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .how ul li::before {
        width: 2rem;
        height: 2rem;
        top: 1.1rem;
        font-size: 1rem;
    }

    .slider-types {
        min-height: 400px;
    }

    .type-slide img {
        max-width: 80vw;
        height: 200px;
    }

    .type-slide p {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .type-slide img {
        max-width: 80vw;
    }
}

@media (min-width: 1025px) {
    .type-slide img {
        max-width: 60vw;
    }
}
