/* TARIFFS */
.tariff__wrapper {
    padding: 24px;
    background-color: #FAFAFA;
}

@media screen and (max-width: 991.98px) {
    .tariff__wrapper {
        padding: 16px;
    }
}

.tariff__header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.tariff__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 135%;
}

.tariff__list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    max-width: calc(100vw - 47px);
}

.tariff__list-item {
    position: relative;
    padding-inline: 20px;
    padding-bottom: 20px;
    border: 1px solid #F5F5F5;
    border-radius: 16px;
    background-color: white;
    display: flex;
    flex-direction: column;
    width: 378px;
    flex-shrink: 0;
}

.tariff__list-item * {
    white-space: wrap;
}

.tariff__list-item--active {
    border-color: #1EC658;
}

.tariff__list-item--active  .tariff__item-check {
    display: block;
}

.tariff__list-item .type {
    position: absolute;
    top: 0;
    right: 20px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.type--standard {
    background-color: #F1F3F5;
}
.type--popular {
    color: #1EC658;
    background-color: #E9F9EF;
}
.type--maximum {
    color: #143C92;
    background-color: #EEF2FF;
}

.tariff__item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 8px;
    text-transform: lowercase;
}

.tariff-title,
.tariff__item-title {
    text-transform: lowercase;
}

.tariff__item-heading {
    font-size: 24px;
    font-weight: bold;
}

.tariff-heading {
    display: inline-block;
}

.tariff-heading::first-letter,
.tariff__item-heading::first-letter {
    text-transform: uppercase;
}

.tariff__item-check {
    display: none;
}

.tariff__description {
    font-size: 12px;
    line-height: 145%;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.tariff__type {
    padding: 4px 8px;
    border-radius: 8px;
    color: white;
    background-color: #1F1F1F;
    margin-top: 6px;
    margin-bottom: 12px;
    width: fit-content;
}

.tariff__content-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    list-style: none;
    border-top: 1px solid #EEEEEE;
    margin-bottom: 24px;
}

.tariff__content-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tariff__content-item img {
    display: block;
    flex-shrink: 0;
}
.tariff__content-title {
    font-size: 14px;
    line-height: 145%;
    letter-spacing: 0;
    margin-right: auto;
}

.tariff__bonuses {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid;
    padding: 8px;
    background: linear-gradient(270.2deg, #F4F8FF -0.39%, #F3FFFD 99.75%);
    border-image-source: linear-gradient(269.85deg, rgba(0, 113, 248, 0.3) -0.43%, rgba(30, 198, 88, 0.3) 99.78%);
    min-height: 75px;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.tariff__bonuses-img {
    position: absolute;
    right: 0;
    bottom: 0;
}

.tariff__bonuses ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    max-width: 260px;
}

.tariff__bonuses li {
    display: flex;
    gap: 5px;
}

.tariff__bonuses li img {
    display: block;
    flex-shrink: 0;
}
.tariff__bonuses-text {
    font-size: 12px;
    line-height: 145%;
    letter-spacing: 0;
    white-space: unset;
    text-wrap: wrap;
}
.tariff__bonuses-item::before {
	display: block;
	flex-shrink: 0;
	content: "";
	left: 0;
	top: 50%;
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	height: auto;
}
.tariff__bonuses-item_pob::before {
	background-image: url("/local/templates/air/assets/images/icons/user-check.svg");
}

.tariff__bonuses-item_codex::before {
	background-image: url("/local/templates/air/assets/images/icons/book.svg");
}

.tariff__wrapper .button {
    width: 100%;
    margin-top: 24px;
}

.details {
    padding: 24px;
    border-radius: 12px;
    background-color: white;
    width: 100%;
}

.details__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.details__heading {
    font-size: 22px;
    font-weight: 700;
}

.details__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.details__item {
    display: flex;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #F1F1F1;
}

.details__icon {
    display: block;
    flex-shrink: 0;
}

.details__content-title {
    font-size: 14px;
    color: #3D3D3D;
    margin-bottom: 3px;
}

.details__content {
    font-size: 14px;
}

.details__content ul {
    padding-left: 13px;
}

@media screen and (min-width: 991.98px) {
    .details {
        max-width: 420px;
    }
}

/* PAYMENT FORM */
.payment {
    padding-top: 24px;
    padding-bottom: 145px;
}

.payment__back {
    display: flex;
    align-items: center;
    color: #777777;
    font-size: 12px;
    gap: 6px;
    margin-bottom: 8px;
}

.payment__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 115%;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.payment__subtitle {
    font-size: 18px;
    margin-bottom: 16px;
}

.payment__wrapper {
    display: flex;
    gap: 24px;
}

@media screen and (max-width: 991.98px) {
    .payment__wrapper {
        flex-direction: column;
    }
    .payment__title {
        font-size: 32px;
    }
}

.form {
    padding: 24px;
    background-color: white;
    border-radius: 16px;
    flex-grow: 1;
}
.form__title {
    font-weight: 700;
    font-size: 22px;
    line-height: 135%;
    margin-bottom: 16px;
}
.form__button {
    width: 100%;
    margin-bottom: 8px;
    height: 48px;
}
.form__policy {
    font-size: 10px;
    color: #777777;
}
.form__policy a {
    text-decoration: underline;
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 12px;
    margin-bottom: 16px;
}

.form__grid .input__wrapper:first-child {
    grid-column-start: 1;
    grid-column-end: 3;
}

@media screen and (max-width: 991.98px) {
    .form {
        padding: 16px;
    }
    .form__grid {
        grid-template-columns: 1fr;
    }
    .form__grid .input__wrapper:first-child {
        grid-column-start: unset;
        grid-column-end: unset;
    }
}

.total  {
    margin-top: 14px;
}

.total__title {
    font-size: 18px;
    color: #0A0A0A;
    margin-bottom: 3px;
}

.total__price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total__value {
    font-weight: bold;
    font-size: 30px;
    line-height: 150%;
}

.total__subvalue {
    font-size: 16px;
    color: #777777;
}
/* FOOTER */
.footer__text {
    text-align: center;
    letter-spacing: 0.25px;
    color: #777777;
    margin-bottom: 23px;
}


/* DIALOG */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    z-index: 1000;
}

.dialog--active {
    display: flex;
}

.scroll-area {
    width: 100vw;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1001;
}


.dialog__overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: #0000004D;
}

.dialog__wrapper {
    position: relative;
    z-index: 1001;
    border-radius: 16px;
    height: fit-content;
    margin: auto;
}

.dialog__close {
    display: flex;
    padding: 8px;
    border-radius: 100%;
    background-color: #F5F5F5;
    margin-left: auto;
    cursor: pointer;
}

/* NOTIFICATION */

.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-left: 4px solid #FFC107;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 400px;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
}

.notification--hidden {
    opacity: 0;
    visibility: hidden;
}

.notification__icon {
    color: #FFC107;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification__content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification__text {
    flex: 1;
}

.notification__title {
    color: #0A0A0A;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.notification__description {
    color: #666;
    font-size: 13px;
}

.notification__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification__close:hover {
    color: #333;
}

/* SUCCESS DIALOG */
.success__wrapper {
    padding: 24px 24px 48px 24px;
    max-width: 600px;
    width: 100%;
    background-color: white;
}

.success__header {
    display: flex;
}

.success__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.success__title {
    margin-top: 32px;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.success__description {
    font-size: 16px;
}

.success__attention {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    background-color: #FAFAFA;
    margin-top: 8px;
    margin-bottom: 32px;
    width: fit-content;
}

.success__wrapper .button {
    width: 100%;
}
