.contact-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100svh;
    background: #ffce00;
}

.contact-section__header{
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(var(--content-width), 100%);
}

.contact-section__header h2{
    color: #000;
    font-family: "Poppins", sans-serif;
}

.contact-section__header p{
    max-width: 310px;
    color: #000;
}

.contact-cards{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: min(var(--content-width), 100%);
}

.contact-card{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 214px;
    padding: 18px 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 6px 6px 0 #0003ff;
    color: inherit;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.contact-card:hover,
.contact-card:focus-visible{
    box-shadow: 9px 9px 0 #0003ff;
    transform: translate(-3px, -3px);
}

.contact-card:focus-visible{
    outline: 3px solid #000;
    outline-offset: 4px;
}

.contact-card__icon{
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 50%;
    background: #0003ff;
}

.contact-card__icon svg{
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-card__icon img{
    display: block;
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.contact-card__content{
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.contact-card h3{
    color: #0003ff;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.contact-card p{
    color: #000;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.contact-card__action{
    margin-top: 16px;
    color: #0003ff;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

@media (min-width: 768px){
    .contact-cards{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .contact-card{
        min-height: 240px;
        padding: 24px 20px;
    }
}

@media (min-width: 1024px){
    .contact-section{
        min-height: 0;
    }

    .contact-section__header p{
        max-width: 520px;
    }

    .contact-cards{
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }

    .contact-card{
        min-height: 300px;
        padding: 32px 28px;
        border-radius: 20px;
        box-shadow: 8px 8px 0 #0003ff;
    }

    .contact-card__icon{
        width: 52px;
        height: 52px;
        margin-bottom: 24px;
    }

    .contact-card__icon svg{
        width: 28px;
        height: 28px;
    }

    .contact-card__icon img{
        width: 24px;
        height: 24px;
    }

    .contact-card h3{
        font-size: 24px;
    }

    .contact-card p{
        font-size: 14px;
        line-height: 1.5;
    }

    .contact-card__action{
        margin-top: 24px;
        font-size: 13px;
    }
}

@media (max-width: 360px){
    .contact-cards{
        gap: 14px;
    }

    .contact-card{
        min-height: 204px;
        padding: 16px 12px;
    }

    .contact-card h3{
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce){
    .contact-card{
        transition-duration: 0.01ms;
    }
}
