.contacts-main {
    background: #FCF5FC;
}

.contacts-main__inner {
    position: relative;
    height: 749px;
    border-radius: 25px;
    overflow: hidden;
}

.contacts-main__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

.contacts-main__card {
    position: absolute;
    left: 45px;
    top: 45px;
    width: 394px;
    height: 659px;
    background: #FFFFFF;
    border: 1px solid #8D2A8F;
    box-shadow: 3px 4px 22px 5px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 35px 40px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
}

.contacts-main__card::-webkit-scrollbar { display: none; }
.contacts-main__card { scrollbar-width: none; }

.contacts-main__title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 52px;
    color: #5C075E;
    margin: 0 0 28px 0;
    flex-shrink: 0;
}

.contacts-main__branches {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex-shrink: 0;
}

.contacts-main__branch {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contacts-main__branch-address {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    font-family: Manrope, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #8E468F;
    text-decoration: none;
}

.contacts-main__branch-address svg {
    width: 12px;
    height: 16px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.contacts-main__branch-phone {
    font-family: Manrope, sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 27px;
    color: #5C075E;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contacts-main__branch-phone:hover { opacity: 0.75; }

.contacts-main__branch-route {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Manrope, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 25px;
    color: #5C075E;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contacts-main__branch-route:hover { opacity: 0.75; }

.contacts-main__branch-route svg {
    width: 14px;
    height: 20px;
    flex-shrink: 0;
}

.contacts-main__extra {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex-shrink: 0;
    margin-top: 55px;
}

.contacts-main__extra-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contacts-main__extra-label {
    font-family: Manrope, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #8E468F;
}

.contacts-main__extra-value {
    font-family: Manrope, sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 27px;
    color: #5C075E;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contacts-main__extra-value:hover { opacity: 0.75; }

@media (max-width: 1200px) {
    .contacts-main__inner { height: 600px; }
    .contacts-main__card { width: 300px; }
}

@media (max-width: 1024px) {
    .contacts-main {
        padding-bottom: 100px;
    }

    .contacts-main__inner {
        height: 552px;
        border-radius: 20px;
    }

    .contacts-main__card {
        width: 266px;
        height: 492px;
        left: 30px;
        top: 30px;
        border-radius: 20px;
        padding: 30px;
    }

    .contacts-main__title {
        font-size: 28px;
        line-height: 38px;
        margin-bottom: 20px;
    }

    .contacts-main__branches {
        gap: 20px;
    }

    .contacts-main__branch-address {
        font-size: 11px;
        line-height: 15px;
    }

    .contacts-main__branch-phone {
        font-size: 16px;
        line-height: 22px;
    }

    .contacts-main__branch-route {
        font-size: 14px;
        line-height: 19px;
    }

    .contacts-main__extra {
        margin-top: 30px;
        gap: 20px;
    }

    .contacts-main__extra-label {
        font-size: 12px;
        line-height: 16px;
    }

    .contacts-main__extra-value {
        font-size: 14px;
        line-height: 19px;
    }
}

@media (max-width: 768px) {
    .contacts-main__inner {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .contacts-main__map {
        position: relative;
        height: 272px;
        order: 1;
        border-radius: 20px 20px 0 0;
    }

    .contacts-main__card {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 0 0 20px 20px;
        border: none;
        box-shadow: none;
        order: 2;
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .contacts-main {
        padding-bottom: 70px;
    }

    .contacts-main__card {
        padding: 20px;
    }

    .contacts-main__title {
        font-size: 24px;
        line-height: 27px;
        margin-bottom: 15px;
    }

    .contacts-main__branch-address {
        font-size: 11px;
        line-height: 15px;
    }

    .contacts-main__branch-phone {
        font-size: 16px;
        line-height: 22px;
    }

    .contacts-main__branch-route {
        font-size: 14px;
        line-height: 19px;
    }

    .contacts-main__extra-label {
        font-size: 12px;
        line-height: 16px;
    }

    .contacts-main__extra-value {
        font-size: 14px;
        line-height: 19px;
    }

    .contacts-main__map {
        height: 272px;
    }
}