.services-intro {
    background-color: #f0f4f8;
    padding: 100px 40px 40px 20px; /* увеличили верхний отступ, чтобы текст не перекрывался header */
    text-align: center;
}

.services-intro h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}
.price-description {
    font-size: 16px;       /* уменьшаем шрифт */
    font-family: Arial, sans-serif;
    line-height: 1.5;      /* расстояние между строками */
    color: #444;           /* мягкий цвет */
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 20px;
}

.service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 300px;
    height: 350px; /* одинаковая высота для всех */
    padding: 20px;

    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 5px solid #FFD700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
}

.service h3 {
    font-size: 1.2em;
    color: black;
    margin-bottom: 10px;
}

.service p {
    font-size: 1em;
    color: #444;
    flex-grow: 1; /* растягивает текст до доступной высоты */
}

.service-price {
    font-size: 1.1em;
    font-weight: bold;
    color: black;
    margin-top: 20px;
    text-align: right;
}
.appointment-button-container {
    display: flex;
    justify-content: center;
    padding: 15px 30px 20px 30px;
}

/* Кнопка "Записаться" */
.appointment-button {
    padding: 15px 30px;
    background-color: #ff6600;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.appointment-button:hover {
    background-color: #e65c00;
    transform: scale(1.05);
}

.appointment-button:active {
    transform: scale(0.95);
}
/* Spacer под fixed header */
.header-spacer {
    height: 100px; /* равна высоте вашего header */
}

/* Desktop — большой экран, > 1440px */
@media screen and (min-width: 1441px) {
    .services-intro h2 {
        font-size: 32px;
    }

    .service {
        width: 350px;
        height: 380px;
    }

    .appointment-button {
        font-size: 22px;
        padding: 18px 35px;
    }
}

/* Laptop / средние экраны — до 1440px */
@media screen and (max-width: 1440px) {
    .services-intro h2 {
        font-size: 28px;
    }

    .service {
        width: 320px;
        height: 360px;
    }
}

/* Планшеты — до 1024px */
@media screen and (max-width: 1024px) {
    .services-intro {
        padding: 100px 15px 40px 15px;
    }

    .services-intro h2 {
        font-size: 24px;
    }

    .services-intro p {
        font-size: 14px;
    }

    .service {
        width: 45%; /* два блока в ряд */
        height: auto;
    }

    .appointment-button {
        font-size: 16px;
        padding: 12px 25px;
    }
}

/* Малые планшеты / большие телефоны — до 768px */
@media screen and (max-width: 768px) {
    .services-list {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }

    .service {
        width: 100%; /* один блок в ряд */
        height: auto;
    }

    .services-intro {
        padding: 100px 10px 30px 10px;
    }

    .appointment-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* Мобильные телефоны — до 480px */
@media screen and (max-width: 480px) {
    .services-intro h2 {
        font-size: 20px;
    }

    .services-intro p {
        font-size: 12px;
    }

    .service {
        width: 100%;
        padding: 15px;
    }

    .appointment-button {
        font-size: 14px;
        padding: 10px 18px;
    }
}
