@import url("offer-EFraAQ8.css");
@import url("form-RcY0blr.css");

:root {
    --green: #156952;
    --dark-green: #13332f;
    --light-green: #5dcba6;
    --deep-dark: #2c2c2c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: #152332;
    font: 16px "DM Sans", sans-serif;
    margin: 0;
    padding: 70px 0 0;
}

p,
ul {
    line-height: 1.6em;
}

p {
    margin: 0 0 15px;
}

a {
    color: #939280;
    text-decoration: none;
}

ul {
    margin: 0 0 0 40px;
}

h2 {
    margin: 5px 0 15px;
    font-size: 30px;

    b {
        color: var(--green);
    }
}

h3 {
    margin: 10px 0;
    font-size: 20px;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

header {
    background: #fff;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    color: var(--dark-green);
    font-family: Michroma, 'Courier New', Courier, monospace;
    font-size: 22px;
    font-size: clamp(15px, 3.5vw, 22px);
}

.header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin: 0 60px;
}

.header #main-navigation {
    margin-left: auto;
    margin-right: 30px;
}

#main-menu {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 5px 0 0;
    z-index: 101;
}

#main-menu>li {
    position: relative;
}

#main-menu a {
    display: block;
    color: var(--deep-dark);
    transition: color .3s ease;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

#main-menu a:hover {
    color: var(--green);
}

.has-submenu .submenu {
    position: absolute;
    top: calc(100% + 19px);
    left: -40px;
    min-width: 220px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1200;
}

.has-submenu .submenu li {
    margin: 0;
}

.has-submenu .submenu a {
    padding: 2px 18px;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: none;
    color: var(--deep-dark);
}

.has-submenu.open .submenu {
    opacity: 1;
    visibility: visible;
}

.has-submenu>a {
    cursor: pointer;
}

.has-submenu.open>a {
    color: var(--green);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--dark-green);
    cursor: pointer;
}

.hero {
    min-height: calc(100vh - 70px);
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    background: url("/images/main.webp") center bottom / cover no-repeat;
    position: relative;
}

.intro,
.page-intro {
    width: 590px;
    max-width: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 90px 0 90px;
    font-size: clamp(10px, 3.5vw, 15px);
    color: #fff;
    text-align: left;
    background: linear-gradient(to right, rgb(20, 33, 40) 0%, rgba(20, 33, 40, 0.8) 55%, rgba(31, 51, 61, 0) 100%);
    transform: translateY(0);
}

.page-shadow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    background: linear-gradient(to right, rgba(20, 33, 40, .9) 0%, rgba(20, 33, 40, .8) 40%, rgba(31, 51, 61, 0) 70%);
}

.page-intro {
    max-width: 100%;
    width: 700px;
    padding: 40px 120px 20px;
    background: none;

    .main-description {
        text-shadow: 0 0 5px rgba(0, 0, 0, 1);
    }
}

.hero-intro {
    color: var(--light-green);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .2em;
    margin: 0;
}

.intro h1,
.page-intro h1 {
    color: #fff;
    font-size: clamp(20px, 3.5vw, 40px);
    text-shadow: 0 0 5px rgba(0, 0, 0, .4);
    margin: 20px 0 25px;

    b {
        color: var(--light-green);
    }
}

.page-intro h1 {
    font-size: clamp(25px, 3.5vw, 40px);
    margin: 10px 0 15px;
}


.page-header {
    min-height: 300px;
    display: flex;
    align-items: stretch;
    background: url("/images/main.webp") center center / cover no-repeat;
}

.cta {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    margin: 15px 0 0;
    width: 100%;
    text-align: center;
}

#main-content {
    background: #f9fbfb;
    min-height: 500px;

    section {
        padding: 60px 120px;
    }
}

.simple-link {
    color: var(--green);
    transition: all .3s ease;

    &:hover {
        color: var(--dark-green);
    }
}

footer {
    background: url("/images/footer.webp") center top / cover no-repeat #1e3c3b;
}

