/*
Theme Name: KONFUCIUS
Description: Firemní vzdělávání KONFUCIUS: výběr programu podle situace týmu, čtení s osnovou a stránky pro kampaně.
Author: KONFUCIUS
Version: 2.0.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: konfucius
*/

@font-face {
    font-family: Manrope;
    src: url(assets/manrope-latin-ext-wght-normal.woff2) format('woff2');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    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: Manrope;
    src: url(assets/manrope-latin-wght-normal.woff2) format('woff2');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    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 {
    --paper: #f9f5f0;
    --ink: #081934;
    --blue: #082ddb;
    --line: #c4cad1;
    --muted: #425169;
    --wash: #efebe5;
    --page: 1480px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 500 17px/1.55 Manrope,Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,input,select,textarea {
    font: inherit;
}

button,summary {
    cursor: pointer;
}

h1,h2,h3,p,figure,blockquote {
    margin: 0;
}

h1,h2,h3 {
    line-height: 1.12;
    text-wrap: pretty;
}

h1,h2 {
    letter-spacing: -.042em;
}

h1 {
    font-size: clamp(44px,5.35vw,83px);
    font-weight: 800;
}

h2 {
    font-size: clamp(28px,2.5vw,40px);
}

[hidden] {
    display: none!important;
}

:focus-visible {
    outline: 3px solid #795e00;
    outline-offset: 4px;
}

.wrap {
    width: min(94.6%,var(--page));
    margin-inline: auto;
}

.skip {
    position: fixed;
    top: 8px;
    left: 10px;
    z-index: 20;
    transform: translateY(-160%);
    padding: 10px 18px;
    background: var(--ink);
    color: white;
}

.skip:focus {
    transform: none;
    color: white;
}

.arr {
    display: inline-block;
    font-family: Arial,sans-serif;
    font-weight: 400;
    line-height: .9;
}

.btn,.kfo-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: 12px 23px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    border-radius: 7px;
    font-weight: 720;
    line-height: 1.2;
}

.btn:hover,.kfo-form button:hover {
    background: #092298;
    color: #fff;
    border-color: #092298;
}

.text-link,.reading a,.direct a,.watch {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: .22em;
}

.btn .arr {
    font-size: 1.35em;
}

.mast {
    min-height: clamp(78px,6.25vw,96px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: relative;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: clamp(50px,5.5vw,80px);
    aspect-ratio: 1;
    object-fit: contain;
}

.brand span {
    font-size: clamp(15px,1.32vw,21px);
    font-weight: 650;
    letter-spacing: .39em;
}

.topnav {
    display: flex;
    align-items: center;
    gap: clamp(30px,4.3vw,68px);
    font-size: clamp(17px,1.45vw,22px);
}

.program-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    position: relative;
}

.program-nav details {
    display: flex;
}

.program-nav summary {
    display: grid;
    place-items: center;
    list-style: none;
    width: 27px;
    height: 38px;
}

.program-nav summary::-webkit-details-marker,.syllabus summary::-webkit-details-marker {
    display: none;
}

.chev {
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}

details[open] .chev {
    transform: translateY(2px) rotate(225deg);
}

.flyout {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    min-width: 275px;
    background: var(--paper);
    box-shadow: 0 8px 30px #132b4924;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 8px 14px;
}

.flyout a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
}

.flyout a+a {
    border-top: 1px solid var(--line);
}

.nav-cta {
    font-size: clamp(15px,1.23vw,20px);
    min-height: 48px;
    padding-inline: 27px;
}

.menu-toggle {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0,39.1fr) minmax(0,57.7fr);
    gap: 3.35%;
    margin: clamp(25px,2.6vw,42px) 0 clamp(23px,2.1vw,34px);
    padding-left: 1.15%;
}

.question {
    padding-top: clamp(16px,1.8vw,30px);
}

.question h1 {
    font-size: clamp(56px,6.4vw,100px);
    line-height: .99;
    letter-spacing: -.055em;
}

