/* dobludiste.cz — veřejný web (moderní UI) */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400..700;1,400..700&display=swap");

:root {
    --ink: #0b1220;
    --ink-soft: #1e293b;
    --fg: #0f172a;
    --fg-soft: #334155;
    --muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --surface: #ffffff;
    --brand: #2563eb;
    --brand-bright: #3b82f6;
    --brand-dark: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.1);
    --accent-line: #fbbf24;
    --ok: #059669;
    --err: #dc2626;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --content-max: min(1280px, calc(100vw - 2rem));
    --header-h: 4rem;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: #ffffff;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #ffffff;
    background-image: none;
    color: var(--fg);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

/* Veřejné stránky — čisté bílé plátno (bez šedého nádechu z blur / stínů) */
body.is-public {
    background-color: #ffffff;
    background-image: none;
}

body.is-public .site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.is-public .site-footer {
    background: #ffffff;
    box-shadow: none;
}

a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Rozvržení --- */
.wrap {
    width: 100%;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.wrap.narrow {
    max-width: 920px;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Horní lišta --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.site-header-bar {
    min-height: var(--header-h);
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (max-width: 900px) {
    .site-header-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand nav"
            "search search";
    }

    .site-header-inner .brand {
        grid-area: brand;
    }

    .site-header-inner .site-nav {
        grid-area: nav;
        justify-self: end;
    }

    .site-header-inner .site-search {
        grid-area: search;
    }
}

.brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: var(--ink) !important;
    white-space: nowrap;
}

.brand:hover {
    color: var(--brand) !important;
    text-decoration: none;
}

.brand-suffix {
    font-weight: 700;
    color: var(--muted);
}

.site-search {
    display: flex;
    align-items: stretch;
    max-width: 32rem;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.site-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0.55rem 1rem;
    font: inherit;
    background: transparent;
    color: var(--fg);
}

.site-search-input:focus {
    outline: none;
}

.site-search:focus-within {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.site-search-btn {
    border: 0;
    padding: 0.5rem 1.1rem;
    background: linear-gradient(180deg, var(--brand-bright), var(--brand));
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.site-search-btn:hover {
    filter: brightness(1.05);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--fg-soft);
    font-weight: 600;
    font-size: 0.92rem;
}

.site-nav a:hover {
    background: var(--brand-soft);
    color: var(--brand);
    text-decoration: none;
}

.site-nav-secondary {
    font-size: 0.85rem !important;
    color: var(--muted) !important;
}

/* --- Hero (úvodní stránka) --- */
.page-hero--home {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 42%, #0c4a6e 100%);
    color: #f8fafc;
    padding: clamp(2.5rem, 7vw, 4.25rem) 0;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

/* Hero používá stejnou šířku jako zbytek stránky (.wrap → --content-max), bez zbytečného zužování */
.page-hero-kicker {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #bae6fd;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-hero--home a.page-hero-kicker:hover,
.page-hero--home a.page-hero-kicker:focus-visible {
    color: #0f172a;
    background: #e0f2fe;
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.page-hero--home a.page-hero-kicker:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 2px;
}

.page-hero--home h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4.2vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #fff;
}

.page-hero-lead {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(248, 250, 252, 0.88);
    max-width: none;
}

.page-main {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

.page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

/* --- Sekce homepage --- */
.page-section {
    padding-top: 0.5rem;
}

.section-head {
    margin-bottom: 1rem;
}

.section-head--spaced {
    margin-top: 2.75rem;
}

.section-head h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-desc {
    margin: 0;
}

.home-worst-strip {
    margin-top: 2.75rem;
}

.home-articles-more,
.home-kategorie-more {
    margin: 1.5rem 0 0;
    text-align: center;
}

/* Stejná šířka jako zbytek HP (.wrap); dříve max-width vytvářelo úzký sloupec vlevo */
.home-about-prose {
    font-size: 1.22rem;
    line-height: 1.72;
    color: var(--fg-soft);
}

.home-about-prose p {
    margin: 0 0 1rem;
}

.home-about-prose h3 {
    margin: 1.65rem 0 0.5rem;
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.home-about-prose h3:first-of-type {
    margin-top: 1.15rem;
}

.home-faq-list {
    max-width: none;
}

.home-faq-item {
    margin: 0 0 0.65rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.home-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
    list-style: none;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::after {
    content: "";
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.35rem;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.home-faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 0.45rem;
}

.home-faq-item p {
    margin: 0.75rem 0 0;
    font-size: 1.22rem;
    line-height: 1.72;
    color: var(--fg-soft);
}

.kategorie-tag-cloud {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

/* Přehled /kategorie — hashtagy vedle sebe (flex-wrap), ne jeden sloupec */
.page-kategorie-index .kategorie-tag-cloud.tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
    align-items: flex-start;
}

.page-kategorie-index .kategorie-tag-cloud.tags-inline li {
    margin: 0;
}

.page-kategorie-index .kategorie-tag-cloud.tags-inline a {
    margin: 0;
}

.kategorie-toolbar {
    margin: 0 0 1rem;
}

.kategorie-tag-filter {
    width: 100%;
    max-width: min(22rem, 100%);
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--surface);
    color: var(--fg);
    box-sizing: border-box;
}

.kategorie-tag-filter:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 1px;
    border-color: var(--brand);
}

.kategorie-filter-empty {
    margin: 0 0 0.75rem;
}

/* --- Drobečky --- */
.crumbs {
    font-size: 0.88rem;
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.crumbs a {
    color: var(--fg-soft);
    font-weight: 600;
}

.crumbs a:hover {
    color: var(--brand);
}

.crumbs-sep {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.crumbs-current {
    color: var(--fg-soft);
    font-weight: 600;
}

/* --- Karty --- */
.cards {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cards .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cards .card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Jen přímý odkaz obalující kartu (autor, starší seznamy) — ne odkazy uvnitř produktových karet */
.cards .card > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem;
    color: inherit;
    border-radius: var(--radius);
    min-height: 100%;
}

.cards .card > a:hover {
    text-decoration: none;
}

.cards .card strong {
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
}

/* Homepage — karty recenzí / článků jako produktová mřížka */
.cards--product {
    gap: 1.25rem;
}

@media (min-width: 1200px) {
    .cards--product {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/*
 * Hledání: stejné „produktové“ karty jako /recenze — pevná max. šířka sloupce (~22rem).
 * Dříve minmax(..., 1fr) při jednom výsledku roztáhlo kartu na celou stránku a 16:10 náhled
 * působil jako obří banner; omezením šířky sloupce zůstane kompaktní karta uprostřed.
 */
.page-search .search-hits.cards--product {
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 22rem));
    justify-content: center;
    margin-top: 1.25rem;
}

.cards--product .card--review-product,
.cards--product .card--article-product {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cards--product .card-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    padding: 0;
    color: var(--fg);
    text-decoration: none !important;
    border-radius: inherit;
}

.cards--product .card-product:hover {
    text-decoration: none !important;
}

.card-product-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
}

.card-product-head-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.cards--product .card-product-title {
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
}

.card-product-rating {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Logo může být širší než vysoké — nepevný čtverec */
.card-product-logo {
    flex: 0 1 auto;
    max-width: min(12rem, 52%);
    min-height: 2.75rem;
    max-height: 3.5rem;
    border-radius: var(--radius-sm, 10px);
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.55rem;
    box-sizing: border-box;
}

.card-product-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 3.1rem;
    object-fit: contain;
}

.card-product-logo--fallback {
    flex: 0 0 auto;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--muted);
    background: #f1f5f9;
    border: 1px solid var(--border);
}

.card-product-shot {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
}

.card-product-shot-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    margin: 0;
}

.card-product-shot-img--logo {
    object-fit: contain;
    padding: 0.65rem;
    background: #ffffff;
}

.card-product-shot-empty {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 7.5rem;
    background: #eef2f7;
}

.card-product-excerpt {
    margin: 0;
    padding: 0.75rem 1rem;
    flex: 1 1 auto;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--fg-soft);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-product-cta {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 0.55rem 1.1rem;
    align-self: flex-start;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    background: var(--brand);
    color: #fff !important;
    transition: filter 0.15s ease;
}

.cards--product .card:hover .card-product-cta {
    filter: brightness(1.06);
}

.card-product-cta--secondary {
    background: var(--ink-soft);
}

.card-product-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 1rem 0;
    flex: 1;
}

.card-product--article .card-product-shot {
    border-bottom: 1px solid var(--border);
}

.card-product-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-product-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.cards--articles .card-product-excerpt {
    padding-left: 0;
    padding-right: 0;
}

.cards--articles .card-product-cta {
    margin-left: 0;
}

.card-product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
    margin-top: auto;
}

.card-product-actions .card-product-cta {
    margin: 0;
}

.card-product--search .card-product-excerpt {
    padding-top: 0.5rem;
}

/* Hledání: stejná velikost a tvar „Do obchodu“ × „Otevřít recenzi“ */
.card-product--search .card-product-actions {
    align-items: stretch;
    gap: 0.65rem;
}

.card-product--search .card-product-actions .card-product-cta,
.card-product--search .card-product-actions .card-product-cta-review {
    flex: 1 1 10rem;
    margin: 0;
    min-height: 3.15rem;
    padding: 0.72rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.22rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
    transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.card-product--search .card-product-actions .card-product-cta {
    background: linear-gradient(180deg, var(--brand-bright), var(--brand));
    color: #fff !important;
    border: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32);
}

.card-product--search .card-product-actions .card-product-cta:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

.card-product--search .card-product-actions .card-product-cta-review {
    background: var(--surface);
    color: var(--ink) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.card-product--search .card-product-actions .card-product-cta-review:hover {
    border-color: var(--brand);
    color: var(--brand) !important;
    background: var(--brand-soft);
}

.card-product--search .card-product-actions .card-product-cta-review:active,
.card-product--search .card-product-actions .card-product-cta:active {
    transform: translateY(1px);
}

.card-product--search .card-product-actions > a:only-child {
    flex: 1 1 100%;
}

.card-elevated {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* --- Recenze --- */
.review-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1rem 0 1.25rem;
    margin-bottom: 1.35rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.review-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.35rem;
    width: 100%;
}

.review-hero-main {
    flex: 1 1 14rem;
    min-width: 0;
}

.review-hero-kicker {
    display: inline-block;
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    text-decoration: none;
    transition: color 0.15s ease;
}

a.review-hero-kicker:hover,
a.review-hero-kicker:focus-visible {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.review-hero-kicker:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.review-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #0f172a;
}

.review-hero-author {
    margin: 0 0 0.35rem;
}

.review-hero-meta {
    margin: 0 0 0.15rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.review-hero-author-note {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.review-hero-author-link {
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.review-hero-author-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.review-hero-rating {
    margin: 0.5rem 0 0;
}

.review-hero-brand {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    max-width: 11.5rem;
    min-width: 0;
}

.review-hero-logo-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.review-hero-logo-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.review-hero-logo {
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    align-self: stretch;
}

.review-hero-logo .logo,
.review-hero-logo-link .logo {
    display: block;
    max-width: min(220px, 100%);
    height: auto;
    border: 0;
    box-shadow: none;
}

/* Stejný vzhled jako Heureka CTA (.btn-heureka-cta); jen šířka v sloupci pod logem */
a.btn-heureka-cta.review-hero-shop-cta {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    font-size: 1.22rem;
}

/* Druhé CTA pod „Do obchodu“ — modré, stejný tvar jako zelené Heureka CTA */
a.review-hero-heureka-cta {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    margin-top: 0.45rem;
    padding: 0.72rem 1.5rem;
    border-radius: 8px;
    border: 0;
    background: linear-gradient(180deg, var(--brand-bright), var(--brand));
    color: #fff !important;
    font-weight: 700;
    font-size: 1.22rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

a.review-hero-heureka-cta:hover {
    color: #fff !important;
    text-decoration: none !important;
    filter: brightness(1.06);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

a.review-hero-heureka-cta:active {
    transform: translateY(1px);
}

.review-rating-highlight {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.75rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid #a7f3d0;
    background: linear-gradient(160deg, #ecfdf5 0%, #f7fef9 55%, #ffffff 100%);
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.08);
}

.review-rating-highlight__kicker {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #047857;
    line-height: 1.2;
}

.review-rating-highlight__pct-row {
    margin: 0;
    line-height: 1;
}

.review-rating-highlight__value {
    font-weight: 800;
    font-size: clamp(1.45rem, 3.8vw, 2rem);
    letter-spacing: -0.035em;
    color: var(--ok);
}

.review-rating-highlight__stars {
    margin: 0.3rem 0 0.35rem;
}

.review-rating-highlight__stars .comment-stars__star {
    font-size: 1.05rem;
}

.review-rating-highlight__count {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--fg-soft);
}

.review-rating-highlight__comments-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.review-rating-highlight__comments-link:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

.page-main--review {
    font-size: 1.22rem;
}

.page-main--review .review .body {
    font-size: 1.22rem;
    line-height: 1.72;
}

.review-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem 2.25rem;
    align-items: start;
}

.review-page-primary {
    min-width: 0;
}

.review-page-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.aside-widget {
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow-md);
}

.aside-widget-title {
    margin: 0 0 0.65rem;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.aside-widget-lead {
    margin: -0.35rem 0 0.65rem;
}

.aside-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.98rem;
    line-height: 1.45;
}

.aside-list li {
    margin: 0 0 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
}

.aside-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.aside-list--tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
}

.aside-list--tags li {
    margin: 0;
    padding: 0;
    border: 0;
}

.aside-list--tags a {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    font-size: 0.88rem;
    font-weight: 600;
}

.aside-list--articles li {
    margin: 0 0 1rem;
    padding: 0;
    border-bottom: 0;
}

.aside-list--articles li:last-child {
    margin-bottom: 0;
}

.aside-article-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-decoration: none !important;
    color: var(--brand) !important;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
}

.aside-article-card:hover .aside-article-title {
    color: var(--brand-dark) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aside-article-thumb {
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 16 / 9;
}

.aside-article-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aside-article-thumb--empty {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 4.5rem;
    background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
}

.aside-article-title {
    display: block;
}

.aside-list--stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
}

.aside-stat {
    flex: 0 0 auto;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

/* Boční seznamy recenzí: logo + název */
.aside-list--reviews .aside-review-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    font-weight: 600;
    color: var(--brand);
}

.aside-list--reviews .aside-review-link:hover {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.aside-review-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    max-width: 5rem;
    max-height: 3.25rem;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.aside-review-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 5rem;
    max-height: 3.25rem;
    object-fit: contain;
}

.aside-review-logo--fallback {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand);
    background: var(--brand-soft);
}

.aside-review-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
}

