.page-contact #main-content {
    min-width: 0;
}

.contact-page-hero {
    height: 584px;
    padding-block-start: 88px;
}

.contact-page-hero__band {
    width: 100%;
    height: 496px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 120px 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.contact-page-card {
    position: relative;
    width: 1200px;
    height: 516px;
    display: grid;
    grid-template-columns: minmax(0, 970px) 230px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 -12px 80px #f1f5f9;
    direction: ltr;
}

.contact-page-card__decoration {
    position: absolute;
    z-index: 0;
    inset-block-start: -64px;
    inset-inline-start: -37px;
    width: 285px;
    max-width: none;
    height: 291px;
    transform: rotate(90deg) scaleY(-1);
    pointer-events: none;
}

.contact-page-card__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    height: 516px;
    display: grid;
    grid-template-columns: minmax(0, 403px) minmax(0, 399px);
    grid-template-rows: 88px 268px;
    grid-template-areas:
        "intro heading"
        "map details";
    gap: 48px 56px;
    padding: 56px;
    direction: ltr;
}

.contact-page-heading {
    grid-area: heading;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    direction: rtl;
}

.contact-page-heading .breadcrumbs {
    padding: 0;
    color: var(--ava-neutral-400);
    font-size: 12px;
    line-height: 20px;
    letter-spacing: -.3px;
}

.contact-page-heading .breadcrumbs ol {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.contact-page-heading .breadcrumbs li + li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-page-heading .breadcrumbs li + li::before {
    width: 12px;
    height: 12px;
    margin: 0;
    content: "";
    background: url("../icons/contact/breadcrumb-chevron.svg") center / 8px 5px no-repeat;
    transform: rotate(90deg);
}

.contact-page-heading h1 {
    width: 100%;
    margin: 0;
    color: var(--ava-neutral-800);
    font-size: 34px;
    line-height: 56px;
    font-weight: 900;
    letter-spacing: -1.08px;
    text-align: right;
    white-space: nowrap;
}

.contact-page-intro {
    grid-area: intro;
    align-self: stretch;
    min-width: 0;
    display: flex;
    align-items: center;
    margin: 0;
    padding-inline: 24px;
    color: var(--ava-neutral-600);
    font-size: 14px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -.42px;
    text-align: right;
    direction: rtl;
}

.contact-page-details {
    grid-area: details;
    min-width: 0;
    height: 268px;
    margin: 0;
    color: var(--ava-neutral-800);
    font-style: normal;
    direction: rtl;
}

.contact-page-details__row {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.contact-page-details__row--phones,
.contact-page-details__row--email {
    height: 80px;
    align-items: center;
    border-block-end: 1px solid var(--ava-neutral-100);
}

.contact-page-details__row--address {
    height: 108px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 24px;
}

.contact-page-details__label {
    flex: 0 0 auto;
    color: var(--ava-neutral-400);
    font-size: 16px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -.48px;
}

.contact-page-details__phones {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ava-neutral-800);
    font-size: 16px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -.48px;
}

.contact-page-details__phones a {
    white-space: nowrap;
}

.contact-page-details__phones a + img {
    margin-inline: 0;
}

.contact-page-details__phones a:last-child {
    padding-inline-start: 12px;
}

.contact-page-details__phones a span {
    font-weight: 400;
}

.contact-page-details__phones img {
    width: 24px;
    max-width: none;
    height: 22px;
}

.contact-page-details__email {
    color: var(--ava-neutral-800);
    font-size: 16px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -.48px;
}

.contact-page-details__row--address > span:last-child {
    width: 100%;
    color: var(--ava-neutral-800);
    font-size: 14px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -.42px;
    text-align: right;
}

.contact-page-map {
    grid-area: map;
    width: 100%;
    height: 268px;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--ava-neutral-100);
    direction: rtl;
}

.contact-page-map img {
    width: 100%;
    max-width: none;
    height: 276px;
    display: block;
    object-fit: cover;
    object-position: center bottom;
    transform: translateY(-8px);
}

