:root {
    --colorTop: #08530D;
    --colorTopRgb: 8, 83, 13;
}

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'titleFont';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-serif-display-regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'titleFont';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-serif-display-regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: 'bodyFont';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'bodyFont';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}


@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-italic-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'bodyFont2';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-italic-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

body,
html {
    min-height: 100%;

}

html {
    background-color: #e0e0e0;
}

html {
    overflow-x: clip;
}

body {
    max-width: 1920px;
    margin: 0 auto;
    background-color: #ffffff;
}

header {
    position: relative;
    background-color: var(--colorTop);
    height: 45px;
    width: 100%;
}

header a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'titleFont', serif;
}

header ul.contact {
    display: flex;
    align-items: center;
    height: 100%;
    list-style: none;
    gap: 20px;
    padding-left: 40px;

}

header ul.contact li a {
    font-family: bodyFont2 !important;
    font-weight: 400;
}

header ul.contact a.email::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -3px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2'%20y='4'%20width='20'%20height='16'%20rx='2'/%3E%3Cpath%20d='m2%207%2010%206%2010-6'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2'%20y='4'%20width='20'%20height='16'%20rx='2'/%3E%3Cpath%20d='m2%207%2010%206%2010-6'/%3E%3C/svg%3E") center/contain no-repeat;
}

header ul.contact a.tel::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -3px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.79%2019.79%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72c.13.96.36%201.9.7%202.81a2%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45c.9.34%201.85.57%202.81.7A2%202%200%200%201%2022%2016.92z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.79%2019.79%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72c.13.96.36%201.9.7%202.81a2%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45c.9.34%201.85.57%202.81.7A2%202%200%200%201%2022%2016.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.topLogo {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 10;
}

.topLogo a {
    display: block;
}

.topLogo svg {
    display: block;
    height: 150px;
    width: auto;
}

header nav {
    position: absolute;
    top: calc(50% + 100px);
    right: 0px;
    transform: translateY(-50%);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 0;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 0;
}

/* header nav a {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
} */

header nav>ul>li {
    position: relative;
}

header nav>ul>li>a {
    display: block;
    padding: 10px 12px;
}

header nav>ul>li>a {
    padding-top: 10px !important;
}

header nav .subMenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-width: 260px;
    max-width: 340px;
    padding: 18px 0 8px;
    background-color: rgba(var(--colorTopRgb), 0.3);
    backdrop-filter: blur(6px);
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

header nav>ul>li:hover>.subMenu,
header nav>ul>li:focus-within>.subMenu {
    opacity: 1;
    visibility: visible;
}

header nav .subMenu a {
    display: block;
    padding: 8px 16px;
    text-shadow: none;
    line-height: 1.35;
}

header nav .subMenu a:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

header nav>ul>li>a.hasSub::after {
    content: "\2304";
    margin-left: 6px;
    display: inline-block;
    vertical-align: 3px;
    line-height: 1;
}

.hero {
    position: relative;
    clear: both;
    display: grid;
    overflow: hidden;
}