@media (max-width: 1020px) {
    .review-page-grid {
        grid-template-columns: 1fr;
    }

    .review-page-aside {
        order: 10;
    }
}

.review-ai-block {
    margin: 1.65rem 0;
    padding: 1.35rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Stejný „kartový“ vzhled jako blok „Rychlé hodnocení“ (bez linky, jen stín) */
.review-ai-block.ai-summary-card {
    border: 0;
    box-shadow: var(--shadow-lg);
}

.review-ai-block.ai-summary-with-ai-tag {
    position: relative;
    padding-bottom: 2.35rem;
}

.ai-summary-ai-tag {
    position: absolute;
    right: 1.35rem;
    bottom: 0.85rem;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.ai-summary-ai-tag a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.ai-summary-ai-tag a:hover {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 520px) {
    .review-ai-block.ai-summary-with-ai-tag {
        padding-bottom: 2.5rem;
    }

    .ai-summary-ai-tag {
        right: 1rem;
        bottom: 0.75rem;
    }
}

.review-ai-block-title {
    margin: 0 0 0.85rem;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.review-ai-block-body {
    font-size: 1.22rem;
    color: var(--fg-soft);
}

/* Odkazy — dva CTA vedle sebe: stejná výška, mezera, jednotný formát */
.review-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem 1rem;
}

.review-links-row > .review-link-btn {
    align-self: stretch;
}

.review-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex: 1 1 220px;
    min-width: min(100%, 13.5rem);
    min-height: 3.4rem;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1px solid var(--border);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.review-link-btn:hover {
    text-decoration: none !important;
}

.review-link-btn--shop {
    background: #fff;
    color: var(--ink) !important;
    border: 1px solid rgba(37, 99, 235, 0.4);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.review-link-btn--shop:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.review-link-btn--heureka {
    background: #fff;
    color: var(--ink) !important;
    border: 1px solid rgba(0, 179, 29, 0.45);
    box-shadow: 0 2px 10px rgba(0, 120, 40, 0.1);
}

.review-link-btn--heureka:hover {
    background: rgba(0, 179, 29, 0.06);
    border-color: #00b31d;
}

.review-link-btn:active {
    transform: translateY(1px);
}

.review-link-btn-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 5.25rem;
    width: 5.25rem;
    height: 2.65rem;
    flex-shrink: 0;
}

.review-link-btn-logo img {
    max-height: 2.5rem;
    width: auto;
    max-width: 5rem;
    object-fit: contain;
    display: block;
}

.review-link-btn-heureka-img {
    max-height: 2.5rem;
    max-width: 5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.review-link-btn-logo--letter {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(180deg, var(--brand-bright), var(--brand));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.review-link-btn-logo--heureka-word {
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--ink);
    line-height: 1.15;
    text-align: center;
    max-width: 5rem;
}

.review-link-btn-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.btn-cta-pill {
    padding: 0.72rem 1.45rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}

.btn-cta-pill.secondary {
    box-shadow: var(--shadow-md);
}

.review .body {
    font-size: 1.06rem;
    color: var(--ink-soft);
}

.review .body :is(h2, h3, h4) {
    margin-bottom: 0;
    font-weight: 800;
    color: var(--ink);
}

.review .body h2 {
    margin-top: 1.85rem;
}

.review .body h3,
.review .body h4 {
    margin-top: 1.35rem;
}

/* Žádná mezera mezi nadpisem a následujícím blokem (defaultní margin p/ul/ol) */
.review .body :is(h2, h3, h4) + :is(p, ul, ol, blockquote, div, figure) {
    margin-top: 0;
}

.review .review-screenshot-link {
    display: block;
    margin: 1.5rem 0;
    line-height: 0;
    text-decoration: none;
}

.review .review-screenshot-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.review .review-shot-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.review .review-screenshot-link .review-shot-img {
    margin: 0;
}

/* --- Článek --- */
/* Šířka jako u recenzí: jen .wrap (--content-max). Dříve max 920px zbytečně zužovalo obsah. */
.page-main--article-wide {
    margin-left: auto;
    margin-right: auto;
}

.page-main--article {
    font-size: 1.22rem;
}

.page-main--article .article-body {
    line-height: 1.72;
    color: var(--ink-soft);
}

.page-main--article .article-body :is(h2, h3, h4) {
    margin-bottom: 0;
    font-weight: 800;
    color: var(--ink);
}

.page-main--article .article-body h2 {
    margin-top: 1.85rem;
    font-size: clamp(1.25rem, 2.2vw, 1.45rem);
}

.page-main--article .article-body h3,
.page-main--article .article-body h4 {
    margin-top: 1.35rem;
    font-size: 1.32rem;
}

.page-main--article .article-body :is(h2, h3, h4) + :is(p, ul, ol, blockquote, div, figure) {
    margin-top: 0;
}

.article-page-below {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.65rem;
    margin-bottom: 2rem;
}

.article-sheet {
    padding: 1.75rem clamp(1rem, 3vw, 2rem) 2rem;
    margin-bottom: 0;
}

.article-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.article-header .article-published {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.95rem;
}

.page-author .author-profile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.page-author .author-profile-photo {
    flex: 0 0 auto;
}

.page-author .author-profile-img {
    display: block;
    width: 160px;
    max-width: min(160px, 100%);
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.page-author .author-profile-intro {
    flex: 1 1 14rem;
    min-width: 0;
}

.page-author .author-profile-intro h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-author .author-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.1rem;
}

.page-author .author-social a {
    font-weight: 600;
}

/* --- Redakce (přehled autorů) --- */
.redakce-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1.25rem;
}

.redakce-card {
    margin: 0;
}

.redakce-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.redakce-card__link:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.redakce-card__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.redakce-card__visual {
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0%, var(--surface) 100%);
    overflow: hidden;
}

.redakce-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.redakce-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 6.5rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: color-mix(in srgb, var(--accent) 55%, var(--muted));
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
}

