.card {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.04);
}

.about-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

@media (max-width:980px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.center-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.contact-title {
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    color: var(--muted);
    margin: 0;
}

.contact-email {
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    color: var(--accent);
    font-size: 20px;
}

footer {
    background: transparent;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-row {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.02), transparent);
}

.services-title,
.price-title {
    margin: 0;
}

.price-description {
    margin: 0;
}

/* Container inside the left card: two columns on wide, stacked on small */
.about-card .about-inner {
    display: grid;
    grid-template-columns: 1fr 160px;
    /* text | image column */
    gap: 16px;
    align-items: start;
}

/* Image container */
.about-image {
    width: 100%;
    max-width: 160px;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image p {
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.linkedin-icon {
    margin-top: 10px;
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
    object-fit: scale-down;
}

.linkedin-icon:hover {
    transform: scale(1.1);
}

.instagram-icon {
    margin-top: 10px;
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
    object-fit: scale-down;
}

.instagram-icon:hover {
    transform: scale(1.1);
}

/* Ensure the whole stays responsive with your existing grid */
@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* On narrow screens stack them */
@media (max-width: 560px) {
    .about-card .about-inner {
        grid-template-columns: 1fr;
    }

    .about-image {
        justify-self: center;
        max-width: 220px;
        width: 60%;
    }

    .about-image img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }
}

.footer-divider {
    margin-top: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid black;
}

.footer-contacts {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align items at the start */
    gap: 16px;
    flex-wrap: wrap;
}

.left-contact {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    justify-content: flex-start;
    /* Align items to the top */
}

.right-contact {
    flex: 0 0 auto;
    /* Maintain width */
    margin-top: 20px;
    /* Adjust margin as necessary */
    padding: 0;
    text-align: left;
}

.right-contact p {
    margin: 0;
    word-wrap: break-word;
}

.left-contact p {
    margin: 0;
}

/* For proper spacing below the "Resources" section */
.footer-resources {
    margin-bottom: 12px;
    /* Add space below the resources section */
}

.footer-resources ul {
    list-style-type: none;
    /* Remove bullet points */
    padding: 0;
    /* Remove default padding */
    margin: 0;
    /* Remove default margin */
}

.footer-resources li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-resources li a:hover {
    color: var(--accent);
}

@media (max-width: 760px) {
    .footer-contacts {
        justify-content: center;
        gap: 12px;
    }

    .left-contact,
    .right-contact {
        flex: 1 1 100%;
        text-align: center;
    }

    .right-contact {
        order: 1;
        /* Make right-contact appear first */
    }

    .left-contact {
        order: 2;
        /* Make left-contact appear second */
    }
}