.autoschool__head {
    margin-bottom: 6rem;
}
.autoschool__title {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 3.9rem;
    margin-bottom: 2rem;
}
.autoschool-subtitle {
    font-size: 1.6rem;
}
.autoschool-preview{
    margin-bottom: 4rem;
}
.autoschool-preview,
.autoschool-preview p:not(.autoschool-preview__title),
.autoschool-preview ul li{
    font-size: 1.6rem;
}
.autoschool-preview ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}
.autoschool-preview__title {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
    color: #333;
}
.documents {
    width: 100%;
    margin-bottom: 6rem;
}
.documents__title {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
    color: #333;
}
.documents__content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}
.documents__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.documents__item {
    margin-bottom: 10px;
}
.documents__link {
    width: max-content;
    text-decoration: none;
    color: #000;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}
.documents__link:hover {
    color: #1E5D9D;
}
.documents__icon {
    margin-right: 10px;
    font-size: 20px;
}
@media (max-width: 767px) {
    .autoschool__head {
        margin-bottom: 4rem;
    }
    .autoschool__title {
        font-size: 24px;
        line-height: 29.2px;
        margin-bottom: 20px;
    }

    .autoschool-subtitle {
        font-size: 16px;
    }
    .documents {
        width: 100%;
        margin-bottom: 4rem;
    }
    .documents__link {
        font-size: 14px;
        width: 100%;
        align-items: flex-start;
    }
    .autoschool-preview,
    .autoschool-preview p:not(.autoschool-preview__title),
    .autoschool-preview ul li{
        font-size: 14px;
    }
}

.autoschool-calc {
    margin-bottom: 12.9rem;
}
.autoschool-calc__title {
    font-weight: 600;
    font-size: 3.2rem;
    line-height: 120%;
    margin-bottom: 2rem;
}
.autoschool-calc__wrapper {
    background-color: #F9F9F9;
    border-radius: 1.6rem;
    padding: 2rem;
}
.autoschool-calc__head {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-bottom: 2rem;
}
.autoschool-calc__question{
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 120%;
}
.autoschool-calc__note{
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 120%;
    color: #6F6F71;
}
.autoschool-calc__cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.6rem;
}
.autoschool-calc__card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background-color: #fff;
    border-radius: 1.6rem;
    overflow: hidden;
    transition: all .3s ease;
    border: 1px solid #fff;
}
.autoschool-calc__card:hover,
.autoschool-calc__card:not(.autoschool-calc__card--btn).visible {
    background-color: #1e5d9d;
    border: 1px solid #1e5d9d;
}
.autoschool-calc__card--btn {
    opacity: 0;
    visibility: hidden;
    max-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1E5D9D;
    border-radius: 1.6rem;
    transition: max-width .3s ease, opacity .4s ease;
}
.autoschool-calc__card--btn.visible {
    opacity: 1;
    visibility: visible;
    max-width: 1000px;
}
.autoschool-calc__card-image{
    width: 100%;
    height: 23rem;
    border-radius: 1.6rem;
    overflow: hidden;
}
.autoschool-calc__card-image picture {
    display: block;
    width: 100%;
    height: 100%;
}
.autoschool-calc__card-image picture img,
.autoschool-calc__card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.autoschool-calc__card-title {
    padding: 1.6rem;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 120%;
    transition: all .3s ease;
    display: flex;
}
.autoschool-calc__card:hover .autoschool-calc__card-title{
    color: #fff;
}
.autoschool-calc__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background-color: transparent;
    border: 0;
}
.autoschool-calc__card-btn span {
    font-weight: 500;
    font-size: 2rem;
    line-height: 120%;
    color: #1E5D9D;
    transition: all .3s ease;
}
.autoschool-calc__card-btn svg {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    flex: 0 0 auto;
}
.autoschool-calc__card-btn svg path{
    transition: all .3s ease;
}
.autoschool-calc__card:hover .autoschool-calc__card-btn span{
    color: #fff;
}
.autoschool-calc__card:hover .autoschool-calc__card-btn svg path{
    stroke: #fff;
}
.autoschool-calc__card:not(.autoschool-calc__card--btn).visible .autoschool-calc__card-title{
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1e5d9d;
    padding: 1.8rem 4rem;
    border-radius: 1.6rem;
    cursor: pointer;
    transition: all .3s ease;
    border: none;
}
.btn span {
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 2rem;
    text-align: center;
    color: #fff;
    transition: all .3s ease;
}
.btn--primary {
    border: 1px solid #1E5D9D;
    background-color: #1E5D9D;
}
.btn--primary:hover {
    border: 1px solid #F1117E;
    background-color: #F1117E;
}
#overlay {
    display: none;
    position: fixed;
    z-index: 1;
    background-color: rgba(0, 0, 0, .25);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
