:root {
    --font-family: "Manrope", sans-serif;
    --second-family: "Space Grotesk", sans-serif;
    --third-family: "Inter", sans-serif;
}

h3 {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: clamp(16px, 2vw, 20px);
    text-transform: uppercase;
    color: #252525;
}

h4 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(16px, 2vw, 20px);
    color: #252525;
}

.header {
    width: 100%;
    max-width: 1568px;
    height: auto;
    min-height: clamp(500px, 100vh, 986px);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6)), url('../images/fonbaner01.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    position: relative;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope[wght].ttf') format('truetype');
    font-weight: 100 900; /* Диапазон весов */
    font-display: swap;
}
.nav {
    position: fixed;
    top: clamp(20px, 5vh, 56px);
    left: clamp(50%, 60%, 60%);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
    padding: clamp(5px, 1vw, 10px);
    border-radius: 8px;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(10px, 2vw, 20px);
}

.nav ul li {
    margin: 0;
}

.nav ul li a {
    font-weight: 700;
    font-size: clamp(8px, 1.5vw, 16px);
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: clamp(5px, 1vw, 10px) clamp(8px, 1.5vw, 15px);
}

.nav ul li a:hover {
    color: #007bff;
}

.nav {
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.oval01 {
    border-radius: 60px;
    width: clamp(122px, 20vw, 192px);
    height: clamp(17px, 5vw, 47px);
    background: #fff;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(10px, 2vw, 16px);
    color: #000;
    text-align: center;
    line-height: clamp(17px, 5vw, 47px);
    position: absolute;
    bottom: clamp(136px, 40vh, 336px);
    left: clamp(49px, 10vw, 149px);
}

.oval02 {
    border-radius: 60px;
    width: clamp(150px, 40vw, 326px);
    height: clamp(25px, 5vw, 47px);
    background: #fff;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(10px, 2vw, 16px);
    color: #000;
    text-align: center;
    line-height: clamp(25px, 5vw, 47px);
    position: absolute;
    bottom: clamp(150px, 30vh, 265px);
    left: clamp(20px, 10vw, 149px);
}

.textop01 {
    width: clamp(175px, 100vw, 775px);
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(15px, 5vw, 40px); /* Уже использует clamp */
    text-transform: uppercase;
    color: #fff;
    position: absolute;
    bottom: clamp(20px, 10vh, 80px);
    left: clamp(19px, 10vw, 149px);
    margin: 0;
    padding: 0;
    line-height: 1.2; /* Добавляем line-height для лучшей читаемости */
    word-wrap: break-word; /* Перенос длинных слов */
}

.button01 {
    border-radius: clamp(2px, 1vw, 20px);
    width: clamp(215px, 20vw, 415px);
    height: auto; /* Сохраняем пропорции */
    
    
    position: absolute;
    bottom: clamp(20px, 10vh, 80px);
    right: clamp(20px, 10vw, 149px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.button01 img {
    width: clamp(215px, 20vw, 415px); /* Масштабируем изображение */
    height: auto; /* Сохраняем пропорции */
    max-width: 100%; /* Ограничиваем максимальную ширину */
    object-fit: contain; /* Сохраняем пропорции без искажений */
}

.button01:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon {
    position: absolute;
    right: clamp(10px, 2vw, 30px);
    top: clamp(10px, 2vw, 30px);
    width: clamp(20px, 5vw, 40px);
    height: clamp(20px, 5vw, 40px);
}



.services-block {
    max-width: 1200px;
    margin: clamp(20px, 5vh, 80px) auto;
    padding: 0 clamp(10px, 3vw, 15px);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 5vh, 40px);
}

.services-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(20px, 3vw, 32px);
    text-transform: uppercase;
    color: #252525;
}

.services-button {
    border-radius: 60px;
    width: clamp(80px, 10vw, 112px);
    height: clamp(30px, 5vw, 47px);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(12px, 1.5vw, 16px);
    text-align: center;
    line-height: clamp(30px, 5vw, 47px);
    color: #252525;
    background: #fff48e;
    transition: background 0.3s;
}

.services-button:hover {
    transform: scale(1.03);
}
.services-button1 {
    border-radius: 60px;
    width: clamp(100px, 10vw, 170px);
    height: clamp(30px, 5vw, 47px);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(12px, 1.5vw, 16px);
    text-align: center;
    line-height: clamp(30px, 5vw, 47px);
    color: #252525;
    background: #fff48e;
    transition: background 0.3s;
}

.services-button1:hover {
    transform: scale(1.03);
}
.services-grid {
    display: flex;
    justify-content: space-between; /* Равномерное распределение */
    align-items: center; /* Выравнивание по вертикали (если нужно) */
    gap: 20px; /* Опциональный промежуток между элементами */
    flex-wrap: wrap; /* Разрешить перенос элементов на новую строку */
}
.services-grid1 {
    display: flex;
    justify-content: space-between; /* Крайние элементы прижимаются к краям */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    gap: 10px; /* Минимальный отступ между элементами */
}


.service-card {
    
    width: clamp(347px, 10vw, 387px);
    height: clamp(347px, 10vw, 387px);
    background: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    
}
.service-card1 {
    flex: 0 1 auto; /* Без растягивания */
}
.service-card1 img {
    max-width: 100%;
    height: auto;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    
}
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.services-blocks1 {
    display: flex;
    flex-direction: column; /* Основное изменение - вертикальное направление */
    gap: 20px;
    padding: 0px;
    max-width: 1200px; /* Ограничиваем общую ширину контейнера */
    margin: 0 auto; /* Центрирование */
}
.service-block1 {
    padding: 20px;
    background: #f3f3f3;
    text-align: left;
    border-radius: 20px;    
    height: 100px;
    display: flex;
    align-items: center; /* Вертикальное выравнивание содержимого */
    gap: 35px; /* Расстояние между номером и текстом */
    position: relative; /* Для абсолютного позиционирования иконки */
    box-sizing: border-box; /* Решение: padding теперь входит в height */
}
.service-icon {
    width: 30px;
    height: 30px;
    margin-left: auto; /* Прижимает иконку к правому краю */
    flex-shrink: 0; /* Запрещает уменьшение размера */
}
.services-graphic {
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: clamp(135px, 50vh, 235px);
    background-image: url('../images/setkag1.png');
    
    background-size: cover;       /* Масштабирование */
    background-position: center; /* Позиция */
    background-repeat: no-repeat; /* Без повторения */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    position: relative;
}
.services-graphic .zayavka1,
.services-graphic .stoim1,
.services-graphic .zdovor1,
.services-graphic .stk1,
.services-graphic .sob1 {
    position: absolute;
    border-radius: 60px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(12px, 1.5vw, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 47px;
}

.services-graphic .zayavka1 {
    left: 30px;
    bottom: 168px;
    color: #fff;
    width: 113px;
    background: #252525;
}

.services-graphic .stoim1 {
    left: 143px;
    bottom: 141px;
    color: #252525;
    width: clamp(181px, 10vw, 201px);
    background: #e5e5e5;
}

.services-graphic .zdovor1 {
    left: 344px;
    bottom: 94px;
    color: #252525;
    width: clamp(191px, 10vw, 231px);
    background: #e5e5e5;
}

.services-graphic .stk1 {
    left: 575px;
    bottom: 59px;
    color: #252525;
    width: 453px;
    background: #e5e5e5;
}

.services-graphic .sob1 {
    left: 1028px;
    bottom: 12px;
    color: #252525;
    width: 172px;
    background: #fff48e;
}

.steps-numbers {
    display: flex;
    justify-content: space-between; /* Равномерное распределение */
    align-items: center; /* Выравнивание по вертикали */
    padding: 20px 40px; /* Отступы слева и справа */
    margin: 30px 0; /* Отступы сверху и снизу */
    font-size: 24px; /* Размер цифр */
    color: #333; /* Цвет цифр */
    font-weight: bold;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    color: #252525
    
}

























/* Медиазапросы для планшетов и мобильных устройств */
@media (max-width: 768px) {
    .nav {
        left: 50%;
        transform: translateX(-50%);
        width: auto; /* Изменено с 90% на auto */
        justify-content: center;
    }

    .nav ul {
        flex-direction: row; /* Горизонтальное меню */
        flex-wrap: nowrap; /* Запрещаем перенос */
        overflow-x: auto; /* Добавляем скролл если не помещается */
        -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
        justify-content: center;
        gap: 10px;
        padding: 5px 0;
    }
    .nav ul li a {
        white-space: nowrap; /* Запрещаем перенос текста */
    }

    .header {
        min-height: clamp(400px, 80vh, 700px);
    }

    .textop01 {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        bottom: clamp(100px, 20vh, 180px);
        text-align: center;
        font-size: clamp(14px, 4.5vw, 22px); /* Уменьшенный размер шрифта */
        line-height: 1.3; /* Оптимальный межстрочный интервал */
    }

    .button01 {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 80%;
        max-width: 280px; /* Слегка уменьшенная максимальная ширина */
        bottom: clamp(50px, 10vh, 70px);
    }

    .services-block {
        width: auto; /* Изменено с 90% на auto */
        justify-content: center;
    }
    
    .services-grid {
        display: grid; /* Меняем flex на grid */
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 15px;
        width: 100%;
        max-width: 387px;
        margin: 0 auto;
    }

    .service-card {
        width: 100%; /* Занимает всю ширину контейнера */
        height: auto; /* Автоматическая высота */
        aspect-ratio: 1/1; /* Сохраняем квадрат */
        margin: 0 auto; /* Центрирование */
    }
    .graphic-image {
        width: auto; /* Ширина будет уменьшаться пропорционально */
        max-height: 300px; /* Фиксированная высота (можно изменить под ваши нужды) */
        height: 300px; /* Фиксированная высота */
        object-fit: contain; /* Сохраняет пропорции и вписывает изображение в заданные размеры */
    }
    
    .graphic-image {
        max-width: 95%; /* Уменьшаем ширину на мобильных */
    }
    .steps-numbers {
        padding: 15px 20px;
        font-size: 18px;
    }
    .services-graphic .zayavka1,
    .services-graphic .stoim1,
    .services-graphic .zdovor1,
    .services-graphic .stk1,
    .services-graphic .sob1 {
        position: absolute;
        width: auto; /* Ширина по содержимому */
        min-width: 100px; /* Минимальная ширина */
        padding: 0 15px; /* Горизонтальные отступы */
        height: 35px;
        font-size: 12px;
        white-space: nowrap; /* Текст в одну строку */
    }

    /* Расположение по вертикали (стек) */
    .services-graphic .zayavka1 { left: 0;    top: 20px;  bottom: auto; }  /* Минимальный */
    .services-graphic .stoim1   { left: 40px; top: 70px;  bottom: auto; }  /* Чуть больше */
    .services-graphic .zdovor1  { left: 100px; top: 120px; bottom: auto; }  /* Ещё больше */
    .services-graphic .stk1     { left: 160px; top: 170px; bottom: auto; }  /* Максимальный */
    .services-graphic .sob1     { left: 210px; top: 220px; bottom: auto; }  /* Максимальный + */
    
    .services-grid1 {
        flex-direction: column; /* Вертикальное расположение */
        align-items: center;   /* Центрирование */
        gap: 20px;            /* Отступ между элементами */
        padding: 0;
    }

    .service-card1 {
        width: 100%;          /* На всю ширину контейнера */
        max-width: none;     /* Снимаем ограничение */
    }

    .service-card1 img {
        width: 100%;          /* Оригинальный размер без сжатия */
        min-width: 100%;
    }
}


@media (max-width: 480px) {
    .nav ul {
        gap: 8px;
        padding: 0 5px;
    }

    .nav ul li a {
        padding: 8px 12px;
        font-size: 12px;
    }
    .oval01, .oval02 {
        left: 5%;
    }

    .services-header {
        flex-direction: column;
        gap: 20px;
    }
    .textop01 {
        bottom: 120px;
        font-size: clamp(12px, 4vw, 18px); /* Ещё меньше шрифт */
    }

    .button01 {
        width: 85%;
        max-width: 350px; /* Увеличиваем максимальную ширину */
        bottom: 50px; /* Поднимаем кнопку выше */
    }

    /* Увеличиваем другие элементы для мобильной версии */
    .oval01, .oval02 {
        font-size: clamp(14px, 3vw, 16px);
        height: clamp(30px, 5vw, 40px);
        line-height: clamp(30px, 5vw, 40px);
    }
    .services-grid {
        padding: 0 auto;
        width: 100%;
        gap: 20px; /* Увеличиваем отступы между карточками */
        
    }

    .service-card {
        max-width: 100%;
    }


}
