/* ==========================================================================
   Boint — redesign 2026
   ========================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* palette (Figma: Barevná paleta) */
    --bg: #121417;
    --bg-2: #1a1d21;
    --bg-3: #23272c;
    --wine: #4a1314;
    --red: #ed1c24;
    --red-hover: #c21c23;
    --muted: #6c747c;
    --muted-2: #8b9299;
    --text: #edeff1;
    --text-2: #a3aab1;
    --caption: #6b737b;
    --band: #3d3d3d;
    --light: #e3e5e8;
    --line: rgba(237, 239, 241, 0.14);
    --line-strong: rgba(237, 239, 241, 0.6);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1200px;
    --gutter: 16px;
    --section: clamp(64px, 9vw, 120px);
    --radius: 2px;
    --header-h: 132px;

    --fs-body: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
    --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
    --fs-h1: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
    --fs-h2: clamp(1.625rem, 1.3rem + 1.3vw, 2.1875rem);
    --fs-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    --radius-lg: 10px;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
    :root {
        --gutter: 32px;
    }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--text);
}

body :is(h1, h2, h3, h4) {
    color: inherit;
    font-family: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.6em;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

::selection {
    background: var(--red);
    color: #fff;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 12px 16px;
    background: var(--red);
    color: #fff;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.h2 {
    font-size: var(--fs-h2);
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose {
    color: var(--text-2);
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose a {
    color: var(--text);
}

.prose ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
    list-style: none;
}

.prose ul li {
    position: relative;
    margin-bottom: 0.4em;
}

.prose ul li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: -1.2em;
    width: 8px;
    height: 2px;
    background: var(--red);
}

.prose--lead {
    color: var(--text);
    font-size: var(--fs-lead);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn,
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 500 1rem/1.2 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--primary,
.wpcf7-submit {
    background: var(--red);
    color: #fff;
}

.btn--primary:hover,
.wpcf7-submit:hover {
    background: var(--red-hover);
    color: #fff;
}

.btn--outline {
    border-color: var(--light);
    background: var(--light);
    color: var(--bg);
}

.btn--outline:hover {
    border-color: #fff;
    background: #fff;
    color: var(--bg);
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 50;
    background: var(--bg);
}

.topbar {
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--text-2);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    min-height: 40px;
}

.topbar__links,
.topbar__contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar a {
    text-decoration: none;
}

.topbar a:hover {
    color: var(--text);
}

.topbar strong {
    font-weight: 500;
    color: var(--text);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 126px;
}

.navbar__brand img {
    width: 150px;
    height: auto;
}

.navbar__nav .menu {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.6vw, 44px);
}

.navbar__nav .menu a {
    position: relative;
    display: block;
    padding: 10px 0;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text);
}

.navbar__nav .menu > li:not(:last-child) > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.navbar__nav .menu > li:not(:last-child) > a:hover::after,
.navbar__nav .menu > .current-menu-item > a::after {
    transform: scaleX(1);
}

/* the last item (Kontakt) is the call to action */
.navbar__nav .menu > li:last-child > a {
    padding: 13px 14px;
    background: var(--muted);
    border-radius: var(--radius);
    transition: background-color 0.2s var(--ease);
}

.navbar__nav .menu > li:last-child > a:hover {
    background: var(--muted-2);
}

.navbar__toggle,
.navbar__mobile-extra {
    display: none;
}

/* WPML language switcher */
.wpml-ls,
.wpml-ls-legacy-dropdown,
.wpml-ls-legacy-dropdown-click {
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: inherit;
}

.wpml-ls a,
.wpml-ls-legacy-dropdown a,
.wpml-ls-legacy-dropdown-click a {
    padding: 4px 8px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--text-2) !important;
}

.wpml-ls a:hover,
.wpml-ls .wpml-ls-current-language > a {
    color: var(--text) !important;
}

.wpml-ls-sub-menu {
    border: 1px solid var(--line) !important;
    background: var(--bg-2) !important;
}

