
/*
 * Jednotný brand blok pro všechny stránky.
 * Logo a název už nemají zvláštní velikost pouze na domovské stránce.
 */

header {
    height: 92px;
}

.nav {
    gap: 28px;
}

.brand {
    display: flex;
    min-width: 315px;
    align-items: center;
    gap: 0;
    padding: 7px 13px 7px 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #142d23;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.brand:hover {
    border-color: #dce9e2;
    background:
        linear-gradient(135deg, #f0f7f3, #fbfdfc);
    box-shadow: 0 8px 22px rgba(15, 62, 42, .07);
    transform: translateY(-1px);
}

.brand img {
    display: block;
    flex: 0 0 auto;
    width: 88px;
    height: 65px;
    object-fit: contain;
}

.brand span {
    position: relative;
    display: grid;
    min-width: 0;
    margin-left: 15px;
    padding-left: 16px;
}

.brand span::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 39px;
    border-radius: 999px;
    background:
        linear-gradient(
            to bottom,
            rgba(8, 113, 72, .15),
            #087148,
            rgba(8, 113, 72, .15)
        );
    content: "";
    transform: translateY(-50%);
}

.brand span small {
    color: #087148;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand span b {
    margin-top: 4px;
    color: #153126;
    font-size: 19px;
    font-weight: 790;
    letter-spacing: -.018em;
    line-height: 1.12;
    white-space: nowrap;
}

/*
 * Navigace zůstává výrazná, ale brand a menu mají vyváženější poměr.
 */
.site-nav {
    gap: 24px;
}

.site-nav > a,
.site-nav__trigger {
    font-weight: 720;
}

@media (max-width: 1240px) {
    header {
        height: 88px;
    }

    .nav {
        gap: 18px;
    }

    .brand {
        min-width: 276px;
        padding-right: 8px;
    }

    .brand img {
        width: 78px;
        height: 58px;
    }

    .brand span {
        margin-left: 12px;
        padding-left: 13px;
    }

    .brand span::before {
        height: 35px;
    }

    .brand span b {
        font-size: 17px;
    }

    .site-nav {
        gap: 17px;
    }

    .site-nav > a,
    .site-nav__trigger {
        font-size: 13px;
    }
}

@media (max-width: 960px) {
    .brand {
        min-width: 250px;
    }

    .brand img {
        width: 72px;
        height: 54px;
    }

    .brand span b {
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    header {
        height: 82px;
    }

    .brand {
        min-width: 0;
        padding: 5px 8px 5px 5px;
    }

    .brand img {
        width: 75px;
        height: 55px;
    }

    .brand span {
        margin-left: 10px;
        padding-left: 11px;
    }

    .brand span::before {
        height: 32px;
    }

    .brand span small {
        font-size: 9px;
    }

    .brand span b {
        font-size: 15px;
    }
}

@media (max-width: 450px) {
    .brand img {
        width: 67px;
        height: 50px;
    }

    .brand span b {
        font-size: 14px;
    }
}
