.contacts {
    background: #FCF5FC;
    padding-top: 80px;
}

.contacts__title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 55px;
    line-height: 64px;
    letter-spacing: -0.01em;
    color: #5C075E;
    margin: 0 0 50px 0;
}

.contacts__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts__row {
    display: grid;
    grid-template-columns: 850fr 725fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 50px;
}

.contacts__card {
    background: #8D2A8F;
    border-radius: 25px;
    padding: 24px;
    display: flex;
    gap: 24px;
    min-height: 400px;
}

.contacts__card-image-wrap {
    flex-shrink: 0;
    width: 356px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.contacts__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contacts__card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #FCF5FC;
    padding: 12px 0;
}

.contacts__card-address {
    font-family: Manrope, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    color: #FCF5FC;
    margin-bottom: 8px;
}

.contacts__card-route {
    font-family: Manrope, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    color: #FCF5FC;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
    margin-bottom: 8px;
    cursor: pointer;
}

.contacts__card-route:hover {
    opacity: 0.8;
}

.contacts__card-route-arrow {
    width: 14px;
    height: 20px;
    flex-shrink: 0;
}

.contacts__card-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}

.contacts__card-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts__card-label {
    font-family: Manrope, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    color: #FCF5FC;
}

.contacts__card-value {
    font-family: Manrope, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    color: #FCF5FC;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contacts__card-value:hover {
    opacity: 0.8;
}

.contacts__map {
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.contacts__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 1440px) {
    .contacts__row {
        grid-template-columns: 1fr 1fr;
    }

    .contacts__card-image-wrap {
        width: 300px;
        height: 300px;
    }

    .contacts__card-address {
        font-size: 32px;
        line-height: 40px;
    }

    .contacts__card-label {
        font-size: 22px;
    }

    .contacts__card-value {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .contacts { padding-top: 50px !important; }

    .contacts__title {
        font-size: 34px;
        line-height: 40px;
        letter-spacing: -0.01em;
        margin-bottom: 35px;
    }

    .contacts__row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 35px;
    }

    .contacts__row {
        align-items: stretch;
    }

    .contacts__card {
        padding: 20px;
        gap: 20px;
        border-radius: 20px;
        min-height: auto;
    }

    .contacts__card-image-wrap {
        width: 40%;
        height: auto;
        aspect-ratio: 201 / 233;
        border-radius: 20px;
        flex-shrink: 0;
    }

    .contacts__card-content {
        padding: 0;
        gap: 6px;
        justify-content: space-between;
    }

    .contacts__card-address {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 0;
    }

    .contacts__card-route {
        font-size: 12px;
        line-height: 16px;
        margin-bottom: 0;
    }

    .contacts__card-info {
        gap: 20px;
        margin-top: 0;
    }

    .contacts__card-section {
        gap: 4px;
    }

    .contacts__card-label {
        font-size: 18px;
        line-height: 25px;
    }

    .contacts__card-value {
        font-size: 12px;
        line-height: 16px;
    }

    .contacts__map {
        min-height: 273px;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .contacts { padding-top: 50px; }
}

@media (max-width: 768px) {
    .contacts__title {
        font-size: 24px;
        line-height: 27px;
        margin-bottom: 25px;
    }

    .contacts__row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .contacts__card {
        flex-direction: column;
        min-height: auto;
        padding: 20px;
        gap: 10px;
        border-radius: 20px;
    }

    .contacts__card-image-wrap {
        display: none;
    }

    .contacts__card-content {
        padding: 0;
        gap: 20px;
    }

    .contacts__card-address {
        font-size: 22px;
        line-height: 28px;
    }

    .contacts__card-route {
        font-size: 12px;
        line-height: 16px;
    }

    .contacts__card-label {
        font-size: 18px;
        line-height: 25px;
    }

    .contacts__card-value {
        font-size: 12px;
        line-height: 16px;
    }

    .contacts__map {
        height: 226px;
        border-radius: 20px;
    }
}
.contacts__map {
    border: 1px solid #8D2A8F;
}
.is-contacts-page .contacts__card-info{
    margin-top: 0;
}
.is-contacts-page .contacts__card-section:nth-child(2) {
    margin-top: 79px;
}
.contacts__row:nth-child(2) .contacts__card-section:nth-child(2) {
    margin-top: 34px;
}

@media (max-width: 1024px) {
    .is-contacts-page .contacts__card-section:nth-child(2) {
        margin-top: 0;
    }
    .contacts__row:nth-child(2) .contacts__card-section:nth-child(2) {
        margin-top: 0;
    }
}