:root {
    --green-main: #639c00;
    --green-dark: #333300;
    --green-light: #e6efd6;
    --text-dark: #000000;
    --text-default: #4D4D4D;
    --text-muted: #CCCCCC;
    --gray-bg: #f2f2f2;
    --blok-y-offset: 6vh;
}

/* ── RESET ────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--green-dark);
    color: #fff;
    font-size: 18px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ── TYPOGRAFIE ───────────────────────── */
a,
a:visited {
    color: inherit;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 2rem;
    margin: .5rem 0 1.5rem;
    padding: 0;
}

h2.motto {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: 'Cinzel', serif;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 2.25rem;
    margin: .5rem 0 1.5rem;
    padding: 0;
    text-transform: uppercase;
}

h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: inherit;
    font-weight: 600;
    color: #000000;
    margin-top: .6rem;
}

p {
    margin-bottom: 1.6rem;
}

.text-primary {
    color: var(--green-main) !important;
}

.material-icons,
.material-icons-outlined {
    vertical-align: middle;
}

/* ── SEZNAMY (OPRAVENO) ───────────────── */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    position: relative;
    padding: .42rem 0 .42rem 1.2em;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .9em;
    width: .38em;
    height: .34em;
    background: var(--green-main);
}

/* ── BLOKY A SEKTORY ──────────────────── */
.page-content {
    background: #fff;
    color: var(--text-default);
}

.section-wrap {
    position: relative;
}

.block {
    padding-top: var(--blok-y-offset);
    padding-bottom: var(--blok-y-offset);
}

.block-offset-right {
    position: absolute;
    top: var(--blok-y-offset);
    bottom: var(--blok-y-offset);
    right: 0;
    width: calc(50vw + (1140px / 6));
    z-index: 0;
}

.block-offset-right + .container {
    position: relative;
    z-index: 100;
}

.block-grey { background: var(--gray-bg); }
.block-green { background: var(--green-light); }

.section-process { z-index: 100; }
.section-testimonials { z-index: 50; }

.section-testimonials .block-offset-right {
    top: calc(var(--blok-y-offset) * -2);
}

/* ── NAVBAR ──────────────────────────── */
.site-nav {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0;
    height: 265px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transition: height .3s ease;
}

.site-nav.scrolled {
    height: 142px;
}

.nav-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-hamburger {
    font-size: 24px;
    color: var(--green-main);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}

.nav-brand img {
    height: 112px;
    width: auto;
    display: block;
    transition: height .3s ease;
}

.site-nav.scrolled .nav-brand img {
    height: 84px;
}

.nav-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--green-main);
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-brand-sub {
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--green-main);
}

.nav-socials {
    display: flex;
    gap: 28px;
}

.nav-socials a {
    color: var(--green-main);
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-socials a svg {
    width: 24px;
    height: 24px;
}

/* ── POPUP MENU ──────────────────────── */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 10001;
    opacity: 0;
    transition: opacity .3s ease;
}

.nav-overlay.open { opacity: 1; }

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10002;
    background: #fff;
    min-width: 260px;
    padding: 24px 40px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease;
}

.nav-menu.open {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu-close {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--green-main);
}

.nav-menu-close .material-icons { font-size: 30px; }

.nav-menu-list {
    margin: 12px 0 0;
}

.nav-menu-list li {
    padding: 0;
}

.nav-menu-list li::before {
    content: none;
}

.nav-menu-list li + li {
    margin-top: 4px;
}

.nav-menu-list a {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--green-dark);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.nav-menu-list a:hover,
.nav-menu-list a.active {
    color: #000;
    border-bottom-color: var(--green-main);
}

