/* (c) #HJMDSGN 2016, modernized 2026 */
:root {
    --color-red: #840202;
    --color-text: #111;
    --color-muted: #475356;
    --color-section: #e0e3e4;
    --color-about: #cacfd0;
    --header-height: 0px;
    --content-pad: clamp(28px, 7vw, 105px);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    padding: 0 0 0 76px;
    overflow-x: clip;
    color: var(--color-text);
    font-family: Roboto, "Open Sans", Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2 {
    font-family: "Open Sans", Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 25px;
    color: #fff;
    text-align: center;
    font-size: clamp(32px, 4vw, 40px);
}

h2 {
    margin: 40px 0 24px;
    color: #c5c5c5;
    text-align: center;
    font-size: 20px;
}

p {
    width: min(600px, 90vw);
    margin: 0 auto 30px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
}

a {
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

a:hover {
    color: #68797d;
}

#header-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 160000;
    width: 76px;
    min-height: 100vh;
    background-color: #fff;
    transition: width 0.32s ease;
}

#header-nav:hover,
#header-nav:focus-within {
    width: 240px;
}

#header-nav.transparent_header {
    background-color: #fff;
}

#header-nav.solid_header {
    background-color: #fff;
}

.brand {
    position: fixed;
    top: 12px;
    left: 0;
    z-index: 170001;
    display: grid;
    width: 76px;
    height: 118px;
    place-items: center;
    transition: width 0.32s ease, height 0.32s ease;
}

.brand[hidden] {
    display: none;
}

.brand-light,
.brand[hidden].brand-light {
    display: none !important;
}

.brand-dark {
    display: grid !important;
}

#logo,
#logo-black {
    display: block;
    width: auto;
    max-width: none;
    height: 52px;
    object-fit: contain;
    transform: translateX(-4px) rotate(-90deg);
    transform-origin: center;
    transition: transform 0.32s ease, width 0.32s ease, height 0.32s ease;
}

#header-nav:hover .brand,
#header-nav:focus-within .brand {
    width: 240px;
    height: 128px;
}

#header-nav:hover #logo-black,
#header-nav:focus-within #logo-black {
    width: 176px;
    height: auto;
    transform: rotate(0deg);
}

.navigation {
    position: fixed;
    top: 0;
    right: auto;
    left: 0;
    z-index: 160000;
    display: flex;
    width: 76px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 152px 0 14px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background-color: #fff;
    box-shadow: none;
    list-style: none;
    isolation: isolate;
    transition: width 0.32s ease, background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.navigation::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background-color: var(--color-muted);
    pointer-events: none;
}

#header-nav:hover .navigation,
#header-nav:focus-within .navigation,
.navigation:hover,
.navigation:focus-within {
    width: 240px;
    padding-top: 152px;
    background-color: #fff;
    box-shadow: none;
}

.navigation li {
    position: relative;
    z-index: 1;
    list-style: none;
}

.navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    width: 240px;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 2px;
    background-color: transparent;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.navigation a i {
    width: 76px;
    flex: 0 0 76px;
    text-align: center;
    font-size: 16px;
}

.navigation a span {
    opacity: 0;
    text-transform: none;
    transform: translateX(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.navigation a:hover {
    background-color: rgba(71, 83, 86, 0.08);
    color: var(--color-muted);
}

#header-nav:hover .navigation a span,
#header-nav:focus-within .navigation a span,
.navigation:hover a span,
.navigation:focus-within a span {
    opacity: 1;
    transform: translateX(0);
}

#header-nav:hover .navigation a,
#header-nav:focus-within .navigation a,
.navigation:hover a,
.navigation:focus-within a {
    color: var(--color-muted);
}

.navigation li.active a {
    color: var(--color-red);
    font-size: 14px;
}

.navigation li.inactive a {
    color: var(--color-muted);
    font-size: 14px;
}

.navigation li.active {
    border-bottom: 0;
}

.navigation li.active a {
    background-color: transparent;
}

.navigation li.active a:hover {
    background-color: rgba(132, 2, 2, 0.08);
}

#header-nav.transparent_header .navigation li.active {
    background-color: transparent;
}

#header-nav.transparent_header .navigation li.active a {
    color: var(--color-red);
    background-color: transparent;
}

#header-nav.transparent_header .navigation li.inactive a {
    color: var(--color-muted);
}

#header-nav.transparent_header .navigation li.inactive a:hover {
    color: var(--color-muted);
}

.navigation a.fb,
.navigation a.yt,
.navigation a.b {
    min-height: 48px;
    width: 240px;
    height: 48px;
    margin: 0;
    gap: 0;
    padding: 0;
    border-radius: 2px;
    background-color: transparent;
    color: var(--color-muted);
}

