

/* Основной блок */
.installation {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Главный заголовок */
.installation h2 {
    margin: 0 0 25px;
    color: #1769aa;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.2;
    text-align: center;
}

/* Подзаголовок */
.installation h3 {
    margin: 35px 0 25px;
    padding-bottom: 10px;
    color: #222;
    font-size: clamp(22px, 3vw, 30px);
    border-bottom: 2px solid #1769aa;
}

/* Названия этапов */
.installation h4 {
    margin: 0 0 10px;
    color: #1769aa;
    font-size: clamp(18px, 2.5vw, 23px);
}

/* Абзацы */
.installation p {
    margin: 0 0 16px;
    color: #555;
    font-size: 17px;
    line-height: 1.7;
}

/* Вступительный текст */
.installation-intro {
    padding: 20px;
    color: #444 !important;
    font-size: 19px !important;
    background: #f2f8fc;
    border-left: 5px solid #1769aa;
    border-radius: 8px;
}

/* Список этапов */
.installation-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

/* Отдельный этап */
.installation-steps li {
    position: relative;
    margin-bottom: 25px;
    padding: 22px 25px 22px 75px;
    background: #f8fafc;
    border: 1px solid #e0e6eb;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Номер этапа */
.installation-steps li::before {
    content: counter(steps);
    counter-increment: steps;

    position: absolute;
    top: 20px;
    left: 20px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 18px;
    font-weight: bold;

    background: #1769aa;
    border-radius: 50%;
}

/* Эффект при наведении */
.installation-steps li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(23, 105, 170, 0.15);
}

/* Планшеты */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .installation {
        margin: 20px auto;
        padding: 30px 25px;
    }

    .installation p {
        font-size: 16px;
    }

    .installation-intro {
        font-size: 17px !important;
    }

    .installation-steps li {
        padding: 20px 20px 20px 65px;
    }
}

/* Телефоны */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .installation {
        margin: 10px auto;
        padding: 24px 16px;
        border-radius: 14px;
    }

    .installation h2 {
        margin-bottom: 20px;
    }

    .installation h3 {
        margin-top: 28px;
        margin-bottom: 20px;
    }

    .installation p {
        font-size: 15px;
        line-height: 1.6;
    }

    .installation-intro {
        padding: 15px;
        font-size: 16px !important;
        border-left-width: 4px;
    }

    .installation-steps li {
        margin-bottom: 18px;
        padding: 18px 15px 18px 55px;
        border-radius: 10px;
    }

    .installation-steps li::before {
        top: 18px;
        left: 14px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
    .installation {
        padding: 20px 12px;
    }

    .installation-steps li {
        padding-left: 48px;
    }

    .installation-steps li::before {
        left: 10px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}


.gallery-button {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 28px;

    color: #ffffff;
    background: #1769aa;
    border-radius: 8px;

    font-size: 17px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;

    transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-button:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}

.gallery-button:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .gallery-button {
        display: block;
        width: 100%;
        padding: 13px 20px;
        font-size: 16px;
    }
}