main {}

.contacts-container {
    padding: 30px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contacts-container h2 {
    font-size: 40px;
    color: #D1321C;
    margin-bottom: 20px;
}

.contacts-container h3 {
    font-size: 20px;
    color: #142E9E;
    margin-top: 30px;
    margin-bottom: 5px;
}

.contacts-container p {
    margin-bottom: 10px;
}

.contacts-container p a {
    text-decoration: none;
    color: black;
    padding: 10px;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border-bottom 0.3s, font-weight 0.3s, box-shadow 0.3s;
    border-radius: 15px
}

.contacts-container p a:hover {
    color: #D1321C;
    border-bottom: 1px solid #142E9E;
    font-weight: 700;
    box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.1);
}

.contacts-container p a span {
    color: red;
    font-weight: 800;
}

/* Адаптация под малые экраны и планшеты */
@media (max-width: 1200px) {
    .contacts-container {
        padding: 10px;
        text-align: center;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
        max-width: 600px;
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .contacts-container h2 {
        font-size: 38px;
        color: #D1321C;
        margin-bottom: 20px;
    }

    .contacts-container h3 {
        font-size: 20px;
        color: #142E9E;
        margin-top: 20px;
        margin-bottom: 5px;
    }

    .contacts-container p {
        margin-bottom: 5px;
    }

    .contacts-container p a {
        text-decoration: none;
        color: black;
        padding: 7px;
        border-bottom: 1px solid transparent;
        transition: color 0.3s, border-bottom 0.3s, font-weight 0.3s, box-shadow 0.3s;
        border-radius: 15px
    }

    .contacts-container p a:hover {
        color: #D1321C;
        border-bottom: 1px solid #142E9E;
        font-weight: 700;
        box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.1);
    }

    .contacts-container p a span {
        color: red;
        font-weight: 800;
    }
}

/* Мобильная адаптация */
@media (max-width: 980px) {
    .contacts-container {
        padding: 10px;
        text-align: center;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
        max-width: 400px;
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 590px) {
    .contacts-container h2 {
        font-size: 9vw;
    }
}