.lead {
    font-size: clamp(16px,1.4vw,23px);
    line-height: 1.4;
    letter-spacing: -.025em;
    margin-top: 17px;
    font-weight: 460;
}

.situations {
    margin-top: clamp(18px,1.75vw,29px);
}

.situations a {
    min-height: clamp(60px,5.08vw,81px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(21px,2.15vw,34px);
    line-height: 1.18;
    font-weight: 580;
    letter-spacing: -.037em;
}

.situations .arr {
    opacity: 0;
    font-size: 1.3em;
    margin-right: 4px;
}

.situations [aria-current] {
    color: var(--blue);
    font-weight: 800;
    box-shadow: inset 0 -3px var(--blue);
    border-color: var(--blue);
}

.situations [aria-current] .arr,.situations a:hover .arr {
    opacity: 1;
}

.photo {
    display: block;
    aspect-ratio: 809/461;
    overflow: hidden;
}

.photo img,.explore-link img,.program-cover,.card-pic img,.team img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.choice-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.choice-foot h2 {
    font-size: clamp(19px,2.0vw,33px);
    letter-spacing: -.045em;
    font-weight: 800;
}

.choice-foot .btn {
    flex-shrink: 0;
    font-size: clamp(14px,1.12vw,18px);
    min-height: 48px;
}

.advice {
    border-block: 1px solid var(--line);
    min-height: clamp(66px,5.2vw,83px);
    padding: 14px 1.15%;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: clamp(16px,1.3vw,21px);
    letter-spacing: -.025em;
}

.bubble {
    width: 32px;
    height: 32px;
    margin-right: 14px;
    background: var(--blue);
    mask: center / contain no-repeat url(assets/chat.svg);
    flex: none;
}

.advice a,.explore-link span {
    color: var(--blue);
    font-weight: 750;
}

.advice a {
    text-decoration: underline;
    text-underline-offset: .25em;
}

.advice a .arr {
    padding-left: 5px;
}

.explore {
    display: grid;
    grid-template-columns: 1fr 1.08fr 1.12fr;
    gap: 2.45%;
    padding: clamp(32px,3.25vw,55px) 3px clamp(37px,4vw,70px) .7%;
}

.explore h2 {
    font-size: clamp(25px,2.4vw,38px);
    line-height: 1.17;
}

.explore p {
    max-width: 38ch;
    font-size: clamp(15px,1.23vw,19px);
    font-weight: 450;
    margin-top: 20px;
}

.explore-link {
    align-self: start;
    min-width: 0;
    border-bottom: 1px solid #9ba7b6;
}

.explore-link img {
    aspect-ratio: 2.54;
    height: auto;
}

.explore-link>span {
    display: flex;
    align-items: center;
    gap: .5em;
    font-size: clamp(17px,1.4vw,22px);
    padding: 6px 0 9px;
}

.foot {
    border-top: 1px solid var(--line);
    padding: 38px 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 35px;
    font-size: 14px;
}

.foot .small img {
    width: 46px;
}

.foot .small span {
    font-size: 14px;
}

.foot>div>p {
    margin-top: 9px;
    color: var(--muted);
}

.foot>div>a:not(.brand) {
    display: block;
    margin-bottom: 6px;
}

.foot>div>a:hover {
    text-decoration: underline;
}

.inner {
    padding: 22px 1% 65px;
    min-height: 63vh;
}

.crumb {
    display: flex;
    gap: .8em;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin: 3px 0 38px;
}

.crumb a {
    text-decoration: underline;
    text-underline-offset: .22em;
}

.eyebrow {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 13px;
}

.intro {
    font-size: clamp(18px,1.55vw,25px);
    line-height: 1.55;
    letter-spacing: -.025em;
    max-width: 57ch;
    margin-top: 20px;
}

.catalog-head {
    max-width: 1000px;
}

.catalog-filter {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    margin: 24px 0 30px;
    border-block: 1px solid var(--line);
}

.catalog-filter label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.catalog-filter input,.catalog-filter select {
    font: 500 16px Manrope,Arial,sans-serif;
    color: var(--ink);
    background: #fffdf9;
    border: 1px solid #9aa4af;
    border-radius: 4px;
    min-height: 45px;
    padding: 9px 12px;
    max-width: 100%;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 34px 25px;
}

.card {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.card-pic {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.play-icon,.load-video {
    background: var(--blue);
    color: white;
    border-radius: 5px;
}

.play-icon {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
}

.card h2 {
    font-size: clamp(21px,2vw,30px);
    margin: 13px 0 8px;
}

.card h2 .arr {
    color: var(--blue);
    font-size: .85em;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

.program-top,.contact-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 5%;
    align-items: center;
}

.program-top h1,.contact-layout h1,.video-single h1 {
    font-size: clamp(40px,4.6vw,74px);
}

.program-cover {
    aspect-ratio: 4/3;
}

.actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.evidence {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr));
    align-items: center;
    gap: 5%;
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding: 36px 0;
}

.evidence h2 {
    font-size: clamp(25px,2.2vw,36px);
    margin-bottom: 14px;
}

.player {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--ink);
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
}