.footer-top {
    padding: 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #96b9a9;
    font-size: 14px;

    .logo {
        color: #fff;
        font-size: 16px;
        margin: 0 0 10px;
        letter-spacing: .08em;
    }

    p {
        margin: 0 0 10px;
        line-height: 1.4em;
    }

    a {
        color: #fff;
    }

    a:hover {
        color: #96b9a9;
    }

    .footer-text {
        max-width: 500px;
    }

    .footer-intro {
        text-transform: uppercase;
    }

    .footer-lead {
        color: white;
        font-size: 27px;
    }

    ul {
        list-style: none;
        margin: 0;
    }
}

.footer-menu {
    align-self: flex-start;
}

.footer-logo {
    text-align: right;
}

.footer-bottom {
    padding: 20px 100px;
    font-size: 14px;
    background: rgba(7, 20, 20, 0.9);
    text-align: center;
    color: #96b9a9;
}

.social .fa-brands {
    font-size: 20px;
    margin-left: 10px;
    color: white;
}

.copyright {
    font-size: 12px;
    margin: 0;
}

p.contact {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.contact {

    a {
        background: var(--green);
        padding: 10px 30px;
        border-radius: 20px;
        color: #fff;
        transition: all .3s ease;
        font-size: 15px;
        letter-spacing: .08em;
        white-space: nowrap;
    }

    a:hover {
        box-shadow: 0 0 20px var(--green);
        color: #fff;
    }
}

.contact-section {
    display: flex;

    &>* {
        flex: 1;
    }
}

.contact-email,
.contact-phone {
    margin: 0 0 5px 25px;

    .fa-solid {
        color: var(--green);
        display: inline-block;
        margin-right: 10px;
        font-size: 18px;
    }
}

.contact-description {
    margin-top: 50px;
}

.adres {
    margin-left: 20px;

    p {
        margin: 0;
    }
}

.dark-section {
    background: #eef7f4;
}

@media (max-width: 1200px) {

    .footer-top,
    .footer-bottom {
        padding: 30px;
    }

    .footer-menu {
        display: none;
    }
}

@media (max-width: 1014px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: url("/images/nav.webp") center top / cover no-repeat var(--dark-green);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(19, 51, 47, .9);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease;
        z-index: 9;
        pointer-events: none;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #main-menu {
        flex-direction: column;
        padding: 20px 0 20px 40px;
        gap: 0;

        li {
            margin-bottom: 10px;
        }

        a {
            font-size: 16px;
            color: white;
        }
    }

    .has-submenu .submenu {
        position: static;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        padding: 10px 0 0px 10px;
        margin: 5px 0 0 10px;
        min-width: auto;
        line-height: 1em;
        border-radius: 10px 0 0 10px;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: opacity .2s ease, visibility .2s ease, max-height .2s ease;

    }

    .has-submenu.open .submenu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }

    #main-menu .has-submenu .submenu a {
        padding: 5px 10px;
        font-size: 13px;
        color: var(--light-green);
    }

}

@media (max-width: 768px) {
    .hero {
        height: 500px;
        min-height: auto;
        display: block;
    }

    .intro,
    .header {
        padding: 0 20px;
        margin: 0;
    }

    .intro {
        height: 100%;
        width: 100%;
        max-width: 100%;

        &.fade-up {
            transform: translateY(0);
        }
    }

    .page-header {
        min-height: 250px;
    }

    .page-intro {
        padding: 30px;
        max-width: 90%;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social {
        text-align: center;
        flex-direction: column-reverse;
    }

    .footer-logo {
        text-align: center;
        margin-top: 40px;
    }

    #main-content {

        section {
            padding: 50px 30px;
        }
    }

    p.contact {
        justify-content: center
    }

}

.realizations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.realization-card {
    padding: 24px 24px 0;
    background: #fff;
    border-left: 3px solid var(--green);
}

.realization-card h2 {
    font-size: 22px;
}

.case-study {
    max-width: 880px;
    margin: 0 auto;
}

.case-study section {
    padding: 20px 0 !important;
}

.case-study .case-study-back {
    display: inline-block;
    margin-top: 20px;
}

article {
    display: flex;
    flex-direction: column;

    &> :last-child {
        margin-top: auto;
        text-align: right;
    }

    h3 .fa-solid {
        color: var(--green);
        display: inline-block;
        margin-right: 10px;
    }
}