/* GENERAL */

:root {
    --color-green: #7eb24c;
    --color-yellow: #ffb300;
    --color-green-dark: #264608;
    --color-yellow-dark: #946801;
    --color-text: #0e0e0e;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

@media (max-width: 1199.98px) {
    html {
        font-size: 56.25%;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 50%;
    }
}

body {
    font-size: 1.8rem;
    color: var(--color-text);
}

p.text-p {
    text-indent: 2.3rem;
}


/* /GENERAL */

.header-box {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, .9)), to(rgba(255, 255, 255, .2))), url(../img/slogan_tvirza-agro.jpg);
    background-image: -o-linear-gradient(top, rgba(255, 255, 255, .9), rgba(255, 255, 255, .2)), url(../img/slogan_tvirza-agro.jpg);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, .9), rgba(255, 255, 255, .2)), url(../img/slogan_tvirza-agro.jpg);
    background-position: center;
    background-size: cover;
    height: 56rem;
    padding: 0;
    -webkit-box-shadow: .8rem .8rem 1.2rem rgba(0, 0, 0, .1);
    box-shadow: .8rem .8rem 1.2rem rgba(0, 0, 0, .1);
}


/* NAVBAR */

.navbar {
    padding: 1rem 0 0 0;
    position: relative;
}

.navbar-collapse {
    margin-bottom: 1.4rem;
}

.navbar-brand-img {
    margin-left: 5rem;
    height: 11rem;
}

.navbar.navbar-light .nav-link,
.navbar.footer-nav .nav-link {
    position: relative;
    padding: .5rem 1.7rem;
    color: var(--color-green-dark);
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
}

.navbar.navbar-light .nav-link:hover,
.navbar.footer-nav .nav-link:hover {
    color: var(--color-yellow-dark);
}