/* ── TLAČÍTKA A ODKAZY ────────────────── */
.btn-link,
.btn-link:visited {
    color: var(--green-main);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.btn-link:hover { color: var(--text-dark); }

.link-more::after,
.link-down::after {
    content: '\eac9';
    font-family: 'Material Icons';
    font-size: 2rem;
    vertical-align: middle;
    margin-left: .25rem;
    line-height: 1;
}

.link-down::after { content: '\ead0'; }

.btn-primary,
.btn-primary:visited {
    background: var(--green-main);
    border-color: var(--green-main);
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    padding: .54rem 1.4rem .44rem;
}

.btn-primary:hover {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: #fff;
}

.btn-icon,
.btn-icon:visited {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.btn-icon:hover { color: var(--text-dark); }

.btn-icon .material-icons {
    font-size: 4rem;
    margin: -.5rem;
}

/* ── HERO ─────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    background: url('/img/home-main.jpg') center/cover no-repeat;
    background-position: center calc(50% + 140px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .05) 55%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 5.125rem);
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-scroll {
    display: inline-flex;
    color: var(--green-main);
    text-decoration: none;
    cursor: pointer;
}

.hero-chevrons .material-icons {
    color: var(--green-main);
    font-size: 142px;
    animation: bdown 1.8s ease-in-out infinite;
}

.hero-chevrons .material-icons:last-child {
    animation-delay: .2s;
}

@keyframes bdown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ── REALIZACE A SLIDER ───────────────── */
.realizace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.realizace-header--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
}

.feature-card {
    position: relative;
    display: grid;
    grid-template-columns: 60% 15% 25%;
    align-items: start;
}

.feature-slider { position: relative; }

.feature-card > a,
.feature-img {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: start;
}

.feature-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    -o-object-fit: cover;
       object-fit: cover;
}

.feature-overlay {
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: start;
    margin-top: 5rem;
    background: #fff;
    padding: 2.6rem 5rem;
}

.feature-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

.feature-slider[data-feature-slider] > .feature-card { display: none; }

.feature-slider[data-feature-slider] > .feature-card.is-active {
    display: grid;
    animation: realizace-fade .5s ease;
}

@keyframes realizace-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── FILTR A TAGY ─────────────────────── */
.realizace-filter-wrap { margin-bottom: 3rem; }

.realizace-filter-label {
    display: block;
    margin-bottom: .8rem;
    font-weight: 600;
    color: var(--green-dark);
}

.realizace-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.realizace-filter-tag {
    border: 1px solid var(--green-main);
    background: transparent;
    color: var(--green-main);
    padding: .35rem 1.1rem;
    border-radius: 0 !important;
    font-size: .95rem;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.realizace-filter-tag:hover { background: var(--green-light); }
.realizace-filter-tag.is-active {
    background: var(--green-main);
    color: #fff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.tag-link,
.tag-link:visited {
    display: inline-block;
    color: var(--green-main);
    font-size: .85rem;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
    padding-right: .6rem;
}

.tag-link:hover { text-decoration: underline; }
.tag-link::before {
    content: "#";
    opacity: .7;
}

/* ── TÝM & SERVICES ───────────────────── */
.tym-left { position: relative; }

.service-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.service-card img {
    display: block;
    min-width: 100%;
    max-height: 68vh;
    aspect-ratio: 1 / 1;
    -o-object-fit: cover;
       object-fit: cover;
    transition: transform .4s;
}

.service-card:hover img { transform: scale(1.04); }

.service-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .6) 40%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 2.6rem 1rem;
    font-size: 2rem;
}

.service-card .material-icons {
    color: var(--green-main);
    font-size: 4rem;
}

.service-note {
    border-left: 3px solid var(--green-main);
    padding-left: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.testi-card-name { color: var(--green-main); }
.testi-card-text {
    font-style: italic;
    line-height: 1.6;
}

/* ── SUBPAGES ─────────────────────────── */
.subpage-hero {
    position: relative;
    min-height: 70vh;
    background: center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding-top: calc(142px + 3rem);
    padding-bottom: 3rem;
}

.subpage-hero--short { min-height: 30vh; }
.subpage-hero--onas { min-height: 35vh; }

.subpage-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, transparent 100%);
}

.subpage-hero--onas::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 30%, rgba(0, 0, 0, .2) 55%, transparent 75%);
}

.project-detail .subpage-hero::after { background: none; }

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-hero-panel {
    display: inline-block;
    background: #000;
    padding: 1.5rem 2rem;
    margin-left: -1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35);
}

.subpage-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.subpage-hero-panel .subpage-title {
    font-size: 3rem;
    overflow-wrap: break-word;
}

.subpage-intro {
    max-width: 820px;
    margin-bottom: 3rem;
}

.subpage-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    -o-object-fit: cover;
       object-fit: cover;
}

/* ── REALIZACE – LIST & TÝM GRID ─────── */
.realizace-list-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.realizace-list-img {
    flex: 0 0 55%;
    max-width: 55%;
}