.redakce-card__body {
    padding: 1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.redakce-card__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
}

.redakce-card__link:hover .redakce-card__name {
    color: var(--accent);
}

.redakce-card__teaser {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--fg-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.redakce-card__meta {
    margin: 0.25rem 0 0;
}

.article-figure {
    margin: 1.25rem 0 1.75rem;
}

.article-hero {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 0;
    box-shadow: none;
}

.article-body {
    padding-top: 0.25rem;
}

/* --- Boxy & komponenty --- */
.box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.9rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--fg-soft);
}

/* Právní texty (GDPR apod.) */
.legal-prose h2 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.legal-prose h2:first-of-type {
    margin-top: 1.15rem;
}

.legal-prose p,
.legal-prose ul {
    margin: 0 0 0.9rem;
    line-height: 1.65;
    color: var(--fg-soft);
}

.legal-prose p:last-child {
    margin-bottom: 0;
}

.legal-list {
    margin: 0 0 1rem 1.15rem;
    padding: 0;
}

.legal-list li {
    margin-bottom: 0.45rem;
}

/* Kontakt */
.page-kontakt .kontakt-box-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.page-kontakt .kontakt-dl {
    margin: 0;
}

.page-kontakt .kontakt-dl > div {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.35rem 1rem;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.page-kontakt .kontakt-dl > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.page-kontakt .kontakt-dl dt {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
}

.page-kontakt .kontakt-dl dd {
    margin: 0;
    font-size: 1rem;
    color: var(--fg);
}

.page-kontakt .kontakt-mail-cta {
    margin: 1rem 0 0;
}

@media (max-width: 520px) {
    .page-kontakt .kontakt-dl > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.stars-big {
    font-size: 1.2rem;
}

/* Heureka CTA — na recenzi jako zřetelný blok (ne „nic“ na bílém pozadí článku) */
.heureka-cta-strip.heureka-cta {
    background: #ffffff;
    border-color: #e8ecf0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.05);
}

.heureka-cta-v2.heureka-cta {
    padding: 0;
    overflow: hidden;
}

/* Starší varianta s .box — ponecháno pro případné jiné šablony */
.heureka-cta-v2.heureka-cta.box {
    background: #ffffff;
    border-radius: 10px;
    border-color: #e8ecf0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Ve stránce recenze: výrazný „callout“ (funguje i po průchodu Purifierem — obal musí zůstat <div>) */
.page-review .review-ai-block.heureka-cta-v2.heureka-cta,
.page-review .heureka-cta-v2.heureka-cta.review-ai-block {
    margin: 1.65rem 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(0, 179, 29, 0.06) 0%, var(--bg-soft) 38%, #ffffff 100%);
    border: 1px solid #c5d0dd;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.11), 0 2px 10px rgba(15, 23, 42, 0.05);
    border-left: 4px solid #00b31d;
}

.heureka-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    gap: 1rem 1.35rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
}

@media (max-width: 720px) {
    .heureka-cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .heureka-logo-wrap {
        justify-content: center;
    }

    .heureka-cta-actions {
        justify-self: stretch;
    }

    .heureka-cta-actions a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

.heureka-logo-wrap {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
}

.heureka-logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.heureka-logo-link:focus-visible {
    outline: 2px solid #00b31d;
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.heureka-logo-img {
    max-width: 170px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.heureka-brand {
    display: inline-block;
    font-weight: 800;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--ink);
}

.heureka-mid-text {
    margin: 0;
    font-size: 1.02rem;
    color: var(--fg-soft);
    line-height: 1.55;
}

/* CTA v pravém sloupci — záložní selektor, kdyby Purifier zahodil třídu na <a> */
.heureka-cta-actions a,
a.btn-heureka-cta {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    min-width: 7.5rem;
    border-radius: 8px;
    background: #00b31d;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    box-shadow: 0 2px 8px rgba(0, 120, 40, 0.35);
    border: 0;
    text-decoration: none !important;
    white-space: nowrap;
    text-align: center;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.heureka-cta-actions a:hover,
a.btn-heureka-cta:hover {
    background: #009919;
    color: #fff !important;
    text-decoration: none !important;
    filter: none;
    box-shadow: 0 4px 14px rgba(0, 100, 35, 0.4);
}

.heureka-cta-actions a:active,
a.btn-heureka-cta:active {
    transform: translateY(1px);
}

/* CTA měsíční akce (affiliate) — logo | text | zelené tlačítko */
.page-review .affiliate-month-offer-cta {
    margin: 1.65rem 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.affiliate-month-offer-grid {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    gap: 1rem 1.35rem;
    align-items: center;
    padding: 1.2rem 1.45rem;
}

.affiliate-month-offer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.5rem;
}

a.affiliate-month-offer-logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-sm);
    transition: opacity 0.15s ease;
}

a.affiliate-month-offer-logo-link:hover {
    opacity: 0.88;
}

a.affiliate-month-offer-logo-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.affiliate-month-offer-logo-inner img {
    display: block;
    max-width: 150px;
    max-height: 46px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.affiliate-month-offer-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
}

.affiliate-month-offer-text {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.affiliate-month-offer-actions a,
a.btn-affiliate-month-offer {
    display: inline-block;
    padding: 0.72rem 1.35rem;
    min-width: 6.25rem;
    border-radius: 8px;
    background: #00b31d;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    box-shadow: 0 2px 8px rgba(0, 120, 40, 0.35);
    border: 0;
    text-decoration: none !important;
    white-space: nowrap;
    text-align: center;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.affiliate-month-offer-actions a:hover,
a.btn-affiliate-month-offer:hover {
    background: #009919;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 100, 35, 0.4);
}

.affiliate-month-offer-actions a:active,
a.btn-affiliate-month-offer:active {
    transform: translateY(1px);
}

@media (max-width: 720px) {
    .affiliate-month-offer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .affiliate-month-offer-logo {
        justify-content: center;
    }

    a.affiliate-month-offer-logo-link {
        justify-content: center;
    }

    .affiliate-month-offer-actions {
        justify-self: stretch;
    }

    .affiliate-month-offer-actions a,
    a.btn-affiliate-month-offer {
        display: block;
        width: 100%;
    }
}

.heureka-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.62rem 1.2rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, var(--brand-bright), var(--brand));
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.btn:hover {
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
    text-decoration: none !important;
    color: #fff !important;
}

.btn.secondary {
    background: var(--surface);
    color: var(--fg-soft) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.btn.secondary:hover {
    border-color: var(--brand);
    color: var(--brand) !important;
    background: var(--brand-soft);
}

.actions {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Souhrnný blok — třída ai-summary-card zůstává v HTML; vzhled jen z .review-ai-block (bílé pozadí + stín) */

.ai-summary-prose {
    font-size: 1.22rem;
    color: var(--fg-soft);
}

.ai-summary-prose p {
    margin: 0 0 0.85rem;
}

.ai-summary-prose p:last-child {
    margin-bottom: 0;
}

.ai-summary-prose h2,
.ai-summary-prose h3 {
    margin: 0 0 0.5rem;
    font-size: 1.32rem;
    color: var(--ink);
}

/* Tagy */
.tags-inline a {
    display: inline-block;
    margin: 0.2rem 0.45rem 0.2rem 0;
    padding: 0.3rem 0.75rem;
    background: var(--brand-soft);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    color: var(--brand-dark) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.tags-inline a:hover {
    background: rgba(37, 99, 235, 0.2);
    text-decoration: none !important;
}

.review-tags-foot {
    margin-top: 2.25rem;
    padding-top: 1.35rem;
    border-top: 1px dashed var(--border);
}

.review-tags-foot .tags {
    margin: 0;
}

.logo {
    max-width: min(280px, 100%);
    height: auto;
    display: block;
}

/* Komentáře */
#komentare {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.comments-section {
    padding: 1.65rem 1.65rem 1.85rem;
    margin-top: 2rem;
}

.comments-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.comment-list {
    margin: 0;
}

.comment {
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
}

.comment-list > .comment:last-child {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    margin: 0 0 0.5rem;
}

.comment-author {
    font-weight: 700;
}

.comment-time {
    margin-left: auto;
}

.comment-body {
    margin: 0;
    line-height: 1.55;
}

.comment-actions {
    margin: 0.65rem 0 0;
}

.comment-replies {
    margin: 0.85rem 0 0;
    padding: 0.35rem 0 0 1rem;
    border-left: 3px solid var(--border);
}

.comment--reply {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.comment-replies > .comment--reply:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-stars {
    display: inline-flex;
    gap: 0.15rem;
    align-items: center;
    line-height: 1;
}

.comment-stars__star {
    font-size: 1.08rem;
    user-select: none;
}

.comment-stars__star--on {
    color: #fbbf24;
}

.comment-stars__star--off {
    color: #d1d5db;
}

.btn-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.btn-link:hover {
    color: var(--brand-dark);
}

.comment-reply-context {
    margin: 0 0 0.65rem;
}

.comment-form {
    margin-top: 1.25rem;
}

.comment-form-heading {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.comment-form-modern {
    margin-top: 1rem;
    padding: 1.5rem 1.5rem 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.comment-form-modern .comment-form-actions {
    margin-bottom: 0;
}

.comment-form-consent {
    margin: 1rem 0 0;
    font-size: 0.68rem;
    line-height: 1.45;
    color: var(--muted);
}

.comment-form-consent + .comment-form-actions {
    margin-top: 0.5rem;
}

.comment-form-actions {
    margin: 1.25rem 0 0;
}

.comment-form-modern input[type="text"],
.comment-form-modern textarea {
    max-width: none;
    padding: 0.72rem 0.95rem;
    border-radius: 12px;
    border-color: #e2e8f0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form-modern input[type="text"]:focus,
.comment-form-modern textarea:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.comment-form-modern textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.rating-fieldset {
    margin: 0.65rem 0 0;
    padding: 0;
    border: 0;
}

.rating-fieldset legend {
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fg-soft);
}

.legend-hint {
    font-weight: 400;
}

.rating-stars-hint {
    margin: 0.35rem 0 0.5rem;
    min-height: 1.25rem;
    font-size: 0.88rem;
}

/* Hvězdy: row-reverse + sourozenci v DOM (5→1) = vizuálně 1★ až 5★ v řádku, žlutý výběr */
.rating-stars {
    --star-empty: #e5e7eb;
    --star-fill: #fbbf24;
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.12rem;
    margin-top: 0.35rem;
    padding: 0.35rem 0.45rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
    border: 1px solid #e8ecf1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rating-stars-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rating-stars-label {
    display: inline-block;
    margin: 0;
    padding: 0.15rem 0.18rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.14s ease, filter 0.14s ease;
}

.comment-form-modern .rating-stars-label {
    margin-top: 0;
}

.rating-stars-label:hover .rating-stars-glyph {
    transform: scale(1.08);
}

.rating-stars-glyph {
    display: block;
    font-size: 2.15rem;
    line-height: 1;
    color: var(--star-empty);
    transition: color 0.14s ease, transform 0.14s ease, filter 0.14s ease;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.06));
}

.rating-stars-label:hover .rating-stars-glyph,
.rating-stars-label:hover ~ .rating-stars-label .rating-stars-glyph {
    color: var(--star-fill);
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.35));
}

.rating-stars-input:checked ~ .rating-stars-label .rating-stars-glyph {
    color: var(--star-fill);
    filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.4));
}

.rating-stars-input:focus-visible + .rating-stars-label {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 8px;
}

.star-picker {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    margin-top: 0.45rem;
}

.star-picker-star {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0.15rem 0.2rem;
    border: 0;
    background: transparent;
    font-size: 2.05rem;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.12s ease, transform 0.12s ease;
}

.star-picker-star:hover,
.star-picker-star:focus-visible {
    color: #fde68a;
    outline: none;
    transform: scale(1.06);
}

.star-picker-star.is-on {
    color: #f59e0b;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.35);
}

form label {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fg-soft);
}

input,
textarea,
select {
    width: 100%;
    max-width: 42rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg);
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 1px;
    border-color: var(--brand);
}

button {
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--fg);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

button:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.ok {
    color: var(--ok);
}

.err {
    color: var(--err);
}

/* Patička */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
    background: var(--surface);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.04);
}

