.main__product-show {
    margin-top: 110px;
}

.steps__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1240px;
    padding-left: 20px;
    padding-right: 20px;
}

.steps__image--mobile {
    display: none;
}

@media (max-width: 576px) {
    .steps__image {
        display: none;
    }

    .steps__image--mobile {
        display: block;
    }
}


.block__info {
    background: #2B2C39;
    color: #fff;
    padding: 42px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 30px;
    box-shadow: 0px 16px 64px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .block__info {
        padding: 22px 32px;
        box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
    }
}

.block-info__title {
    width: 100%;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 800;
    color: white;
}

@media screen and (max-width: 768px) {
    .block-info__title {
        text-align: center;
    }
}

.block__row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 25px;
}
@media screen and (max-width: 768px) {
    .block__row {
        flex-direction: column;
        margin-top: 10px;
    }
    .block-info__item + .block-info__item {
        margin-top: 14px;
    }
}

.block-info__heading {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .block-info__heading {
        font-size: 26px;
    }
}

.block-info__subtitle {
    color: #E0E0E0;
}

.block-info__text-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .block-info__text-wrapper {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.block-info__text {
    margin: 20px 0 0;
}


.company-info {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 220px 30px 1fr 30px 190px;
    grid-template-columns: 220px 1fr 190px;
    -ms-grid-rows: auto 20px auto;
    grid-template-areas: 'image main rating';
    row-gap: 20px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media screen and (max-width: 1024px) {
    .company-info {
        grid-template-areas: 'image main rating';
    }
}

@media screen and (max-width: 768px) {
    .company-info {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        -ms-grid-rows: auto 10px auto 10px auto;
        grid-template-areas: 'image' 'main' 'rating';
        margin-top: 20px;
        gap: 10px;
    }
}

.company-info__link-image {
    width: fit-content;
    padding: 8px;
    background: white;
    height: fit-content;
    box-shadow: 1px 1px 38px rgb(0 0 0 / 5%);
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-info__image {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    grid-area: image;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .company-info__image {
        width: 60%;
        margin: 0 auto;
    }
}

.company-info__main {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
    grid-area: main;
}

.company-info__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .company-info__top {
        flex-direction: column;
        align-items: flex-start;
    }
}

.company-info__link-header {
    color: var(--black);
    text-decoration: none;
    transition: color 0.25s ease;
}
.company-info__link-header:hover {
    color: var(--light-orange);
}

.company-info__title {
    margin-right: 20px;
    font-weight: 900;
    font-size: 30px;
    line-height: 1.4;
    color: #333333;
}

@media screen and (max-width: 1024px) {
    .company-info__title {
        font-size: 26px;
    }
}

@media screen and (max-width: 576px) {
    .company-info__title {
        font-size: 24px;
    }
}

.company-info__subtitle {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: #333333;
    opacity: 0.7;
}

@media screen and (max-width: 1024px) {
    .company-info__subtitle {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .company-info__subtitle {
        display: none;
    }
}

.company-info__reviews {
    font-weight: 900;
    font-size: 26px;
    line-height: 1.4;
    color: #333333;
    white-space: nowrap;
}

@media screen and (max-width: 1024px) {
    .company-info__reviews {
        font-size: 24px;
    }
}

@media screen and (max-width: 576px) {
    .company-info__reviews {
        font-size: 20px;
    }
}

.company-info__rating {
    -ms-grid-row: 1;
    -ms-grid-column: 5;
    grid-area: rating;
    font-weight: 800;
    font-size: 54px;
    line-height: 1.4;
    color: #FFA800;
}
.company-info__rating a {
    text-decoration: none;
}

@media screen and (max-width: 1024px) {
    .company-info__rating {
        font-size: 44px;
    }
}

@media screen and (max-width: 576px) {
    .company-info__rating {
        font-size: 36px;
    }
}

.company-info__rating a {
    display: block;
    color: #6d6d6d;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    transition: color 0.3s;
}

.company-info__rating a:hover {
    color: #FFA800;
}

.company-info__description {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
    grid-area: desc;
    font-size: 16px;
    line-height: 1.4;
    color: #7C8DB0;
}

@media screen and (max-width: 1024px) {
    .company-info__image {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }

    .company-info__main {
        -ms-grid-row: 1;
        -ms-grid-column: 2;
    }

    .company-info__rating {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }

    .company-info__description {
        -ms-grid-row: 2;
        -ms-grid-column: 1;
        -ms-grid-column-span: 3;
    }
}

@media screen and (max-width: 768px) {
    .company-info__image {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }

    .company-info__main {
        -ms-grid-row: 3;
        -ms-grid-column: 1;
    }

    .company-info__rating {
        -ms-grid-row: 5;
        -ms-grid-column: 1;
    }
}

@media screen and (max-width: 768px) {
    .company-info__description {
        display: none;
    }
}


.main__product-show .calculator {
    display: -ms-grid;
    display: grid;
    gap: 30px;
    background: #ffffff;
    box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 24px 40px 30px;
}

@media screen and (max-width: 1024px) {
    .main__product-show .calculator {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 767px) {
    .main__product-show .calculator {
        padding: 30px 20px 30px;
    }
}

.main__product-show .calculator__title {
    margin: 10px 0 0;
    text-align: left;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.3;
    color: #333333;
}

@media screen and (max-width: 1024px) {
    .main__product-show .calculator__title {
        grid-column: auto;
    }
}

@media screen and (max-width: 767px) {
    .main__product-show .calculator__title {
        font-size: 24px;
        margin-top: 0;
    }
}

@media screen and (max-width: 576px) {
    .main__product-show .calculator__title {
        font-size: 22px;
    }
}

.main__product-show .credit-calculator__form {
    grid-template-columns: 3fr 2fr;
}
@media (max-width: 768px) {
    .main__product-show .credit-calculator__form {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 540px) {
    .main__product-show .credit-calculator-info {
        display: none;
    }
}
@media (max-width: 540px) {
    .main__product-show .credit-calculator__form {
        max-width: none;
    }
}

.main__product-show .calculator {
    border-radius: 20px;
}


.form__reviews {
    width: 100%;
    padding-top: 40px;
}

.product-show__title-reviews {
    font-weight: 900;
    font-size: 30px;
    margin-bottom: 45px;
}
@media (max-width: 576px) {
    .product-show__title-reviews {
        text-align: center;
        font-size: 22px;
    }
}

.range__wrap {
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    .range__wrap {
        flex-wrap: wrap;
    }
}

.range__label {
    font-size: 24px;
    font-weight: 700;
    margin-right: 100px;
}
@media (max-width: 768px) {
    .range__label {
        font-size: 16px;
        margin-right: 8px;
    }
}

.review-rating {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    gap: 5px;
}
@media (max-width: 576px) {
    .review-rating {
        margin-top: 7px;
        grid-template-columns: repeat(10, 27px);
    }
}
@media (max-width: 420px) {
    .review-rating {
        gap: 3px;
        margin-top: 5px;
        grid-template-columns: repeat(10, 23px);
    }
}

.review-rating__item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #FFA800;
    border-radius: 50%;
    color: #FFA800;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s, transform 0.1s;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 576px) {
    .review-rating__item {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}
@media (max-width: 420px) {
    .review-rating__item {
        width: 22px;
        height: 22px;
    }
}

.review-rating__item:hover,
input:checked + .review-rating__item {
    background-color: #FFA800;
    color: #fff;
}

.review-rating__item:active {
    transform: scale(0.8);
}

.reviews__fields {
    padding: 32px;
    border-radius: 16px;
}
@media (max-width: 576px) {
    .reviews__fields {
        padding: 32px 20px;
    }
}
@media (max-width: 576px) {
    .reviews__fields {
        padding: 32px 12px;
    }
}

/* ТАРИФЫ */

.tariffs__wrapper {
    margin-top: 40px;
}

.product-show__title-h2 {
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    height: fit-content;
    margin-bottom: 20px;
}

.tariffs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.tariff {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 10px;
    padding: 20px 16px;
    box-shadow: 2px 2px 5px #ccc;
    justify-items: center;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.tariff:hover {
    transform: translateY(-4px);
}

.tariff__button {
    padding: 8px 12px;
}

.tariff__title {
    width: 100%;
    text-align: left;
    font-size: 20px;
    font-weight: 900;
    max-width: 300px;
    transition: color 0.3s;
    color: var(--black);
    text-decoration: none;
}

.tariff__col-2, .tariff__col-3, .tariff__col-4 {
    font-size: 14px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tariff__col-label {
    font-weight: 700;
    font-size: 17px;
    color: #444;
}

.tariff__col-text {
    font-size: 18px;
}

@media (max-width: 900px) {
    .tariff__col-1 {
        grid-area: col1;
    }
    .tariff__col-2 {
        grid-area: col2;
    }
    .tariff__col-3 {
        grid-area: col3;
    }
    .tariff__col-4 {
        grid-area: col4;
    }
    .tariff__col-5 {
        grid-area: col5;
        width: 100%;
    }
    .tariff__col-text {
        align-self: flex-end;
    }
    .tariff {
        justify-items: start;
        grid-template-areas: 'col1 col1 col1 col1 col1'
                             'col3 col4 col2 col5 col5';
    }
}

@media (max-width: 768px) {
    .tariff {
        justify-items: start;
        grid-template-areas: 'col1 col1 col1 col5 col5'
                             'col3 col3 col4 col4 col2';
    }
}

@media (max-width: 576px) {
    .tariff__col-2, .tariff__col-3, .tariff__col-4 {
        font-size: 14px;
        font-weight: 300;
    }
}

@media (max-width: 460px) {
    .tariff {
        justify-items: start;
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas: 'col1 col1 col1 col1'
                             'col2 col2 col4 col4'
                             'col3 col3 col3 col3'
                             'col5 col5 col5 col5'
    }
}

.product-show__description {
    margin-top: 40px;
}


/* Лицензия */

.license__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 52px;
}

.license__subtitle {
    font-size: 24px;
    font-weight: 900;
}

.license__text {
    font-size: 22px;
    text-align: right;
}

@media (max-width: 768px) {
    .license__row {
        margin-top: 16px;
    }
    .license__subtitle {
        font-size: 16px;
    }

    .license__text {
        font-size: 16px;
    }
}

@media (max-width: 460px) {
    .license__subtitle {
        margin-bottom: 8px;
    }
    .license__text {
        font-size: 14px;
        max-width: 225px;
        text-align: center;
    }
    .license__row {
        flex-direction: column;
    }
}

.text__hidden {
    max-height: 145px;
    overflow: hidden;
    position: relative;
}

.text__hidden::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 32px;
    background: linear-gradient(to top, rgb(255, 255, 255), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
}

@media (max-width: 768px) {
    .text__hidden::after {
        height: 24px;
    }
}

.text__hidden__open {
    max-height: -webkit-fit-content;
    max-height: -moz-fit-content;
    max-height: fit-content;
}
