.ubuntu-regular {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.ubuntu-medium {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.ubuntu-bold {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    background-color: #f5f5f5;
}

body, html {
    height: 100%;
    line-height: 1.5;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.header, .full-height-div {
    min-width: 320px;
}

.full-height-div {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    flex-grow: 1; /* Occupy the remaining height */
    background-color: #F5F5F5;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 16px 20px 12px;
    background: #fff;
}

.logo {
    /*max-width: 200px;*/
}

.intro {
    position: relative;
    z-index: 10;
    background-color: white;
    padding: 55px 55px 40px;
    border-radius: 16px;
    max-width: 600px;
    /*text-align: center;*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.intro h1 {
    color: #000;
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 500;
}

.intro h2 {
    color: #047C50;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 500;
}

.intro p {
    color: #000;
    margin-bottom: 32px;
    font-size: 16px;
}

.subscription-form {
    padding-top: 16px;
    background: #F5F8F7;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 8px;
}

.subscription-form input {
    padding: 11px 8px;
    width: 100%;
    margin-bottom: 16px;
    border: 1px solid #C7C9DA;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 4px;
}

.subscription-form button {
    border-radius: 4px;
    padding: 10px 20px;
    background-color: #2b6f4a;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.subscription-form p {
    margin-bottom: 12px;
}

.subscription-form form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

}

.illustrations {
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    display: none;;
}

.worker,
.crane {
    position: absolute;
}

.worker {
    left: 54px;
    bottom: -5px;
}

.crane {
    right: 0;
    bottom: -5px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .illustrations {
        flex-direction: column;
        align-items: center;
    }

    .worker, .crane {
        /*max-width: 200px;*/
    }
}

@media (max-width: 576px) {
    .logo {
        max-width: 180px; /* Уменьшаем логотип */
    }

    .intro {
        padding: 20px; /* Уменьшаем отступы у блока с классом intro */
    }

    .subscription-form {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
        width: calc(100% + 20px);
    }

    .subscription-form form {
        flex-direction: column; /* Меняем направление с горизонтального на вертикальное */
    }

    .subscription-form input,
    .subscription-form button {
        width: 100%; /* Инпут и кнопка будут занимать всю ширину */
        margin-right: 0; /* Убираем правый отступ у инпута */
    }

    .subscription-form button {
        margin-bottom: 10px;
    }
}

@media (max-width: 991px) {
    .worker,
    .crane {
        display: none;
    }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #ddd;
    font-family: 'Ubuntu', sans-serif;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    z-index: 100;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #ddd;
    font-family: 'Ubuntu', sans-serif;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    z-index: 100;
}

/* Adjust main content to not be covered by footer */
.full-height-div {
    margin-bottom: 60px; /* Add space for footer */
}

@media (max-width: 768px) {
    .footer {
        font-size: 12px;
        padding: 10px;
    }

    .full-height-div {
        margin-bottom: 50px;
    }
}

@media (max-width: 576px) {
    footer {
        position: relative;
    }
}