/*
 * Nová homepage — větev sandbox/novy-design-zaklad, 27. 10. 2026.
 *
 * Vzhled podle návrhu „Nový web mujdum.cz“ (board Main), design systém
 * Můj dům Analytics: proměnné --md-* z assets/md-tokens.css.
 * Šablony: front-page.php + templates/homepage-novy/*.php.
 *
 * Ruční CSS bez buildu. Markup stojí MIMO .uwtail, takže na něj nesahají
 * Tailwind preflight ani globální museosans pravidlo z header-footer.css.
 * Uvnitř .uwtail zůstaly jen stávající bannerové pozice (řada square bannerů,
 * partneři webu), které si nesou vlastní styl v homepage-banners.css.
 */

/* ---------- základ ---------- */

.mdkk-hp {
    display: block;
    background: var(--md-bg);
    color: var(--md-ink);
    font-family: var(--md-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

.mdkk-hp :where(h1, h2, h3, p, ul, ol, figure) {
    margin: 0;
}

.mdkk-hp :where(ul, ol) {
    padding: 0;
    list-style: none;
}

.mdkk-hp img {
    display: block;
    max-width: 100%;
}

.mdkk-hp a {
    color: var(--md-accent-text);
    text-decoration: none;
}

.mdkk-hp a:hover {
    color: var(--md-accent);
}

.mdkk-hp button,
.mdkk-hp input {
    font: inherit;
}

.mdkk-hp [hidden] {
    display: none !important;
}

.mdkk-hp .mdkk-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mdkk-hp__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

@media (max-width: 640px) {
    .mdkk-hp__inner {
        gap: 44px;
        padding: 16px;
    }
}

.mdkk-hp .uwtail .mdkk-hp-banner-row,
.mdkk-hp .uwtail .mdkk-hp-partners {
    margin: 8px auto;
}

/* Karta jako odkaz: název zkorálovatí */
.mdkk-hp a.mdkk-hp-card-link,
.mdkk-hp a.mdkk-hp-card-link:hover,
.mdkk-hp a.mdkk-hp-card-title {
    color: var(--md-ink);
}

.mdkk-hp-card-link:hover .mdkk-hp-card-title,
.mdkk-hp .mdkk-hp-card-link a.mdkk-hp-card-title:hover {
    color: var(--md-accent-text);
}

.mdkk-hp-card-title {
    color: var(--md-ink);
    font-weight: 600;
    line-height: 1.3;
    transition: color .15s ease;
}

.mdkk-hp small {
    color: var(--md-muted);
    font-size: 12.5px;
}

/* ---------- nadpisy sekcí ---------- */

.mdkk-hp-sec {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mdkk-hp-sec__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.mdkk-hp-sec__intro {
    max-width: 640px;
}

.mdkk-hp-sec__eyebrow {
    color: var(--md-muted);
    font-size: 12.5px;
    font-weight: 500;
}

.mdkk-hp-sec__title {
    margin-top: 4px !important;
    color: var(--md-ink);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.1;
}

.mdkk-hp-sec__title--sm {
    font-size: 28px;
    line-height: 1.15;
}

.mdkk-hp-sec__lead {
    margin-top: 8px !important;
    color: var(--md-muted);
    font-size: 17px;
}

.mdkk-hp-sec__more {
    font-weight: 600;
}

.mdkk-hp-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.mdkk-hp-sub h3 {
    font-size: 19px;
    font-weight: 600;
}

.mdkk-hp-sub a {
    font-size: 14px;
    font-weight: 600;
}

/* ---------- tlačítka, pilulky ---------- */

.mdkk-hp-btn,
.mdkk-hp a.mdkk-hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--md-radius-md);
    background: var(--md-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mdkk-hp-btn:hover,
.mdkk-hp a.mdkk-hp-btn:hover {
    background: var(--md-accent-text);
    color: #fff;
}

.mdkk-hp-btn-ghost,
.mdkk-hp a.mdkk-hp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid #c9cad3;
    border-radius: var(--md-radius-md);
    background: var(--md-surface);
    color: var(--md-ink);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.mdkk-hp-btn-ghost:hover,
.mdkk-hp a.mdkk-hp-btn-ghost:hover {
    border-color: var(--md-accent);
    color: var(--md-accent-text);
}

.mdkk-hp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mdkk-hp-center {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.mdkk-hp-pill,
.mdkk-hp a.mdkk-hp-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid var(--md-line);
    border-radius: 999px;
    background: var(--md-surface);
    color: var(--md-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}

.mdkk-hp-pill:hover {
    border-color: var(--md-ink);
}

.mdkk-hp-pill.is-active,
.mdkk-hp a.mdkk-hp-pill.is-active {
    border-color: var(--md-ink);
    background: var(--md-ink);
    color: #fff;
    font-weight: 600;
}

.mdkk-hp-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.mdkk-hp-scroll::-webkit-scrollbar {
    display: none;
}

.mdkk-hp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--md-ink);
    font-size: 12px;
    font-weight: 700;
}

.mdkk-hp-play {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(20, 20, 26, .72);
}

.mdkk-hp-play--big {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: 56px;
    height: 56px;
    background: var(--md-accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%);
}

.mdkk-hp-play--coral {
    width: 40px;
    height: 40px;
    background: var(--md-accent);
}

.mdkk-hp-grid {
    display: grid;
    gap: 20px;
}

.mdkk-hp-grid--4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ---------- úvod s vyhledáváním ---------- */

.mdkk-hp-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 600px;
    overflow: hidden;
    border-radius: var(--md-radius-xl);
    background: var(--md-ink);
}

.mdkk-hp-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}

