/* main */
.rates {
    position: relative;
}

.rates__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -2;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #052658 0%, #0b52be 100%);
}

.rates__container {
    padding: 50px;
    padding-bottom: 100px;
    max-width: 1434px;
    margin: 0 auto;
}

/* header */
.rates__header {
    margin-bottom: 141px;
}

.rates__title {
    color: var(--color_white);
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}

.rates__subtitle {
    color: var(--color_white);
    text-align: center;
    margin-bottom: 7px;
}

.rates__subtitle-second {
    color: var(--color_white);
    opacity: 0.5;
    text-align: center;
}

/* content */
.rates__content {
    column-gap: 20px;
    margin-top: 85px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 32.085% 32.834% 32.084%;
    align-items: end;
}

.rates__box {
    background-color: #fff;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 1110px;
}

.rates__box:nth-child(1),
.rates__box:nth-child(3) {
    margin-top: 30px;
    height: fit-content;
}

.rates__box:nth-child(2) {
    border-radius: 40px;
    border: 5px solid #0065ff;
    box-sizing: border-box;
    /*min-height: 1096px;*/
    /*min-height: 1280px;*/
    position: relative;
}

.rates__box:nth-child(2)::before {
    content: "Выбор клиентов";
    position: absolute;
    top: -45px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 200px;
    height: 58px;
    background: linear-gradient(180deg, #28d146 50.3%, #0065ff 100%);
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    border-radius: 15px 15px 0px 0px;
    z-index: -1;
    font-size: 15px;
    font-weight: 700;
    padding-top: 16px;
    box-sizing: border-box;
}

.rates__box-title {
    line-height: normal;
    margin-bottom: 10px;
}

.rates__box-subtitle {
    color: var(--color_bali);
    line-height: normal;
}

.rates__logo-link {
    margin-bottom: 100px;
    display: inline-block;
}

.rates__box-top {
    padding: 25px;
    width: 100%;
    text-align: center;
}

.rates__separator {
    width: 100%;
    height: 1px;
    background-color: var(--color_border);
}

.rates__middle {
    padding: 25px 35px;
    line-height: normal;
    display: flex;
    flex-direction: column;
    min-height: 657px;
}

.rates__link-more {
    color: var(--color_ribbon);
    text-decoration: underline;
    cursor: pointer;
}

.rates__platforms-list {
    display: flex;
    column-gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.rates__platforms-item {
    padding: 10px 12px;
    background-color: var(--color_background);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color_madison);
    margin-bottom: 5px;
}

.rates__platforms-descr {
    margin-bottom: 15px;
    text-align: center;
}

.rates__descr-content {
    font-size: 15px;
    font-weight: 400;
    color: var(--color_madison);
}
.rates__descr-content a {
    color: var(--color_ribbon);
}

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.rates__descr-flash {
    background-image: url("/img/tariffs/flash.svg");
}


.rates__descr-item {
    align-items: center;
    display: flex;
    column-gap: 15px;
}

.rates__platforms {
    margin-bottom: 25px;
}

.rates__descr-title {
    margin-bottom: 10px;
}

.rates__descr-list {
    row-gap: 6px;
    display: flex;
    flex-direction: column;
}

.rates__descr-list:first-of-type {
    margin-bottom: 28px;
}

.rates__descr-second {
    margin-bottom: 10px;
}

.rates__box:nth-child(2) .rates__descr-title {
    margin-bottom: 12px;
}

.rates__box:nth-child(2) .rates__descr-list {
    row-gap: 8px;
}

.rates__box:nth-child(2) .rates__descr-list:last-of-type {
    row-gap: 5px;
}

.rates__box:nth-child(3) .rates__descr-title {
    margin-bottom: 12px;
    row-gap: 8px;
}

.rates__box:nth-child(3) .rates__descr-list:last-of-type {
    row-gap: 5px;
    margin-bottom: 25px;
}

.rates__notion-msg {
    color: var(--color_bali);
}

.rates__middle-notion {
    display: flex;
    column-gap: 15px;
}

.rates__box:nth-child(3) .rates__descr-list {
    margin-bottom: 30px;
    row-gap: 8px;
}

.rates__more {
    color: var(--color_ribbon);
    text-decoration: underline;
    background-color: transparent;
    border: none;
    margin-bottom: 10px;
}

.rates__more-wrapper {
    text-align: center;
}

.rates__main-descr {
    margin-bottom: auto;
}

.rates__box:nth-child(2) .rates__middle {
    min-height: 735px;
}

/* bottom content */
/* calculation */
.component {
    text-align: center;
}
.price {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 25px;
}
.price:after {
    content: attr(data-currency)
}
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}
.button {
    background-color: var(--color_zumthor);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.button:active {
    background-color: #e5e7eb;
}
.quantity {
    border: 1px solid #edeff5;
    border-radius: 10px;
    width: 100px;
    font-family: "Proxima Nova", sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 4px 0;
    text-align: center;
    line-height: 30px;
    pointer-events: none;
}
.label {
    margin-top: 5px;
    font-size: 13px;
    color: #9098b4;
    margin-bottom: 15px;
    line-height: normal;
}

.rates__bottom {
    width: 100%;
    padding: 25px;
}

.minus {
    background-image: url("/img/tariffs/minus.svg");
    pointer-events: none;
}

.plus {
    background-image: url("/img/tariffs/plus.svg");
    pointer-events: none;
}

.calc-btn {
    background-color: var(--color_ribbon);
    color: var(--color_white);
    border-radius: 10px;
    width: 100%;
    padding: 14px 5px;
    margin-bottom: 25px;
}

/* dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    width: 235px;
}
.dropdown-toggle {
    display: flex;
    column-gap: 4px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: var(--color_ribbon);
}
.dropdown-list {
    max-height: 0;
    opacity: 0;
    padding-top: 15px;
    position: absolute;
    top: 27px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.15);
    z-index: 10;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
.dropdown-list.active {
    max-height: none;
    opacity: 1;
}
.dropdown-header {
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
}
.dropdown__header-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--color_bali);
}
.dropdown-item {
    display: flex;
    justify-content: space-between;
    padding: 11px 15px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: var(--color_space);
}
.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #f1f2f6;
}
.dropdown-item:hover {
    background-color: #f3f4f6;
}
.dropdown-arrow {
    width: 17px;
    height: 17px;
    background-image: url("/img/tariffs/dropdown-arrow.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}
.dropdown-arrow.active {
    transform: rotate(180deg);
}
.dropdown-wrapper {
    text-align: center;
}

/* footer */
.faq-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 53px;
    color: var(--color_white);
}

