.rmUIshop {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rmUIshop__content {
    display: flex;
    flex-direction: column;
    width: 100%;
}


.rmUIshop__content-title {
    font-family: 'Unbounded';
    font-weight: 500;
    color: var(--black-color);
    font-size: 22px;
    margin-bottom: 31px;
}


.rmUIshop__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
}

.rmUIshop__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--block-bg);
    border: 1px solid var(--thin-gray-color);
}

.rmUIshop__card-image__block {
    width: 100%;
    flex-shrink: 0;
}

.rmUIshop__card-image {
    width: 100%;
}


.rmUIshop__card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 17px 14px;
}

.rmUIshop__card-header__block {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin-bottom: 14px;
}

.rmUIshop__card-header--title {
    display: -webkit-box;
    font-family: 'Unbounded';
    font-weight: 500;
    color: var(--red-color);
    font-size: 24px;
    line-height: 1;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rmUIshop__card-header--price {
    font-family: 'Montserrat';
    font-weight: 500;
    color: var(--red-color);
    font-size: 17px;
    line-height: 1;
}


.rmUIshop__card-content__block { 
    display: flex;
    flex-direction: column;
    flex: 1;
}


.rmUIshop__card-content--text {
    display: -webkit-box;
    font-family: 'Montserrat';
    font-weight: 500;
    color: var(--gray-color);
    font-size: 17px;
    line-height: 1;
    line-clamp: 11;
    -webkit-line-clamp: 11;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.rmUIshop__card-buttons__wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 16px;
    gap: 11px;
    flex-shrink: 0;
}

.rmUIshop__card-button {
    font-family: 'Unbounded';
    font-weight: 400;
    color: var(--black-color);
    font-size: 17px;
    padding: 12px 20px;
    user-select: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.rmUIshop__card-button--black-bg {
    padding: 12px 51px;
    color: var(--white-color);
    background-color: var(--black-color);
    transition: all 0.7s ease;
}

.rmUIshop__card-button:hover {
    opacity: 0.75;
}

.rmUIshop__card-button--black-bg:hover {
    opacity: 1;
    border-radius: 35px;
    background-color: var(--red-color);
}



/* ОБ УСЛУГЕ ВНУТРИ */
.rmUIusluga {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rmUIusluga__content {
    display: grid;
    grid-template-columns: 540px 1fr;
    gap: 14px;
}

.rmUIusluga__content-info__container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rmUIusluga__content-header__block {
    display: flex;
    flex-direction: column;
}

.rmUIusluga__content-header--title {
    font-family: 'Unbounded';
    font-weight: 500;
    color: var(--red-color);
    font-size: 34px;
    line-height: 1.1;
}

.rmUIusluga__content-header--price {
    font-family: 'Montserrat';
    font-weight: 500;
    color: var(--red-color);
    font-size: 18px;
    line-height: 1;
}


.rmUIusluga__content-text__block {
    display: flex;
    flex-direction: column;
    margin-bottom: 47px;
}

.rmUIusluga__content-text {
    font-family: 'Montserrat';
    font-weight: 500;
    color: var(--gray-color);
    font-size: 16px;
    white-space: pre-line;
    line-height: 1.2;
}


.rmUIusluga__content-button__wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.rmUIusluga__content-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded';
    font-weight: 400;
    color: var(--white-color);
    font-size: 18px;
    white-space: pre-line;
    padding: 13px;
    width: 100%;
    cursor: pointer;
    user-select: none;
    border-radius: 14px;
    background-color: var(--black-color);
    transition: all 0.4s ease;
}

.rmUIusluga__content-button:hover {
    background-color: var(--red-color);
}

.rmUIusluga__content-button:active {
    transform: scale(0.94);
}




/* МОДАЛКА С ЗАКАЗОМ */
.rmUIorder__modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.rmUIorder__modal.active {
    display: flex;
}

.rmUIorder__modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(7px);
}

.rmUIorder__modal-container {
    position: relative;
    background-color: var(--block-bg);
    border-radius: 28px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    animation: orderModalSlideUp 0.35s cubic-bezier(0.21, 1.02, 0.35, 1);
}

@keyframes orderModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rmUIorder__modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.rmUIorder__modal-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--black-color);
}

.rmUIorder__modal-close {
    background-color: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rmUIorder__modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.rmUIorder__modal-close svg {
    fill: var(--gray-color);
    transition: all 0.2s ease;
}

.rmUIorder__modal-close:hover svg {
    fill: var(--black-color);
}

.rmUIorder__modal-form {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

#dynamicFieldsContainer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rmUIorder__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rmUIorder__label {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    color: var(--black-color);
    font-size: 19px;
    transition: all 0.4s ease;
}

.rmUIorder__label:hover {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    color: var(--black-color);
    font-size: 19px;
    transition: all 0.4s ease;
}

.rmUIorder__label .required {
    color: var(--red-color);
}

.rmUIorder__input,
.rmUIorder__textarea,
.rmUIorder__select {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--black-color);
    font-size: 16px;
    padding: 14px 16px;
    border: 2px solid var(--thin-gray-color);
    border-radius: 14px;
    background-color: var(--white-color);
    transition: all 0.3s ease;
}

.rmUIorder__input:focus,
.rmUIorder__textarea:focus,
.rmUIorder__select:focus {
    outline: none;
    border-color: var(--red-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

.rmUIorder__textarea {
    resize: none;
    min-height: 210px;
}

/* Файловая загрузка */
.rmUIorder__files-container {
    margin-top: 5px;
}

.rmUIorder__file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed var(--thin-gray-color);
    border-radius: 16px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--gray-color);
    transition: all 0.3s ease;
}

.rmUIorder__file-upload:hover {
    border-color: var(--red-color);
    background-color: rgba(0, 119, 255, 0.05);
    color: var(--red-color);
}

.rmUIorder__file-upload svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.rmUIorder__file-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rmUIorder__file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--white-color);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    border: 1px solid var(--thin-gray-color);
}

.rmUIorder__file-remove {
    background-color: none;
    border: none;
    cursor: pointer;
    color: var(--red-color);
    font-size: 18px;
    padding: 0 4px;
}

.rmUIorder__modal-buttons {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 16px;
}

.rmUIorder__cancel,
.rmUIorder__submit {
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 18px;
    padding: 14px 48px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rmUIorder__cancel {
    background-color: #f0f0f0;
    color: var(--gray-color);
    border: none;
}

.rmUIorder__cancel:hover {
    background-color: #e4e4e4;
    color: var(--black-color);
}

.rmUIorder__submit {
    color: var(--white-color);
    background-color: var(--red-color);
    border: none;
}

.rmUIorder__submit:hover {
    background-color: var(--red-color);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.rmUIorder__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}