.navigation .nav-social-start {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(71, 83, 86, 0.16);
}

#header-nav:hover .navigation .nav-social-start,
#header-nav:focus-within .navigation .nav-social-start,
.navigation:hover .nav-social-start,
.navigation:focus-within .nav-social-start {
    border-top-color: rgba(71, 83, 86, 0.16);
}

.navigation a.fb {
    background-color: transparent;
}

.navigation a.yt {
    background-color: transparent;
}

.navigation a.b {
    background-color: transparent;
}

.navigation a.fb:hover,
.navigation a.yt:hover,
.navigation a.b:hover {
    background-color: rgba(71, 83, 86, 0.08);
    color: var(--color-muted);
}

.section {
    width: 100%;
    min-height: 100vh;
}

.cell {
    display: flex;
    width: 100%;
    min-height: inherit;
    align-items: center;
    justify-content: center;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: #000;
}

.slideshow-container,
.slideshow {
    width: 100%;
    min-height: 100vh;
}

.slideshow {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    opacity: 0;
    visibility: hidden;
    background-position: 50% 100%;
    background-size: cover;
}

.slideshow.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.slide-dark-title h1 {
    color: #000;
}

#slide1 { background-image: url("../img/slide01.png"); }
#slide2 { background-image: url("../img/mainpage2.jpg"); }
#slide3 { background-image: url("../img/velikani_bg.png"); }
#slide4 {
    background-image: url("../img/mainpage4.jpg");
    background-position-x: 60%;
}
#slide5 { background-image: url("../img/sherlock_bg.jpg"); }

.fade {
    animation: fade 1.5s ease;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 19px;
    height: 19px;
    padding: 0;
    cursor: pointer;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.6s;
}

.dotactive,
.dot:hover {
    background-color: #fff;
}

.button-single {
    width: 56px;
    margin: 0 auto;
}

a.button-outlined,
a.button-outlined-black-short {
    display: inline-grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 3px solid currentColor;
    border-radius: 50%;
    background-color: transparent;
    font-size: 20px;
    font-weight: 700;
}

a.button-outlined {
    color: #fff;
}

a.button-outlined:hover {
    background-color: #fff;
    color: #000;
}

a.button-outlined-black-short {
    color: #000;
}

a.button-outlined-black-short:hover {
    background-color: #000;
    color: #fff;
}

a.button-outlined-black {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 40px;
    border: 3px solid #000;
    border-radius: 100px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

a.button-outlined-black:hover {
    background-color: #000;
    color: #fff;
}

.hero-news {
    position: relative;
    display: flex;
    min-height: 95vh;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-news__media {
    position: absolute;
    inset: -18px;
}

.hero-news__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: hero-news-breathe 4s ease-in-out infinite;
    transform: scale(1.04);
    will-change: transform;
}

@keyframes hero-news-breathe {
    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.035;
    }
}

.hero-news__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.22) 34%, rgba(0, 0, 0, 0.04) 64%, rgba(0, 0, 0, 0) 100%),
        radial-gradient(ellipse at 72% 54%, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.24) 34%, rgba(0, 0, 0, 0) 66%);
}

.hero-news__content {
    position: relative;
    z-index: 1;
    width: min(980px, 92vw);
    margin-left: auto;
    padding: clamp(120px, 16vh, 190px) var(--content-pad) clamp(70px, 10vh, 120px);
    transform: translateY(48px);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-news__eyebrow,
.hero-news__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: auto;
    padding: 0;
    color: rgba(255,255,255,0.6);
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-news__eyebrow {
    margin: 0 0 18px;
}

.hero-news__eyebrow::before,
.hero-news__meta::before {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    flex: 0 0 58px;
    background-color: currentColor;
}

.hero-news h1 {
    max-width: 980px;
    margin: 0 0 18px;
    color: rgba(255,255,255,1);
    text-align: right;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.05;
    letter-spacing: 10px;


}

.hero-news__meta {
    max-width: 760px;
    margin: 0 0 28px auto;
    font-size: 13px;
    letter-spacing: 3px;
}

.hero-news__body p {
    width: auto;
    max-width: 760px;
    margin: 0 0 16px auto;
    padding: 0;
    color: rgba(255,255,255,1);
    text-align: right;
    font-size: 16px;
    line-height: 32px;
}

.hero-news__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 44px;
}

