/* ==========================================================================
   Contacts page
   ========================================================================== */

.contacts-page {
    width: 100%;
    background: #fff;
    font-family: var(--font-family);
    color: #151515;
}

.contacts-page__main {
    width: 100%;
    padding-bottom: 80px;
}

.contacts-container {
    width: min(100%, var(--container-max-width));
    margin: 0 auto;
}

/* Breadcrumbs */

.contacts-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding-top: 34px;
    padding-bottom: 24px;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

.contacts-breadcrumbs a {
    color: #151515;
}

.contacts-breadcrumbs a:hover {
    color: #3a68d5;
}

.contacts-breadcrumbs__sep,
.contacts-breadcrumbs__current {
    color: #777;
}

.contacts-breadcrumbs__current {
    min-width: 0;
}

/* Intro */

.contacts-intro {
    margin-bottom: 59px;
}

.contacts-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 410px) minmax(0, 1fr);
    gap: 55px;
    align-items: stretch;
}

.contacts-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 490px;
    padding: 46px 45px 40px;
    border: 1px solid #e6e6e6;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contacts-card__list {
    margin: 0;
}

.contacts-card__item + .contacts-card__item {
    margin-top: 32px;
}

.contacts-card__label {
    margin: 0 0 4px;
    color: #666;
    font-size: 17px;
    font-weight: 300;
    line-height: 28px;
    text-transform: uppercase;
}

.contacts-card__value {
    margin: 0;
    color: #151515;
    font-size: 19px;
    font-weight: 400;
    line-height: 28px;
}

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

.contacts-card__value a:hover {
    color: #3a68d5;
}

.contacts-card__social {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.contacts-card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #657191;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.contacts-card__social-link:hover {
    opacity: 0.8;
}

.contacts-card__social-link img {
    display: block;
    max-width: 24px;
    max-height: 22px;
    object-fit: contain;
}

.contacts-map {
    overflow: hidden;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background: #d9d9d9;
    min-height: 490px;
}

.contacts-map__embed,
.contacts-map__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 490px;
    border: 0;
    object-fit: cover;
}

.contacts-map__embed {
    border: 0;
}

/* Sections */

.contacts-section + .contacts-section {
    margin-top: 48px;
}

.contacts-section__title {
    margin: 0 0 27px;
    font-size: 36px;
    font-weight: 600;
    line-height: 46px;
}

/* Tables */

.contacts-table-wrap {
    overflow: hidden;
    border: 1px solid #d4d4d4;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background: #fff;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.contacts-table thead th {
    height: 64px;
    padding: 0 24px;
    border-bottom: 1px solid #d4d4d4;
    background: #3a68d5;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 1px;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contacts-table thead th:first-child {
    border-top-left-radius: 30px;
}