.mdkk-hp-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 20, 26, .72) 0%, rgba(20, 20, 26, .45) 55%, rgba(20, 20, 26, .2) 100%);
}

.mdkk-hp-hero__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 860px;
    padding: 40px;
}

.mdkk-hp-hero__title {
    color: #fff;
    font-size: clamp(34px, 4.6vw, 52px);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.05;
}

.mdkk-hp-hero__lead {
    max-width: 600px;
    color: #fff;
    font-size: 17px;
}

.mdkk-hp-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    color: #fff;
    font-size: 13px;
}

.mdkk-hp-hero__stats strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.mdkk-hp a.mdkk-hp-hero__credit {
    position: absolute;
    right: 16px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    font-size: 12px;
    opacity: .9;
}

.mdkk-hp-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 20, 26, .25);
}

.mdkk-hp-search__modes {
    display: flex;
    align-self: flex-start;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--md-bg);
}

.mdkk-hp-search__modes button {
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--md-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.mdkk-hp-search__modes button[aria-selected="true"] {
    background: #fff;
    color: var(--md-ink);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(30, 30, 40, .12);
}

.mdkk-hp-search__form {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 6px 0 14px;
    border: 1px solid var(--md-line);
    border-radius: 12px;
    background: var(--md-surface-2);
}

.mdkk-hp-search__form svg {
    flex-shrink: 0;
}

.mdkk-hp-search__form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--md-ink);
    font-size: 17px;
}

.mdkk-hp-search__form input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.mdkk-hp-search__form button {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--md-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mdkk-hp-search__form button:hover {
    background: var(--md-accent-text);
}

.mdkk-hp-search__chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 4px 4px;
}

.mdkk-hp-search__chips-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.mdkk-hp-search__chips-head strong {
    font-size: 13px;
}

.mdkk-hp-search__chips-head span {
    color: var(--md-muted);
    font-size: 12.5px;
}

.mdkk-hp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mdkk-hp a.mdkk-hp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--md-line);
    border-radius: 999px;
    background: #fff;
    color: var(--md-ink);
    font-size: 14px;
}

.mdkk-hp a.mdkk-hp-chip:hover {
    border-color: var(--md-accent);
}

.mdkk-hp-chip span,
.mdkk-hp-search__legend i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--md-accent);
}

.mdkk-hp-chip.is-house span,
.mdkk-hp-search__legend i.is-house {
    background: var(--md-ink);
}

.mdkk-hp-search__legend {
    display: flex;
    gap: 14px;
    color: var(--md-muted);
    font-size: 12px;
}

