/* GENERAL */

:root {
    --color-primary: #246500;
    --color-primary-dark: #153b00;
    --color-primary-light: #92c178;
    --color-black: #131313;
    --color-grey: #b0aca8;
    --color-grey-light: #e6e6e6;
    --color-grey-dark: #2b2b2b;
    --color-white: #ffffff;
}

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.7rem;
    color: var(--color-black);
}

img {
    width: 100%;
}


/* /GENERAL */


/* TOP-NAVIGATION */

.navbar-brand--img {
    height: 10rem;
    width: auto;
}

.navbar-brand--heading {
    margin-bottom: 2rem;
    color: var(--color-grey-dark);
    font-weight: 300;
    font-size: 3.4rem;
}

.nav-item {
    width: 14rem;
    height: 4.2rem;
    border-bottom: 1px solid var(--color-grey-dark);
    text-align: center;
    transition: all .3s;
}

.nav-item:not(:last-child) {
    margin-right: 2.2rem;
}

.nav-link {
    width: 100%;
    height: 100%;
    padding: .2rem 1.4rem;
    color: var(--color-grey-dark);
    font-weight: 300;
    font-size: 2.2rem;
    position: relative;
    transition: all .3s;
}

.nav-item:hover {
    border-bottom: 2px solid var(--color-primary);
    transform: translateY(-2px);
}

.nav-item:hover .nav-link {
    color: var(--color-primary);
    font-weight: 400;
}


/* /TOP-NAVIGATION */

.section {
    padding: 2rem 8rem 6rem 8rem;
    text-align: center;
}


/* SECTION ABOUT-US */

.heading-secondary {
    display: block;
    text-align: center;
}

.heading-secondary.main {
    margin-top: 2rem;
    margin-bottom: 1.6rem;
    font-size: 3.4rem;
}

.heading-secondary.additional {
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 3.4rem;
}

span.green {
    color: var(--color-primary);
}

.section .text-block {
    text-indent: 4rem;
    text-align: left;
}


/* /SECTION ABOUT-US */


/* SECTION SERVICES-LIST */

.heading-tertiary {
    display: inline-block;
    margin-bottom: 2.8rem;
    padding-bottom: .6rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-bottom: 2px solid var(--color-grey-dark);
    color: var(--color-grey-dark);
    text-transform: uppercase;
    font-size: 2.4rem;
}

.service {
    flex: 20%;
    height: 18rem;
    padding: 2rem;
    background-color: var(--color-primary-light);
    box-shadow: 0 .6rem 1.2rem rgba(0, 0, 0, .1);
    transition: all .3s;
}

.service:not(:last-child) {
    margin-right: 3rem;
}

.service.service-2 {
    background-color: #cacaca;
}

.service-heading {
    color: var(--color-black);
    font-size: 2.2rem;
    transition: all .3s;
}

.service:hover {
    text-decoration: none;
    filter: saturate(1.4);
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 .7rem 1.4rem rgba(0, 0, 0, .2);
}

.service:hover .service-heading {
    color: var(--color-primary-dark);
}

.section.advantages {
    margin-top: 2rem;
}

.advantages-img {
    margin-top: -8.4rem;
    width: 90%;
}

.advantages-list {
    margin-top: 6rem;
    list-style-type: none;
    padding-left: 0;
}

.advantages-item {
    flex: 20%;
    padding: 1rem 2rem;
}

.advantages-item:not(:last-child) {
    border-right: 1px solid var(--color-grey-dark);
}

.advantages-heading--text {
    font-size: 2.2rem;
    margin-right: .6rem;
}

.advantages-heading--img {
    height: 2.4rem;
    width: auto;
}

.navbar-toggler {
    border-radius: 50%;
    border: none;
    background-color: var(--color-primary);
    padding: .4rem;
    transition: all .3s;
}

.navbar-toggler:focus {
    outline: none;
    border: 2px solid var(--color-grey-light);
}

.navbar-light .navbar-toggler-icon {
    width: 4rem;
    height: 4rem;
    background-image: url("../img/menu-icon.png");
}

