html {
    font-size: 10px !important;
}

@media (max-width: 1280px) {
    html, body * {
        outline: transparent !important;
        user-select: none;
    }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    html {
        font-size: calc(100vw / 92) !important;
    }
}

@media (max-width: 767px) {
    html {
        font-size: calc(100vw / 37.5) !important;
    }
}

html, body * {
    font-size: 1.6rem;
    line-height: normal;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
}

body {
    margin: 0;
}

.container {
    width: 97.6rem;
    margin: auto;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 10rem;
    width: 100%;
    background-color: #fff;
    opacity: 0;
    max-height: 0;
    transform: translateY(-10rem);
    overflow: hidden;
    transition: opacity 1.8s ease, transform 0.6s ease, max-height 0.9s ease;
}

.header.visible {
    opacity: 1;
    max-height: 10rem;
    transform: translateY(0);
    overflow: unset;
}

.header__inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - (20rem * 2));
}

.header__logo-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 3rem;
}

.header__logo--gac {
    display: inline-block;
    width: 32rem;
    height: 4.4rem;
}

.header__logo--avtoruss {
    display: inline-block;
    width: 22.2rem;
    height: 4.8rem;
}

.header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header__info {
    display: flex;
    flex-direction: column;
    grid-gap: .5rem;
}

.header__info-phone__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;
    justify-content: flex-end;
}

.header__info-phone__inner svg {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
}

.header__info-phone {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 100%;
    color: #000;
    text-decoration: none;
}

.header__info-address__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;
    justify-content: flex-end;
}

.header__info-address__inner svg {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
}

.header__info-address {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 100%;
    color: #000;
    margin: 0;
}

.chat__inner {
    position: relative;
    background-image: url("../img/chat-bg.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: all .2s ease-in-out;
    padding: 5.1rem 0 2rem;
}

.chat__title {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 2.4rem;
    line-height: 120%;
    text-align: center;
    color: #fff;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.chat__title.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat__stocks {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 110%;
    color: #fff;
    text-align: center;
    background-color: #D40221;
    width: fit-content;
    margin: 0 auto 1rem;
    border-radius: .7rem;
    padding: .5rem .7rem;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.chat__stocks.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat__subtitle {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 2.4rem;
    line-height: 120%;
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.chat__subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat {
    display: flex;
    flex-direction: column;
    border-radius: 3rem 3rem;
    overflow: hidden;
    box-shadow: 0 3rem 3rem #00000014;
    width: 97.6rem;
    margin: auto;
}

.chat {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.chat.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat__header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    grid-gap: 2rem;
    padding: 2rem 16.2rem;
    height: 17rem;
    background-color: #D40221;
    border-radius: 4rem 4rem 0 0;
}

.chat__header-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;

}

.chat__header-item svg {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
}

.chat__header-item span {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 100%;
    color: #fff;
}

.chat__body {

}

.chat__footer {
    display: flex;
    padding: 2rem;
    background-color: #2C2C2C;
    border-radius: 0 0 3rem 3rem;
}

#chat {
    min-height: 48.4vh;
    width: 100%;
    padding: 4rem 4rem 4rem 20.4rem;
    background-color: rgba(255, 255, 255, .15);
    backdrop-filter: blur(3px);
    overflow-y: auto;
    scroll-behavior: smooth;
    transition: all .2s ease-in-out;
}

.chat__btn-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;
    margin-top: 3rem;
    width: 100%;
}

.chat__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    grid-gap: .6rem;
    height: 6rem;
    padding: 2rem;
    border-radius: 2rem;
    background-color: #D40221;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
    outline: none;
}

.chat__btn:not(.chat__btn[disabled]):hover {
    background-color: #54585A;
}

.chat__btn[disabled] {
    opacity: 0;
    background-color: #54585A;
    pointer-events: none;
    cursor: default;
}

.chat__btn.previous-stage {
    opacity: .5;
}

.chat__btn.skip-btn.previous-stage {
    background-color: #fff;
    color: #54585A;
    opacity: .5;
}

.message {
    font-size: 1.8rem;
    line-height: 110%;
    border-radius: 2rem;
    padding: 2rem;
    position: relative;
    width: fit-content;
    max-width: 65rem;
}

.message:not(.typing) {

}

.message.typing {
    color: #fff;
}

.bot-message {
    margin: 0 0 2rem;
    opacity: 0;
    box-shadow: 0 .3rem 1rem rgba(38, 36, 60, 0.07);
    animation: fadeIn 1s forwards;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #000;
}

.skip-message {
    margin-top: 2rem;
}

.error-message:not(.form .error-message ) {
    margin-top: 2rem;
    color: #D40221;
}

.form .error-message {
    transition: opacity 0.5s ease;
    opacity: 1;
    color: #D40221;
    margin-bottom: 2rem;
}

.empty-message {
    display: none;
}

.user-message {
    background-color: #D40221;
    text-align: right;
    color: #fff;
    margin: 2rem 0 2rem auto !important;
}

.user-message * {
    color: initial;
}