@media (max-width: 640px) {
    .mdkk-hp-hero {
        min-height: 0;
        border-radius: var(--md-radius-lg);
    }

    .mdkk-hp-hero__body {
        padding: 120px 14px 40px;
    }

    .mdkk-hp-search__form {
        padding-left: 10px;
    }

    .mdkk-hp-search__form input {
        font-size: 16px;
    }

    .mdkk-hp-search__form button {
        padding: 0 14px;
    }

    .mdkk-hp-hero__stats {
        gap: 18px;
    }

    .mdkk-hp a.mdkk-hp-hero__credit {
        left: 14px;
        right: 14px;
        font-size: 11px;
    }
}

/* ---------- nápady podle místnosti ---------- */

.mdkk-hp-rooms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.mdkk-hp-room {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mdkk-hp-room img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 4px;
    object-fit: cover;
    border-radius: var(--md-radius-lg);
    background: #e4e5ea;
}

.mdkk-hp-room .mdkk-hp-card-title {
    font-size: 15px;
    text-align: center;
}

.mdkk-hp-room small {
    margin-top: -4px;
}

@media (max-width: 640px) {
    .mdkk-hp-rooms {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* ---------- experti ---------- */

.mdkk-hp-shorts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 200px);
    gap: 14px;
}

.mdkk-hp-short,
.mdkk-hp-feed__short {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mdkk-hp-short__img {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: var(--md-radius-lg);
    background: var(--md-ink);
}

.mdkk-hp-short__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mdkk-hp-short .mdkk-hp-card-title {
    font-size: 15px;
}

.mdkk-hp-episode {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mdkk-hp-episode__img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--md-radius-lg);
    background: #e4e5ea;
}

.mdkk-hp-episode__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mdkk-hp-episode .mdkk-hp-card-title {
    font-size: 17px;
}

/* ---------- domy od architektů (mozaika) ---------- */

.mdkk-hp-masonry {
    columns: 300px;
    column-gap: 20px;
}

.mdkk-hp-masonry--sm {
    columns: 240px;
}

.mdkk-hp-masonry > * {
    display: block;
    break-inside: avoid;
    margin: 0 0 20px;
}

.mdkk-hp-house img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--md-radius-lg);
    background: #e4e5ea;
}

/* různé výšky fotek dělají mozaiku — opakuje se po čtyřech */
.mdkk-hp-house__img--0 { aspect-ratio: 4 / 5; }
.mdkk-hp-house__img--1 { aspect-ratio: 4 / 3; }
.mdkk-hp-house__img--2 { aspect-ratio: 1 / 1; }
.mdkk-hp-house__img--3 { aspect-ratio: 3 / 2; }

.mdkk-hp-house .mdkk-hp-card-title {
    display: block;
    padding-top: 10px;
    font-size: 17px;
}

.mdkk-hp-house small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

/* ---------- firmy ---------- */

.mdkk-hp-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius-xl);
    background: var(--md-surface);
    box-shadow: var(--md-shadow-card);
}

.mdkk-hp-trades {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.mdkk-hp a.mdkk-hp-trade {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--md-line);
    border-radius: 12px;
    background: var(--md-surface-2);
    color: var(--md-ink);
    font-size: 14px;
    font-weight: 500;
}

.mdkk-hp a.mdkk-hp-trade:hover {
    border-color: var(--md-coral);
}

.mdkk-hp-trade > span {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--md-accent-soft);
}

.mdkk-hp-firm {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius-lg);
}

.mdkk-hp-firm.is-more {
    display: none;
}

.mdkk-hp-firms.is-open .mdkk-hp-firm.is-more {
    display: flex;
}

.mdkk-hp-firm__photo {
    display: block;
    height: 150px;
    background: #e4e5ea;
}