@media (max-width: 991.98px) {
    .section {
        padding: 1rem 6rem 2rem 6rem;
    }
    .advantages-img {
        width: 100%;
        margin-top: 0;
    }
    .advantages-item {
        flex: 30%;
        padding: 1rem;
    }
    .service {
        height: 15rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand--img {
        height: 9rem;
    }
    .navbar-brand--heading {
        font-size: 3.2rem;
        margin-left: 1rem;
    }
    .nav-item {
        margin-right: 0 !important;
        width: 22rem !important;
    }
    .section {
        padding: 1rem 0;
    }
    .heading-secondary.main {
        font-size: 3rem;
    }
    .heading-secondary.additional {
        font-size: 2.2rem;
        padding: 0 4rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand--img {
        height: 8.6rem;
    }
    .navbar-brand--heading {
        font-size: 2.8rem;
        margin-left: .2rem
    }
    .heading-tertiary {
        font-size: 2.2rem;
    }
    .service {
        margin-right: 0 !important;
        margin: 1rem 0;
    }
    .service-block {
        border: none !important;
        border-bottom: 1px solid var(--color-grey) !important;
    }
    .section.advantages .text-block {
        position: relative
    }
    .section.advantages .text-block::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("../img/advantages.jpg");
        background-position: right;
        background-size: auto 100%;
        background-repeat: no-repeat;
        z-index: -1;
        opacity: .4;
    }
    .advantages-list {
        margin-top: 2rem;
    }
    .advantages-item {
        border-right: none !important;
        border-bottom: 1px solid var(--color-grey)
    }
}


/* SUBSCRIPTION */

.subscription {
    margin-top: 8rem;
    height: 6rem;
    background-color: var(--color-grey);
}

.subscription-text {
    font-size: 2.2rem;
    margin-bottom: 0;
}

.subscription-form {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
}

.subscription-input {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 30%;
    flex: 0 0 30%;
    padding: 0 1rem;
    height: 3.4rem;
    border: none;
    font-size: 1.6rem;
    margin-right: 1rem;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.subscription-input:focus {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    outline: none;
}

.subscribe-btn {
    height: 3.4rem;
    padding: 0 1.4rem;
    border: none;
    background-color: var(--color-grey-dark);
    color: var(--color-white);
    -webkit-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
}

.subscribe-btn:hover {
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 1rem 2rem rgba(0, 0, 0, .2);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .2);
}

.subscribe-btn:active {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
}

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

@media (max-width: 991.98px) {
    .subscription {
        margin-top: 2.4rem;
        margin-bottom: 3.4rem;
    }
    .subscription-text {
        font-size: 1.9rem;
    }
    .subscribe-btn {
        font-size: 1.6rem;
        padding: 0 1rem;
    }
}

@media (max-width: 767.98px) {
    .subscription {
        padding: 1rem 0;
        height: auto;
    }
    .subscription-text {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .subscription {
        margin: 0;
    }
    .subscription-form {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
    .subscription-input {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 74%;
        flex: 0 0 74%;
        -webkit-transition: all .3s;
        -o-transition: all .3s;
        transition: all .3s;
    }
    .subscription-input:focus {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 80%;
        flex: 0 0 80%;
    }
}

@media (max-width: 575.98px) {
    .heading-secondary.main {
        font-size: 2.6rem;
    }
    .heading-secondary.additional {
        font-size: 2rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
}


/* /SUBSCRIPTION */


/* SECTION SERVICES */

.service-block {
    border-top: 1px solid var(--color-black);
}

.service-block:last-child {
    border-top: 1px solid var(--color-black);
    border-bottom: 1px solid var(--color-black);
}

.service-text {
    margin: 0 4rem;
    text-align: left;
}

.service-heading {
    margin-bottom: 1rem;
}

.service-list {
    list-style-type: none;
    padding-left: 0;
    font-size: 1.7rem;
}

.service-item:not(:last-child) {
    margin-bottom: .4rem;
}

.service-img {
    justify-self: flex-end;
    height: 22rem;
    width: auto;
}

@media (max-width: 991.98px) {
    .section.services {
        padding: 0 3.6rem;
    }
    .service-text {
        margin: 0 1rem 0 3rem;
    }
}

@media (max-width: 575.98px) {
    .section.services {
        padding: 2rem 0;
    }
    .service-img {
        margin: 2rem 0 1rem 0;
    }
    .service-list {
        padding-left: 2rem;
    }
}


/* /SECTION SERVICES */


/* SECTION CONTACT US  */

.contacts-info {
    margin-bottom: 3rem;
    text-align: left;
}

.contacts-info p {
    margin-bottom: 0;
}

.contacts-icon {
    height: 6rem;
    width: auto;
    margin-right: 2rem;
}

.contacts-form {
    width: 100%;
    height: 100%;
    padding: 4rem 3rem;
    background-color: var(--color-grey-light);
}

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

.contacts-form-input,
.contacts-form-textarea {
    padding: .6rem 1.6rem;
    border: 1px solid #838383;
    font-size: 1.4rem;
    font-family: inherit;
}

.contacts-form-textarea {
    margin-bottom: 1.2rem;
}

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

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

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;
}

.contacts-btn {
    border: none;
    border-radius: 3px;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: .6rem 1.6rem;
    font-size: 1.6rem;
    transition: all .3s;
}

.contacts-btn:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 .6rem .8rem rgba(0, 0, 0, .1);
}

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


/* /SECTION CONTACT US  */


/* FOOTER */

.footer {
    margin-top: 8rem;
}


/* /FOOTER */


/* BACK TO TOP & MENU BTN*/

.back-to-top--img,
.menu-img {
    width: 100%;
}

.back-to-top--btn,
.menu-btn {
    display: none;
    position: fixed;
    z-index: 99;
    border: none;
    border-radius: 100px;
    background-color: var(--color-primary);
    -webkit-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
}

.back-to-top--btn {
    bottom: 3rem;
    right: 2.1rem;
    width: 5.6rem;
    height: 5.6rem;
}

.menu-btn {
    top: 2rem;
    left: 2.1rem;
    width: 6.6rem;
    height: 6.6rem;
}

.back-to-top--btn:hover,
.menu-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,
.menu-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,
.menu-btn:focus {
    outline: none;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: var(--color-primary);
    overflow-x: hidden;
    padding-top: 60px;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

.sidenav .sidenav-link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    text-decoration: none;
    text-align: center;
    color: var(--color-white);
    font-size: 1.7rem;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.sidenav .sidenav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right;
    -ms-transform-origin: right;
    transform-origin: right;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    z-index: -1;
}

.sidenav .sidenav-img {
    width: 5rem;
}

.sidenav .sidenav-link:hover::before {
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
}

.sidenav .sidenav-link:hover p,
.sidenav .sidenav-link.active p {
    color: rgb(46, 46, 46);
}

.sidenav .sidenav-link:hover img,
.sidenav .sidenav-link.active img {
    filter: invert(.8);
}

.sidenav .sidenav-link.active {
    background-color: var(--color-white);
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 2.5rem;
    font-size: 3.6rem;
    margin-left: 5rem;
    color: var(--color-white);
    text-decoration: none;
    transition: all .3;
}

.sidenav .closebtn:hover {
    transform: scale(1.07);
}

@media (max-width: 991.98px) {
    .menu-btn {
        top: 1rem;
        left: 1rem;
        width: 5.6rem;
        height: 5.6rem;
    }
    .back-to-top--btn {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 991.98px) {
    .section.cooperation {
        margin-top: 4rem;
    }
    .footer {
        padding: 0 3rem;
    }
    .nav-item {
        width: 12rem;
    }
    .nav-item:not(:last-child) {
        margin-right: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .contacts-map-col {
        height: 35rem;
        margin-bottom: 1.8rem;
    }
    .footer .navbar-nav {
        margin-bottom: 3rem;
    }
    .footer .nav-item {
        width: 10rem;
        margin: 0 3rem;
    }
}

@media (max-width: 575.98px) {
    .footer {
        margin-top: 2rem;
    }
    .footer .nav-item {
        margin: 0;
    }
}


/* /BACK TO TOP & MENU BTN*/


/* FORM AND SUBSCRIBE SUBMITION */

.submit-message {
    animation: showMessage 2s ease-out;
    height: 10rem;
    width: 34rem;
    border-radius: 6px;
    background-color: var(--color-primary);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, .2);
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 500;
    position: fixed;
    z-index: 110;
    top: 50%;
    left: 50%;
    opacity: 0;
    display: none;
    transform: translate(-50%, -50%);
}

.submit-message p {
    height: 8rem;
    width: 100%;
    border-bottom: 3px solid #ffffff;
}

@keyframes showMessage {
    0% {
        opacity: 0;
    }
    50% {
        visibility: visible;
        opacity: 1;
    }
    100% {
        visibility: visible;
        opacity: 1;
    }
}