@media (max-width: 1023px) {
    :root {
        --header-h: 72px;
    }

    .topbar {
        display: none;
    }

    .navbar {
        min-height: 72px;
    }

    .navbar__brand img {
        width: 84px;
    }

    .navbar__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin-right: -12px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--text);
        cursor: pointer;
    }

    .navbar__toggle-bars,
    .navbar__toggle-bars::before,
    .navbar__toggle-bars::after {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
        transition: transform 0.25s var(--ease), opacity 0.2s;
    }

    .navbar__toggle-bars {
        position: relative;
    }

    .navbar__toggle-bars::before,
    .navbar__toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .navbar__toggle-bars::before {
        top: -7px;
    }

    .navbar__toggle-bars::after {
        top: 7px;
    }

    .navbar__toggle[aria-expanded="true"] .navbar__toggle-bars {
        background: transparent;
    }

    .navbar__toggle[aria-expanded="true"] .navbar__toggle-bars::before {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar__toggle[aria-expanded="true"] .navbar__toggle-bars::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar__nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 32px;
        padding: 24px var(--gutter) 40px;
        overflow-y: auto;
        background: var(--bg);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
    }

    .nav-open .navbar__nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    .nav-open {
        overflow: hidden;
    }

    .navbar__nav .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar__nav .menu a {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.375rem;
    }

    .navbar__nav .menu > li:not(:last-child) > a::after {
        display: none;
    }

    .navbar__nav .menu > li:last-child > a {
        margin-top: 24px;
        padding: 16px;
        border-color: transparent;
        background: var(--red);
        color: #fff;
        text-align: center;
    }

    .navbar__mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 8px;
        color: var(--text-2);
    }

    .navbar__mobile-extra a {
        text-decoration: none;
    }
}

/* --------------------------------------------------------------------------
   Sections & layout
   -------------------------------------------------------------------------- */

.section {
    padding-block: var(--section);
}

.section--tight-top {
    padding-top: 0;
}

.section--split {
    padding-block: 48px;
}

.section--alt,
.section--band {
    background: var(--band);
}

.section__cta {
    margin-top: 48px;
    text-align: center;
}

.split {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: clamp(48px, 8vw, 120px);
    }

    .split--media-left .split__media {
        order: -1;
    }
}

.split__body .h2 + .prose {
    margin-bottom: 32px;
}

.split__media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* two overlapping photos */
.stack {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, auto);
}

.stack img {
    aspect-ratio: 6 / 5;
    object-fit: cover;
}

.stack__back {
    grid-column: 4 / -1;
    grid-row: 1 / 9;
}

.stack__front {
    grid-column: 1 / 10;
    grid-row: 5 / -1;
    margin-top: 0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    position: relative;
}

.stack img:only-child {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(480px, 34vw, 560px);
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.4);
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero--zoom .hero__media img {
    animation: hero-zoom 22s var(--ease) both;
}

@keyframes hero-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero--zoom .hero__media img {
        animation: none;
    }
}

.hero {
    align-items: stretch;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-block: 64px 10px;
}

.hero__title {
    max-width: none;
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero__text {
    max-width: 52ch;
    margin-bottom: 32px;
    font-size: var(--fs-lead);
    color: var(--text);
}

.hero__text > :last-child {
    margin-bottom: 0;
}

.hero__content > .btn {
    align-self: flex-start;
}

.hero__title + .btn {
    margin-top: 8px;
}

.usp {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: clamp(48px, 7vw, 100px);
}

.usp__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    padding: 16px;
    border: 1px solid var(--text);
    font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
}

@media (min-width: 900px) {
    .usp {
        grid-template-columns: repeat(4, 194px);
        justify-content: space-between;
        padding-inline: 11px 96px;
    }

    .usp__item {
        min-height: 123px;
    }
}

/* --------------------------------------------------------------------------
   Client logos
   -------------------------------------------------------------------------- */

.logos {
    padding-block: 56px 32px;
}

.logos__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 16px;
}

@media (min-width: 900px) {
    .logos__list {
        grid-template-columns: repeat(auto-fit, minmax(103px, 1fr));
        gap: 33px;
    }
}

