* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #3F3F3F;
    min-height: 100vh;
}

.row {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.heading-secondary {
    color: #3F3F3F;
    font-size: 26px;
    margin-bottom: 30px;
}



/* HEADER */

.header {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    width: 100%;
    max-width: 178px;
}

.header__links {
    display: flex;
    gap: 20px;
}

.header-link img {
    width: 100%;
    max-width: 48px;
}
.header-link:hover img, .footer-link:hover img, .btn:hover {
    opacity: 0.5;
    transition: all 0.3 ease;
}


/* SECTION MAIN */

.section-main {
    background-image: url('../img/bg--small.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px 0 60px 0;
    min-height: calc(100vh - 182px);
}

.main__content {
    font-size: 23px;
}

.main__content--1 {
    margin-bottom: 20px;
}

.main-features, .main-contacts, .main-form {
    border-radius: 21px;
    border: 1px solid #D22028;
    background-color: rgba(255, 255, 255, 0.8);
}



/* MAIN-FEATURES */

.main-features {
    padding: 25px;
    margin-bottom: 20px;
    margin-top: 45px;
}

.main-features__list {
    margin-bottom: 40px;
    list-style: none;
}

.main-features__list li::before {
    content: "\2022";
    color: #D3111F;
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

.more-link {
    color: #3F3F3F;
    text-decoration: none;
    font-weight: 700;
}

.main-features__arrow {
    text-align: right;
    margin: 15px 50px 0 0;
}



/* MAIN-FORM */

.main-form {
    padding: 25px;
    color: #707070;
    margin-bottom: 50px;
}

.main-form__heading {
    font-size: 34px;
    margin-bottom: 15px;
}

.input-field {
    margin-bottom: 15px;
}

.input-field input, .input-field select {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    margin-top: 5px;
    border: 1px solid #3F3F3F;
    background-color: #fff;
    padding: 0 10px;
    font-size: 18px;
}

.input-field label {
    font-size: 18px;
    margin-bottom: 5px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
}

select#temat {
    background-image:
        linear-gradient(45deg, transparent 50%, #808080 50%),
        linear-gradient(135deg, #808080 50%, transparent 50%);
    background-position:
        calc(100% - 30px) calc(1em + 2px),
        calc(100% - 16px) calc(1em + 2px);
    background-size: 15px 15px, 15px 15px;
    background-repeat: no-repeat;
}

.zgody {
    font-size: 10px;
    line-height: 14px;
    font-weight: 600;
}

.zgody__wrap {
    display: flex;
    margin-bottom: 20px;
}

.zgody__wrap--dane {
    display: flex;
    align-items: flex-end;
}

.zgody__wrap--checkbox input {
    margin-right: 10px;
}

.zgody__wrap--checkbox:last-child {
    margin-bottom: 10px;
}

.zgody__link {
    text-decoration: none;
    font-size: 10px;
    color: #707070;
}

.checkbox1__label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.btn-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.btn {
    color: #fff;
    background-color: #D22028;
    border-radius: 12px;
    padding: 15px 40px;
    border: none;
    font-weight: 600;
    font-size: 17px;
    text-transform: uppercase;
}
.main-form .error{
    color:#dc3545;
    font-size: 12px;
}
.politics{
    text-decoration: underline;
    font-weight: 700;
}
.thanks{
    color: #3F3F3F;
    font-weight: 900;
}
/* MAIN-CONTACTS */

.main-contacts {
    padding: 25px;
    color: #707070;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.contacts {
    width: 80%;
    margin: 0 auto;
}

.contacts__text {
    margin-bottom: 20px;
}

.contacts__phone {
    margin-bottom: 10px;
}

.contacts__phone, .contacts__mail {
    display: flex;
    justify-content: center;
}

.contacts__mailtext, .contacts__phonetext {
    margin-left: 10px;
}
.contacts__phonetext a, .contacts__mailtext a{
    color: #707070;
    text-decoration: none;
}


/* FOOTER */

.section-footer {
    color: #707070;
    background-color: #DDDDDD;
    padding: 30px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    font-size: 20px;
}

.footer__address {
    display: flex;
    align-items: center;
}

.footer__links {
    display: flex;
    gap: 20px;
}

.footer__addresstext {
    display: inline-block;
    margin-left: 10px;
}


@media only screen and (min-width: 480px) {
    .main-features {
        padding: 40px 40px 15px 40px;
    }

    .main-contacts {
        padding: 30px 50px;
    }

    .main-form {
        padding: 30px 50px 50px 50px;
    }
}

@media only screen and (min-width: 768px) {
    .section-main {
        background-image: url('../img/bg.png');
    }
    .main {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .main__content {
        width: 100%; 
        max-width: 470px;
    }

    .main-features {
        padding: 40px 40px 15px 40px;
        margin-bottom: 0;
    }
}

@media only screen and (min-width: 970px) {
    .main {
       justify-content: space-between;
    }

    .main__content--1 {
        margin-bottom: 0;
    }
}