/* =====================================================
   SERVICES
   БЛОК УСЛУГ
   ===================================================== */

.services-section {
    padding: 60px 30px 65px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(204, 164, 68, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(92, 26, 79, 0.05),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f3f6 100%
        );

    font-family: Arial, sans-serif;
}

.services-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =====================================================
   ЗАГОЛОВОК
   ===================================================== */

.services-heading {
    max-width: 760px;

    margin: 0 auto 34px;

    text-align: center;
}

.services-kicker {
    display: block;

    margin-bottom: 8px;

    color: #cca444;

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.services-title {
    margin: 0 0 12px;

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.services-subtitle {
    max-width: 650px;

    margin: 0 auto;

    color: #625963;

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}


/* =====================================================
   СЕТКА КАРТОЧЕК
   ===================================================== */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* =====================================================
   КАРТОЧКА
   ===================================================== */

.service-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 360px;

    padding: 24px;

    box-sizing: border-box;

    border: 1px solid
        rgba(92, 26, 79, 0.09);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(250, 246, 249, 0.97)
        );

    box-shadow:
        0 10px 28px rgba(49, 27, 44, 0.09);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(204, 164, 68, 0.65),
            transparent
        );

    opacity: 0.7;
}

.service-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(204, 164, 68, 0.28);

    box-shadow:
        0 18px 38px rgba(49, 27, 44, 0.14);
}


/* =====================================================
   КОНТЕНТ КАРТОЧКИ
   ===================================================== */

.service-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;
}


/* =====================================================
   НАЗВАНИЕ
   ===================================================== */

.service-card-title {
    margin: 0 0 20px;

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;

    text-align: left;
}


/* =====================================================
   ИКОНКА
   ===================================================== */

.service-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;

    margin: 0 auto 22px;

    box-sizing: border-box;

    border: 1px solid
        rgba(204, 164, 68, 0.20);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(204, 164, 68, 0.13),
            rgba(92, 26, 79, 0.08)
        );

    overflow: hidden;
}

.service-card-icon img {
    display: block;

    width: 100%;
    height: 100%;

    padding: 10px;

    box-sizing: border-box;

    object-fit: contain;
}


/* =====================================================
   КОРОТКОЕ ОПИСАНИЕ
   ===================================================== */

.service-card-description {
    margin: 0;

    color: #5d555d;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;
}


/* =====================================================
   ЦЕНА
   ===================================================== */

.service-card-price {
    margin-top: auto;

    padding-top: 22px;

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}


/* =====================================================
   КНОПКА «ПОДРОБНЕЕ»
   ===================================================== */

.service-card-actions {
    margin-top: 15px;
}

.service-card-more {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 42px;

    padding: 0 16px;

    box-sizing: border-box;

    border: 1px solid #5c1a4f;
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #6b285d,
            #5c1a4f
        );

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card-more:hover {
    background:
        linear-gradient(
            135deg,
            #773468,
            #5c1a4f
        );

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(92, 26, 79, 0.20);
}


/* =====================================================
   POPUP
   ===================================================== */

.service-popup {
    position: fixed;

    inset: 0;

    z-index: 99990;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    box-sizing: border-box;
}

.service-popup.is-open {
    display: flex;
}


/* =====================================================
   ФОН POPUP
   ===================================================== */

.service-popup-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(30, 17, 27, 0.70);

    backdrop-filter: blur(5px);
}


/* =====================================================
   ОКНО POPUP
   ===================================================== */

.service-popup-dialog {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 720px;

    max-height:
        calc(100vh - 50px);

    padding: 34px 38px;

    box-sizing: border-box;

    overflow-y: auto;

    border:
        1px solid rgba(204, 164, 68, 0.22);

    border-radius: 18px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(204, 164, 68, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 5% 90%,
            rgba(92, 26, 79, 0.05),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f8f3f7
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.30);
}


/* =====================================================
   КРЕСТИК
   ===================================================== */