.logos__list li {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 103 / 62;
    padding: 10px 12px;
    border-radius: 3px;
    background: var(--light);
}

.logos__list img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) contrast(1.15);
    opacity: 0.85;
    transition: filter 0.25s, opacity 0.25s;
}

.logos__list li:hover img {
    filter: none;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Co děláme
   -------------------------------------------------------------------------- */

.what {
    padding-block: 48px;
}

.what__grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

.what__intro {
    margin: 0;
    font-size: var(--fs-lead);
    line-height: 1.45;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pillar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 180 / 110;
    padding: 12px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #0b0c0d;
    text-align: center;
}

.pillar__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar__name {
    position: relative;
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1.125rem);
    line-height: 1.3;
    text-wrap: balance;
}

@media (min-width: 900px) {
    .what__grid {
        grid-template-columns: 361px 1fr;
        gap: 66px;
        padding-inline: 28px 88px;
    }

    .pillars {
        gap: 60px;
    }
}

/* before/after comparison slider */
.ba {
    --pos: 50%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 601 / 379;
    background: var(--bg-3);
    user-select: none;
    touch-action: pan-y;
}

.split__media .ba img,
.ba__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.ba__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba--dimmed .ba__before img {
    filter: grayscale(0.85) brightness(0.55);
}

.ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

.ba__handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat,
        rgba(18, 20, 23, 0.55);
    transform: translate(-50%, -50%);
    transition: transform 0.2s var(--ease), background-color 0.2s;
}

.ba:hover .ba__handle::after,
.ba__range:focus-visible ~ .ba__handle::after {
    transform: translate(-50%, -50%) scale(1.08);
    background-color: var(--red);
}

.ba__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

.ba__range:focus-visible {
    outline: none;
}

.ba:has(.ba__range:focus-visible) {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.ba__tag {
    position: absolute;
    top: 16px;
    padding: 4px 10px;
    background: rgba(18, 20, 23, 0.7);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
}

.ba__tag--before {
    left: 16px;
}

.ba__tag--after {
    right: 16px;
}

/* --------------------------------------------------------------------------
   Area tiles
   -------------------------------------------------------------------------- */

.areas .h2 {
    margin-bottom: 48px;
}

.areas__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 900px) {
    .areas__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(24px, 5vw, 92px);
    }
}

.tile {
    position: relative;
    display: flex;
    align-items: center;
    aspect-ratio: 192 / 117;
    padding: 12px 14px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-3);
    text-decoration: none;
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.4);
    transition: background-color 0.3s var(--ease);
}

.tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.tile__label {
    position: relative;
    z-index: 1;
    font-size: clamp(1.375rem, 1rem + 1.2vw, 2.1875rem);
    line-height: 1.2;
}

.tile:hover .tile__img {
    transform: scale(1.06);
}

.tile:hover::after {
    background: rgba(20, 20, 20, 0.2);
}

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */

.card__link {
    display: block;
    text-decoration: none;
}

.card__media {
    aspect-ratio: 10 / 7;
    overflow: hidden;
    background: var(--bg-3);
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.card__title {
    margin: 16px 0 0;
    font-size: var(--fs-h3);
}

.card__link:hover .card__img {
    transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
    position: relative;
    overflow: hidden;
    padding-block: 40px 64px;
}

.testimonials__quote {
    position: absolute;
    top: -0.08em;
    right: max(0px, calc(50% - 756px));
    font-size: clamp(160px, 26vw, 400px);
    font-weight: 700;
    line-height: 1;
    color: #8e8e8e;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 899px) {
    .testimonials__quote {
        opacity: 0.35;
    }
}

.testimonials .h2 {
    position: relative;
    margin: 0 0 32px;
    font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);
}

.testimonials__list {
    position: relative;
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .testimonials__list {
        grid-template-columns: repeat(3, 316px);
        gap: 74px;
        padding-left: 40px;
    }

    .testimonials .h2 {
        margin-left: 26px;
    }
}

.testimonial {
    margin: 0;
    text-align: center;
}