.mdkk-hp-firm__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mdkk-hp-firm__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.mdkk-hp-firm__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mdkk-hp-firm__logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    padding: 4px;
    border: 1px solid var(--md-line);
    border-radius: 10px;
    background: #fff;
    color: var(--md-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mdkk-hp-firm__logo img {
    max-height: 100%;
    object-fit: contain;
}

.mdkk-hp-firm h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.mdkk-hp-firm h3 a {
    color: var(--md-ink);
}

.mdkk-hp-firm h3 a:hover {
    color: var(--md-accent-text);
}

.mdkk-hp-firm__head p {
    color: var(--md-muted);
    font-size: 13px;
}

.mdkk-hp-firm__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.mdkk-hp-firm__rating span {
    color: var(--md-muted);
}

.mdkk-hp a.mdkk-hp-firm__cta {
    display: block;
    margin-top: auto;
    padding: 11px;
    border: 1px solid var(--md-accent);
    border-radius: var(--md-radius-md);
    color: var(--md-accent-text);
    font-weight: 600;
    text-align: center;
}

.mdkk-hp a.mdkk-hp-firm__cta:hover {
    background: var(--md-accent-soft);
}

/* ---------- rady a návody ---------- */

.mdkk-hp-phases li {
    flex-shrink: 0;
}

.mdkk-hp-phases a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--md-line);
    border-radius: 999px;
    background: #fff;
    color: var(--md-ink);
    font-size: 14px;
    font-weight: 500;
}

.mdkk-hp-phases a:hover {
    border-color: var(--md-coral);
    color: var(--md-ink);
}

.mdkk-hp-phases a span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--md-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.mdkk-hp-formats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mdkk-hp-formats > span {
    margin-right: 4px;
    color: var(--md-muted);
    font-size: 13px;
}

.mdkk-hp-formats .mdkk-hp-pill {
    padding: 6px 14px;
}

.mdkk-hp-article {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius-lg);
    background: var(--md-surface);
    box-shadow: var(--md-shadow-card);
}

.mdkk-hp-article.is-hidden,
.mdkk-hp-advice:not(.is-filtered) .mdkk-hp-article:nth-child(n+9) {
    display: none;
}

.mdkk-hp-article__img {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: #e4e5ea;
}

.mdkk-hp-article__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mdkk-hp-article__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.mdkk-hp-article h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.mdkk-hp-article p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--md-muted);
    font-size: 14px;
}

/* ---------- domy na klíč ---------- */

.mdkk-hp-turnkey {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    gap: 20px;
}

.mdkk-hp-tk {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mdkk-hp-tk img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--md-radius-lg);
    background: #e4e5ea;
}

.mdkk-hp-tk .mdkk-hp-card-title {
    font-size: 17px;
}

.mdkk-hp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mdkk-hp-tags span {
    padding: 2px 10px;
    border: 1px solid var(--md-line);
    border-radius: 999px;
    background: #fff;
    color: var(--md-muted);
    font-size: 13px;
}

.mdkk-hp-tags .is-price {
    border-color: var(--md-accent-soft);
    background: var(--md-accent-soft);
    color: var(--md-ink);
    font-weight: 700;
}

/* ---------- klub ---------- */

.mdkk-hp-klub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--md-radius-xl);
    background: var(--md-coral);
    box-shadow: 0 10px 30px rgba(252, 87, 92, .30);
}

.mdkk-hp-klub__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-column: 1 / -1;
}

