:root {
    --bg: #efefed;
    --text: #111111;
    --muted: #5f5f5f;
    --line: #cfcfcb;
    --accent: #e8df05;
    --white: #ffffff;
    --max: 1250px;
    --radius: 999px;
    --header-height: 85px;
    --header-height-mobile: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: var(--text);
    line-height: 1.25;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.chakra-petch-light {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.chakra-petch-regular {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.chakra-petch-medium {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.chakra-petch-semibold {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.chakra-petch-bold {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.chakra-petch-light-italic {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.chakra-petch-regular-italic {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.chakra-petch-medium-italic {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.chakra-petch-semibold-italic {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.chakra-petch-bold-italic {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.container {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
}

.no-cursor-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled,
body.menu-open .site-header {
    background: #d0d1ce;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

#technologie,
#prostory,
#download,
#kontakt {
    scroll-margin-top: var(--header-height);
}

#kontakt {
    padding-top: 0px;
}

.site-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    position: relative;
    z-index: 102;
    flex-shrink: 0;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 21px;
    text-transform: uppercase;
}

.nav a:hover,
.mobile-nav a:hover {
    opacity: 0.7;
}

.lang-switch {
    width: 55px;
    height: 55px;
    border: 2px solid #7f7f7f;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 21px;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 102;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.menu-toggle span:nth-child(1) {
    top: 15px;
}

.menu-toggle span:nth-child(2) {
    top: 23px;
}

.menu-toggle span:nth-child(3) {
    top: 31px;
}

body.menu-open .menu-toggle span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero__media {
    position: relative;
    min-height: 844px;
    overflow: hidden;
    background:
            linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12)),
            url("/img/header-background.webp") center/cover no-repeat;
    background-color: var(--bg);
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    margin-top: -103px;
    padding-bottom: 0;
}

.hero__title {
    margin: 0 0 40px;
    font-size: clamp(72px, 14vw, 210px);
    line-height: 0.9;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
}

.hero__text {
    max-width: 970px;
    margin: 0 auto 32px;
    font-size: 20px;
}

.hero__text p {
    margin: 0 0 25px;
}

.hero__text p:last-child {
    margin-bottom: 0;
}

.hero__text strong {
    font-weight: 800;
}

/* Sections */
section {
    padding: 30px 0;
}

.section-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(52px, 8vw, 92px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent);
}

.text-center {
    text-align: center;
}

.lead {
    max-width: 970px;
    margin: 40px auto 32px;
    font-size: 20px;
    text-align: left;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    min-height: 78px;
    padding: 22px 155px;
    border-radius: var(--radius);
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.2s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn--outline {
    border-color: #b4b4b1;
    background: transparent;
}

.btn--fill {
    background: var(--accent);
}

.btn:hover {
    transform: translateY(-1px);
}

/* Spaces */
.spaces {
    padding: 30px 0;
}

.spaces-intro {
    max-width: 970px;
    margin: 40px auto 50px;
    font-size: 20px;
    text-align: left;
}

.spaces-list {
    /*border-top: 1px solid var(--line);*/
}

.space-card {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 0px 0px;
    margin: 32px 0px;
}

.space-card__header {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 48px;
    cursor: pointer;
}

.space-card__image {
    width: 390px;
    height: 390px;
    border-radius: 28px;
    overflow: hidden;
    background: #d9d9d6;
}

.space-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space-card__title {
    margin: 0;
    font-size: clamp(34px, 2.4vw, 72px);
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.space-card__icon {
    position: relative;
    width: 150px;
    height: 150px;
    margin-left: auto;
    flex-shrink: 0;
}

.space-card__icon::before,
.space-card__icon::after {
    content: "";
    position: absolute;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.space-card__icon::before {
    width: 150px;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.space-card__icon::after {
    width: 1px;
    height: 150px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.space-card.active .space-card__icon::after {
    opacity: 0;
}

.space-card__content {
    display: none;
    padding: 56px 0 12px;
}

.space-card.active .space-card__content {
    display: block;
}

.space-card__content > h4 {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 700;
}

.space-card__content > p {
    max-width: 850px;
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.space-card__content > p a {
    text-decoration: underline;
}

.space-card__content > p + .space-gallery {
    margin-top: 36px;
}

.space-gallery {
    overflow: hidden;
    width: 100%;
}

.space-gallery .swiper-wrapper {
    align-items: stretch;
}

.space-gallery .swiper-slide {
    height: auto;
}

.space-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: 28px;
}

.space-gallery__item img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
    border-radius: 28px;
    transition: transform 0.25s ease;
}

.space-gallery__item:hover img {
    transform: scale(1.03);
}

/* Download */
.download {
    padding-top: 28px;
}

.download__top {
    position: relative;
    text-align: center;
    margin-bottom: 28px;
    cursor: pointer;
}

.download__heading {
    display: inline-block;
    margin: 0 auto;
}

.download__meta {
    text-align: center;
    font-size: 22px;
    color: var(--text);
    margin-top: -8px;
}

.download__arrow {
    position: absolute;
    right: 22px;
    top: 10%;
    width: 100px;
    height: 100px;
    border-right: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease, top 0.25s ease;
}

.download__content {
    display: none;
}

.download__content p {
    font-size: 20px;
}

.download.active .download__content {
    display: block;
}

.download__content img {
    display: inline-block;
    width: 45px;
    margin-right: 15px;
    margin-bottom: -15px;
}

.download__content a {
    font-weight: bold;
}

.download__content a:hover {
    text-decoration: underline;
}

.download.active .download__arrow {
    transform: translateY(-50%) rotate(-135deg);
    top: 57%;
}

/* Contact */
.contact {
    padding: 40px 0;
}

.contact__cta {
    text-align: center;
    margin-bottom: 40px;
}

a.contact__toggle {
    background: var(--accent);
    border: 1px solid var(--accent);
    cursor: pointer;
}

a.contact__toggle.active {
    background: transparent;
    border: 1px solid var(--text);
}

.contact__content {
    display: none;
    margin: 80px 0 25px;
}

.contact.active .contact__content {
    display: block;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__person {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: start;
}

.contact__photo {
    width: 180px;
    height: 180px;
    border-radius: 28px;
    border: 1px solid var(--text);
    background: #ffffff;
    overflow: hidden;
}

.contact__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact__info {
    font-size: 18px;
    line-height: 1.35;
    padding-top: 5px;
    word-break: break-word;
}

.contact__info strong {
    font-size: 22px;
}

.contact__info a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* <= 1199px */
@media (max-width: 1199px) {
    .nav {
        gap: 24px;
        font-size: 18px;
    }

    .lang-switch {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .hero__media {
        min-height: 720px;
    }

    .hero__content {
        margin-top: -84px;
    }

    .space-card__header {
        grid-template-columns: 280px minmax(0, 1fr) 100px;
        gap: 32px;
    }

    .space-card__image {
        width: 280px;
        height: 280px;
    }

    .space-card__icon {
        width: 100px;
        height: 100px;
    }

    .space-card__icon::before {
        width: 100px;
    }

    .space-card__icon::after {
        height: 100px;
    }

    .contact__grid {
        gap: 48px;
    }
}

/* <= 991px */
@media (max-width: 991px) {
    .container {
        width: min(calc(100% - 36px), var(--max));
    }

    .site-header__inner {
        min-height: 76px;
    }

    #technologie,
    #prostory,
    #download,
    #kontakt {
        scroll-margin-top: 76px;
    }

    .logo img {
        height: 40px;
    }

    .nav {
        gap: 18px;
        font-size: 15px;
    }

    .lang-switch {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .hero__media {
        min-height: 600px;
    }

    .hero__content {
        margin-top: -64px;
    }

    .hero__text,
    .lead,
    .spaces-intro,
    .space-card__content > p,
    .download__content p {
        font-size: 18px;
    }

    .btn {
        min-width: 260px;
        min-height: 66px;
        padding: 18px 42px;
        font-size: 28px;
    }

    .space-card__header {
        grid-template-columns: 200px minmax(0, 1fr) 72px;
        gap: 24px;
    }

    .space-card__image {
        width: 200px;
        height: 200px;
        border-radius: 22px;
    }

    .space-card__icon {
        width: 72px;
        height: 72px;
    }

    .space-card__icon::before {
        width: 72px;
    }

    .space-card__icon::after {
        height: 72px;
    }

    .space-gallery {
        gap: 18px;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .download__arrow {
        width: 72px;
        height: 72px;
        right: 8px;
    }
}

/* <= 767px */
@media (max-width: 767px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    #technologie,
    #prostory,
    #download,
    #kontakt {
        scroll-margin-top: var(--header-height-mobile);
    }

    .site-header__inner {
        min-height: var(--header-height-mobile);
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 101;
    }

    body.menu-open .mobile-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav__panel {
        position: absolute;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        background: #d0d1ce;
        border-top: 1px solid rgba(17, 17, 17, 0.08);
        border-bottom: 1px solid rgba(17, 17, 17, 0.08);
        display: flex;
        flex-direction: column;
        padding: 12px 14px 16px;
    }

    .mobile-nav__panel a {
        display: block;
        padding: 14px 0;
        font-size: 22px;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    }

    .mobile-nav__panel a:last-child {
        border-bottom: 0;
    }

    .mobile-nav__lang {
        font-weight: 700;
    }

    .hero__media {
        min-height: 420px;
    }

    .hero__content {
        margin-top: -34px;
    }

    .hero__title {
        margin-bottom: 18px;
        font-size: clamp(54px, 16vw, 92px);
    }

    .hero__text {
        font-size: 15px;
        line-height: 1.45;
    }

    .hero__text p {
        margin-bottom: 16px;
    }

    section {
        padding: 24px 0;
    }

    .section-title {
        font-size: clamp(40px, 13vw, 58px);
        margin-bottom: 12px;
    }

    .lead,
    .spaces-intro,
    .download__meta,
    .space-card__content > p,
    .download__content p,
    .contact__info {
        font-size: 16px;
    }

    .lead,
    .spaces-intro {
        margin-top: 22px;
        margin-bottom: 28px;
    }

    .btn {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 14px 24px;
        font-size: 22px;
    }

    .space-card {
        padding: 24px 0;
    }

    .space-card__header {
        grid-template-columns: 1fr 48px;
        grid-template-areas:
            "image image"
            "title icon";
        gap: 16px;
        align-items: center;
    }

    .space-card__image {
        grid-area: image;
        width: 100%;
        height: auto;
        aspect-ratio: 1.4 / 1;
        border-radius: 20px;
    }

    .space-card__title {
        grid-area: title;
        font-size: 28px;
    }

    .space-card__icon {
        grid-area: icon;
        width: 48px;
        height: 48px;
    }

    .space-card__icon::before {
        width: 48px;
    }

    .space-card__icon::after {
        height: 48px;
    }

    .space-card__content {
        padding-top: 26px;
    }

    .space-card__content > h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .space-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .space-gallery img {
        border-radius: 20px;
    }

    .download__top {
        padding-right: 52px;
    }

    .download__arrow {
        width: 42px;
        height: 42px;
        right: 0;
        top: 18px;
        transform: rotate(45deg);
    }

    .download.active .download__arrow {
        top: 26px;
        transform: rotate(-135deg);
    }

    .contact {
        padding-top: 24px;
    }

    .contact__cta {
        margin-bottom: 28px;
    }

    .contact__content {
        margin-top: 36px;
    }

    .contact__person {
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }

    .contact__photo {
        width: 100px;
        height: 100px;
        border-radius: 18px;
    }

    .contact__info strong {
        font-size: 18px;
    }

}

/* <= 479px */
@media (max-width: 479px) {
    .logo img {
        height: 34px;
    }

    .hero__media {
        min-height: 340px;
    }

    .hero__title {
        font-size: clamp(46px, 17vw, 74px);
        letter-spacing: 0.05em;
    }

    .hero__text {
        font-size: 14px;
    }

    .section-title {
        font-size: 42px;
    }

    .space-card__title {
        font-size: 24px;
    }

    .contact__person {
        grid-template-columns: 1fr;
    }

    .contact__photo {
        width: 120px;
        height: 120px;
    }
}

/* Footer */
.site-footer {
}

.site-footer__inner {
    width: 100%;
}

.site-footer__container {
    padding-top: 42px;
    padding-bottom: 56px;
}

.site-footer__eyebrow {
    margin: 0 0 15px;
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1;
    text-transform: uppercase;
    color: #244cab;
}

.site-footer__title {
    margin: 0 0 15px;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.08;
    color: #244cab;
}

.site-footer__subtitle {
    margin: 0 0 25px;
    font-size: clamp(22px, 3vw, 40px);
    line-height: 1.12;
    color: #244cab;
}

.site-footer__subtitle strong {
    font-weight: 700;
}

.site-footer__text {
    max-width: 1180px;
    margin: 0;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.28;
    color: #111111;
}

.site-footer__text strong {
    font-weight: 700;
}

.site-footer__logos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 40px;
    margin-top: 90px;
    position: relative;
}

.site-footer__logo {
    display: flex;
    align-items: flex-end;
}

.site-footer__logo--eu {
    justify-content: flex-start;
}

.site-footer__logo--npo {
    justify-content: center;
}

.site-footer__logo--bvv {
    justify-content: flex-end;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.site-footer__logo--eu img {
    max-height: 66px;
}

.site-footer__logo--npo img {
    max-height: 70px;
}

.site-footer__logo--bvv img {
    max-height: 74px;
}

.site-footer__logo-wrap {
    position: relative;
    display: inline-block;
}

.site-footer__logo-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -56px; /* doladíš podle oka */
    width: 0;
    height: 0;
    border-left: 21px solid transparent;
    border-right: 21px solid transparent;
    border-bottom: 22px solid #0050a4;
}

.site-footer__bar {
    position: relative;
    height: 40px;
    background: #0050a4;
}

@media (max-width: 1199px) {
    .site-footer__container {
        padding-top: 36px;
        padding-bottom: 48px;
    }

    .site-footer__logos {
        margin-top: 130px;
        gap: 28px;
    }

    .site-footer__logo--eu img {
        max-height: 58px;
    }

    .site-footer__logo--npo img {
        max-height: 60px;
    }

    .site-footer__logo--bvv img {
        max-height: 64px;
    }
}

@media (max-width: 991px) {
    .site-footer__text {
        max-width: 100%;
    }

    .site-footer__logos {
        margin-top: 90px;
        gap: 22px;
    }

    .site-footer__logo--eu img {
        max-height: 50px;
    }

    .site-footer__logo--npo img {
        max-height: 52px;
    }

    .site-footer__logo--bvv img {
        max-height: 56px;
    }

    .site-footer__bar {
        height: 34px;
    }
}

@media (max-width: 767px) {
    .site-footer__logo-wrap::after {
        display: none;
    }

    .site-footer__container {
        padding-top: 30px;
        padding-bottom: 34px;
    }

    .site-footer__eyebrow {
        margin-bottom: 16px;
    }

    .site-footer__title {
        margin-bottom: 18px;
    }

    .site-footer__subtitle {
        margin-bottom: 18px;
    }

    .site-footer__text {
        font-size: 18px;
        line-height: 1.35;
    }

    .site-footer__logos {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 26px;
        margin-top: 50px;
    }

    .site-footer__logo,
    .site-footer__logo--eu,
    .site-footer__logo--npo,
    .site-footer__logo--bvv {
        justify-content: flex-start;
    }

    .site-footer__logo--eu img {
        max-height: 46px;
    }

    .site-footer__logo--npo img {
        max-height: 48px;
    }

    .site-footer__logo--bvv img {
        max-height: 52px;
    }

    .site-footer__bar {
        height: 28px;
    }
}

@media (max-width: 479px) {
    .site-footer__text {
        font-size: 16px;
    }
    .download__content a {
        font-size: 14px;
    }
}