.faq-panel__text {
    padding: 15px 0;
    line-height: 21px;
    color: var(--color_white);
}

/*accordion styles*/
.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-accordion {
    cursor: pointer;
    padding: 19px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: max-height 0.3s ease-out;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color_white);
    font-family: "Proxima Nova", sans-serif;
    display: flex;
    align-items: center;
    margin-bottom: 1px;
    padding-left: 25px;
    padding-right: 29px;
}

.faq-accordion__wrapper:not(:last-of-type) {
    margin-bottom: 14px;
}

.faq-accordion__wrapper {
    max-width: 786px;
    width: 100%;
}

.faq-accordion:after {
    content: "";
    background-image: url("/img/tariffs/acc-arrow.svg");
    background-repeat: no-repeat;
    width: 42px;
    height: 42px;
    opacity: 0.2;
    display: inline-block;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    margin-left: auto;
    flex-shrink: 0;
}

.faq-accordion:hover:after {
    opacity: 1;
}

.faq-active {
    border-radius: 15px 15px 0 0;
}

.faq-active:after {
    content: "";
    background-image: url("/img/tariffs/acc-arrow.svg");
    width: 42px;
    height: 42px;
    opacity: 1;
    transform: rotate(180deg);
}

.faq-panel {
    padding: 0 10px 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 15px 15px;
}

/*end accordion sets*/
@media(max-width: 1024px) {
    .rates__box:nth-child(2) {
        margin-top: 50px;
    }
}