@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    --c-black: #41151C;
    --c-main: #74C5B9;
    --c-secondary: #42A797;
    --c-tertiary: #257684;
    --c-orange: #F9A377;
    --c-orangeHovered: #dd8050;
    --c-lightBackground: #EDF8F6;
    --c-lightBrown: #E8DFE0;
    --text-muted: #b0b0b0;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    color: var(--c-black);
    width: 100%;
    overflow-x: hidden;
}

a {
    all: unset;
    cursor: pointer;
}

li {
    list-style: none;
}

img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}



/* !HEADER */
header {
    width: 100%;
    display: flex;
    justify-content: center;
    color: var(--c-black);
    position: fixed;
    top: 0;
    z-index: 9999;
    left: 0;
}

header .headerContainer {
    width: 100%;
    max-width: 1280px;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header .headerContainer .whiteBck {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 22px rgba(61, 21, 30, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.35rem 2.5rem;
    border-radius: 50rem;
    backdrop-filter: blur(5px);
}

header .headerContainer a.logoLink {
    font-size: 1.65rem;
    font-family: "DM Serif Text", serif;
}

header .headerContainer a.logoLink .logoText {
    padding: .5rem 0;
}

.titleMobile {
    display: none;
}

@media (max-width: 1150px) {
    .titleDesktop {
        display: none;
    }

    .titleMobile {
        display: inline;
    }
}

header .headerContainer a.logoLink img {
    height: 4.5rem;
    object-fit: contain;
    margin-right: .5rem;
}

header .headerContainer ul.navList {
    display: flex;
}

header .headerContainer ul.navList li {
    padding: 1rem;
}

header .headerContainer ul.navList li:first-child {
    padding-left: 0;
}

header .headerContainer ul.navList li:last-child {
    padding-right: 0;
}

header .headerContainer ul.navList li a {
    font-family: "Montserrat", serif;
    font-size: 1rem;
    font-weight: 450;
}

header .headerContainer .burgerButton {
    display: none;
    border: none;
    width: 56px;
    height: 56px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

header .headerContainer .burgerButton span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-black);
    border-radius: 50rem;
    transition: 0.25s ease;
}

header .burgerButton.isActive span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

header .burgerButton.isActive span:nth-child(2) {
    opacity: 0;
}

header .burgerButton.isActive span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* !FOOTER */

footer {
    width: 100%;
    margin-top: 5rem;
}

footer img {
    width: 100%;
    object-fit: contain;
    object-position: bottom;
    margin-bottom: -5px;
    display: block;
}

footer .footer {
    background: var(--c-tertiary);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer .footerContainer {
    width: 100%;
    max-width: 1280px;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
}

footer .footer .footerContainer > div {
    flex: 1;
    min-width: 0;
}

footer .footer .footerContainer .footerAbout {
    flex: 1.2;
}

footer .footer .footerContainer .footerAbout h3 {
    color: white;
    font-family: "DM Serif Text", serif;
    font-size: 2rem;
    font-weight: 450;
    margin-bottom: 1rem;
}

footer .footer .footerContainer .footerAbout p {
    font-family: "Montserrat", serif;
    font-size: 0.9rem;
    line-height: 1.5rem;
    font-weight: 350;
    letter-spacing: 0.25px;
    color: white;
}

footer .footer .footerContainer div h4 {
    color: white;
    font-family: "DM Serif Text", serif;
    font-size: 1.75rem;
    font-weight: 450;
    margin-bottom: 1rem;
}

footer .footer .footerContainer .footerNavigation ul li {
    list-style: "->  ";
    margin: 0.5rem 0 0.5rem 1.35rem;
    font-family: "Montserrat", sans-serif;
    color: white;
    font-weight: 350;
}

footer .footer .footerContainer .footerContact p {
    font-family: "Montserrat", sans-serif;
    color: white;
    margin: 0.5rem 0;
    font-weight: 350;
    line-height: 1.5rem;
}

footer .footer .footerContainer .footerPartners ul li {
    margin: 0.5rem 0;
    font-family: "Montserrat", sans-serif;
    color: white;
    font-weight: 350;
    line-height: 1.5rem;
}

footer .footer .footerBottom {
    width: 100%;
    max-width: 1280px;
    margin: 4rem 0 0 0;
    padding: 2rem 1.25rem 3rem 1.25rem;
    border-top: solid 2px var(--c-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: 350;
    opacity: 0.8;
}

footer .footer .footerBottom ul {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 0 0 1.5rem 0;
}

footer .footer .footerBottom ul a {
    text-align: center;
}

footer .footer .footerBottom p {
    text-align: center;
    line-height: 1.5rem;
}



/* !CAROUSEL */
.carouselViewport {
    width: 100%;
    cursor: grab;
}

.carouselViewport.is-dragging {
    cursor: grabbing;
}

.carouselTrack {
    display: flex;
    gap: 2.5rem;
    will-change: transform;
    touch-action: pan-y;
}

.carouselSlide {
    flex: 0 0 auto;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(158, 152, 153, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: white;
    width: min(920px, 100%);
    border-radius: 2rem;
    padding: clamp(1.25rem, 1rem + 1vw, 2rem);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(1.25rem, 1rem + 1vw, 2.5rem);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-image-placeholder {
    width: 100%;
    min-height: 320px;
    background-color: #ede9e8;
    border-radius: 1.25rem;
    overflow: hidden;
}

.modal-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.modal-info h3 {
    font-family: "DM Serif Text", serif;
    font-weight: 500;
    color: var(--c-black);
    font-size: clamp(1.7rem, 1.35rem + 0.9vw, 2rem);
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.modal-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-family: "Montserrat", sans-serif;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #88b3b4;
    font-size: 0.85rem;
    line-height: 1.3;
    font-family: "Montserrat", sans-serif;
}

.modal-author {
    color: #88b3b4;
    font-size: 0.85rem;
    margin: 0 0 1.75rem 0;
    line-height: 1.4;
    font-family: "Montserrat", sans-serif;
}

.btn-subscribe {
    background-color: var(--c-tertiary);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-subscribe:hover {
    background-color: var(--c-secondary);
}

.newsModal .newsModalImageWrap {
    background-color: #ede9e8;
}

.newsModal .newsModalImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.newsModal.image-only-modal .modal-card.image-only-modal-card {
    width: min(900px, 96vw);
    height: auto;
    padding: 1.5rem;
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    display: block;
    box-shadow: 0 20px 60px rgba(61, 21, 30, 0.15);
}

.newsModal.image-only-modal .newsModalImageWrap.image-only-modal-imageWrap {
    width: 100%;
    height: auto;
    background: none;
    padding: 0;
}

.newsModal.image-only-modal .newsModalImage {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 20rem);
    object-fit: contain;
    border-radius: 1.4rem;
    display: block;
}

.js-news-modal-trigger {
    cursor: pointer;
}

header .headerContainer a.logoLink {
    transition: color 0.25s ease, transform 0.25s ease;
}

header .headerContainer a.logoLink:hover {
    color: var(--c-secondary);
    transform: translateY(-1px);
}

header .headerContainer .whiteBck {
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

header .headerContainer .whiteBck:hover {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 28px rgba(61, 21, 30, 0.18);
}

header .headerContainer ul.navList li a {
    font-family: "Montserrat", serif;
    font-size: 1rem;
    font-weight: 450;
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}

header .headerContainer ul.navList li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: var(--c-secondary);
    border-radius: 50rem;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

header .headerContainer ul.navList li a:hover {
    color: var(--c-secondary);
    transform: translateY(-1px);
}

header .headerContainer ul.navList li a:hover::after {
    transform: scaleX(1);
}

header .headerContainer .burgerButton {
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

header .headerContainer .burgerButton:hover {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 28px rgba(61, 21, 30, 0.18);
    transform: translateY(-1px);
}

header .headerContainer .burgerButton span {
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

header .headerContainer .burgerButton:hover span {
    background: var(--c-secondary);
}

@media screen and (max-width: calc(1280px + 1.25rem)) {
    header .headerContainer {
        padding: 2rem 1.25rem;
    }
}

@media screen and (max-width: 980px) {
    header .headerContainer {
        padding: 1.25rem;
    }

    header .headerContainer .burgerButton {
        display: flex;
    }

    header .headerContainer .mainNavigation {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1.25rem;
        width: min(320px, calc(100vw - 2.5rem));
        padding: 1.25rem 1.5rem;
        border-radius: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    header .headerContainer .mainNavigation.isOpen {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    header .headerContainer ul.navList {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }

    header .headerContainer ul.navList li {
        padding: 0;
        width: 100%;
    }

    header .headerContainer ul.navList li:first-child,
    header .headerContainer ul.navList li:last-child {
        padding: 0;
    }

    header .headerContainer ul.navList li a {
        display: block;
        width: 100%;
        padding: 0.85rem 0;
    }

    footer .footer .footerContainer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 2rem;
        padding: 3rem 1.25rem 0 1.25rem;
    }

    footer .footer .footerContainer .footerAbout {
        grid-column: span 2;
    }

    footer .footer .footerBottom {
        margin-top: 3rem;
    }

    footer .footer .footerBottom ul {
        gap: 0.75rem 1.5rem;
    }

    .modal-card {
        grid-template-columns: 1fr;
    }

    .modal-image-placeholder {
        min-height: 240px;
    }
}

@media screen and (max-width: 640px) {
    footer .footer .footerContainer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer .footer .footerContainer .footerAbout {
        grid-column: span 1;
    }

    footer .footer .footerContainer .footerAbout h3,
    footer .footer .footerContainer div h4 {
        font-size: 1.5rem;
    }

    footer .footer .footerBottom {
        padding: 2rem 1.25rem 2.5rem 1.25rem;
    }

    footer .footer .footerBottom ul {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .modal-overlay {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .modal-card {
        border-radius: 1.5rem;
        padding: 1rem;
        gap: 1rem;
        max-height: min(88vh, 900px);
    }

    .modal-image-placeholder {
        min-height: 180px;
        border-radius: 1rem;
    }

    .btn-subscribe {
        width: 100%;
        text-align: center;
    }
}