.service-popup-close {
    position: absolute;

    top: 15px;
    right: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    box-sizing: border-box;

    border:
        1px solid rgba(92, 26, 79, 0.10);

    border-radius: 50%;

    background:
        rgba(92, 26, 79, 0.05);

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 23px;
    line-height: 1;
    font-weight: 400;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.service-popup-close:hover {
    background:
        rgba(92, 26, 79, 0.11);

    transform: rotate(90deg);
}


/* =====================================================
   ИКОНКА В POPUP
   ===================================================== */

.service-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;

    margin-bottom: 18px;

    border:
        1px solid rgba(204, 164, 68, 0.20);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(204, 164, 68, 0.14),
            rgba(92, 26, 79, 0.08)
        );

    overflow: hidden;
}

.service-popup-icon img {
    display: block;

    width: 100%;
    height: 100%;

    padding: 10px;

    box-sizing: border-box;

    object-fit: contain;
}


/* =====================================================
   POPUP ТИПОГРАФИКА
   ===================================================== */

.service-popup-kicker {
    display: block;

    margin-bottom: 7px;

    color: #cca444;

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-popup-title {
    margin: 0 45px 20px 0;

    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.service-popup-description {
    color: #4f4850;

    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.service-popup-description p {
    margin: 0 0 14px;
}

.service-popup-description p:last-child {
    margin-bottom: 0;
}

.service-popup-description strong {
    color: #5c1a4f;
}

.service-popup-description ul,
.service-popup-description ol {
    margin:
        12px 0 16px 20px;

    padding: 0;
}

.service-popup-description li {
    margin-bottom: 7px;
}


/* =====================================================
   ЦЕНА В POPUP
   ===================================================== */

.service-popup-price {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 25px;
    padding-top: 18px;

    border-top:
        1px solid rgba(92, 26, 79, 0.10);

    color: #625963;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.service-popup-price strong {
    color: #5c1a4f;

    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}


/* =====================================================
   КНОПКА ЗАПИСИ
   ===================================================== */

.service-popup-actions {
    margin-top: 20px;
}

.service-popup-contact {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;

    padding: 10px 18px;

    box-sizing: border-box;

    border: 1px solid #5c1a4f;
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #6b285d,
            #5c1a4f
        );

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-popup-contact span {
    margin-left: 8px;
}

.service-popup-contact:hover {
    background:
        linear-gradient(
            135deg,
            #773468,
            #5c1a4f
        );

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(92, 26, 79, 0.22);
}


/* =====================================================
   БЛОКИРОВКА СКРОЛЛА
   ===================================================== */

body.service-popup-open {
    overflow: hidden;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1050px) {

    .services-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 800px) {

    .services-section {
        padding: 50px 22px 55px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .service-card {
        min-height: 340px;

        padding: 21px;
    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

    .services-section {
        padding: 42px 18px 48px;
    }

    .services-heading {
        margin-bottom: 25px;
    }

    .services-title {
        font-size: 24px;
    }

    .services-subtitle {
        font-size: 13px;
    }

    .services-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .service-card {
        min-height: 0;

        padding: 20px;
    }

    .service-card-title {
        font-size: 18px;
    }

    .service-card-icon {
        width: 68px;
        height: 68px;

        margin-bottom: 18px;
    }

    .service-card-description {
        font-size: 13px;
    }

    .service-card-price {
        padding-top: 18px;
    }

    .service-popup {
        padding: 12px;
    }

    .service-popup-dialog {
        max-height:
            calc(100vh - 24px);

        padding:
            27px 21px 22px;

        border-radius: 14px;
    }

    .service-popup-title {
        margin-right: 35px;

        font-size: 23px;
    }

    .service-popup-description {
        font-size: 13px;
        line-height: 1.6;
    }

    .service-popup-price {
        font-size: 12px;
    }

    .service-popup-price strong {
        font-size: 16px;
    }

    .service-popup-contact {
        font-size: 13px;
    }

}