.operator-avatar {
    width: 8.8rem;
    height: 8.8rem;
    object-fit: contain;
    border-radius: 50%;
    position: absolute;
    left: calc(-20.4rem + 8.8rem);
    top: calc(50% - 4.4rem);
}

.question-message {
    margin-bottom: 2rem;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 110%;
    color: #000;
    width: fit-content;
}

/* width */
#chat::-webkit-scrollbar {
    width: .7rem;
}

/* Track */
#chat::-webkit-scrollbar-track {
    background: #fff;
    border-left: 1px solid #aaaaaa60;
}

/* Handle */
#chat::-webkit-scrollbar-thumb {
    background: #aaaaaa;
    cursor: pointer;
    border-radius: .25rem;
}

/* Handle on hover */
#chat::-webkit-scrollbar-thumb:hover {
    background: #222;
}

.options {
    display: flex;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

.options:not(.options.options-texts) {
    grid-gap: 2rem;
}

.options.options-texts {
    grid-gap: 1rem;
}

.options:not(.options-images) {
    flex-direction: column;
    align-items: flex-start;
}

.options.options-images {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: calc(27.3rem * 2 + 2rem);
}

.option-card {

}

.option-card label {
    cursor: pointer;
}

.option-card input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    visibility: hidden;
}

.option-card input[type="checkbox"] {
}

.option-card-image {
    display: flex;
    flex-direction: column;
    width: 27.3rem;
    height: 24rem;
    background-color: #F3F3F3;
    color: #000;
    opacity: 0;
    border-radius: 2rem;
    animation: fadeIn 1s forwards;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.option-card:not(.option-card-image):has(input:checked) {
    transform: scale(1.02);
}

.option-card.option-card-image:has(input:checked),
.option-card.option-card-image:hover {
    transform: scale(1.02);
    border: 3px solid #D40221;
}

.option-card.disabled {
    pointer-events: none;
    cursor: default;
}

.option-card-image img {
    width: 100%;
    border-radius: 1.5rem 1.5rem 0 0;
    object-fit: cover;
}

.option-card-image .option-label {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: Montserrat;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 110%;
    color: #000;
}

.options-texts {
    color: #000;
    opacity: 0;
    animation: fadeIn 1s forwards;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.option-card-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;
}

.option-card-text input[type="checkbox"] {
    margin-right: 1rem;
}

.option__input-inner {

}

.option__input-inner .option__input {
    border: 1px solid #000000;
    width: 37.4rem;
    height: 6rem;
    outline: none;
    user-select: none;
    border-radius: 2rem;
    background-color: #fff;
    color: #000000;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 110%;
    padding: 1.6rem;
}

.option__input-inner .option__input::placeholder {
    color: #0000004D;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.option-card {
    transform: scale(1);
}

.form {
    display: flex;
    flex-direction: column;
    grid-gap: 1rem;
    width: 42.4rem;
    background-color: #fff;
    border-radius: 2rem;
    padding: 2rem;
}

.form__title {
    margin-bottom: 1rem;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 110%;
    color: #000;
}
.form__sogl {
    display: flex;
    flex-direction: row;
    grid-gap: 1rem;
    font-family: Montserrat;
    font-size: 1.2rem;
    line-height: 110%;
    color: #000;
    cursor: pointer;
    user-select: none;
}
.form__sogl a{
    font-family: Montserrat;
    font-size: 1.2rem;
    line-height: 110%;
    display: contents;
    color: #D40221;
}
.form__item {
    width: 100%;
    height: 6rem;
}

.form__item input {
    border: 1px solid #F3F3F3;
    width: 100%;
    height: 100%;
    outline: none;
    user-select: none;
    border-radius: 2rem;
    padding: 1.4rem 2rem;
    background-color: #F3F3F3;
    color: #000;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 110;
}

.form__item input::placeholder {
    color: #0000004D;
}

.form__btn-inner .form__btn {
    background-color: #D40221;
    width: 100%;
}

.form__btn-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    grid-gap: 1rem;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + .custom-checkbox {
    display: inline-block;
    position: relative;
    min-width: 2rem;
    width: 2rem;
    max-width: 2rem;
    min-height: 2rem;
    height: 2rem;
    max-height: 2rem;
    border: 2px solid #D40221;
    border-radius: .4rem;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #D40221;
    border-color: #D40221;
}

input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '✔';
    position: absolute;
    top: 0;
    left: .2rem;
    color: white;
    font-size: 1.6rem;
    line-height: 1.6rem;
}

input[type="checkbox"]:hover + .custom-checkbox {
    border-color: #D40221;
}

.info-block__title {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 110%;
    color: #000;
    margin-bottom: 1rem;
}

.info-block__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
}

.info-block__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-gap: 1rem;
}

.info-block__item svg {
    min-width: 3.4rem;
    width: 3.4rem;
    max-width: 3.4rem;
    min-height: 3.4rem;
    height: 3.4rem;
    max-height: 3.4rem;
}

.info-block__item span {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 110%;
    color: #000;
}

@media (min-width: 1281px) and (max-width: 1680px) {
    .header__inner {
        width: calc(100% - (5rem * 2));
    }
}