.nav-link .nav-link-line,
.navbar.footer-nav .nav-link-line {
    display: inline-block;
    background-color: var(--color-green-dark);
    width: 2px;
    height: 45%;
    margin-left: .5rem;
    position: absolute;
    top: 53%;
    right: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.nav-link:hover .nav-link-line {
    height: 80%;
    width: 2px;
    background-color: var(--color-yellow-dark);
}

.slogan-box {
    margin-top: 10rem;
    padding: 4rem 14rem 2rem 0;
    background-color: rgba(255, 255, 255, .6);
    text-align: right;
    -webkit-box-shadow: 0 .8rem 1.2rem rgba(0, 0, 0, .1);
    box-shadow: 0 .8rem 1.2rem rgba(0, 0, 0, .1);
}

.slogan-text {
    display: inline-block;
    padding: 1rem;
    border-top: 1px solid var(--color-yellow-dark);
    text-transform: uppercase;
    color: var(--color-yellow-dark);
    font-size: 2.6rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .header-box {
        height: 36rem;
    }
    .navbar-brand-img {
        margin-left: 4rem;
        height: 9rem;
    }
    .navbar.navbar-light .nav-link,
    .navbar.footer-nav .nav-link {
        padding: .5rem 1.2rem;
        font-size: 1.8rem;
    }
    .slogan-box {
        margin-top: 4.4rem;
        padding: 3rem 0 1rem 0;
        text-align: center;
    }
    .slogan-text {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .nav-link .nav-link-line,
    .navbar.footer-nav .nav-link-line {
        width: 1px;
    }
}

@media (max-width: 575.98px) {
    .navbar-light .navbar-toggler,
    .navbar-light .navbar-toggler:focus {
        border: none;
        outline: none;
        color: transparent;
        margin-top: 2rem;
        margin-right: 2rem;
        margin-bottom: 1rem;
    }
    .navbar-light .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(148, 104, 1, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        height: 2rem;
        width: 3rem;
        border: none;
        outline: none;
    }
    .nav-link .nav-link-line,
    .navbar.footer-nav .nav-link-line {
        display: none;
    }
    .navbar-collapse {
        margin-top: 1rem;
    }
}


/* /NAVBAR */


/* SECTION ABOUT US */

.section {
    padding: 12rem 14rem;
}

.section.about-us {
    position: relative;
    -webkit-filter: drop-shadow(.8rem .8rem 1.4rem rgba(0, 0, 0, 0.1));
    filter: drop-shadow(.8rem .8rem 1.4rem rgba(0, 0, 0, 0.1));
}

.section.specialization {
    position: relative;
    -webkit-filter: drop-shadow(.8rem .8rem 1.4rem rgba(0, 0, 0, 0.1));
    filter: drop-shadow(.8rem .8rem 1.4rem rgba(0, 0, 0, 0.1));
}

.section.about-us::after,
.section.specialization::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-image: -o-linear-gradient(295deg, #c9e6f4, #fbf9cc 60%);
    background-image: linear-gradient(155deg, #c9e6f4, #fbf9cc 60%);
}

.section.about-us::after {
    -webkit-clip-path: polygon(0 0, 100% 15%, 100% 85%, 0% 100%);
    clip-path: polygon(0 0, 100% 15%, 100% 85%, 0% 100%);
}

.section.specialization::after {
    -webkit-clip-path: polygon(0 0, 100% 10%, 100% 90%, 0% 100%);
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0% 100%);
}

.heading-primary {
    display: inline-block;
    margin-bottom: 3rem;
    margin-left: 6rem;
    border-top: 1px solid var(--color-green-dark);
    padding: 1rem 10.8rem 0 1rem;
    color: var(--color-green-dark);
    text-transform: uppercase;
    font-size: 2.4rem;
}

.heading-primary.yellow {
    border-top: 1px solid var(--color-yellow-dark);
    color: var(--color-yellow-dark);
}

.main-list {
    list-style-type: none;
    margin-left: 5rem;
}

.main-list-item:not(:last-child) {
    margin-bottom: 1.2rem;
}

.main-list-item {
    position: relative;
    padding-left: 3.6rem;
}

.main-list-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../img/wheat-bullet.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 3rem;
}

@media (max-width: 991.98px) {
    .section {
        padding: 6rem 3rem;
    }
    .heading-primary {
        font-size: 2rem;
        margin-bottom: 1.8rem;
    }
    .section.about-us::after {
        -webkit-clip-path: polygon(0 0, 100% 10%, 100% 90%, 0% 100%);
        clip-path: polygon(0 0, 100% 10%, 100% 90%, 0% 100%);
    }
    .main-list {
        margin-left: 3rem;
    }
}

@media (max-width: 767.98px) {
    .section.about-us::after,
    .section.specialization::after {
        -webkit-clip-path: polygon(0 0, 100% 5%, 100% 95%, 0% 100%);
        clip-path: polygon(0 0, 100% 5%, 100% 95%, 0% 100%);
    }
}

@media (max-width: 575.98px) {
    .section.about-us::after,
    .section.specialization::after {
        -webkit-clip-path: polygon(0 0, 100% 2%, 100% 98%, 0% 100%);
        clip-path: polygon(0 0, 100% 2%, 100% 98%, 0% 100%);
    }
    .main-list {
        margin-left: 0;
        padding-left: 0;
    }
    .heading-primary {
        margin-bottom: 1rem;
        margin-left: 2.2;
        border-top: 1px solid var(--color-green-dark);
        padding: 1rem;
        width: 84%;
        color: var(--color-green-dark);
        text-transform: uppercase;
        font-size: 2rem;
    }
}


/* SECTION SPECIALIZATION */

.specialization-img-box {
    text-align: center;
}

.specialization-img {
    width: 70%;
}

.cards-list {
    list-style-type: none;
    margin-top: 4rem;
}

.cards-list-item {
    background-color: rgba(255, 255, 255, .6);
    background-image: -o-linear-gradient(315deg, #e2dfa0 60%, #97cde7);
    background-image: linear-gradient(135deg, #e2dfa0 60%, #97cde7);
    -webkit-box-flex: 24rem;
    -ms-flex: 24rem 0 0px;
    flex: 24rem 0 0;
    height: 24rem;
    border-radius: 100rem;
    text-align: center;
    padding: 3rem 4rem;
    font-size: 1.4rem;
    font-weight: 500;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-shadow: .8rem .8rem 1.4rem rgba(0, 0, 0, .1);
    box-shadow: .8rem .8rem 1.4rem rgba(0, 0, 0, .1);
}

.cards-list-item:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.cards-list-item:not(:last-child) {
    margin-right: 1.8rem;
}

@media (max-width: 575.98px) {
    .cards-list-item {
        background-color: rgba(255, 255, 255, .6);
        background-image: -o-linear-gradient(315deg, #e2dfa0 60%, #97cde7);
        background-image: linear-gradient(135deg, #e2dfa0 60%, #97cde7);
        -webkit-box-flex: 100%;
        -ms-flex: 100% 0 0px;
        flex: 100% 0 0;
        height: 10rem;
        border-radius: 100rem;
        text-align: center;
        padding: 2rem 3rem;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}


/* SECTION CONTACTS */

.section.contacts {
    padding: 0 8rem;
}

.contacts-form {
    width: 80%;
}

.contacts-form-input {
    height: 3.4rem;
    margin-bottom: 2rem;
}

.contacts-form-input,
.contacts-form-textarea {
    padding: .6rem 1.6rem;
    border: 1px solid var(--color-green);
    font-size: 1.4rem;
    font-family: inherit;
}

.contacts-form-textarea {
    margin-bottom: 1.2rem;
    min-height: 10.8rem !important;
}

.contacts-form-input:focus,
.contacts-form-textarea:focus {
    border: none;
    border-bottom: 3px solid var(--color-green);
    color: var(--color-grey-dark);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.contacts-form-input:focus:invalid {
    border-bottom: 3px solid #ce0210;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    box-shadow: 0 0 0 30px #ffffff inset !important;
}

.contacts-form-notification {
    text-align: right;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ce0210;
}

.contacts-btn {
    padding: .6rem 2rem;
    margin-left: auto;
    border: none;
    font-size: 1.6rem;
    background-color: var(--color-yellow);
    color: #fff;
    font-weight: 500;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.contacts-btn:focus {
    outline: none;
}

.contacts-btn:hover {
    outline: none;
    background-color: var(--color-yellow-dark);
}

.contacts-info {
    margin-top: 2rem;
}

.contacts-add-info {
    margin-bottom: 1rem;
}

.contacts-svg {
    width: 2.4rem;
    height: 2.4rem;
    fill: var(--color-yellow);
    margin-right: 1rem;
}

.contacts-svg.location {
    width: 3.8rem;
    height: 3.8rem;
}

.contacts-add-info p {
    margin-bottom: .4rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.contats-loc {
    margin-bottom: 2rem;
}

.success-box {
    position: fixed;
    padding: 2rem 3rem;
    top: 40%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%) scale(0);
    -ms-transform: translate(-50%, -50%) scale(0);
    transform: translate(-50%, -50%) scale(0);
    height: 20rem;
    width: 40rem;
    background-color: rgba(255, 255, 255, .9);
    -webkit-box-shadow: 0 .8rem 1.6rem rgba(0, 0, 0, .2);
    box-shadow: 0 .8rem 1.6rem rgba(0, 0, 0, .2);
    color: var(--color-blue);
    font-weight: 500;
    font-size: 3rem;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s
}

.success-box p {
    text-indent: 0;
    text-align: center;
}

.success-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: .6;
}

.show-success {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.navbar.footer-nav {
    padding-top: 4rem;
    position: relative;
    -webkit-filter: drop-shadow(.8rem .8rem 1.4rem rgba(0, 0, 0, 0.1));
    filter: drop-shadow(.8rem .8rem 1.4rem rgba(0, 0, 0, 0.1));
}

.navbar.footer-nav::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-image: -o-linear-gradient(265deg, #c9e6f4, #fbf9cc 60%);
    background-image: linear-gradient(185deg, #c9e6f4, #fbf9cc 60%);
    -webkit-clip-path: polygon(0 0%, 100% 15%, 100% 100%, 0% 100%);
    clip-path: polygon(0 0%, 100% 15%, 100% 100%, 0% 100%);
}

.navbar.footer-nav .navbar-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    padding-top: 2.6rem;
}

.footer-nav-license {
    width: 100%;
    text-align: right;
    font-weight: 600;
    font-size: 1.4rem;
}

@media (max-width: 991.98px) {
    .section.contacts {
        padding: 0;
    }
    .contacts-form,
    .contacts-cart {
        width: 100%;
    }
    .contacts-form {
        padding-right: 3rem;
    }
}

@media (max-width: 767.98px) {
    .section.contacts .text-p {
        margin: 0 2rem;
    }
    .contacts-form {
        padding-right: 0;
        width: 80%;
        margin: 0 auto;
    }
    .contacts-cart {
        padding: 0 6rem;
    }
    .contacts-add-info {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .contacts-form {
        width: 94%;
    }
    .contacts-cart {
        padding: 0 1.2rem;
        margin-bottom: 2rem;
    }
    .navbar.footer-nav .navbar-nav {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin: 1rem 4rem 2rem 0;
    }
}


/* BACK TO TOP BTN */

.back-to-top__img {
    width: 100%
}

.back-to-top__btn {
    display: none;
    position: fixed;
    z-index: 100;
    border: none;
    border-radius: 100px;
    background-color: var(--color-yellow);
    -webkit-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
    bottom: 3rem;
    right: 2.1rem;
    width: 5.6rem;
    height: 5.6rem
}

.back-to-top__btn:hover {
    -webkit-box-shadow: .1rem .2rem .8rem rgba(0, 0, 0, .2);
    box-shadow: .1rem .2rem .8rem rgba(0, 0, 0, .2);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px)
}

.back-to-top__btn:active {
    -webkit-box-shadow: .1rem .2rem .4rem rgba(0, 0, 0, .2);
    box-shadow: .1rem .2rem .4rem rgba(0, 0, 0, .2);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0)
}

.back-to-top__btn:focus {
    outline: 0
}

@media (max-width:991.98px) {
    .back-to-top__btn {
        bottom: 2.8rem;
        right: 2.8rem
    }
}

@media (max-width: 575.98px) {
    p,
    ul {
        font-size: 1.9rem;
    }
    p {
        text-align: justify;
    }
    .contacts-form-input,
    .contacts-form-textarea,
    .contacts-add-info p {
        font-size: 1.6rem;
    }
    .contacts-add-info p {
        text-indent: 0;
    }
    .contacts-btn {
        margin-bottom: 2rem;
    }
}