.realizace-list-img img {
    display: block;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.realizace-list-text { flex: 1; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.team-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    -o-object-fit: cover;
       object-fit: cover;
}

.team-role {
    color: var(--green-main);
    margin: 1rem 0 .25rem;
    font-size: .95rem;
}

.team-name {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* ── TIMELINE ─────────────────────────── */
.scroll-anchor { scroll-margin-top: 142px; }

.timeline {
    position: relative;
    margin-top: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--green-dark);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding-bottom: 3.5rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3.5rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3.5rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--green-main);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker { right: -1.375rem; }
.timeline-item:nth-child(even) .timeline-marker { left: -1.375rem; }

.timeline-card {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}

.timeline-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    -o-object-fit: cover;
       object-fit: cover;
}

.timeline-text {
    padding: 1.6rem 1.8rem 2rem;
    text-align: left;
}

.timeline-text h3 {
    font-size: 1.4rem;
    margin: 0 0 .8rem;
}

.timeline-text p {
    margin: 0;
    line-height: 1.6;
}

/* ── DETAIL REALIZACE ─────────────────── */
.go-back {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
    font-weight: 500;
    color: inherit;
    margin-bottom: 1rem;
    transition: color .2s ease;
}

.go-back .material-icons { font-size: 1.25rem; }
.go-back:hover {
    color: var(--green-main);
    text-decoration: none;
}
.subpage-hero .go-back { color: #fff; }

.detail-outline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.4rem;
    border-bottom: 2px solid var(--green-dark);
}

.detail-outline-label {
    color: var(--text-default);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}

.detail-outline ul {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.4rem;
}

.detail-outline li { padding: 0; }
.detail-outline li::before { content: none; }

.detail-outline a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}

.detail-outline a:hover {
    color: var(--green-main);
    border-bottom-color: var(--green-main);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 3rem;
    margin: 1.5rem 0 0;
}

.detail-meta li {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: .8rem;
    color: #fff;
}

.detail-meta li::before { content: none; }

.detail-meta li span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--green-main);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 0;
    font-weight: 600;
}

.detail-tags { margin-top: .7rem; }

.detail-tags-label {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .5rem;
    color: var(--green-main);
    font-weight: 600;
}

.meta-icon { font-size: 1.6rem; }

.detail-meta li span .meta-icon {
    font-size: 1.6rem;
    text-transform: none;
}

.subpage-hero-panel .tag-link,
.subpage-hero-panel .tag-link:visited,
.subpage-hero-panel .tag-link::before {
    color: #fff;
}

.detail-gallery {
    display: grid;
    gap: 1.5rem;
}

.detail-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.detail-gallery--3 { grid-template-columns: repeat(3, 1fr); }

.detail-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    -o-object-fit: cover;
       object-fit: cover;
}

.detail-caption {
    margin-top: 1.2rem;
    font-style: italic;
    color: var(--text-default);
}

/* ── KONTAKTY A FAQ ────────────────────── */
.contact-block { margin-bottom: 1.6rem; }
.contact-label {
    color: var(--green-main);
    font-weight: 600;
    margin-bottom: .25rem;
}

.contact-block address {
    font-style: normal;
    margin: 0;
}

.contact-socials { margin-top: 2rem; }

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.faq-intro {
    max-width: 820px;
    margin-bottom: 3rem;
}

.faq-lead {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.faq-list { border-top: 1px solid #e0e0e0; }
.faq-item { border-bottom: 1px solid #e0e0e0; }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.4rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color .2s ease;
}

.faq-question:hover { color: var(--green-main); }

.faq-marker {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--green-main);
}

.faq-question-text { flex: 1; }

.faq-icon {
    flex-shrink: 0;
    color: var(--green-main);
    transition: transform .3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    transition: height .3s ease;
}

.faq-answer-inner {
    padding: 0 0 1.6rem 3rem;
    color: var(--text-default);
    line-height: 1.6;
}

.faq-answer-inner p { margin: 0 0 1rem; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

.faq-note { color: var(--text-default); }
.faq-outro { text-align: left; }
.faq-outro.sticky-lg-top { top: 160px; }

.faq-outro p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0 0 1.8rem;
}

/* ── LIGHTBOX ─────────────────────────── */
.img-preview { cursor: zoom-in; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .9);
    opacity: 0;
    transition: opacity .3s ease;
}

.lightbox.open { opacity: 1; }