.testimonial blockquote {
    margin: 0 0 20px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.testimonial blockquote p {
    margin: 0;
}

.testimonial figcaption {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Forms (Contact Form 7)
   -------------------------------------------------------------------------- */

.panel {
    padding: clamp(24px, 5vw, 64px);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.panel .h2 {
    margin-bottom: 32px;
}

.wpcf7 form {
    position: relative;
}

.wpcf7 p {
    margin: 0;
}

.wpcf7 label br,
.wpcf7 .souhlas_pck br {
    display: none;
}

.form_pack {
    display: grid;
    gap: 0 32px;
}

@media (min-width: 768px) {
    .form_pack {
        grid-template-columns: 1fr 1.6fr;
    }

    .form_pack .right,
    .form_pack .right p,
    .form_pack .right label,
    .form_pack .right .wpcf7-form-control-wrap {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .form_pack .right textarea {
        flex: 1;
        min-height: 0;
    }

    .form_pack .right label {
        padding-top: 21px;
    }
}

.form_pack .right .wpcf7-form-control-wrap {
    margin-bottom: 16px;
}

.souhlas_pck p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-2);
}

.souhlas_pck .wpcf7-form-control-wrap {
    margin: 0;
}

.submitCenter {
    margin-top: 24px;
    text-align: center;
}

.wpcf7 label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: var(--text-2);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font: 400 1rem/1.4 var(--font);
    transition: border-color 0.2s;
}

.wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--caption);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: var(--text-2);
    outline: none;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 16px;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-acceptance label,
.wpcf7-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-2);
    cursor: pointer;
}

.wpcf7 input[type="checkbox"] {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--red);
}

.wpcf7-submit {
    margin-top: 8px;
}

.wpcf7-spinner {
    margin: 0 0 0 12px;
    vertical-align: middle;
}

.wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 0.875rem;
    color: #ff6b70;
}

.wpcf7 form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #2f9e63;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: var(--red);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding-top: clamp(56px, 7vw, 88px);
    background: var(--wine);
    font-size: 0.9375rem;
    color: rgba(237, 239, 241, 0.8);
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__grid {
    display: grid;
    gap: 40px;
    padding-bottom: 56px;
}

