/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

.contacts__back{
    margin-bottom: var(--space-10);
}
.contacts__elements{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-column-gap: var(--space-16);
       -moz-column-gap: var(--space-16);
            column-gap: var(--space-16);
}
.contact__element-item{
    padding-block: var(--space-8);
    border-bottom: var(--border-alternative-gray);
    width: 359px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    row-gap: var(--space-8);
}
.contact__element-item:last-child{
    border-bottom: none;
}
.contact__element-link{
    color: var(--color-black);
    text-align: center;
}
.contacts__elements-map{
    border: var(--border);
    border-radius: var(--border-radius);
    overflow: hidden; 
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.contacts__map-container {
    position: relative;
    width: 100%;
    height: 733px;
    max-width: 1270px;
    padding-top: 43.23%; 
    overflow: hidden;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
.contacts__map-container iframe {
    position: absolute;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 100%;
    height: 100%;
    border: 0;
}
.contacts__map-link {
    position: absolute;
    color: #eee;
    font-size: var(--text-ui);
    top: 0;
}
.contacts__map-link:nth-of-type(2) {
    top: 14px;
}

@media (max-width:1345px) {
    .contacts__elements{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        row-gap: var(--space-24);
    }
    .contacts__elements-list{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-pack: distribute;
            justify-content: space-around;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        width: 100%;
    }
    .contact__element-item{
        border-bottom: none;
        width: 100%;
        padding-inline: var(--space-4);
    }
    .contact__element-item:nth-child(2){
        border-inline: var(--border-alternative-gray);
    }
}
@media (max-width: 1300px) {
    .header__logo-image{
        width: clamp(7.5rem, 6.153rem + 6.73vw, 11.625rem);
    }
    .header__menu-link,
    .header__phone,
    .menu__phone,
    .footer__list-link,
    .footer__list-title,
    .footer__list-copyright{
        font-size: var(--text-ui);
    }
    .header__menu-list{
        -webkit-column-gap: clamp(1.563rem, -5.394rem + 10.87vw, 3.438rem);
           -moz-column-gap: clamp(1.563rem, -5.394rem + 10.87vw, 3.438rem);
                column-gap: clamp(1.563rem, -5.394rem + 10.87vw, 3.438rem);
    }
    .title,
    .contacts__title{
        font-size: var(--text-h2);
    }
    .about__content,
    .contacts__back,
    .contact__element-link{
        font-size: var(--text-lead);
    }
    .contact__element-item:nth-child(odd) .contact__element-icon {
        width: clamp(3.125rem, 2.664rem + 2.11vw, 4.375rem);
        height: clamp(3.125rem, 2.664rem + 2.11vw, 4.375rem);
    }
    .contact__element-item:nth-child(even) .contact__element-icon {
        width: clamp(3.75rem, 3.289rem + 2.11vw, 5rem);
        height: clamp(3.75rem, 3.289rem + 2.11vw, 5rem);
    }
}
@media (max-width: 1100px){
    .header__phone{
        display: none;
    }
}
@media (max-width: 868px) {
    .about__image{
        min-width: 200px;
    }
    .footer__list{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        row-gap: var(--space-20);
    }
    .footer__sublist-item {
        padding-bottom: var(--space-4);
    }
}
@media (max-width: 660px) {
    .contacts__elements-list {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .contact__element-item:nth-child(2) {
        border-inline: none;
    }
    .contacts__elements {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
        row-gap: var(--space-20);
    }
}
/* Адрес размечен тегом <address> — браузер по умолчанию ставит курсив,
   а в макете он прямой */
.contact__element-address {
    font-style: normal;
}
