﻿@font-face {
    font-family: 'DaysFronts';
    src: url('/Fronts/DAYS.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.TextCenter {
    font-family: DaysFronts;
    text-align: center;
    font-size: 1.8rem;
    margin-top: 20px;
    font-weight: bold;
}

.services-wrapper {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.services-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr); /* Мобильная сетка по умолчанию */
}

.service-item {
    background-color: #111;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    }

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}

.service-text {
    font-family: DaysFronts;
    color: white;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
    font-size: 1rem; /* Базовый для мобильных */
}

/* ПК: 3 колонки и отступы по бокам */
@media (min-width: 992px) {
    .services-wrapper {
        padding: 0 25%; /* Центрируем 3 карточки */
    }

    .services-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-text {
        font-size: 1.2rem;
    }
}

/* Очень большие экраны — не увеличивать иконки */
@media (min-width: 1600px) {
    .services-wrapper {
        padding: 0 30%;
    }
}