@media (min-width: 640px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

.site-footer__brand img {
    width: 120px;
    margin-bottom: 24px;
}

.site-footer__title {
    margin-bottom: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.site-footer__menu li + li {
    margin-top: 8px;
}

.site-footer address {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social {
    display: flex;
    gap: 8px;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(237, 239, 241, 0.3);
    border-radius: var(--radius);
    transition: background-color 0.2s, border-color 0.2s;
}

.social a:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.social .icon {
    width: 20px;
    height: 20px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(237, 239, 241, 0.15);
    font-size: 0.8125rem;
    color: rgba(237, 239, 241, 0.6);
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 32px;
    min-height: 64px;
    padding-block: 16px;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom a {
    display: inline-block;
    margin-left: auto;
    padding-block: 6px;
}

@media (max-width: 639px) {
    .site-footer__bottom a {
        margin-left: 0;
    }
}

@media (min-width: 900px) {
    .split--media-left {
        grid-template-columns: 601fr 363fr;
        align-items: start;
        padding-right: 108px;
    }

    .split--media-left .split__body {
        padding-top: 8px;
    }

    .split__media.stack {
        width: 100%;
        max-width: 431px;
        justify-self: end;
        margin-right: 96px;
    }
}

/* ==========================================================================
   Sub-pages
   ========================================================================== */

.h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
}

.container--narrow {
    max-width: calc(720px + 2 * var(--gutter));
}

.section--compact {
    padding-block: clamp(32px, 4vw, 56px);
}

/* page hero */
.hero--page {
    min-height: clamp(360px, 34vw, 520px);
}

.hero--page .hero__content {
    justify-content: center;
    padding-block: 64px;
}

.hero--page .usp--facts {
    margin-top: clamp(32px, 4vw, 48px);
}

@media (min-width: 900px) {
    .hero--page .usp {
        padding-inline: 38px 0;
    }

    .hero--page .hero__content:has(.usp) {
        justify-content: flex-end;
        padding-bottom: 38px;
    }

    .hero--page .usp {
        grid-template-columns: repeat(4, 194px);
        justify-content: space-between;
        padding-right: 168px;
    }
}

.breadcrumb {
    padding-block: 20px 0;
    font-size: 0.875rem;
    color: var(--text-2);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--caption);
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
    text-decoration: underline;
}

.breadcrumb [aria-current] {
    color: var(--text);
}

/* rich text from the editor / ACF wysiwyg */
.prose--rich {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

.prose--rich h2,
.prose--rich h3,
.prose--rich h4 {
    margin: 1.6em 0 0.4em;
    font-size: var(--fs-h3);
    font-weight: 600;
}

.prose--rich > :first-child {
    margin-top: 0;
}

.prose--rich blockquote {
    margin: 1em 0;
    padding-left: 16px;
    border-left: 2px solid var(--red);
}

.prose--rich blockquote p {
    margin: 0 0 0.4em;
}

.split--text-photo {
    align-items: start;
}

@media (min-width: 900px) {
    .split--text-photo {
        grid-template-columns: 1fr 336px;
        gap: 64px;
    }

    .split--media-first {
        grid-template-columns: 336px 1fr;
    }

    .split--media-first .split__media {
        order: -1;
    }
}

.split--text-photo .split__media img {
    aspect-ratio: 336 / 327;
}

/* project listing */
.projects__perex {
    max-width: 760px;
    margin-bottom: 32px;
    font-size: var(--fs-lead);
    color: var(--text-2);
}

.filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin: 8px 0 48px;
    padding-left: 30px;
}

.filter {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 13px;
    border: 1px solid var(--text);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.filter:hover,
.filter.is-active {
    background: var(--text);
    color: var(--bg);
}

@media (max-width: 899px) {
    .filters ul {
        flex-wrap: nowrap;
        gap: 10px;
        margin-inline: calc(-1 * var(--gutter));
        padding: 0 var(--gutter) 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filter {
        white-space: nowrap;
        font-size: 1rem;
    }
}

.project-grid,
.related__grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 700px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: clamp(220px, 23vw, 350px);
        gap: 21px;
        padding-inline: 30px 96px;
    }

    /* rows of 2/3+1/3, 1/3×3, 1/3+2/3 */
    .project-grid > :nth-child(7n + 1),
    .project-grid > :nth-child(7n) {
        grid-column: span 2;
    }

    .related__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(24px, 4vw, 64px);
        padding-inline: 30px 96px;
    }
}

.pcard {
    position: relative;
    display: block;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
    background: var(--bg-3);
    text-decoration: none;
}

.related .pcard {
    aspect-ratio: 336 / 324;
    min-height: 0;
}

.pcard__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.pcard__title {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 14px 16px;
    background: rgba(61, 61, 61, 0.7);
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.875rem);
    font-weight: 700;
    line-height: 1.15;
}

@media (min-width: 700px) {
    .project-grid > :not(:nth-child(7n + 1)):not(:nth-child(7n)) .pcard__title,
    .related .pcard__title {
        font-size: clamp(1.125rem, 0.9rem + 0.5vw, 1.375rem);
    }
}

.pcard:hover .pcard__img {
    transform: scale(1.04);
}

.related .h3,
.gallery .h3 {
    margin-bottom: 24px;
}

@media (min-width: 700px) {
    .related .h3 {
        padding-left: 30px;
    }
}

/* testimonial on a photo */
.quote-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 186px;
    margin: 0;
    padding: 32px clamp(20px, 5vw, 48px);
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-3);
    text-align: center;
    isolation: isolate;
}

.quote-card__img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.quote-card blockquote {
    margin: 0 0 16px;
    font-size: 1.125rem;
    line-height: 1.3;
}

.quote-card blockquote p {
    margin: 0;
}

.quote-card figcaption {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
}