#overlay.visible {
    display: block;
}
.popup.popup-autoschool {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    background: #fafafa;
    border-radius: 3rem;
    padding: 4rem;
}
.popup.visible {
    display: block !important;
}
.popup__close {
    width: 3.2rem;
    height: 3.2rem;
    flex: 0 0 auto;
    cursor: pointer;
    position: absolute;
    top: -2rem;
    right: -2rem;
}
.popup__close svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.popup__head + .popup__body {
    margin-top: 2rem;
}
.popup__title {
    font-weight: 600;
    font-size: 3.2rem;
    line-height: 120%;
    text-align: center;
    margin-bottom: 1.6rem;
}

.popup__subtitle {
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 120%;
    text-align: center;
}
.popup__items {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.popup__item input {
    border-radius: .5rem;
    border: 1px solid #eaeaeb;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 100%;
    width: 100%;
    padding: 1.2rem 1.8rem;
}
.popup__item input::placeholder {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 100%;
}
.popup__btn {
    width: 100%;
    margin-bottom: 2rem;
}
.popup__agreement {
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 120%;
}

@media (max-width: 767px){
    .btn {
        padding: 3.072rem 6.827rem;
        border-radius: 2.731rem;
        gap: 1.707rem;
    }
    .btn span {
        font-size: 2.731rem;
        line-height: 3.413rem;
    }
    .autoschool-calc__title {
        font-size: 3.925rem;
        margin-bottom: 3.413rem;
    }
    .autoschool-calc__wrapper {
        border-radius: 2.731rem;
        padding: 2.731rem;
    }
    .autoschool-calc__question {
        font-size: 3.413rem;
        margin-bottom: 0.683rem;
    }
    .autoschool-calc__note {
        font-size: 2.389rem;
    }
    .autoschool-calc__cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.048rem;
    }
    .autoschool-calc__card-image {
        height: 20.48rem;
    }
    .autoschool-calc__card-title {
        padding: 1.365rem;
        font-size: 2.389rem;
        flex: 1;
        align-items: center;
    }
    .autoschool-calc__card-btn svg {
        width: 4.608rem;
        height: 4.608rem;
    }
    .autoschool-calc__card-btn span {
        font-size: 2.389rem;
    }
    .popup {
        width: calc(100% - 2.56rem);
    }
    .popup__items {
        grid-template-columns: repeat(1, 1fr);
    }
    .popup__close {
        width: 5.461rem;
        height: 5.461rem;
        right: 0;
        top: -5.461rem;
    }

    .popup__item input {
        height: 9.387rem !important;
        font-size: 2.389rem;
    }
    .popup__item input::placeholder {
        font-size: 2.389rem;
    }
    .popup__title {
        font-size: 4.096rem !important;
        margin-bottom: 1.707rem !important;
    }

    .popup__subtitle {
        font-size: 2.731rem;
        margin-bottom: 0.853rem;
    }

    .popup__agreement,
    .popup__agreement a {
        font-size: 2.048rem;
        text-align: center;
    }
}