.mdkk-hp-klub__head p {
    color: var(--md-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* počet členů klubu (HP 4. 11. 2026) */
.mdkk-hp-klub__head p.mdkk-hp-klub__count {
    margin-top: 6px;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}

.mdkk-hp-klub__head p.mdkk-hp-klub__count strong {
    color: #fff;
    font-weight: 700;
}

.mdkk-hp-klub__head h2 {
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.1;
}

.mdkk-hp-tier {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
}

.mdkk-hp-tier__eyebrow {
    color: var(--md-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.mdkk-hp-tier h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.mdkk-hp-tier li {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 15px;
}

.mdkk-hp-tier .is-yes {
    color: var(--md-good);
    font-weight: 700;
}

.mdkk-hp-tier li.is-no {
    color: var(--md-muted);
}

.mdkk-hp-tier__form label {
    display: block;
    margin: 4px 0 6px;
    font-size: 14px;
    font-weight: 600;
}

.mdkk-hp-tier__form div {
    display: flex;
    gap: 8px;
}

.mdkk-hp-tier__form input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #c9cad1;
    border-radius: 12px;
    background: #fff;
    color: var(--md-ink);
    font-size: 16px;
}

.mdkk-hp-tier__form button {
    height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--md-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mdkk-hp-tier__note {
    color: var(--md-muted);
    font-size: 12.5px;
}

.mdkk-hp-tier__note a {
    color: var(--md-ink);
    font-weight: 600;
}

.mdkk-hp-tier--vip {
    background: var(--md-ink);
    color: #fff;
}

.mdkk-hp-tier--vip .mdkk-hp-tier__eyebrow,
.mdkk-hp-tier--vip li span {
    color: var(--md-coral);
}

.mdkk-hp-tier--vip li span {
    font-weight: 700;
}

.mdkk-hp-tier--vip .mdkk-hp-tier__note {
    color: rgba(255, 255, 255, .7);
}

.mdkk-hp .mdkk-hp-tier__cta {
    margin-top: auto;
    min-height: 50px;
}

@media (max-width: 760px) {
    .mdkk-hp-klub {
        grid-template-columns: 1fr;
    }

    .mdkk-hp-tier__form div {
        flex-direction: column;
    }
}

/* ---------- pro firmy + časopis ---------- */

.mdkk-hp-duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.mdkk-hp-duo .mdkk-hp-panel {
    gap: 12px;
}

.mdkk-hp-duo .mdkk-hp-sec__lead {
    font-size: 15px;
}

.mdkk-hp-duo .mdkk-hp-actions {
    margin-top: 6px;
}

.mdkk-hp-mag {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px !important;
}

.mdkk-hp-mag__cover {
    flex-shrink: 0;
    width: 150px;
}

.mdkk-hp-mag__cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(30, 30, 40, .15);
}

.mdkk-hp-mag > div {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 400px) {
    .mdkk-hp-duo {
        grid-template-columns: 1fr;
    }
}

/* ---------- pokračujte v objevování ---------- */

.mdkk-hp-feed > .is-more {
    display: none;
}

.mdkk-hp-feed__short .mdkk-hp-card-title,
.mdkk-hp-feed__house .mdkk-hp-card-title {
    display: block;
    padding-top: 8px;
    font-size: 15px;
}

.mdkk-hp-badge--top {
    top: 10px;
    left: 10px;
}

.mdkk-hp-feed__house img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--md-radius-lg);
    background: #e4e5ea;
}

.mdkk-hp-feed__house small {
    display: block;
    padding-top: 8px;
}

.mdkk-hp-feed__house small + .mdkk-hp-card-title {
    padding-top: 0;
}

.mdkk-hp-feed__article {
    overflow: hidden;
    border: 1px solid var(--md-line);
    border-radius: var(--md-radius-lg);
    background: #fff;
}

.mdkk-hp-feed__article img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #e4e5ea;
}

.mdkk-hp-feed__body {
    display: block;
    padding: 12px 14px 14px;
}

.mdkk-hp-feed__body small {
    display: block;
}

.mdkk-hp-feed__body .mdkk-hp-card-title {
    font-size: 16px;
}

.mdkk-hp-feed__room {
    position: relative;
    overflow: hidden;
    border-radius: var(--md-radius-lg);
}

.mdkk-hp-feed__room img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #e4e5ea;
}

.mdkk-hp-feed__room span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--md-ink);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- mobil: dlouhé seznamy jako vodorovný posun ---------- */

@media (max-width: 640px) {
    .mdkk-hp-sec .mdkk-hp-grid--4:not(.mdkk-hp-advice):not(.mdkk-hp-firms) {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        grid-template-columns: none;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 14px;
    }

    .mdkk-hp-advice:not(.is-filtered) .mdkk-hp-article:nth-child(n+5) {
        display: none;
    }

    .mdkk-hp-turnkey {
        grid-auto-columns: 78%;
    }

    /* Domy od architektů: na mobilu prvních pět, zbytek přes „Zobrazit další domy“ */
    .mdkk-hp-masonry:not(.mdkk-hp-feed) > :nth-child(n+6) {
        display: none;
    }
}


/* ---------- Přehrávač krátkých odpovědí v okně (assets/studio.js) ---------- */

.studio-player {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    overflow: visible;
}

.studio-player::backdrop {
    background: rgba(0, 0, 0, .85);
}