/* CTA card */
.cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 186px;
    padding: 32px;
    overflow: hidden;
    border-radius: 12px;
    text-align: center;
    isolation: isolate;
}

.cta-card__img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.cta-card__title {
    margin: 0;
    font-size: 1.25rem;
}

/* logos on a grey band */
.logos--band {
    padding-block: 64px;
    margin-top: clamp(32px, 4vw, 56px);
    background: #636363;
}

/* gallery: rows of 1/3×3, 2/3+1/3, 1/3×3, 1/3+2/3 */
.gallery__grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 700px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: clamp(200px, 21vw, 322px);
        gap: clamp(16px, 4vw, 64px) clamp(16px, 4.4vw, 66px);
        padding-right: 96px;
    }

    .gallery__grid > :nth-child(10n + 4),
    .gallery__grid > :nth-child(10n) {
        grid-column: span 2;
    }
}

.gallery__link {
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--bg-3);
    cursor: zoom-in;
}

.gallery__link img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

@media (min-width: 700px) {
    .gallery__link img {
        aspect-ratio: auto;
    }
}

.gallery__link:hover img {
    transform: scale(1.03);
}

/* legacy editor content (language versions not migrated yet) */
.legacy-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 32px 0;
}

.legacy-content figure {
    margin: 0;
}

.legacy-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-content .wp-block-buttons {
    display: inline-flex;
    margin: 0 8px 8px 0;
}

.legacy-content .wp-block-button__link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    font-size: 0.875rem;
    text-decoration: none;
}

/* lightbox */
.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(10, 11, 13, 0.95);
    color: var(--text);
}

.lightbox::backdrop {
    background: transparent;
}

.lightbox__img {
    position: absolute;
    inset: 56px 72px;
    width: calc(100% - 144px);
    height: calc(100% - 112px);
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(18, 20, 23, 0.6);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox button:hover {
    background: var(--red);
    border-color: var(--red);
}

.lightbox__close {
    top: 12px;
    right: 12px;
}

.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__prev {
    left: 12px;
}

.lightbox__next {
    right: 12px;
}

.lightbox__count {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: var(--text-2);
}

@media (max-width: 699px) {
    .lightbox__img {
        inset: 64px 8px;
        width: calc(100% - 16px);
        height: calc(100% - 128px);
    }

    .lightbox__prev,
    .lightbox__next {
        top: auto;
        bottom: 8px;
        transform: none;
    }
}

/* about page */
.section--first {
    padding-top: clamp(56px, 6vw, 88px);
}

.prose--body {
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.45;
}

.split__body .prose--body {
    margin-bottom: 32px;
}

@media (min-width: 900px) {
    .split--even {
        grid-template-columns: 1fr 1fr;
        padding-right: 0;
    }
}

.team .h2 {
    margin-bottom: 40px;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
}

@media (min-width: 640px) {
    .team__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .team__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 40px 24px;
    }
}

.person {
    text-align: center;
}

.person__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 199 / 252;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 0 16px 16px 16px;
    background: #4a4a4a;
}

.person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person__initials {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 600;
    color: rgba(237, 239, 241, 0.35);
}

.person__name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.person__role {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--text-2);
}

/* careers */
.btn--small {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 0.9375rem;
}

.section__cta--row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 72px;
}

.container--text {
    max-width: calc(860px + 2 * var(--gutter));
    margin-left: max(0px, calc(50% - 600px - var(--gutter)));
}

.hero--page .hero__title + .btn {
    align-self: flex-start;
    margin-top: 8px;
}

.jobs .h2 {
    margin-bottom: 32px;
}

.jobs__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 324px));
    gap: 24px;
}

.job-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-height: 160px;
    padding: 24px 16px 16px 18px;
    border: 1px solid var(--text-2);
}

.job-card__title {
    margin: 0;
    font-size: 1.25rem;
}

.job-card .btn {
    align-self: flex-end;
}

.jobs__note {
    max-width: 700px;
    margin-top: 72px;
}

.why .h2 {
    margin-bottom: 32px;
}

.why__grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .why__grid {
        grid-template-columns: 633fr 417fr;
        gap: 74px;
        padding-right: 96px;
    }
}

