/*
 * Контакты — перенос страницы Tilda.
 * Исходные Zero Block размеры:
 * title: 1160×100;
 * contacts: 1160×306, карточки 373px, gap 20px;
 * callback: 1160×464;
 * map: 500px.
 */

.contacts-page {
    color: #101e31;
    background: #fff;
}

.contacts-title {
    padding-top: 54px;
}

.contacts-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #a7acba;
    font-size: 14px;
    line-height: 1.4;
    opacity: .7;
}

.contacts-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.contacts-title h1 {
    margin: 28px 0 0;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.contacts-info {
    padding-top: 60px;
}

.contacts-info__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contacts-card {
    min-height: 132px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 30px;
    background: #f3f5f8;
    border-radius: 4px;
    box-sizing: border-box;
}

.contacts-card--address,
.contacts-card--social,
.contacts-card--callback {
    min-height: 154px;
}

.contacts-card__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
}

.contacts-card h2 {
    margin: 0;
    color: #101e31;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: none;
}

.contacts-card p,
.contacts-card a {
    color: #101e31;
    font-size: 14px;
    line-height: 1.55;
}

.contacts-card p {
    margin: 18px 0 0;
}

.contacts-card p a {
    text-decoration: none;
}

.contacts-card--social {
    display: block;
}

.contacts-social {
    display: flex;
    gap: 26px;
    align-items: center;
    margin-top: 28px;
}

.contacts-social a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacts-social__dot {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
}

.contacts-social__dot--telegram {
    background: #389ce9;
}

.contacts-social__dot--vk {
    background: #447bba;
}

.contacts-card--callback {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #476382;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.contacts-card--callback h2 {
    color: #fff;
}

.contacts-card__callback-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    color: #fff !important;
    border: 1px solid #fff;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
}

.contacts-card__callback-button:hover,
.contacts-card__callback-button:focus-visible {
    color: #101e31 !important;
    background: #fff;
    outline: none;
}

/*
 * Карточка «Обратный звонок» перенесена в большой синий блок
 * на место удалённой формы.
 */
.contacts-card--callback-in-main {
    margin-top: 68px;
}

.contacts-callback {
    padding-top: 120px;
}

.contacts-callback__card {
    min-height: 464px;
    display: grid;
    grid-template-columns: minmax(0, 638px) minmax(0, 522px);
    overflow: hidden;
    background: #476382;
    border-radius: 6px;
}

.contacts-callback__content {
    padding: 34px 38px 36px 40px;
    color: #fff;
}

.contacts-callback__content h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.4;
}

.contacts-callback__content > p {
    max-width: 560px;
    margin: 16px 0 0;
    font-size: 20px;
    line-height: 1.55;
}

.contacts-callback__visual {
    min-width: 0;
    height: 464px;
}

.contacts-callback__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.contacts-map {
    padding-top: 120px;
}

.contacts-map iframe {
    width: 100%;
    height: 500px;
    display: block;
    border: 0;
}

@media (max-width: 1199px) {
    .contacts-info__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacts-card {
        min-height: 160px;
    }

    .contacts-callback__card {
        min-height: 502px;
        grid-template-columns: 1fr 1.08fr;
    }

    .contacts-callback__content {
        padding: 30px;
    }

    .contacts-callback__visual {
        height: 502px;
    }
}

@media (max-width: 959px) {
    .contacts-title {
        padding-top: 36px;
    }

    .contacts-breadcrumb {
        font-size: 10px;
    }

    .contacts-title h1 {
        margin-top: 20px;
        font-size: 30px;
    }

    .contacts-info {
        padding-top: 60px;
    }

    .contacts-info__grid {
        width: min(300px, 100%);
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 0 auto;
    }

    .contacts-card,
    .contacts-card--address,
    .contacts-card--social,
    .contacts-card--callback {
        min-height: auto;
        padding: 16px 20px;
    }

    .contacts-card {
        gap: 16px;
    }

    .contacts-card__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .contacts-card h2 {
        font-size: 14px;
    }

    .contacts-card p,
    .contacts-card a {
        font-size: 12px;
    }

    .contacts-card p {
        margin-top: 9px;
    }

    .contacts-social {
        margin-top: 12px;
    }

    .contacts-card--callback {
        gap: 12px;
    }

    .contacts-card--callback-in-main {
        margin-top: 28px;
    }

    .contacts-card__callback-button {
        min-height: 43px;
    }

    .contacts-callback {
        padding-top: 120px;
    }

    .contacts-callback__card {
        width: min(300px, 100%);
        min-height: 357px;
        display: block;
        margin: 0 auto;
    }

    .contacts-callback__content {
        padding: 16px 16px 20px;
    }

    .contacts-callback__content h2 {
        font-size: 24px;
        line-height: 1.05;
    }

    .contacts-callback__content > p {
        width: 246px;
        max-width: 100%;
        margin-top: 14px;
        font-size: 12px;
        line-height: 1.55;
    }

    .contacts-callback__visual {
        display: none;
    }

    .contacts-map iframe {
        height: 420px;
    }
}

@media (max-width: 480px) {
    .contacts-map iframe {
        height: 360px;
    }
}

/* ==========================================================
   contacts v3 — точная сверка с экспортом Tilda
   ========================================================== */

/*
 * Карточки контактов, desktop:
 * Tilda Zero Block:
 * title 20px / line-height 1
 * body  18px / line-height 1.4
 * icon  24x24
 */
@media (min-width: 960px) {
    .contacts-card__icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .contacts-card h2 {
        font-size: 20px;
        line-height: 1;
        font-weight: 400;
    }

    .contacts-card p {
        color: #3f5064;
        font-size: 18px;
        line-height: 1.4;
    }

    .contacts-card p a {
        color: #3f5064;
        font-size: 18px;
        line-height: 1.4;
    }

    .contacts-social a {
        color: #3f5064;
        font-size: 18px;
        line-height: 1.55;
    }

    .contacts-card--callback h2 {
        color: #fff;
        font-size: 20px;
        line-height: 1;
    }

    .contacts-card__callback-button {
        font-size: 14px !important;
        line-height: 1.55;
    }
}

/*
 * Tilda map block:
 * t-width_12 = 1160px, height 500px.
 * Карта центрируется, а не растягивается на окно.
 */
.contacts-map {
    width: calc(100% - 40px);
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 120px;
}

.contacts-map iframe {
    width: 100%;
    height: 500px;
}

/*
 * Mobile typography from exported Tilda variables:
 * <= 479:
 * card title = 14px
 * card body  = 11px
 * callback page title = 18px
 * form description = 12px
 * icons = 16px
 */
@media (max-width: 479px) {
    .contacts-title h1 {
        font-size: 20px;
        line-height: 1.2;
    }

    .contacts-card__icon {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }

    .contacts-card h2,
    .contacts-card--callback h2 {
        font-size: 14px;
        line-height: 1;
    }

    .contacts-card p,
    .contacts-card p a,
    .contacts-social a {
        font-size: 11px;
        line-height: 1.4;
    }

    .contacts-card__callback-button {
        font-size: 12px !important;
    }

    .contacts-callback__content h2 {
        font-size: 18px;
        line-height: 1.4;
    }

    .contacts-callback__content > p {
        font-size: 12px;
        line-height: 1.55;
    }

    .contacts-map {
        width: calc(100% - 20px);
    }

    .contacts-map iframe {
        height: 500px;
    }
}

