#contacts {
    background: #f8f5f0;
}

#contacts h2 {
    text-align: center;
    margin-bottom: 50px;
}

#contacts table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

#contacts th {
    background: linear-gradient(
        to right,
        #c6a663,
        #d8b87a
    );
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 18px;
    font-size: 15px;
}

#contacts td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

#contacts tr:last-child td {
    border-bottom: none;
}

#contacts tr:hover {
    background: #faf7f2;
}

#contacts td:first-child {
    font-weight: 500;
}

#contacts a {
    color: #c6a663;
    text-decoration: none;
}

#contacts a:hover {
    text-decoration: underline;
}

#contacts .container {
    overflow-x: auto;
}

@media (max-width: 768px) {
    #contacts table {
        min-width: 600px;
    }
}

#contacts {
    background: #f8f5f0;
    padding: 120px 20px;
}

#contacts h2 {
    text-align: center;
    margin-bottom: 60px;
}
 
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: auto;
}  

#contacts .container {
    max-width: 900px;
    margin: auto;
}

.contact-card {
    background: white;
    padding: 35px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}

.contact-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
    90deg,
    #c6a663,
    #e6c98f
    );

    border-radius: 10px 10px 0 0;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-card h3 {
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 18px;
}

.contact-name {
    font-family: "Ivyora", serif;
    font-size: 20px;
    margin-bottom: 12px;
}

.contact-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    transition: color .3s;
}

.contact-card:hover .contact-info {
    color: #c6a663;
}

@media (max-width: 600px) {

    .contacts-grid {
        grid-template-columns: unset;
        font-size: 30px;
        max-width: 600px;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .contact-card h3 {
        font-size: 20px;
    }

    .contact-name {
        font-size: 16px;
    }

    .contact-info {
        font-size: 14px;
    }

    #contacts .container {
        max-width: 600px;
    }
}