:root {
    --blue: #254a7d;
    --blue-dark: #183a68;
    --text: #315b9a;
    --max: 1280px
}
* {
    box-sizing: border-box
}
html {
    scroll-behavior: smooth
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Sofia Sans", Arial, sans-serif;
    color: var(--text)
}
main {
    flex: 1
}
p {
    color: #404040;
    font-size: 17px
}
a {
    color: inherit;
    text-decoration: none
}
.container {
    width: min(calc(100% - 48px), var(--max));
    margin: auto
}
.logo-row {
    height: 118px;
    background: #fff;
    border-bottom: 1px solid #e2e8ed;
}
.logo-container {
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 13px;
}
.main-logo {
    display: block;
    line-height: 0;
    flex: 0 0 auto;
}
.main-logo img {
    width: 125px;
    height: auto;
    display: block;
}
.header-logos {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.partner-logo {
    display: block;
    height: 90px;
    object-fit: contain;
}
.partner-logo-ec {
    width: 105px;
}
.partner-logo-rr {
    width: 140px;
}
.header-logos-cedar .partner-logo-cedar {
    width: min(450px, calc(100vw - 160px));
    height: auto;
}
.header-project-logo {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}
.top-contact {
    position: absolute;
    right: 0;
    bottom: 17px;
    text-align: right;
}
.language-switcher {
    position: absolute;
    top: 12px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #526579;
    font-size: 12px;
    line-height: 1;
}
.language-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 6px;
    border-radius: 3px;
    color: inherit;
    text-decoration: none;
}
.language-option[href]:hover {
    color: var(--blue);
    background: #f1f5f7;
}
.language-option:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}
.language-option.is-current {
    color: var(--blue);
    font-weight: 700;
}
.contact-inner {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 27px;
    font-size: 14px;
    line-height: 1;
    color: #29415b;
}
.contact-inner a {
    display: inline-block;
    white-space: nowrap;
}
.contact-inner a:hover {
    color: var(--blue);
}
@media(max-width:600px) {
    .logo-row {
        height: auto;
    }
    .logo-container {
        min-height: 118px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
    }
    .header-logos {
        gap: 10px;
    }
    .main-logo img {
        width: 90px;
    }
    .partner-logo {
        height: 68px;
    }
    .partner-logo-ec {
        width: 75px;
    }
    .partner-logo-rr {
        width: 100px;
    }
    .header-logos-cedar .partner-logo-cedar {
        width: 100%;
        max-width: calc(100vw - 130px);
    }
    .header-logos-cedar {
        width: 100%;
    }
    .header-logos-cedar .header-project-logo {
        min-width: 0;
        flex: 1 1 0;
    }
    .top-contact {
        position: static;
        align-self: flex-end;
    }
}
.main-nav {
    background: var(--blue);
    color: #fff
}
.nav-inner {
    min-height: 70px;
    display: flex;
    align-items: center
}
.nav-menu {
    display: flex;
    height: 70px;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px
}
.nav-menu a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 25px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .7px
}
.nav-menu a:hover, .nav-menu a.active {
    background: var(--blue-dark)
}
.menu-toggle {
    display: none
}
.hero {
    height: 650px;
    position: relative;
    overflow: hidden;
    background: #123
}
.hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(4, 26, 48, .72), rgba(4, 26, 48, .15) 70%, transparent);
    color: #fff
}
.hero-content {
    text-align: left
}
.hero-kicker {
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 700;
    color: #fff
}
.hero h1 {
    margin: 16px 0;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.05;
    max-width: 1250px
}
.hero h2 {
    margin: 16px 0;
    font-size: clamp(26px, 3.5vw, 48px);
    line-height: 1.1;
    max-width: 1250px
}