.contact-page-card__rail {
    position: relative;
    z-index: 1;
    min-width: 0;
    height: 516px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 56px 48px 40px;
    background: radial-gradient(ellipse at 0 50%, #f8fafc 0%, #fff 100%);
    direction: rtl;
}

.contact-page-brand {
    width: 134px;
    height: 163px;
    display: flex;
    flex: 0 0 163px;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.contact-page-brand > img {
    width: 132px;
    max-width: none;
    height: 59px;
    object-fit: contain;
}

.contact-page-brand > div {
    width: 134px;
    height: 84px;
}

.contact-page-brand h2 {
    margin: 0 0 -8px;
    color: var(--ava-neutral-800);
    font-size: 36px;
    line-height: 64px;
    font-weight: 400;
    letter-spacing: -1.35px;
    white-space: nowrap;
}

.contact-page-brand p {
    margin: 0;
    color: var(--ava-neutral-400);
    font-size: 14px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -.42px;
    white-space: nowrap;
}

.contact-page-socials {
    width: 134px;
    height: 225px;
    display: flex;
    flex: 0 0 225px;
    flex-direction: column;
    gap: 12px;
    direction: ltr;
}

.contact-page-socials a {
    width: 134px;
    height: 47.25px;
    min-height: 0;
    display: flex;
    flex: 0 0 47.25px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: var(--ava-neutral-0);
}

.contact-page-socials img {
    width: 24px;
    max-width: none;
    height: 24px;
    object-fit: contain;
}

.contact-page-socials .social-links__aparat img {
    width: 73px;
    height: 56px;
}

@media (min-width: 992px) and (max-width: 1279px) {
    .contact-page-hero__band {
        padding-inline: 20px;
    }

    .contact-page-card {
        width: calc(100vw - 40px);
        grid-template-columns: minmax(0, 1fr) 210px;
    }

    .contact-page-card__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 36px;
        padding-inline: 40px;
    }

    .contact-page-heading h1 {
        font-size: 30px;
        letter-spacing: -.9px;
    }

    .contact-page-intro {
        padding-inline: 8px;
    }

    .contact-page-card__rail {
        padding-inline: 38px;
    }
}

@media (max-width: 991px) {
    .contact-page-hero {
        height: 1012px;
        padding-block-start: 64px;
    }

    .contact-page-hero__band {
        height: 948px;
        align-items: flex-end;
        padding: 0 20px 24px;
    }

    .contact-page-card {
        width: 100%;
        height: 948px;
        grid-template-columns: 1fr;
        grid-template-rows: 784px 164px;
        border-radius: 24px;
    }

    .contact-page-card__decoration {
        inset-block-start: -64px;
        inset-inline-start: -37px;
    }

    .contact-page-card__content {
        width: 100%;
        height: 784px;
        display: block;
        padding: 24px;
    }

    .contact-page-heading {
        width: 100%;
        height: 68px;
        gap: 8px;
    }

    .contact-page-heading h1 {
        font-size: 22px;
        line-height: 40px;
        letter-spacing: -1.08px;
    }

    .contact-page-intro {
        width: 100%;
        height: 104px;
        margin-block-start: 24px;
        align-items: flex-start;
        padding: 0 0 8px;
        font-size: 13px;
        line-height: 24px;
        letter-spacing: -.36px;
    }

    .contact-page-details {
        width: 100%;
        height: 232px;
        margin-block-start: 24px;
    }

    .contact-page-details__row {
        padding-inline: 4px;
    }

    .contact-page-details__row--phones {
        height: 56px;
        padding-block: 8px 16px;
    }

    .contact-page-details__row--email {
        height: 60px;
        padding-block: 16px;
    }

    .contact-page-details__row--address {
        height: 116px;
        gap: 4px;
        padding: 16px 4px;
    }

    .contact-page-details__label {
        font-size: 15px;
        line-height: 28px;
    }

    .contact-page-details__phones {
        gap: 0;
        font-size: 15px;
        line-height: 32px;
    }

    .contact-page-details__phones a:last-child {
        padding-inline-start: 16px;
    }

    .contact-page-details__email {
        font-size: 15px;
        line-height: 28px;
    }

    .contact-page-details__row--address > span:last-child {
        font-size: 13px;
        line-height: 26px;
        letter-spacing: -.39px;
    }

    .contact-page-map {
        width: 100%;
        height: 268px;
        margin-block-start: 16px;
    }

    .contact-page-card__rail {
        width: 100%;
        height: 164px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 28px 24px;
        background: radial-gradient(ellipse at 50% 0, #f8fafc 0%, #fff 100%);
    }

    .contact-page-brand {
        width: 86px;
        height: 104px;
        flex: 0 0 86px;
        gap: 12.78px;
    }

    .contact-page-brand > img {
        width: 84.33px;
        height: 37.48px;
    }

    .contact-page-brand > div {
        width: 86px;
        height: 53.89px;
    }

    .contact-page-brand h2 {
        margin-block-end: -5.11px;
        font-size: 23px;
        line-height: 40.89px;
        letter-spacing: -.86px;
    }

    .contact-page-brand p {
        font-size: 9px;
        line-height: 17.89px;
        letter-spacing: -.27px;
    }

    .contact-page-socials {
        width: 140px;
        height: 108px;
        display: grid;
        flex: 0 0 140px;
        grid-template-columns: repeat(2, 64px);
        grid-template-rows: repeat(2, 48px);
        gap: 12px;
        direction: ltr;
    }

    .contact-page-socials a {
        width: 64px;
        height: 48px;
        min-height: 48px;
        flex: none;
    }

    .contact-page-socials img {
        width: 20px;
        height: 20px;
    }

    .contact-page-socials .social-links__aparat img {
        width: 63px;
        height: 48px;
    }
}

@media (max-width: 359px) {
    .contact-page-hero__band {
        padding-inline: 12px;
    }

    .contact-page-card__content {
        padding-inline: 20px;
    }

    .contact-page-heading h1 {
        font-size: 20px;
        line-height: 40px;
        letter-spacing: -.7px;
    }

    .contact-page-details__label {
        font-size: 13px;
    }

    .contact-page-details__phones {
        font-size: 12px;
    }

    .contact-page-details__phones img {
        width: 16px;
        height: 18px;
    }

    .contact-page-details__phones a:last-child {
        padding-inline-start: 6px;
    }

    .contact-page-details__email {
        font-size: 13px;
    }

    .contact-page-card__rail {
        padding-inline: 20px;
    }
}
