.welcome {
    height: calc(100vh - 182px);
    min-height: 760px;
    --width: 760px
}

.welcome__container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
}

.welcome__content {
    padding: 90px 0 130px;
    width: 100%;
    max-width: var(--width);
    flex: none;
}

.welcome__title {
    font-family: var(--ff-secondary);
    font-weight: 400;
    font-size: 160px;
    line-height: 130%;
    text-transform: uppercase;
    filter: drop-shadow(3px 3px 0px #614419);
    margin: 0;
}

.welcome__title:has(font){
    font-size: 60px;
    line-height: normal;
}

.welcome__subtitle {
    font-family: var(--ff-secondary);
    font-weight: 700;
    font-size: 48px;
    line-height: 125%;
    margin: 0;
}

.welcome-form {
    border: 1px solid var(--color-stroke);
    border-radius: 5px;
    height: 48px;
    display: flex;
    align-items: center;
    background-color: #FDFAF4;
    margin-top: 48px;
}

.welcome-form_control {
    font-family: var(--ff-primary);
    font-weight: 400;
    font-size: 19px;
    line-height: 130%;
    border: none;
    background-color: #FDFAF4;
    width: 100%;
    padding: 0 14px;
}

.welcome-form__submit {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    flex: none;
}

.welcome-form__submit svg {
    width: 32px;
    height: 32px;
}

.welcome__img {
    height: 100%;
    width: auto;
    max-width: calc(100% - var(--width) - 40px);
    display: block;
    object-fit: contain;
}

@media (max-width: 1440px) {
    .welcome {
        --width: 600px;
        min-height: 600px;
    }

    .welcome__title {
        font-size: 130px;
    }
    .welcome__title:has(font){
        font-size: 40px;
    }


    .welcome__subtitle {
        font-size: 32px;
    }
}

@media (max-width: 1220px) {
    .welcome {
        --width: 460px;
        height: calc(60vh - 182px);
        min-height: 400px;
    }

    .welcome__container{
        position: relative;
    }

    .welcome__img{
        position: absolute;
        right: 0;
        top: 0;
        max-width: 100%;

    }

    .welcome__content {
        padding: 30px 0;
        position: relative;
        z-index: 2;
    }

    .welcome__title {
        font-size: 100px;
    }

    .welcome__title:has(font){
        font-size: 30px;
    }

    .welcome__subtitle {
        font-size: 28px;
    }
}


@media (max-width: 1024px) {
    .welcome__img{
opacity: 0.3;

    }
}

@media (max-width: 768px) {
    .welcome {
        --width: 100%;
        position: relative;
        min-height: calc(460px - 111px);
        overflow: hidden;
    }

    .welcome__content {
        padding: 0;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .welcome-form {
        margin-top: auto;
    }

    .welcome-form_control {
        font-size: 16px;
    }

    .welcome__title {
        font-size: 68px;
        margin-top: auto;
    }

    .welcome__title:has(font){
        font-size: 40px;
        line-height: 40px;
    }

    .welcome__subtitle {
        font-size: 22px;
    }

    .welcome__img {
        position: absolute;
        height: 100%;
        max-width: 100%;
        top: 0;
        left: 12px;
        right: 12px;
        opacity: 0.3;
    }
}

@media (max-width: 460px) {
    .welcome{
        display: flex;
        height: auto;
        min-height: 500px;
    }
    .welcome__container{
        height: auto;
    }
    .welcome__title{
        text-align: center;
    }

    .welcome__subtitle{
        text-align: center;
    }
}