a.button-outlined-white {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 40px;
    border: 3px solid #fff;
    border-radius: 100px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

a.button-outlined-white:hover {
    background-color: #fff;
    color: #000;
}

.hero-news__actions a:first-child {
    background-color: #fff;
    color: #000;
    text-shadow: none;
}

.hero-news__actions a:first-child:hover {
    background-color: transparent;
    color: #fff;
}

.section-flow {
    background-color: var(--color-section);
}

.flow-anchor {
    display: block;
    height: 0;
    scroll-margin-top: var(--header-height);
}

.project-section {
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--color-section);
}

.project-cell {
    display: flex;
    width: 100%;
    min-height: inherit;
}

.section-flow > .project-section:nth-of-type(even) .project-cell {
    flex-direction: row-reverse;
}

.project-copy,
.project-media {
    flex: 1 1 50%;
    min-width: 0;
}

.project-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--content-pad);
    opacity: 0;
    transform: translate3d(56px, 0, 0);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}

.project-section.is-in-view .project-copy {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.section-flow > .project-section:nth-of-type(even) .project-copy {
    transform: translate3d(-56px, 0, 0);
}

.section-flow > .project-section:nth-of-type(even).is-in-view .project-copy {
    transform: translate3d(0, 0, 0);
}

.project-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.project-media img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: contain;
    transform: translate3d(0, var(--project-parallax, 0px), 0) scale(1.04);
    transition: transform 0.12s linear;
    will-change: transform;
}

.project-copy h1,
#onas-wrapper h1 {
    color: #000;
    text-align: left;
}

.project-copy h1 .project-excerpt {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    letter-spacing: 5px;
    line-height: 1.45;
    text-transform: none;
    white-space: normal;
}

.project-copy h1 .project-excerpt p {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    color: inherit;
    text-align: inherit;
    font: inherit;
}

.project-copy p,
.project-body p,
#onas-wrapper p {
    width: auto;
    margin-right: 0;
    margin-left: 0;
    color: #000;
    text-align: left;
}

.project-body p:last-child {
    margin-bottom: 0;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

#socbox,
#socbox-black {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#socbox a {
    color: #fff;
}

#socbox a:hover {
    color: #000;
}

#socbox-black a {
    color: #000;
}

#socbox-black a:hover {
    color: #fff;
}

.about-section {
    background-color: var(--color-about);
}

#onas-text {
    flex: 1 1 50%;
    min-width: 0;
}

#onas-images {
    flex: 1 1 50%;
    min-width: 0;
}

#onas-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--content-pad);
}

#onas-images {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

#onas-images img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: contain;
}

#onas-wrapper b {
    color: inherit;
}

#section-team {
    background-color: var(--color-section);
}

#section-team .cell,
#section-management .cell {
    flex-direction: column;
    padding: 80px 0;
}

#section-team h1,
#section-management h1 {
    color: #000;
}

#section-management {
    display: none;
    background-color: lightgray;
}

.image-gallery {
    float: left;
    width: 20%;
    margin: 0;
    transition: filter 0.3s;
}

.image-gallery:hover {
    filter: grayscale(1);
}

.team-gallery,
.management-gallery {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    transition: filter 0.3s;
}

.team-gal-ul,
.management-gal-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.team-gal-ul {
    width: 84%;
}

.management-gal-ul {
    width: 100%;
    gap: clamp(16px, 2.2vw, 30px);
}

.team-gal-ul li {
    flex: 0 0 13%;
    padding: 5px;
}

.management-gal-ul li {
    flex: 1 1 0;
    max-width: 260px;
    padding: 5px;
}

.team-gal-ul span,
.management-gal-ul span {
    display: block;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    line-height: 25px;
}

.management-gal-ul span {
    font-size: 16px;
    line-height: 1.65;
}

.management-gal-ul span b {
    white-space: nowrap;
}

#section3 {
    min-height: 100vh;
    background-color: #636c70;
}

.gallery-cell {
    display: flow-root;
    min-height: inherit;
}

#section2 {
    background-color: #000;
    background-image: url("../img/foto_kontakty.jpg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 100vh;
}

.contact-cell {
    flex-direction: column;
    padding: 110px 24px 64px;
}

#section2 h1,
#section2 h2 {
    color: #c5c5c5;
}

#section2 p {
    margin-bottom: 20px;
    color: #fff;
}

#section2 a {
    color: #c5c5c5;
}

.contact-name {
    padding-bottom: 10px;
    margin-bottom: 0;
    font-size: 19px;
    font-weight: 700;
}

#partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 64px;
    padding-bottom: 64px;
}

#partners img {
    height: 100px;
    width: auto;
}

@media (max-width: 1180px) {
    .brand {
        left: 0;
    }
}