.studio-player__inner {
    position: relative;
    display: grid;
    grid-template-columns: 44px auto 44px;
    align-items: center;
    gap: 12px 16px;
    padding: 52px 16px 16px;
    font-family: var(--md-font);
}

.studio-player__frame {
    width: min(360px, calc(100vw - 32px), calc((100vh - 140px) * 9 / 16));
    aspect-ratio: 9 / 16;
    border-radius: var(--md-radius-lg);
    overflow: hidden;
    background: #000;
}

.studio-player__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.studio-player__close,
.studio-player__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    cursor: pointer;
}

.studio-player__close svg,
.studio-player__nav svg {
    width: 22px;
    height: 22px;
}

.studio-player__close:hover,
.studio-player__nav:hover {
    background: rgba(255, 255, 255, .3);
}

.studio-player__close {
    position: absolute;
    top: 0;
    right: 16px;
}

.studio-player__nav[disabled] {
    opacity: .3;
    cursor: default;
}

.studio-player__footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    font-size: 13px;
}

.studio-player__title {
    font-weight: 700;
}

.studio-player__external {
    color: #fff;
    text-decoration: underline;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .studio-player__inner {
        grid-template-columns: 1fr;
        padding: 52px 8px 8px;
    }

    .studio-player__nav {
        display: none;
    }
}


/* ---------- Přehrávač shortů: mobil (HP 27. 10. 2026) ----------
 * Okno přes celou obrazovku, křížek vždy viditelný vpravo nahoře, video se
 * vejde do skutečně viditelné výšky (svh/dvh — bez lišt prohlížeče). */
.studio-player__frame {
    width: min(360px, calc(100vw - 32px), calc((100vh - 150px) * 9 / 16));
    width: min(360px, calc(100vw - 32px), calc((100svh - 150px) * 9 / 16));
}

@media (max-width: 640px) {
    .studio-player {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        margin: 0;
        background: #000;
    }

    /* video, pod ním šipky předchozí/další, pod nimi název */
    .studio-player__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "frame frame" "prev next" "foot foot";
        align-content: center;
        justify-items: center;
        gap: 12px 18px;
        box-sizing: border-box;
        height: 100%;
        padding: calc(60px + env(safe-area-inset-top, 0px)) 10px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .studio-player__frame {
        grid-area: frame;
        width: min(calc(100vw - 20px), calc((100vh - 210px) * 9 / 16));
        width: min(calc(100vw - 20px), calc((100dvh - 210px) * 9 / 16));
        border-radius: 14px;
    }

    .studio-player__close {
        position: fixed;
        top: calc(10px + env(safe-area-inset-top, 0px));
        right: 10px;
        z-index: 3;
        background: rgba(255, 255, 255, .22);
    }

    .studio-player__nav {
        display: flex;
        width: 52px;
        height: 52px;
    }

    .studio-player__nav--prev {
        grid-area: prev;
        justify-self: end;
    }

    .studio-player__nav--next {
        grid-area: next;
        justify-self: start;
    }

    .studio-player__footer {
        grid-area: foot;
        width: min(calc(100vw - 20px), 420px);
        align-items: flex-start;
    }
}


/* ---------- Krátké odpovědi: listování a dočítání (HP 27. 10. 2026) ---------- */

.mdkk-hp-shorts-wrap {
    position: relative;
}

.mdkk-hp-shorts {
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.mdkk-hp-shorts > .mdkk-hp-short {
    scroll-snap-align: start;
}

.mdkk-hp-shorts-arrow {
    position: absolute;
    top: 170px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--md-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 33, 40, .16);
    color: var(--md-ink);
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity .15s ease, border-color .15s ease;
}

.mdkk-hp-shorts-arrow:hover {
    border-color: var(--md-accent);
    color: var(--md-accent-text);
}

.mdkk-hp-shorts-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

.mdkk-hp-shorts-arrow--prev {
    left: -18px;
}

.mdkk-hp-shorts-arrow--next {
    right: -18px;
}

.mdkk-hp-shorts-more {
    padding-top: 22px;
}

.mdkk-hp-shorts-more [aria-busy="true"] {
    opacity: .6;
    cursor: progress;
}