.player>img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.71);
}

.player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.load-video {
    padding: 11px 15px;
    font-size: 15px;
    font-weight: 750;
}

.load-video:hover {
    background: white;
    color: var(--blue);
}

.watch {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
}

.testimonial {
    padding: 24px;
    color: var(--ink);
    max-width: 650px;
}

.testimonial>span {
    font-family: Georgia,serif;
    color: var(--blue);
    font-size: 80px;
    line-height: .6;
}

.testimonial blockquote {
    font-size: clamp(23px,2.2vw,34px);
    letter-spacing: -.035em;
    line-height: 1.3;
}

.testimonial figcaption {
    margin-top: 16px;
    color: var(--muted);
    font-size: 15px;
}

.syllabus {
    border-block: 1px solid var(--line);
    margin: 30px 0;
}

.syllabus summary {
    list-style: none;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: clamp(22px,2.2vw,32px);
    padding: 18px 0;
}

.syllabus summary span {
    color: var(--blue);
}

.syllabus[open] summary span {
    transform: rotate(45deg);
}

.reading {
    max-width: 760px;
    overflow-wrap: anywhere;
}

.reading h2,.reading h3 {
    margin: 1.4em 0 .45em;
}

.reading p,.reading ul,.reading ol {
    margin: 0 0 1em;
}

.reading hr {
    margin: 1.8em 0;
}

.reading img {
    height: auto;
}

.form-frame {
    max-width: 850px;
    margin: 40px auto 0;
}

.kfo {
    padding: clamp(22px,3.3vw,50px);
    background: #efebe5;
    border-radius: 6px;
}

.kfo h2 {
    margin: 0 0 12px;
}

.contact-layout {
    align-items: start;
}

.direct {
    margin-top: 35px;
}

.direct h2 {
    font-size: 25px;
}

.direct p {
    margin-top: 15px;
}

.team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4%;
    margin: 32px 0;
}

.team img {
    aspect-ratio: 4/2.45;
    height: auto;
    margin-bottom: 17px;
}

.team h2,.team p {
    margin-bottom: 12px;
}

.team article>p:not(.eyebrow) {
    max-width: 50ch;
}

.video-single {
    max-width: 960px;
    margin: 0 auto 38px;
}

.video-single h1 {
    margin-bottom: 25px;
}

.empty {
    padding-block: 65px;
}

.empty p,.empty a {
    margin-top: 24px;
}

@media(max-width:1080px) {
    .choice-foot {
        flex-wrap: wrap;
    }
    .choice-foot .btn {
        min-height: 40px;
    }
    .topnav {
        gap: 25px;
    }
    .hero {
        gap: 3%;
    }
    .advice {
        flex-wrap: wrap;
    }
    .contact-layout {
        gap: 3%;
    }
}