.why__card {
    padding: clamp(24px, 3vw, 32px) clamp(20px, 3vw, 32px);
    border-radius: 16px;
    background: #4a4a4a;
    font-size: 1rem;
}

.why__media img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
}

.perks .h2 {
    margin-bottom: 32px;
}

.perks__band {
    padding-block: 40px;
}

.perks__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 700px) {
    .perks__list {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(24px, 9vw, 150px);
    }
}

.pillar--text {
    justify-content: flex-start;
    aspect-ratio: auto;
    min-height: 168px;
    padding: 20px 22px;
    text-align: left;
}

.pillar--text .pillar__name {
    font-size: 1.125rem;
}

.job__lead {
    font-size: 1.125rem;
}

/* contact page */
.contact-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-2);
}

@media (min-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr 1fr;
        max-width: 1040px;
        margin-inline: auto;
    }
}

.contact-card__map {
    position: relative;
    min-height: 340px;
}

/* the iframe and Complianz's consent placeholder both fill the map column */
.contact-card__map > *,
.contact-card__map iframe {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.contact-card__map iframe {
    display: block;
    border: 0;
    filter: grayscale(0.6) invert(0.9) hue-rotate(180deg) contrast(0.9);
}

.contact-card__body {
    padding: clamp(24px, 4vw, 48px);
    font-size: 1rem;
}

.contact-card__body .prose {
    font-size: 1rem;
}

@media (min-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr 1.15fr;
    }
}

.contact-card__body .h2 {
    margin-bottom: 24px;
}

.contact-card__cols {
    display: grid;
    gap: 24px 40px;
}

@media (min-width: 560px) {
    .contact-card__cols {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card__cols a {
    text-decoration: none;
}

.contact-card__cols a:hover {
    text-decoration: underline;
}

.contact-card__company {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--red);
}

.contact-card__label {
    margin: 24px 0 8px;
    font-size: 1rem;
    font-weight: 600;
}

.contact-card__cols > div > .contact-card__label:first-child {
    margin-top: 0;
}

.contact-card .social {
    margin-bottom: 8px;
}

/* subcontractors */
.sub-intro {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .sub-intro {
        grid-template-columns: 1fr 422px;
        gap: 96px;
        padding-right: 96px;
    }
}

.sub-intro__lead {
    margin-bottom: 40px;
    font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
    line-height: 1.3;
}

.sub-intro__label {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
}

.sub-intro__list {
    padding-left: 20px;
    list-style: disc;
    font-size: 1.25rem;
    line-height: 2;
}

.trades {
    position: relative;
    align-self: start;
    padding: 32px 22px;
    overflow: hidden;
    border-radius: 16px;
    background: #0b0c0d;
    isolation: isolate;
}

.trades__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trades__title {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.trades__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trades__list li {
    padding: 4px 8px;
    border: 1px solid var(--text);
    font-size: 1.0625rem;
}

#spoluprace .h2 {
    margin-bottom: 40px;
}

.person-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    max-width: 1130px;
    padding: 24px;
    border-radius: 16px;
    background: #4a4a4a;
}

@media (max-width: 559px) {
    .person-card {
        grid-template-columns: 1fr;
    }
}

.person-card__photo {
    width: 150px;
    aspect-ratio: 150 / 189;
    overflow: hidden;
    border-radius: 0 16px 16px 16px;
    background: #6e6e6e;
}

.person-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card__body p {
    margin: 0 0 8px;
}

.person-card__label {
    font-size: 0.875rem;
}

.person-card__name {
    font-size: 1.5rem;
}

.person-card a {
    text-decoration: none;
}

.person-card__text {
    margin-block: 16px !important;
}

/* default page & 404 */
.text-page .h2 {
    margin-bottom: 32px;
}

.error-page {
    min-height: 50vh;
}

.error-page__code {
    margin: 0;
    font-size: clamp(5rem, 3rem + 8vw, 10rem);
    font-weight: 700;
    line-height: 1;
    color: var(--red);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}