@media (max-width: 767px), (pointer: coarse) {
    .mdkk-hp-shorts-arrow {
        display: none;
    }
}


/* Celé rozhovory: náhled celý, bez ořezu (HP 27. 10. 2026) */
.mdkk-hp-episode__img {
    background: var(--md-ink);
}

.mdkk-hp-episode__img img {
    object-fit: contain;
}

/* tlačítko přehrát do rohu, ať nezakrývá text v náhledu */
.mdkk-hp-episode .mdkk-hp-play--big {
    left: 10px;
    top: auto;
    bottom: 10px;
    width: 40px;
    height: 40px;
    transform: none;
}


/* Celé rozhovory: řádek se šipkami a dočítáním (HP 27. 10. 2026) */
.mdkk-hp-rail {
    position: relative;
}

.mdkk-hp-episodes {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 20px) / 4);
    gap: 20px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.mdkk-hp-episodes > .mdkk-hp-episode {
    scroll-snap-align: start;
}

.mdkk-hp-episodes-wrap .mdkk-hp-shorts-arrow {
    top: 84px;
}

@media (max-width: 1023px) {
    .mdkk-hp-episodes {
        grid-auto-columns: calc((100% - 20px) / 2.3);
    }
}

@media (max-width: 640px) {
    .mdkk-hp-episodes {
        grid-auto-columns: 82%;
        gap: 14px;
    }
}


/* Rady a návody: díly Experti Můj dům — náhled videa celý, bez ořezu
   (HP 27. 10. 2026: videa nikde neořezávat) */
.mdkk-hp-article--video .mdkk-hp-article__img {
    background: var(--md-ink);
}

.mdkk-hp-article--video .mdkk-hp-article__img img {
    object-fit: contain;
}


/* Okno přehrávače: odkaz z krátké odpovědi na celý rozhovor (HP 27. 10. 2026) */
.studio-player__episode {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: #1f2128 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.studio-player__episode:hover {
    background: var(--md-accent, #d63c42);
    color: #fff !important;
}

.studio-player__episode[hidden] {
    display: none;
}

/* Úvod: otázky stavebníků na mobilu v jednom posuvném řádku (HP 2. 11. 2026) */
@media (max-width: 767px) {
    .mdkk-hp-search__chips .mdkk-hp-chips { flex-wrap: nowrap; margin-right: -12px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
    .mdkk-hp-search__chips .mdkk-hp-chips::-webkit-scrollbar { display: none; }
    .mdkk-hp-search__chips .mdkk-hp-chip { flex: 0 0 auto; white-space: nowrap; }
}

/* ---------- Infoservis: karusel placených prezentací firem (HP 4. 11. 2026) ---------- */

.mdkk-hp-infoservis {
    background: #f6f3ee;
    border-radius: var(--md-radius-lg);
    padding: 28px 28px 32px;
}

.mdkk-hp-infoservis-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 20px) / 4);
    gap: 20px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.mdkk-hp-infoservis-row > .mdkk-hp-info {
    scroll-snap-align: start;
}

.mdkk-hp-info {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--md-radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20, 22, 30, .06);
}

.mdkk-hp-info__img {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: #e4e5ea;
}

.mdkk-hp-info__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mdkk-hp-info__ad {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #4a4d57;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

.mdkk-hp-info__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.mdkk-hp-info__firm {
    color: var(--md-accent-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mdkk-hp-info .mdkk-hp-card-title {
    font-size: 16px;
}

.mdkk-hp-info__perex {
    color: #5b5e69;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mdkk-hp-info small {
    color: var(--md-muted);
    font-size: 12.5px;
}

.mdkk-hp-infoservis-wrap .mdkk-hp-shorts-arrow {
    top: 90px;
}

@media (max-width: 1023px) {
    .mdkk-hp-infoservis-row {
        grid-auto-columns: calc((100% - 20px) / 2.3);
    }
}

@media (max-width: 640px) {
    .mdkk-hp-infoservis {
        padding: 22px 16px 24px;
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
    }

    .mdkk-hp-infoservis-row {
        grid-auto-columns: 78%;
        gap: 14px;
    }
}