.hero p:last-child {
    max-width: 1250px;
    font-size: 21px;
    line-height: 1.55;
    color: #fff
}
.intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 70px;
    padding-top: 90px;
    padding-bottom: 100px
}
.section-label {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px
}
.intro h2 {
    font-size: 45px;
    margin: 12px 0 12px
}
.intro h3 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 16px;
}
.laboratory-info {
    align-self: start;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dce4eb;
    border-radius: 8px;
}
.laboratory-info h3 {
    margin-bottom: 12px;
}
.laboratory-info p {
    margin: 0;
    line-height: 1.4;
}
.intro-text p {
    line-height: 1.4;
    font-size: 17px;
    color: #404040
}
.intro li {
    color: #404040;
    line-height: 1.5;
}
.intro blockquote p {
    line-height: 1.5;
}
.news-list {
    align-self: start;
    padding-top: 10px;
}
.news-item {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #9ab2d4;
}
.news-item-image-link {
    display: block;
}
.news-item-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    align-self: start;
    object-fit: cover;
}
.news-item-image-placeholder {
    background: #eef2f6;
}
.news-item-content {
    min-width: 0;
}
.news-item-meta {
    display: flex;
    gap: 4px;
    margin: 0 0 7px;
    color: #727b86;
    font-size: 17px;
    line-height: 1.2;
}
.news-item-meta span {
    color: var(--blue);
}
.news-item-separator {
    color: #9aa5b2;
}
.news-item h3 {
    margin: 0;
    color: var(--text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}
.news-item h3 a {
    color: inherit;
    text-decoration: none;
}
.news-item h3 a:hover {
    color: var(--blue);
}
.news-item-description {
    margin: 12px 0;
    color: #404040;
    line-height: 1.45;
}
.news-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #404040;
    text-decoration: none;
}
.news-file-link img {
    width: 34px;
    height: 40px;
    object-fit: contain;
}
.news-file-link:hover span {
    text-decoration: underline;
}
.news-empty {
    color: #404040;
    line-height: 1.5;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #cbd5df;
    color: var(--blue);
    text-decoration: none;
}
.pagination .current,
.pagination a:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}
.news-detail {
    align-self: start;
    min-width: 0;
    padding-top: 10px;
}
.news-detail-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 18px;
    object-fit: cover;
}
.news-detail-title {
    margin: 12px 0 18px;
    color: var(--blue);
    font-size: 38px;
    line-height: 1.15;
}
.news-detail-description {
    color: #404040;
    line-height: 1.55;
    white-space: pre-line;
}
.news-detail-back {
    display: inline-block;
    margin-top: 24px;
    color: var(--blue);
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 64px;
    padding-bottom: 76px
}
.contact-card {
    min-height: 190px;
    padding: 28px 22px;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    text-align: center
}
.contact-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    color: var(--blue)
}
.contact-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase
}
.contact-card p + h3 {
    margin-top: -10px
}
.contact-card h3 {
    margin: 0;
    color: #315b9a;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere
}
.contact-card a:hover {
    color: var(--blue-dark)
}
.read-more {
    display: inline-block;
    margin-top: 14px;
    color: var(--blue);
    font-weight: 700
}
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--blue)
}
.carousel-controls {
    display: flex;
    gap: 6px
}
.carousel-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid #d6dfe7;
    background: white;
    cursor: pointer;
    font-size: 18px
}
.carousel-controls button:hover {
    background: var(--blue);
    color: white
}
.carousel-viewport {
    overflow: hidden;
    padding-bottom: 18px;
    cursor: grab
}
.carousel-viewport.dragging {
    cursor: grabbing
}
.carousel-track {
    display: flex;
    gap: 18px;
    user-select: none;
    will-change: transform;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1)
}
.banner {
    flex: 0 0 calc((100% - 36px)/3);
    min-height: 230px;
    padding: 28px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .25s
}
.banner:hover {
    transform: translateY(-5px)
}
.banner-project {
    background: linear-gradient(135deg, #183a68, #315b9a)
}
.banner-labs {
    background: linear-gradient(135deg, #315b9a, #7db412)
}
.banner-partners {
    background: linear-gradient(135deg, #315b9a, #7db412)
}
.banner-news {
    background: linear-gradient(135deg, #7db412, #315b9a)
}
.banner-extra {
    background: linear-gradient(135deg, #315b9a, #183a68)
}
.banner span {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: .75
}
.banner strong {
    font-size: 27px
}
.banner b {
    align-self: flex-end;
    font-size: 25px
}
.carousel-hint {
    margin: 13px 0;
    color: #8996a1;
    font-size: 12px
}
.partners-carousel {
    height: 360px;
    padding-top: 48px;
    background: linear-gradient(135deg, #183a68, #7bb217);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}
.partners-carousel-kicker {
    margin: 0;
    color: #fff;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
.partners-carousel-inner {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}
.partners-carousel-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}
.partners-carousel-viewport.dragging {
    cursor: grabbing;
}
.partners-carousel-track {
    display: flex;
    gap: 18px;
    user-select: none;
    will-change: transform;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.partners-carousel-slide {
    flex: 0 0 calc((100% - 72px) / 5);
   /* height: 180px;*/
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
   /* background: #fff;*/
}
.partners-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.partners-carousel-arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid #ffffffa6;
    background: transparent;
    color: #fff;
    font-size: 23px;
    cursor: pointer;
}
.partners-carousel-arrow:hover:not(:disabled) {
    background: #ffffff24;
}
.partners-carousel-arrow:disabled {
    opacity: .35;
    cursor: default;
}
.cedar-gallery {
    padding: 48px 24px;
    background: linear-gradient(135deg, #183a68, #7bb217);
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.cedar-gallery-grid {
    width: min(100%, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.cedar-gallery-item {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}
.cedar-gallery-observed:not(.is-visible) .cedar-gallery-item {
    opacity: 0;
    transform: translateX(36px);
}
.cedar-gallery.is-visible .cedar-gallery-item:nth-child(2) {
    transition-delay: .18s;
}
.cedar-gallery.is-visible .cedar-gallery-item:nth-child(3) {
    transition-delay: .36s;
}
.cedar-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}
.cedar-gallery-dialog {
    position: fixed;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    padding: 48px 16px 16px;
    border: 0;
    background: transparent;
    overflow: auto;
}
.cedar-gallery-dialog[open] {
    display: grid;
    place-items: center;
}
.cedar-gallery-dialog::backdrop {
    background: #0007;
}
.cedar-gallery-close {
    position: fixed;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff80;
    background: #101820;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.cedar-gallery-navigation {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    background: #10182066;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
.cedar-gallery-previous {
    left: 16px;
}
.cedar-gallery-next {
    right: 16px;
}
.cedar-gallery-full-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 64px);
    max-height: calc(100vh - 80px);
    object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
    .cedar-gallery-item {
        transition: none;
    }
    .cedar-gallery-observed:not(.is-visible) .cedar-gallery-item {
        opacity: 1;
        transform: none;
    }
}
footer {
    color: #fff;
    background: #8e8e8e
}
.footer-main {
    min-height: 250px;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    align-items: top;
    padding-top: 60px;
    gap: 40px
}
.footer-logo img {
    width: 190px;

    display: block
}
.footer-logo {
    margin-top: -20px;
}
.footer-main strong {
    display: block;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase
}
.footer-main strong + p {
    margin-top: 6px;
}
.footer-address p {
    line-height: 1.4;
    color: #dedede;
}
.eu-project {
    justify-self: end
}
.eu-project img {
    width: 100%;
    max-width: 600px;
    display: block
}
.footer-projects {
    justify-self: end;
    width: 100%;
    max-width: 600px;
}
.footer-projects .eu-project {
    display: block;
    width: 100%;
}
.footer-partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.footer-partner-logos img {
    display: block;
    width: 55px;
    height: 55px;
    object-fit: contain;
}
.footer-bottom {
    border-top: 1px solid #ffffff1f;
    color: #dedede;
    font-size: 13px;
    padding: 22px 0
}
@media(max-width:900px) {
    .menu-toggle {
        display: block;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 27px;
        cursor: pointer;
        margin-left: auto
    }
    .nav-inner {
        position: relative
    }
    .nav-menu {
        display: none;
        position: absolute;
        z-index: 20;
        top: 70px;
        left: 0;
        right: 0;
        height: auto;
        flex-direction: column;
        background: var(--blue-dark)
    }
    .nav-menu.open {
        display: flex
    }
    .nav-menu a {
        height: 54px
    }
    .intro {
        grid-template-columns: 1fr;
        gap: 45px
    }
    .banner {
        flex-basis: calc((100% - 18px)/2)
    }
    .partners-carousel-slide {
        flex-basis: calc((100% - 36px) / 3);
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding: 45px 0
    }
    .footer-projects {
        justify-self: start;
        grid-column: 1/-1
    }
}
@media(max-width:600px) {
    .container {
        width: min(calc(100% - 30px), var(--max))
    }
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 40px;
        padding-bottom: 52px
    }
    .contact-card {
        min-height: 150px
    }
    .contact-inner {
        justify-content: center;
        gap: 15px;
        font-size: 12px
    }
    .hero {
        height: 650px
    }
    .hero h1 {
        font-size: 42px
    }
    .news-list {
        padding-top: 0;
    }
    .news-item {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 10px;
    }
    .news-item-image {
        width: 100%;
    }
    .news-detail-title {
        font-size: 28px;
    }
    .news-item-meta {
        font-size: 14px;
    }
    .news-item h3 {
        font-size: 16px;
    }
    .banner {
        flex-basis: 100%
    }
    .partners-carousel-inner {
        width: calc(100% - 30px);
        gap: 10px;
    }
    .partners-carousel-kicker {
        padding: 0 15px;
        font-size: 13px;
        letter-spacing: 1.5px;
    }
    .partners-carousel-track {
        gap: 10px;
    }
    .partners-carousel-slide {
        flex-basis: calc((100% - 10px) / 2);
        height: 150px;
        padding: 14px;
    }
    .partners-carousel-arrow {
        flex-basis: 34px;
        width: 34px;
        height: 38px;
    }
    .cedar-gallery {
        padding: 38px 15px;
        gap: 20px;
    }
    .cedar-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cedar-gallery-navigation {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
    .cedar-gallery-previous {
        left: 8px;
    }
    .cedar-gallery-next {
        right: 8px;
    }
    .carousel-viewport {
        overflow: visible;
        cursor: default
    }
    .carousel-track {
        flex-direction: column;
        transform: none !important
    }
    .carousel-controls {
        display: none
    }
    .footer-main {
        grid-template-columns: 1fr
    }
    .footer-projects {
        grid-column: auto
    }
    .eu-project {
        width: 100%
    }
}