@media(max-width:760px) {
    .wrap {
        width: calc(100% - 36px);
    }
    .mast {
        gap: 10px;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 7px 0;
    }
    .brand {
        gap: 4px;
    }
    .brand img {
        width: 45px;
    }
    .brand span {
        font-size: 13px;
        letter-spacing: .26em;
    }
    .nav-cta {
        margin-left: auto;
        min-height: 38px;
        padding: 9px 11px;
        font-size: 12px;
        gap: 4px;
    }
    .topnav {
        order: 4;
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--line);
        padding: 7px 1px;
        font-size: 16px;
    }
    .kf-js .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: transparent;
        color: var(--ink);
        border: 0;
        padding: 9px 2px;
        font-size: 13px;
        font-weight: 750;
        order: 3;
    }
    .kf-js .menu-toggle[aria-expanded="false"]+.topnav {
        display: none;
    }
    .flyout {
        background: var(--paper);
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0;
        margin: 20px 0;
    }
    .question {
        padding-top: 3px;
    }
    .question h1 {
        font-size: clamp(50px,10vw,73px);
        line-height: 1;
    }
    .lead {
        margin-top: 12px;
    }
    .situations {
        margin-top: 13px;
    }
    .situations a {
        min-height: 47px;
        font-size: clamp(21px,4.5vw,28px);
    }
    .choice-foot {
        margin-top: 11px;
    }
    .choice-foot h2 {
        font-size: clamp(21px,4.3vw,28px);
    }
    .choice-foot .btn {
        font-size: 14px;
        padding: 9px 13px;
    }
    .advice {
        display: grid;
        grid-template-columns: 28px 1fr;
        gap: 3px 11px;
        padding: 14px 0;
        line-height: 1.4;
    }
    .bubble {
        width: 25px;
        height: 25px;
        margin: 0;
        grid-row: span 2;
    }
    .advice a {
        grid-column: 2;
    }
    .explore {
        grid-template-columns: 1fr 1fr;
        gap: 17px;
        padding: 26px 0 35px;
    }
    .explore>div {
        grid-column: 1/-1;
    }
    .explore h2 {
        font-size: 28px;
        max-width: 24ch;
    }
    .explore h2 br {
        display: none;
    }
    .explore h2 br:after {
        content: ' ';
    }
    .explore p {
        margin-top: 9px;
        max-width: 52ch;
    }
    .explore-link img {
        aspect-ratio: 2;
    }
    .foot {
        flex-wrap: wrap;
        gap: 19px 35px;
    }
    .foot>div:first-child {
        width: 100%;
    }
    .inner {
        padding: 18px 0 35px;
    }
    .crumb {
        margin-bottom: 23px;
    }
    .cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 24px 15px;
    }
    .card h2 {
        font-size: 19px;
    }
    .program-top,.contact-layout,.team {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .program-cover {
        max-height: 350px;
    }
    .evidence {
        gap: 25px;
    }
    .testimonial {
        padding: 20px 3px;
    }
    .intro {
        margin-top: 13px;
    }
    .catalog-filter {
        gap: 10px;
    }
    .catalog-filter label {
        flex: 1 1 180px;
    }
    .direct {
        margin-top: 20px;
    }
    .foot .small img {
        width: 36px;
    }
}

@media(max-width:430px) {
    .wrap {
        width: calc(100% - 28px);
    }
    .brand span {
        font-size: 12px;
        letter-spacing: .2em;
    }
    .brand img {
        width: 38px;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .explore {
        gap: 16px 12px;
    }
    .nav-cta {
        font-size: 11px;
    }
    .foot {
        font-size: 13px;
    }
    .program-top h1,.contact-layout h1,.video-single h1 {
        font-size: 40px;
    }
}

