@keyframes rotateCw180 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

.ready-solutions__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: -1rem;
}

.ready-solutions__section {
    width: 100%;
    padding: 1rem;
}

.ready-solutions__section details {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.ready-solutions__section-name::-webkit-details-marker {
    display: none;
}

.ready-solutions__section-name::marker {
    content: '';
}

.ready-solutions__section-name {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
    box-sizing: border-box;
    min-height: 100px;
    font-weight: 700;
    padding: 24px;
    background-color: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(60, 60, 60, 0.15);
    cursor: pointer;
    transition: background-color 0.2s linear;
}

.ready-solutions__section-name::after {
    display: inline-block;
    width: 16px;
    height: 8px;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='8' viewBox='0 0 16 8'%0Afill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0.58194798,0.70696975 7.9999997,6.8138995 15.418052,0.70696975' stroke='%23e31e24' stroke-width='2'%0A/%3E%3C/svg%3E%0A");
    content: '';
}

.ready-solutions__section-name.is-opening::after,
.ready-solutions__section-name.is-closing::after {
    animation-name: rotateCw180;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    animation-direction: normal;
    animation-play-state: running;
    animation-fill-mode: forwards;
}

.ready-solutions__section-name.is-closing::after {
    animation-direction: reverse;
}

.ready-solutions__section details[open] .ready-solutions__section-name::after {
    transform: rotateZ(180deg);
}

.ready-solutions__section details[open] .ready-solutions__section-name,
.ready-solutions__section-name:hover {
    background-color: var(--color-secondary);
}

.ready-solutions__section details[open] .ready-solutions__section-name {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.ready-solutions__items {
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(60, 60, 60, 0.15);
}

.ready-solutions__section details[open] .ready-solutions__items {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

.ready-solutions__list {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.page button.ready-solutions__button {
    display: flex;
    gap: 16px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 24px 24px 24px 48px;
    text-align: left;
    color: inherit;
    background-color: var(--color-white);
    border-width: 0;
    transition: color 0.2s linear;
}

.ready-solutions__button::before {
    flex-shrink: 0;
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    content: '';
    transition: background-color 0.2s linear;
}

.page button.ready-solutions__button:hover {
    color: var(--color-primary);
}

.ready-solutions__button:hover::before {
    background-color: var(--color-primary);
}

.ready-solutions__dialog[open] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 2rem;
    background-color: rgba(11, 11, 11, 0.8);
    border-width: 0;
}

body:has(.ready-solutions__dialog[open]) {
    overflow: hidden;
}

.ready-solutions__dialog-wrapper {
    position: relative;
    width: 100%;
    max-width: 740px;
    max-height: calc(100vh - 4rem);
    padding: 40px;
    background-color: var(--color-white);
    border-radius: 4px;
    overflow-y: auto;
}

.page button.ready-solutions__dialog-close {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-family: inherit;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    color: inherit;
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    border-top-right-radius: 4px;
    outline: none;
    touch-action: manipulation;
    opacity: 0.5;
    transition: opacity 0.15s linear;
}

.page button.ready-solutions__dialog-close:hover {
    opacity: 1;
}

.ready-solutions__dialog-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.page h6.ready-solutions__dialog-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.ready-solutions__dialog-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 32px;
}

.ready-solutions__dialog-price-value {
    font-size: 24px;
    font-weight: 500;
}

.page button.button.ready-solutions__dialog-request-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    min-height: 45px;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    background-color: transparent;
}

.page button.button.ready-solutions__dialog-request-button:hover {
    color: var(--color-white);
    background-color: var(--color-primary);
}

.ready-solutions__dialog-header img {
    display: none;
}

@media (min-width: 576px) {
    .ready-solutions__dialog-header img {
        display: inline-block;
    }

    .ready-solutions__dialog-footer {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .ready-solutions__section {
        width: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ready-solutions__section details,
    .ready-solutions__section-name,
    .page button.ready-solutions__button,
    .ready-solutions__button::before,
    .page button.ready-solutions__dialog-close {
        transition: none;
    }
}