.hero h1 {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 40px;
    width: auto;
    padding-left: 40px;
    color: #ffffff;
    text-align: left;
    font-family: 'titleFont', serif;
    font-size: clamp(24px, 3.4vw, 56px);
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero img {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: calc(100vh - 200px);
    opacity: 0;
    transition: opacity 0.8s ease;
    object-fit: cover;
}

.hero img.isActive,
.hero:not(.isReady) img:first-child {
    opacity: 1;
}

.navToggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 30;
    width: 34px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.navToggle span {
    display: block;
    height: 3px;
    background-color: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.isNavOpen .navToggle span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.isNavOpen .navToggle span:nth-child(2) {
    opacity: 0;
}

.isNavOpen .navToggle span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

main,
article {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'bodyFont2', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #222222;
}

main>*:first-child,
article>*:first-child,
.homeCards>*:first-child {
    margin-top: 0;
}

main h2,
article h2,
.homeCards h2,
main h3,
article h3,
.homeCards h3,
main h4,
article h4,
.homeCards h4 {
    font-family: 'titleFont', serif;
    font-weight: 400;
    line-height: 1.25;
    color: var(--colorTop);
}

main h2,
article h2,
.homeCards h2 {
    font-size: clamp(26px, 2.6vw, 38px);
    margin: 48px 0 16px;
}

.homeRibbon {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    height: 160px !important;
    box-sizing: border-box;
    font-family: 'bodyFont2', sans-serif;
    color: #222222;
    text-align: center;
}

.homeRibbon article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 130px;
    flex: 0 0 auto;
    text-align: center;
    max-height: 160px !important;
    height: 160px;
    overflow: hidden;
}

.homeRibbon article p {
    text-align: center;
    font-size: 18px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.homeRibbon article p:nth-of-type(2) {
    font-size: 50px;
    line-height: 50px;
    font-family: "titleFont";
    color: var(--colorTop);
    margin-top: 10px;
}

main h3,
article h3,
.homeCards h3 {
    font-size: clamp(20px, 2vw, 28px);
    margin: 36px 0 12px;
}

main h4,
article h4,
.homeCards h4 {
    font-size: clamp(17px, 1.5vw, 21px);
    margin: 28px 0 10px;
}

main p,
article p,
.homeCards p {
    margin: 0 0 16px;
    text-align: justify;
}

main ul,
article ul,
.homeCards ul,
main ol,
article ol,
.homeCards ol {
    margin: 0 0 20px;
    padding-left: 24px;
    list-style: disc;
}

main ul li,
article ul li,
.homeCards ul li,
main ol li,
article ol li,
.homeCards ol li {
    margin-bottom: 8px;
    text-align: justify;
}

main a,
article a,
.homeCards a {
    color: var(--colorTop);
    text-decoration: underline;
}

main a:hover,
article a:hover,
.homeCards a:hover {
    text-decoration: none;
}

main article {
    max-width: none;
    padding: 0;
}

.homeCards h3 {
    margin-top: 0;
    font-size: 24px;
}

.homeCards h2 {
    display: block;
    color: #ffffff;
    width: 100%;
}

.homeCards h2 {
    grid-column: 1 / -1;
    font-size: 22px;
    font-family: bodyFont2;
}

.homeCards h2 span {
    font-family: "titleFont";
    font-size: 30px;
}

.homeCards .bottom {
    grid-column: 1 / -1;
    color: #ffffff;
}

.homeCards .bottom a {
    display: inline-block;
    color: #ffffff;
    background-color: var(--colorTop);
    padding: 10px 25px;
    text-decoration: none;
    transition: all 500ms;
}

.homeCards .bottom a:hover {
    background-color: #0a6b11;
}

.homeCards {
    background-image: url('../../hero/forest.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'bodyFont2', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #222222;
    padding: 48px 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 320px));
    justify-content: center;
    gap: 24px;
    background-color: #f0f0f0;
}

.homeCards p {
    text-align: left;
}

.homeCards small {
    font-size: 20px;
    display: block;
    margin-bottom: 20px;
    font-style: italic;
}

.homeCards a::after {
    content: "\27F6";
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.homeCards a:hover::after {
    transform: translateX(6px);
}

.homeCards article>p:last-child {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 16px;
}

main .homeCards article,
.homeCards article {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 24px;
    border: 1px solid #dcdcdc;
    background-color: #fafafa;
}

footer {
    background-color: var(--colorTop);
    background-image: linear-gradient(rgba(8, 83, 13, 0.82), rgba(8, 83, 13, 0.82)), url('../../hero/forest.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    /* padding: 48px max(20px, calc((100% - 1280px) / 2)); */
    padding: 40px 0 0;
    font-family: 'bodyFont2', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footerCard {
    flex: 1 1 240px;
    max-width: 380px;
    width: 33%;
}
.footerCard.card1 {
    text-align: center;
}
.footerCard.card3 {
    text-align: center;
}

.footerCard h3 {
    margin-bottom: 20px;
}
.footerCard dl {
    padding-bottom: 10px;
    font-size: 12px;
}
.footerCard dl dt {
    font-style: italic;
}
.footerCard dl dd {
    display: block;
    box-sizing: border-box;
    padding-left: 20px;
}
.footerCard dl dd a {
    display: inline-block;
    text-decoration: underline;
}
.footerCard dl dd a:hover {
}


.footerCard.card1 a {
    display:inline-block;
}

.footerCard.card3 a {
    display:block;
}

.footerCard svg {
    display: block;
    width: auto;
    height: 140px;
}


.footerData {
    flex: 0 0 100%;
    width: 100%;
    background-color: var(--colorTop);
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.footerData a {
    text-decoration: underline;
}

@media (min-width: 961px) {

    footer {
        row-gap: 0;
    }

    .footerData .row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        width: 100%;
        max-width: 1280px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    header nav .subMenu {
        transform: translateY(-40px);
        clip-path: inset(40px 0 0 0);
        transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, clip-path 0.35s ease;
    }

    header nav>ul>li:hover>.subMenu,
    header nav>ul>li:focus-within>.subMenu {
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }

    header nav .subMenu a {
        transition: background-color 0.2s ease, padding-left 0.2s ease;
    }

    header nav .subMenu a:hover {
        padding-left: 22px;
    }

}

@media (max-width: 1280px) {

    .hero h1 {
        padding-left: 20px;
        bottom: 15px;
    }

    header nav>ul {
        font-size: 12px;
    }

    .topLogo svg {
        height: 105px;
    }

    header nav {
        top: calc(50% + 70px);
    }

    header nav .subMenu {
        font-size: inherit;
    }

}

@media (max-width: 960px) {

    footer {
        flex-direction: column;
        align-items: center;
        padding: 20px 0 0;
        margin: 0;
    }

    .footerCard {
        flex: 0 0 auto;
        width: 100%;
        max-width: 380px;
    }
    .footerCard.card1 {
        display: none;
    }
    .footerCard.card2 h3 {
        text-align: center;
    }
    .footerCard.card2 dl {
        width: 100%;
    }
    .footerCard.card2 dl dt {
        width: 100%;
        text-align: center;
    }
    .footerCard.card2 dl dd {
        padding-left: 0;
        width: 100%;
        text-align: center;
    }
    .footerData .row {
        height: 80px;
        max-height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .homeCards {
        grid-template-columns: repeat(2, minmax(0, 320px));
    }

    .homeCards article:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: 320px;
    }

    main p,
    article p,
    main ul li,
    article ul li,
    main ol li,
    article ol li {
        text-align: left;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 50;
        height: 80px;
    }

    .topLogo {
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .topLogo svg {
        height: 100px;
        filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 1));
    }

    .navToggle {
        display: flex;
    }

    header ul.contact {
        gap: 16px;
        padding-left: 20px;
    }

    header ul.contact li a {
        font-size: 0;
    }

    header ul.contact a.email::before,
    header ul.contact a.tel::before {
        width: 26px;
        height: 26px;
        margin-right: 0;
        vertical-align: middle;
    }

    header nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 400px;
        transform: translateX(100%);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        background-color: var(--colorTop);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    }

    header.isNavOpen nav {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    html,
    body {
        overflow-x: clip;
    }

    html.isNavLocked {
        overflow-y: hidden;
    }

    header.isNavOpen nav>ul>li {
        animation: navItemIn 0.4s ease both;
    }

    header.isNavOpen nav>ul>li:nth-child(1) {
        animation-delay: 0.10s;
    }

    header.isNavOpen nav>ul>li:nth-child(2) {
        animation-delay: 0.16s;
    }

    header.isNavOpen nav>ul>li:nth-child(3) {
        animation-delay: 0.22s;
    }

    header.isNavOpen nav>ul>li:nth-child(4) {
        animation-delay: 0.28s;
    }

    header.isNavOpen nav>ul>li:nth-child(5) {
        animation-delay: 0.34s;
    }

    header.isNavOpen nav>ul>li:nth-child(6) {
        animation-delay: 0.40s;
    }

    header.isNavOpen nav>ul>li:nth-child(7) {
        animation-delay: 0.46s;
    }

    header.isNavOpen nav>ul>li:nth-child(8) {
        animation-delay: 0.52s;
    }

    header nav ul {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
    }

    header nav>ul>li>a {
        padding: 14px 20px;
    }

    header nav .subMenu {
        font-size: inherit;
        position: static;
        display: none;
        max-width: none;
        min-width: 0;
        padding: 0 0 8px;
        background-color: rgba(0, 0, 0, 0.2);
        opacity: 1;
        visibility: visible;
        transition: none;
    }

    header nav>ul>li.isSubOpen>.subMenu {
        display: flex;
    }

    header nav .subMenu a {
        padding: 10px 20px 10px 36px;
    }

    header nav>ul>li.isSubOpen>a.hasSub::after {
        content: "\2303";
        vertical-align: -6px;
    }

}

@media (max-width: 500px) {

    .footerCard svg {
        height: 100px;
    }

    .homeRibbon {
        gap: 5px;
    }

    .homeRibbon article p:first-child {
        font-size: 12px;
    }

    .homeRibbon article {
        width: 100px;
    }

    .homeCards {
        grid-template-columns: minmax(0, 320px);
    }

    header nav {
        width: 100%;
    }

}

@keyframes navItemIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (orientation: portrait) {

    .hero img {
        height: 55vh;
        object-fit: cover;
        object-position: center;
    }

}

@media (max-width: 960px) and (orientation: landscape) {

    .hero img {
        height: calc(100vh - 240px);
    }

}

@media (prefers-reduced-motion: reduce) {

    header nav,
    header nav .subMenu,
    header nav .subMenu a,
    header.isNavOpen nav>ul>li,
    .navToggle span,
    .toTop,
    .toTop span {
        transition: none;
        animation: none;
    }

}

.toTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--colorTop);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.toTop.isVisible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toTop.isVisible:hover {
    background-color: #0a6b11;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.toTop.isVisible:active {
    transform: translateY(-1px);
}

.toTop span {
    display: block;
    width: 12px;
    height: 12px;
    margin: 4px auto 0;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.toTop.isVisible:hover span {
    transform: rotate(45deg) translate(-2px, -2px);
}

@media (max-width: 500px) {

    .toTop {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

}