.odbornici {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* Základní grid bez carouselu */
.odbornici-grid:not(.odbornici-carousel) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Pro Owl Carousel - resetujeme grid */
.odbornici-grid.odbornici-carousel {
    display: block;
}

.odbornici-grid .inner {
    display: flex;
    flex-direction: column;
}

.odbornici-grid .item {
    padding: var(--padding-16);
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    text-align: center;
    border-radius: var(--radius-m);
    overflow: hidden; /* #37 (přesun z audit-fixes 2026-09-08); bg/radius už zde byly */
    /*max-width: 286px;*/
}

.lektori .item {
    padding: var(--padding-24);
    max-width: 392px;
}

.odbornici-grid .item h3 {
    margin-bottom: 0;
}

.odbornici-grid .title {
    font-weight: 700;
    font-style: Bold;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--text-positive-primary, #022930);
}

.odbornici-grid .popis {
    padding-bottom: 16px;

    font-weight: 500;
    font-style: Medium;
    font-size: 0.75rem;
    leading-trim: NONE;
    line-height: 160%;
    letter-spacing: 2%;
    text-align: center;
    color: var(--text-positive-secondary, #52525B);
}

.odbornici-grid .item .kontakt {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.lektori .header {
    gap: 16px;
    display: flex;
    align-items: center;
}

.lektori .content {
    max-height: 260px;
    /*margin-bottom: 20px;*/
    overflow-y: hidden;
    position: relative;
}

.lektori .is-expanded .content {
    max-height: none;
    overflow-y: inherit;
}

.lektori .content:after {
    content: " ";
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    display: block;
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: 0;
}

.lektori .is-expanded .content:after {
    content: inherit;
}

.lektori .popis {
    font-family: Plus Jakarta Sans;
    font-weight: 450;
    font-style: regular;
    font-size: 1rem;
    leading-trim: NONE;
    line-height: 160%;
    letter-spacing: 0%;
    text-align: left;
    margin: 0;
    padding: 0;
}

.lektori .item .kontakt {
    align-items: flex-start;
}

.odbornici-grid .item .image {
    margin-bottom: 16px;
}

.odbornici-grid .item .image img {
    display: inline-block;
	border-radius: 100px;
    width: 96px;
    height: 96px;    
}

.lektori .item .image img {
    width: 64px;
    height: 64px;
}

/* Karusel LEKTORŮ (.lektori, Figma 2196:38358): kulatý avatar 64×64. Ve flex
   hlavičce karty (.header) se avatar zmenšoval (flex-shrink:1 → 56×64) a
   object-fit:fill roztahoval čtvercové foto do ovalu. Fixujeme velikost (nesmí
   se zmenšovat) a object-fit:cover pro nezkreslený ořez do kruhu.
   POZOR: scopováno na `.lektori` — sekce „Lidé" (.odbornici-grid bez .lektori)
   má vlastní 96px avatar (viz .odbornici-grid výše), nesmí ji to přepsat. */
.lektori .item .image {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    min-width: 64px;
}

.lektori .item .image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.odbornici-grid-kontakt {
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: center;
}

.odbornici-email,
.odbornici-telefon {
    padding-left: 30px;
    height: 22px;

    background-repeat: no-repeat;
    background-position: 0 50%;

    font-family: Plus Jakarta Sans;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 1rem;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--button-tertiary-tertiary-bglight-default, #008C9D);
}

.lektori .odbornici-email,
.lektori .odbornici-telefon {
    text-align: left;
}

.lektori .kontakt {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.odbornici-email {
    padding-left: 30px;
    color: var(--button-tertiary-tertiary-bglight-default, #008C9D);

    background-repeat: no-repeat;
    background-position: 0 50%;
    background-image: url("data:image/svg+xml;utf8,<svg width='23' height='22' viewBox='0 0 23 22' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M3.25 7.33334L11.0528 11.2347C11.3343 11.3755 11.6657 11.3755 11.9472 11.2347L19.75 7.33334M3.25 6.41667V15.5833C3.25 16.5959 3.98873 17.4167 4.9 17.4167H18.1C19.0113 17.4167 19.75 16.5959 19.75 15.5833V6.41667C19.75 5.40415 19.0113 4.58334 18.1 4.58334H4.9C3.98873 4.58334 3.25 5.40415 3.25 6.41667Z' stroke='%23008C9D' stroke-width='1.5' stroke-linecap='round'/></svg>");
}

.odbornici-telefon {
    padding-left: 30px;
    color: var(--button-tertiary-tertiary-bglight-default, #008C9D);

    background-repeat: no-repeat;
    background-position: 0 50%;
    background-image: url("data:image/svg+xml;utf8,<svg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M16.6082 13.4768L12.8332 14.2083C10.2833 12.9285 8.70819 11.4583 7.79153 9.16667L8.49732 5.38074L7.16317 1.83334L3.89645 1.83334C2.7689 1.83334 1.88107 2.76322 2.0576 3.87686C2.46693 6.45914 3.62476 10.9582 6.87486 14.2083C10.2883 17.6218 15.1725 19.1444 17.9712 19.7718C19.1343 20.0326 20.1665 19.1242 20.1665 17.9321L20.1665 14.8328L16.6082 13.4768Z' stroke='%23008C9D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* Wrapper: zarovnání ovládání pod karuselem */
.odbornici-carousel .owl-nav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    width: 400px;
    margin: 48px auto 0 auto;
}

/* ===========================================================================
   KARTA LIDÉ GAMINU (.odbornici .item + .odbornici-carousel .item) — přesunuto
   z audit-fixes (#16 gap + karta border/popis/kontakt). Konsolidace 2026-09-07.
   =========================================================================== */
.odbornici-grid .item .kontakt,
.odbornici-carousel .item .kontakt {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Karta Lidé Gaminu — Figma 1002:6476: 286×291, 1px rámeček. */
.odbornici .item,
.odbornici-carousel .item {
    border: 1px solid var(--border-primary-solid, #E2E2E5);
}

.odbornici .item .popis,
.odbornici-carousel .item .popis {
    padding-bottom: 0;
}

.odbornici .item .popis > p:last-child,
.odbornici-carousel .item .popis > p:last-child {
    margin-bottom: 0;
}

.odbornici .item .kontakt,
.odbornici-carousel .item .kontakt {
    margin-bottom: 0;
}

/* ===========================================================================
   #57 / A4 — Lidé Gaminu carousel na MOBILU (přesun z audit-fixes 2026-09-08).
   Komplementární k desktop .owl-nav výše (@213): na mobilu skryj šipky, dots
   zobraz vycentrované. Šířku karet počítá Owl podle `items` (js/custom.js
   owlCarousel override) — ZDE nikdy nenastavovat .owl-item width (rozbije stage).
   =========================================================================== */
@media (max-width: 767.98px) {
    .odbornici-carousel .owl-nav {
        display: none !important;
    }

    .odbornici-carousel .owl-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
    }
}

/* max-width reset karty na mobilu — přesun z responsive.css @768 (konsolidace 2026-09-08) */
@media (max-width: 768px) {
    .odbornici-grid .item {
        max-width: inherit;
    }
}