.site-footer-inner {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 640px) {
    .site-footer-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .site-footer-brand {
        grid-column: 1;
    }

    .site-footer-links {
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-self: end;
        text-align: right;
    }

    .site-footer-copy {
        grid-column: 1;
    }
}

.site-footer-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.site-footer-tagline {
    margin: 0;
    max-width: 22rem;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.site-footer-links a {
    font-weight: 600;
    color: var(--fg-soft);
}

.site-footer-copy {
    margin: 0;
}

.search-panel {
    padding: 1.35rem 1.5rem;
}

/* ========== Administrace (kompatibilita se style.css + admin.css) ========== */
.admin .heureka-admin-preview {
    max-width: 220px;
    max-height: 80px;
    object-fit: contain;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    padding: 0.35rem;
    background: var(--bg, #f1f5f9);
}

.admin .bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin nav a {
    margin-right: 0.75rem;
}

.admin .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin .table th,
.admin .table td {
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 0.55rem 0.4rem;
    text-align: left;
    vertical-align: top;
}

.admin .card {
    background: var(--bg-elevated, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    margin: 1rem 0;
    box-shadow: var(--shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
}

.mono {
    font-family: ui-monospace, Consolas, monospace;
}

.btn-danger {
    border-color: #fca5a5;
    color: var(--err) !important;
    background: #fef2f2;
}

.btn-danger:hover {
    border-color: var(--err);
    background: #fee2e2;
}
