/* September client copy: keep four directions and the added pages readable. */
html[data-design="2"] body.home .site-main .home-hero-content .biest-home-tagline {
    max-width: 800px;
    margin: 0 auto 22px !important;
    color: #e4b958;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 1.55rem + 1.4vw, 3rem) !important;
    font-style: italic;
    line-height: 1.2 !important;
}
body.home .home-directions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    max-width: 1120px;
    margin-inline: auto !important;
}
body.home .home-directions-grid > .wp-block-column {
    width: auto !important;
    min-width: 0;
    flex-basis: auto !important;
    margin: 0 !important;
}
body.home a.home-direction-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
}
body.home a.home-direction-card .biest-method-link {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
body.home a.home-direction-card:focus-visible {
    outline: 3px solid #b58a37;
    outline-offset: -3px;
}

/* Keep current and hovered menu links legible against the light header. */
html[data-design="2"] body #masthead .main-header-menu .menu-item:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current_page_ancestor, .current-menu-parent) > a.menu-link,
html[data-design="2"] body #masthead .main-header-menu .menu-item > a.menu-link[aria-current="page"] {
    color: #74551f !important;
    opacity: 1 !important;
}
html[data-design="2"] body #masthead .main-header-menu .menu-item:hover > a.menu-link,
html[data-design="2"] body #masthead .main-header-menu .menu-item > a.menu-link:hover,
html[data-design="2"] body #masthead .main-header-menu .menu-item > a.menu-link:focus-visible {
    color: #9a7127 !important;
    opacity: 1 !important;
}
body.home .home-directions-grid .home-direction-card,
body.page-slug-vydy-vplyvu .vv-grid .home-direction-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

body .biest-method-hero .wp-block-columns {
    grid-template-columns: minmax(0, 900px) !important;
}
body .biest-method-hero .wp-block-column {
    align-items: center !important;
    text-align: center;
}
body .biest-method-hero p + p {
    margin-top: 18px !important;
}
body .biest-method-hero h2,
body .biest-method-hero h2::before,
body .biest-method-hero p,
body .biest-method-effects h2,
body .biest-method-effects .premium-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}
body .biest-method-detail {
    max-width: 820px;
    margin: 0 auto 60px !important;
    text-align: center;
}
body .biest-method-detail p {
    color: #405b51;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}
html[data-design="2"] body .biest-method-effects > h2 {
    text-align: center !important;
}
html[data-design="2"] body.page-slug-nejrofiziologichni-tehniky .entry-content > .premium-gradient.biest-method-hero:first-child h2 {
    max-width: 100% !important;
    font-size: clamp(1.4rem, 8.2vw, 4.25rem) !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}
body .biest-method-effects .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body .biest-method-effects .premium-card-wrapper {
    min-width: 0;
}
body .biest-method-effects .premium-card .premium-icon img {
    content: normal !important;
}
body.page-slug-nejrofiziologichni-tehniky .entry-content {
    margin: 0 !important;
}

.biest-legal__hero {
    padding: clamp(70px, 8vw, 120px) 24px;
    background: linear-gradient(135deg, #04362a, #0b5944);
    color: #fffaf2;
    text-align: center;
}
.biest-legal__hero .ast-container { max-width: 900px; }
body .biest-legal__hero .ast-container,
body .biest-legal__body.ast-container {
    display: block !important;
    width: min(880px, calc(100% - 48px)) !important;
    max-width: 880px !important;
    margin-inline: auto !important;
}
.biest-legal__eyebrow {
    color: #e4b958;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.biest-legal__hero h1 {
    margin: 18px 0 20px;
    color: #fffaf2;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.biest-legal__hero p { color: #e2e9e1; font-size: 1.16rem; }
.biest-legal__body {
    max-width: 880px;
    padding: clamp(64px, 8vw, 110px) 24px;
}
.biest-legal__body section { width: 100%; }
.biest-legal__body section + section {
    margin-top: 44px;
    padding-top: 40px;
    border-top: 1px solid rgba(6, 70, 53, 0.18);
}
.biest-legal__body h2 {
    margin: 0 0 18px;
    color: #183b31;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    overflow-wrap: anywhere;
}
.biest-legal__body p {
    color: #405b51;
    font-size: 1.04rem;
    line-height: 1.8;
}
.biest-legal__body p + p { margin-top: 18px; }
.biest-legal__certificate h2,
.biest-legal__certificate > p {
    text-align: center;
}
.biest-legal__certificate > p {
    margin-inline: auto;
}
.biest-legal__certificate-figure {
    width: min(100%, 520px);
    margin: 30px auto 0;
    text-align: center;
}
.biest-legal__certificate-figure a {
    display: block;
    border: 1px solid rgba(6, 70, 53, 0.16);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(9, 48, 38, 0.12);
    overflow: hidden;
}
.biest-legal__certificate-figure a:focus-visible {
    outline: 3px solid #b48932;
    outline-offset: 4px;
}
.biest-legal__certificate-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.biest-legal__certificate-figure figcaption {
    margin-top: 16px;
    color: #405b51;
    font-size: 0.95rem;
    line-height: 1.5;
}
html[data-design="2"] body .biest-legal__hero h1,
html[data-design="2"] body .biest-legal__body h2 {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;
}
@media (min-width: 922px) {
    html[data-design="2"] body #ast-desktop-header .main-header-menu > .menu-item-has-children > .sub-menu {
        width: 326px;
        padding: 8px 0;
        box-sizing: border-box;
    }
    html[data-design="2"] body #ast-desktop-header .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item {
        width: 100%;
    }
    html[data-design="2"] body #ast-desktop-header .main-header-menu > .menu-item-has-children > .sub-menu > .menu-item > .menu-link {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 18px !important;
        white-space: normal !important;
        overflow-wrap: normal;
        line-height: 1.35;
    }
}
@media (min-width: 922px) and (max-width: 1440px) {
    html[data-design="2"] body #ast-desktop-header .main-header-menu > #menu-item-53 > .sub-menu {
        left: auto;
        right: 0;
    }
}
@media (max-width: 1100px) {
    body.home .home-directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
    body.home .home-directions-grid,
    body .biest-method-effects .wp-block-columns { grid-template-columns: 1fr !important; }
    html[data-design="2"] body .biest-method-hero .wp-block-column:first-child {
        width: 100% !important;
        min-width: 0 !important;
    }
    html[data-design="2"] body .biest-method-hero h2 {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(1.95rem, 8vw, 2.7rem) !important;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    html[data-design="2"] body .biest-method-effects .premium-card {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
        padding: 26px !important;
    }
    html[data-design="2"] body .biest-method-effects .premium-card .premium-icon {
        flex: none;
        width: 76px;
        height: 76px;
        margin-bottom: 20px !important;
    }
    html[data-design="2"] body .biest-method-effects .premium-card h3 {
        align-self: auto;
        overflow-wrap: anywhere;
    }
    html[data-design="2"] body .biest-method-effects .premium-card p { align-self: auto; }
}