.contacts-table tbody td {
    padding: 20px 24px;
    border-top: 1px solid #d4d4d4;
    color: #151515;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contacts-table thead th + th,
.contacts-table tbody td + td {
    border-left: 1px solid #d4d4d4;
}

.contacts-table__col-num {
    width: 72px;
}

.contacts-table__col-phone {
    width: 180px;
}

.contacts-table--departments .contacts-table__col-phone {
    width: 280px;
}

.contacts-table__num {
    color: #999;
    font-size: 18px;
    line-height: 28px;
    text-align: left;
}

.contacts-table__name {
    color: #101828;
}

.contacts-table__phone {
    color: #151515;
    font-weight: 600;
    white-space: normal;
}

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

.contacts-table__phone a:hover {
    color: #3a68d5;
}

/* Responsive */

@media (max-width: 1200px) {
    .contacts-breadcrumbs {
        padding-top: 28px;
        padding-bottom: 36px;
        gap: 14px;
    }

    .contacts-page__main {
        padding-bottom: 64px;
    }

    .contacts-section__title {
        font-size: 32px;
        line-height: 40px;
    }

    .contacts-table thead th {
        padding: 0 16px;
        font-size: 11px;
    }

    .contacts-table tbody td {
        padding: 16px;
        font-size: 16px;
        line-height: 22px;
    }

    .contacts-table__col-phone {
        width: 160px;
    }

    .contacts-table--departments .contacts-table__col-phone {
        width: 220px;
    }
}

@media (min-width: 801px) and (max-width: 1200px) {
    .contacts-intro__grid {
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
        gap: 32px;
        align-items: stretch;
    }

    .contacts-card {
        min-height: 0;
        height: 100%;
        align-self: stretch;
        padding: 32px 24px 28px;
    }

    .contacts-card__item + .contacts-card__item {
        margin-top: 24px;
    }

    .contacts-card__label {
        font-size: 14px;
        line-height: 22px;
    }

    .contacts-card__value {
        font-size: 17px;
        line-height: 24px;
    }

    .contacts-card__social {
        margin-top: 28px;
        gap: 12px;
    }

    .contacts-map {
        display: flex;
        min-height: 0;
        height: 100%;
        align-self: stretch;
    }

    .contacts-map__embed,
    .contacts-map__image {
        flex: 1 1 auto;
        min-height: 360px;
        height: 100%;
    }
}

@media (max-width: 900px) {
    .contacts-breadcrumbs {
        padding-top: 24px;
        padding-bottom: 28px;
        gap: 12px;
    }

    .contacts-intro {
        margin-bottom: 48px;
    }

    .contacts-section + .contacts-section {
        margin-top: 40px;
    }

    .contacts-section__title {
        margin-bottom: 24px;
    }

    .contacts-table__col-num {
        width: 56px;
    }

    .contacts-table__col-phone {
        width: 24%;
    }

    .contacts-table--departments .contacts-table__col-phone {
        width: 30%;
    }
}

@media (max-width: 800px) {
    .contacts-breadcrumbs {
        padding-top: 20px;
        padding-bottom: 24px;
        gap: 12px;
        font-size: 13px;
        line-height: 20px;
    }

    .contacts-breadcrumbs__current {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }

    .contacts-intro__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contacts-card {
        order: -1;
        min-height: auto;
        height: auto;
        padding: 32px 24px 28px;
    }

    .contacts-map {
        min-height: 0;
        height: auto;
    }

    .contacts-map__embed,
    .contacts-map__image {
        min-height: 320px;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 768px) {
    .contacts-section__title {
        font-size: 28px;
        line-height: 34px;
    }

    .contacts-card {
        padding: 28px 20px 24px;
    }

    .contacts-card__item + .contacts-card__item {
        margin-top: 20px;
    }

    .contacts-card__label {
        font-size: 15px;
        line-height: 24px;
    }

    .contacts-card__value {
        font-size: 17px;
        line-height: 24px;
    }

    .contacts-table thead th {
        height: auto;
        min-height: 52px;
        padding: 10px 8px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .contacts-table tbody td {
        padding: 12px 8px;
        font-size: 14px;
        line-height: 19px;
    }

    .contacts-table__col-num {
        width: 40px;
    }

    .contacts-table:not(.contacts-table--departments) thead th:nth-child(2),
    .contacts-table:not(.contacts-table--departments) tbody td:nth-child(2) {
        width: 26%;
    }

    .contacts-table:not(.contacts-table--departments) thead th:nth-child(3),
    .contacts-table:not(.contacts-table--departments) tbody td:nth-child(3) {
        width: 32%;
    }

    .contacts-table:not(.contacts-table--departments) .contacts-table__col-phone {
        width: 28%;
    }

    .contacts-table--departments .contacts-table__col-num {
        width: 44px;
    }

    .contacts-table--departments thead th:nth-child(2),
    .contacts-table--departments tbody td:nth-child(2) {
        width: auto;
    }

    .contacts-table--departments .contacts-table__col-phone {
        width: 32%;
    }

    .contacts-table__num {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 700px) {
}

@media (max-width: 480px) {
    .contacts-breadcrumbs {
        padding-top: 16px;
        padding-bottom: 20px;
        gap: 10px;
    }

    .contacts-page__main {
        padding-bottom: 48px;
    }

    .contacts-intro {
        margin-bottom: 40px;
    }

    .contacts-card {
        padding: 24px 16px 20px;
        border-top-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .contacts-card__social-link {
        width: 40px;
        height: 40px;
    }

    .contacts-map {
        border-top-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .contacts-map__embed,
    .contacts-map__image {
        min-height: 240px;
        aspect-ratio: 4 / 3;
    }

    .contacts-section__title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
    }

    .contacts-section + .contacts-section {
        margin-top: 32px;
    }

    .contacts-table-wrap {
        border-top-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .contacts-table thead th {
        min-height: 48px;
        padding: 8px 14px;
        font-size: 8px;
        letter-spacing: 0.4px;
    }

    .contacts-table tbody td {
        padding: 10px 6px;
        font-size: 13px;
        line-height: 18px;
    }

    .contacts-table__col-num {
        width: 34px;
    }

    .contacts-table:not(.contacts-table--departments) .contacts-table__col-phone {
        width: 30%;
    }

    .contacts-table--departments .contacts-table__col-phone {
        width: 34%;
    }

    .contacts-table__num {
        font-size: 13px;
        line-height: 18px;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .contacts-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 36px rgba(58, 104, 213, 0.18);
    }
}