body {
    background: linear-gradient(145deg, #e0eafc 0%, #cfdef3 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0px;
}

/* Центрування за допомогою Spectre + власних правил */
.centered-container {
    display: flex;
    width: fit-content;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
    min-height: 100vh;

}

/*
           ГОЛОВНИЙ БЛОК: ширина = ширині верхньої картинки
           (використовуємо width: fit-content)
        */

.card,
.card-footer {
    background: #d5ffe6;
}
.custom-card {
    width: fit-content;
    max-width: 95vw;
    background: #d5ffe6;
    border-radius: 0.4rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden; /* щоб заокруглення коректно обрізало картинку */
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

/* Верхня горизонтальна картинка: зберігає природню ширину */
.top-img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Нижня секція використовує сітку Spectre */
.bottom-section-custom {
    background: none;
    padding: 1.5rem 2rem 2rem 2rem;
}

/* Стилізація квадратної картинки через Spectre-класи + власні */
.square-img {
    margin: 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;

    object-fit: cover;
    border-radius: 0.4rem;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.square-img:hover {
    transform: scale(1.02);
}

/* Стилі для іконок соціальних мереж */
.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 2rem;
    text-decoration: none;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.social-link i {
    font-size: 1.3rem;
    transition: transform 0.2s;
}

/* WhatsApp стиль */
.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.social-link.whatsapp:hover i {
    color: white;
    transform: scale(1.1);
}

/* Email стиль */
.social-link.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.social-link.email:hover i {
    color: white;
    transform: scale(1.1);
}

/* Окремий стиль для іконок за замовчуванням */
.social-link i {
    width: 1.3rem;
    text-align: center;
}

.whatsapp i {
    color: #25d366;
}

.email i {
    color: #ea4335;
}

.custom-card img {
    display: block;
    margin: 0 auto;
}

footer {
    height: 10vh;
    background: #2c3e50;
    color: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    font-weight: bold;
    margin-top: -10vh;
}

footer div {
    justify-content: center;
    align-content: center;

}

/* Медіа-запит для адаптивності: на малих екранах колонки стають вертикальними */
@media (max-width: 580px) {
    .bottom-section-custom {
        padding: 1.2rem 1.2rem 1.5rem 1.2rem;
        background: none;

    .square-img {
        width: 85px;
        height: 85px;
    }
    /* Spectre сам переверне колонки, але можна підкоригувати текст */
    .text-center-on-mobile {
        text-align: center;
    }
    footer {
        height: 400px;
        display: none;
        text-align: center;
        background: #2c3e50;
        color: #fff;
        margin: 0;
        padding: 0;
        width: 100%;
    }
}