.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    -o-object-fit: contain;
       object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    text-align: center;
    font-size: .95rem;
    opacity: .85;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: .5rem;
    display: inline-flex;
    opacity: .8;
    transition: opacity .2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    color: var(--green-main);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-close .material-icons { font-size: 2.4rem; }

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev .material-icons,
.lightbox-next .material-icons { font-size: 3.5rem; }

/* ── FOOTER ───────────────────────────── */
footer { font-size: 14px; }

footer .border-top {
    border-top: 2px solid var(--green-dark) !important;
}

footer .section-wrap {
    background: #fff;
    color: var(--text-default);
}

footer a,
footer a:visited { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer small { color: #6b6b58; }

/* ── MEDIA QUERIES ───────────────────── */

/* XL (do 1199px) */
@media screen and (max-width: 1199px) {
    .nav-brand { left: 47.4%; }

    .section-process .service-card img {
        aspect-ratio: auto;
        height: 40vh;
    }

    .section-process .container-fluid .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .block-offset-right {
        left: 0;
        right: 0;
        width: auto;
    }

    .block-offset-right + .container .offset-block-media,
    .block-offset-right + .container .block {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }

    .block-offset-right + .container .offset-block-media {
        padding-top: var(--blok-y-offset);
    }

    .offset-block-media > :not(img):not(picture) {
        padding-right: 0;
    }

    .feature-slider {
        display: flex;
        flex-direction: column;
    }

    .feature-nav {
        position: static;
        order: -1;
        width: 100%;
        height: auto;
        margin-bottom: .75rem;
    }
}

/* LG+ (od 992px) */
@media screen and (min-width: 992px) {
    .offset-block-media > :not(img):not(picture) {
        padding-right: 7rem;
    }

    .feature-slider[data-feature-slider] {
        display: grid;
    }

    .feature-slider[data-feature-slider] > .feature-card {
        display: grid;
        grid-area: 1 / 1;
        visibility: hidden;
    }

    .feature-slider[data-feature-slider] > .feature-card.is-active {
        visibility: visible;
        animation: realizace-fade .5s ease;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .feature-card { grid-template-columns: 50% 25% 25%; }
}

/* LG (do 991px) */
@media screen and (max-width: 991px) {
    .project-detail .subpage-hero {
        display: block;
        min-height: 0;
        padding: 0;
    }

    .project-detail .subpage-hero::before {
        content: '';
        display: block;
        height: 50vh;
        background: inherit center/cover no-repeat;
    }

    .project-detail .subpage-hero .container {
        max-width: none;
        background: #000;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .project-detail .subpage-hero-panel {
        display: block;
        width: 100%;
        margin-left: 0;
    }

    .nav-container .nav-socials { display: none; }
    .site-nav { height: 142px; }
    .nav-brand { left: 62%; }
    .nav-brand img { height: 84px; }

    .realizace-list-item {
        flex-direction: column;
        gap: 1.5rem;
    }

    .realizace-list-img {
        flex-basis: 100%;
        max-width: 100%;
    }

    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .team-photo img {
        aspect-ratio: 1 / 1;
        -o-object-position: top;
           object-position: top;
    }

    .contact-map {
        margin-top: 2.5rem;
        min-height: 340px;
    }

    .feature-card,
    .feature-slider[data-feature-slider] > .feature-card.is-active {
        display: block;
    }

    .feature-img { width: 100%; }

    .feature-overlay {
        margin-top: 0;
        padding: 2rem 1.5rem;
    }
}

/* MD (do 767px) */
@media screen and (max-width: 767px) {
    .project-detail .subpage-hero-panel .subpage-title {
        font-size: 2rem;
    }

    .detail-outline ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-gallery--2,
    .detail-gallery--3 {
        grid-template-columns: 1fr;
    }

    .timeline::before { left: 1.375rem; }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 0 0 3rem 3.75rem;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 0;
        right: auto;
    }
}

/* SM (do 575px) */
@media screen and (max-width: 575px) {
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.8rem; }

    .site-nav.scrolled { height: 100px; }
    .nav-brand img { height: 72px; }
    .site-nav.scrolled .nav-brand img { height: 60px; }

    .team-grid { grid-template-columns: 1fr; }

    .lightbox-prev .material-icons,
    .lightbox-next .material-icons {
        font-size: 2.4rem;
    }
}