@media (min-width: 768px) and (max-width: 1280px) {
    .container {
        width: calc(100% - (1.5rem * 2));
    }

    .header__inner {
        width: calc(100% - (1.5rem * 2));
    }

    .header__logo-inner {
        grid-gap: 1.5rem;
    }

    .header__logo--gac {
        width: 23.5rem;
        height: 3rem;
    }

    .header__logo--avtoruss {
        width: 16rem;
        height: 3rem;
    }

    .chat__inner:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .5);
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
    }

    .chat__title {
        z-index: 2;
        position: relative;
        font-size: 2.4rem;
    }

    .chat__stocks {
        z-index: 2;
        position: relative;
        font-size: 3rem;
    }

    .chat__subtitle {
        z-index: 2;
        position: relative;
    }

    .chat {
        z-index: 2;
        position: relative;
        width: calc(100% - 3rem);
    }

    .chat__header {
        grid-gap: 1.4rem;
        padding: 1rem 8.1rem;
    }

    #chat {
        z-index: 2;
        position: relative;
        background-color: rgba(255, 255, 255, .33);
        min-height: 66vh;
        padding: 3rem 3rem 3rem 12.9rem;
    }

    .option-card-image {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .container {
        width: calc(100% - (1rem * 2));
    }

    .header {
        height: 16.4rem;
    }

    .header.visible {
        max-height: 16.4rem;
    }

    .header__inner {
        width: calc(100% - (1.5rem * 2));
        flex-direction: column;
    }

    .header__logo-inner {
        flex-direction: column;
        grid-gap: .5rem;
        margin-bottom: 1rem;
    }

    .header__logo--gac {
        width: 25.9rem;
        height: 3.2rem;
    }

    .header__logo--avtoruss {
        width: 18rem;
        height: 3.56rem;
    }

    .header__info-phone {
        text-align: center;
        font-size: 1.4rem;
    }

    .header__info-phone__inner {
        justify-content: center;
        grid-gap: .6rem;
    }

    .header__info-address {
        text-align: center;
        font-size: 1.2rem;
    }

    .header__info-address__inner {
        justify-content: center;
        grid-gap: .6rem;
    }

    .chat {
        width: 100%;
        z-index: 2;
        position: relative;
        padding: 0 1rem;
    }

    .chat__inner {
        padding: 2rem 0;
        position: relative;
    }
    .chat__inner {
        background-image: url("../img/chat-bg-mob.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    .chat__inner:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .5);
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
    }

    .chat__title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        z-index: 2;
        position: relative;
    }

    .chat__stocks {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        z-index: 2;
        position: relative;
    }

    .chat__subtitle {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        z-index: 2;
        position: relative;
    }

    .chat__header {
        flex-direction: column;
        grid-gap: .5rem;
        height: auto;
        padding: 1.5rem;
        align-items: baseline;
    }

    .chat__header-item svg {
        width: 3.5rem;
        height: 3.5rem;
    }

    .chat__header-item span {
        font-size: 1.4rem;
    }

    .chat__header-item span br {
        display: none;
    }

    #chat {
        padding: 1.5rem 1.5rem 1.5rem 7.9rem;
        z-index: 2;
        position: relative;
        background-color: rgba(255, 255, 255, .33);
        border-radius: 1.5rem;
    }

    .operator-avatar {
        width: 5.4rem;
        height: 5.4rem;
        left: calc(-7.9rem + 1.7rem);
        top: 0;
    }

    .message {
        font-size: 1.4rem;
        padding: 1.5rem;
        max-width: 26rem;
    }

    .message br {
        display: none;
    }

    .option-card-image {
        width: 11rem;
        height: 11rem;
        border-radius: 1rem;
        transition: all .3s ease-in-out;
    }

    .option-card-image .option-label {
        font-size: 1.4rem;
    }

    .option__input-inner .option__input {
        width: 26rem;
    }

    .option-label {
        font-size: 1.4rem;
    }

    .form {
        width: 26rem;
        padding: 1.5rem;
    }

    .form__item {
        height: auto;
    }

    .form__item input {
        font-size: 1.4rem;
        height: 4.7rem;
        border-radius: 1rem;
    }

    .form__btn-inner .form__btn {
        padding: 1.6rem;
        padding: 1.6rem;
        height: 4.7rem;
    }

    .form__btn-inner .form__btn span {
        font-size: 1.2rem;
    }

    .chat__btn {
        font-size: 1.2rem;
        padding: 1.6rem;
        height: 4.7rem;
        border-radius: 1rem;
        box-shadow: 1px 3px 15px rgba(0, 0, 0, .33);
    }

    .info-block__title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .info-block__title br {
        display: none;
    }

    .info-block__grid {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 1rem;
    }

    .info-block__item span {
        font-size: 1.4rem;
    }

    .form__title {
        font-size: 1.4rem;
        width: 66.666%;
    }

    .options:not(.options.options-texts) {
        grid-gap: 1rem;
    }

    .options.options-images {
        max-width: calc(27.3rem * 2 + 1.5rem);
    }
    .option-card-image img {
        border-radius: 1rem 1rem 0 0;
    }
}