@media (max-width: 900px) {
    body {
        padding-left: 60px;
    }

    #header-nav,
    .brand,
    .navigation {
        width: 60px;
    }

    #logo,
    #logo-black {
        height: 40px;
        transform: translateX(-3px) rotate(-90deg);
    }

    .navigation a i {
        width: 60px;
        flex-basis: 60px;
    }

    .hero-section,
    .slideshow-container,
    .slideshow {
        min-height: 0;
    }

    .hero-section,
    .slideshow-container {
        aspect-ratio: 16 / 9;
    }

    .slideshow {
        min-height: 100%;
    }

    .slideshow h1 {
        font-size: clamp(26px, 7vw, 42px);
        letter-spacing: 4px;
        margin-bottom: 14px;
    }

    .button-single {
        width: 38px;
    }

    a.button-outlined {
        width: 38px;
        height: 38px;
        border-width: 2px;
        font-size: 16px;
    }

    .slider-dots {
        bottom: 18px;
        gap: 7px;
    }

    .dot {
        width: 13px;
        height: 13px;
        border-width: 2px;
    }

    .hero-news {
        min-height: calc(100svh - var(--header-height));
        aspect-ratio: auto;
        align-items: center;
    }

    .hero-news__overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.64) 100%),
            radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.36) 78%);
    }

    .hero-news__content {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
        padding: 136px 18px 58px;
        transform: none;
        text-align: center;
    }

    .hero-news__eyebrow,
    .hero-news__meta {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        text-align: center;
        font-size: 11px;
        letter-spacing: 3px;
    }

    .hero-news__eyebrow::before,
    .hero-news__meta::before {
        width: 44px;
        height: 2px;
        flex: 0 0 auto;
    }

    .hero-news__eyebrow {
        margin-bottom: 12px;
    }

    .hero-news h1 {
        margin-bottom: 18px;
        text-align: center;
        font-size: clamp(35px, 9vw, 52px);
        letter-spacing: 4px;
        line-height: 1.18;
    }

    .hero-news__meta {
        max-width: 100%;
        margin: 0 auto 28px;
    }

    .hero-news__body p {
        max-width: 100%;
        margin: 0 auto 18px;
        text-align: center;
        font-size: 15px;
        line-height: 32px;
    }

    .hero-news__actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 28px;
    }

    a.button-outlined-white {
        width: min(100%, 520px);
        min-height: 54px;
        padding: 0 28px;
        border-width: 3px;
        font-size: 15px;
    }

    .project-cell,
    .section-flow > .project-section:nth-of-type(even) .project-cell {
        flex-direction: column;
    }

    .project-copy {
        order: 1;
        opacity: 0;
        transform: translate3d(0, -34px, 0);
        transition: opacity 0.65s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .section-flow > .project-section:nth-of-type(even) .project-copy {
        transform: translate3d(0, -34px, 0);
    }

    .project-section.is-in-view .project-copy,
    .section-flow > .project-section:nth-of-type(even).is-in-view .project-copy {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .project-media {
        order: 2;
    }

    .project-section,
    .project-cell,
    .about-section {
        min-height: 0;
    }

    .project-media img,
    #onas-images img {
        min-height: 0;
        transform: none;
        transition: none;
    }

    .project-copy,
    #onas-text {
        padding: 52px 18px;
    }

    .project-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
    }

    .project-copy h1,
    #onas-wrapper h1 {
        width: 100%;
        margin-bottom: 25px;
        text-align: center;
    }

    .project-copy p,
    .project-body p,
    #onas-wrapper p {
        width: 100%;
        margin-bottom: 18px;
        text-align: center;
        font-size: 15px;
        line-height: 32px;
    }

    h1 {
        width: 100%;
        font-size: 35px;
    }

    p {
        width: 100%;
        padding: 0 10px;
        font-size: 17px;
        line-height: 40px;
    }

    .team-gal-ul {
        width: 100%;
        margin: 25px 0;
    }

    .team-gal-ul li {
        flex: 0 0 28%;
    }

    .management-gal-ul {
        width: min(100%, 520px);
        gap: 16px;
        margin: 25px auto;
    }

    .management-gal-ul li {
        display: grid;
        width: 100%;
        max-width: 430px;
        flex: 0 0 100%;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: center;
        gap: 16px;
        margin: 0 auto;
        padding: 0;
    }

    .management-gallery {
        width: 112px;
    }

    .management-gal-ul span {
        padding: 0;
        text-align: left;
        font-size: 17px;
        line-height: 1.45;
    }

    .management-gal-ul span b {
        display: block;
        margin-top: 4px;
        white-space: normal;
    }

    .image-gallery {
        width: 50%;
        transition: none;
    }

    #section2 {
        min-height: 100vh;
    }

    #partners {
        gap: 32px;
    }
}
