/* ============================================================
   CVčko.eu — designový systém „papír a inkoust"
   Ručně psané CSS, žádný framework.
   Teplý papír, inkoustová indigo, serifové titulky, tvrdé stíny.
   ============================================================ */

:root {
    /* Barvy */
    --paper:        #f3efe6;   /* podklad — teplý papír */
    --paper-warm:   #ece6d8;   /* tmavší papír (sekce) */
    --card:         #fdfcf8;   /* list / karta */
    --ink:          #28245c;   /* inkoustová indigo — hlavní */
    --ink-deep:     #1b1840;   /* skoro černá indigo */
    --ink-soft:     #565278;   /* sekundární text */
    --ink-faint:    rgba(40, 36, 92, 0.16);  /* linky, rámečky */
    --accent:       #c94f2e;   /* pečetní červeň — akcenty, střídmě */
    --accent-soft:  #e8dcc9;   /* zvýraznění na papíru */

    /* Typografie */
    --font-display: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
    --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Rozměry */
    --max-width: 1120px;
    --radius: 3px;
    --border: 1.5px solid var(--ink-faint);
    --border-strong: 2px solid var(--ink);
    --shadow-hard: 5px 5px 0 rgba(27, 24, 64, 0.9);
    --shadow-hard-sm: 3px 3px 0 rgba(27, 24, 64, 0.9);
    --shadow-sheet: 0 1px 2px rgba(27, 24, 64, 0.08), 0 12px 32px rgba(27, 24, 64, 0.12);
}

/* --------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-deep);
    background-color: var(--paper);
    /* jemná papírová textura — tečkovaný rastr */
    background-image: radial-gradient(rgba(40, 36, 92, 0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
button { font: inherit; cursor: pointer; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

main { flex: 1; }

/* --------------------------------------------------- Typografie */
h1, h2, h3, .display {
    font-family: var(--font-display);
    color: var(--ink-deep);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.lead {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 60ch;
}

/* --------------------------------------------------- Tlačítka */
.btn {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border: var(--border-strong);
    border-color: var(--ink-deep);
    box-shadow: var(--shadow-hard);
    padding: 15px 32px;
    font-size: 17px;
}
.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-hard-sm);
}
.btn-primary:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: var(--border-strong);
    padding: 13px 26px;
    font-size: 16px;
}
.btn-secondary:hover { background: var(--accent-soft); }

.btn-small {
    padding: 9px 18px;
    font-size: 15px;
    box-shadow: var(--shadow-hard-sm);
}
.btn-small:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(27, 24, 64, 0.9); }

/* --------------------------------------------------- Hlavička */
.site-header {
    background: var(--paper);
    border-bottom: var(--border-strong);
    position: sticky;
    top: 0;
    z-index: 40;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 72px;
}

.site-logo img { height: 40px; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--accent); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Přepínač jazyka — tiskový styl CZ / SK */
.lang-switch {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.lang-switch a {
    padding: 5px 10px;
    text-decoration: none;
    color: var(--ink-soft);
}
.lang-switch a.active {
    background: var(--ink);
    color: var(--paper);
}
.lang-switch a:not(.active):hover { background: var(--accent-soft); color: var(--ink); }

.header-login {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
}
.header-login:hover { color: var(--accent); }

/* --------------------------------------------------- Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero .lead { margin-bottom: 32px; }

.hero-note {
    margin-top: 16px;
    font-size: 15px;
    color: var(--ink-soft);
}

/* Mockup listu CV v hero */
.sheet-stack { position: relative; padding: 12px 20px 28px; }

.sheet {
    background: var(--card);
    border: var(--border);
    box-shadow: var(--shadow-sheet);
    aspect-ratio: 210 / 297;
    padding: 9% 10%;
    position: relative;
}

.sheet--back {
    position: absolute;
    inset: 12px 20px 28px;
    transform: rotate(4deg);
    z-index: 0;
    padding: 0;
}

.sheet--front {
    transform: rotate(-2.5deg);
    z-index: 1;
}

/* skeleton obsahu listu */
.sheet-line { background: var(--ink-faint); border-radius: 2px; margin-bottom: 7%; }
.sheet-line--name { height: 9%; width: 62%; background: var(--ink); opacity: 0.85; }
.sheet-line--sub { height: 4%; width: 42%; background: var(--accent); opacity: 0.65; }
.sheet-line--rule { height: 2px; width: 100%; margin: 8% 0; }
.sheet-line--w80 { height: 4%; width: 80%; }
.sheet-line--w95 { height: 4%; width: 95%; }
.sheet-line--w70 { height: 4%; width: 70%; }
.sheet-photo {
    position: absolute;
    top: 8%;
    right: 9%;
    width: 21%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent-soft);
    border: var(--border);
}

/* Razítko ZDARMA přes roh listu */
.stamp {
    position: absolute;
    right: -6px;
    bottom: 4px;
    z-index: 2;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    border: 2.5px solid var(--accent);
    border-radius: 4px;
    padding: 7px 14px;
    transform: rotate(-8deg);
    background: rgba(253, 252, 248, 0.85);
}

/* --------------------------------------------------- Sekce */
.section { padding: 80px 0; }

.section--ruled {
    border-top: var(--border-strong);
    border-bottom: var(--border-strong);
    background: var(--card);
}

/* Benefity — „kartotéční lístky" */
.index-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.index-card {
    background: var(--card);
    border: var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    padding: 28px 26px 26px;
    position: relative;
}

.index-card .badge {
    display: inline-block;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--paper);
    background: var(--accent);
    padding: 5px 12px;
    border-radius: var(--radius);
    transform: rotate(-2deg);
    margin-bottom: 18px;
}

.index-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.index-card p {
    font-size: 15.5px;
    color: var(--ink-soft);
}

/* Jak to funguje — číslovaný „formulář" */
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }

.step {
    padding: 8px 32px 8px 0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.step + .step {
    border-left: var(--border);
    padding-left: 32px;
}

.step-num {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: bold;
    line-height: 1;
    color: var(--accent);
}

.step p { padding-top: 10px; font-size: 16.5px; }

/* Galerie šablon — živé náhledy vykreslené stejným kódem jako builder */
/* Galerie šablon: široké karty s výřezem horní části listu.
   Celá A4 zmenšená na šířku karty je nečitelná — radši ukážeme méně, ale pořádně. */
.tpl-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px 32px;
    margin-top: 44px;
}
.tpl-card {
    margin: 0;
    position: relative;
}
.tpl-frame {
    position: relative;
    width: 100%;
    /* výřez, ne celá stránka — poměr odpovídá horní polovině A4 */
    aspect-ratio: 210 / 148;
    overflow: hidden;
    background: #fff;
    border: var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard-sm);
}
/* Spodek listu se ztrácí do papíru — dává najevo, že jde o výřez */
.tpl-frame::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 58%, #fff 82%);
    pointer-events: none;
}
.tpl-render {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 794px;
    transform-origin: top left;
    pointer-events: none;
    user-select: none;
}
.tpl-render .cv { box-shadow: none; }

.tpl-name {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
    padding: 0 2px;
}
.tpl-name-main {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: bold;
}
.tpl-name-cat {
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}
.tpl-more { text-align: center; margin-top: 44px; }
.tpl-more-note {
    font-size: 16.5px;
    color: var(--ink-soft);
    margin-bottom: 22px;
}
.tpl-badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent);
    border: 1.5px solid currentColor;
    border-radius: 999px;
    padding: 2px 8px;
    align-self: center;
}

.home-blog-all {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}
.home-blog-all:hover { text-decoration: underline; }

/* Závěrečná výzva */
.cta-band {
    background: var(--ink);
    color: var(--paper);
    padding: 72px 0;
    text-align: center;
}
.cta-band h2 {
    color: var(--paper);
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 28px;
}
.cta-band .btn-primary {
    background: var(--paper);
    color: var(--ink-deep);
    border-color: var(--paper);
    box-shadow: 5px 5px 0 rgba(201, 79, 46, 0.95);
}

/* --------------------------------------------------- Patička */
.site-footer {
    background: var(--ink-deep);
    color: rgba(243, 239, 230, 0.75);
    padding: 56px 0 32px;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand { max-width: 340px; }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-nav button {
    color: rgba(243, 239, 230, 0.75);
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    text-decoration: none;
    padding: 0;
}
.footer-nav a:hover, .footer-nav button:hover { color: var(--paper); text-decoration: underline; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(243, 239, 230, 0.15);
    font-size: 13px;
    color: rgba(243, 239, 230, 0.45);
}

/* --------------------------------------------------- Cookie lišta */
.cookie-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 50;
    max-width: 420px;
    background: var(--card);
    border: var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    padding: 22px 24px;
}
.cookie-bar h2 {
    font-size: 19px;
    margin-bottom: 6px;
}
.cookie-bar p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin-bottom: 16px;
}
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hidden { display: none !important; }

/* --------------------------------------------------- Auth formuláře */
.auth-wrap {
    max-width: 460px;
    margin: 56px auto;
    padding: 0 20px;
}
.auth-card {
    background: var(--card);
    border: var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    padding: 32px 30px;
}
.auth-card h1 {
    font-size: 28px;
    margin-bottom: 20px;
}
.auth-field { display: block; margin-bottom: 16px; }
.auth-field > span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 4px;
}
.auth-field input {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    color: var(--ink-deep);
    background: var(--card);
    border: var(--border);
    border-radius: var(--radius);
}
.auth-field input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 2px 2px 0 rgba(27, 24, 64, 0.25);
}
.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    font-size: 14.5px;
    line-height: 1.5;
    cursor: pointer;
}
.auth-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--ink);
}
.auth-error {
    background: rgba(201, 79, 46, 0.08);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    color: #8a3013;
    font-size: 14.5px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.auth-success {
    background: rgba(60, 122, 78, 0.08);
    border: 1.5px solid #3c7a4e;
    border-radius: var(--radius);
    color: #2b5a3a;
    font-size: 14.5px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.auth-submit { width: 100%; margin-top: 8px; }
.auth-alt {
    text-align: center;
    font-size: 14.5px;
    margin-top: 18px;
    color: var(--ink-soft);
}
.auth-alt a { font-weight: 700; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-top: var(--border);
}
.oauth-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    background: var(--card);
    color: var(--ink-deep);
    border: var(--border-strong);
    border-radius: var(--radius);
    text-decoration: none;
    transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.btn-oauth:hover {
    box-shadow: var(--shadow-hard-sm);
    transform: translate(-1px, -1px);
}

/* --------------------------------------------------- Účet — seznam CV */
.cv-cards { display: grid; gap: 16px; margin-top: 24px; }
.cv-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard-sm);
    padding: 18px 20px;
    flex-wrap: wrap;
}
.cv-card-info { flex: 1; min-width: 200px; }
.cv-card-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: bold;
}
.cv-card-meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.cv-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cv-card-actions form { display: inline; }

.cv-share {
    width: 100%;
    border-top: var(--border);
    padding-top: 12px;
    margin-top: 4px;
}
.cv-share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cv-share-row form { display: inline; }
.cv-share-url {
    flex: 1;
    min-width: 220px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: monospace;
    color: var(--ink);
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius);
}
.cv-share-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.cv-share-views {
    font-size: 13.5px;
    font-weight: 700;
    color: #2b5a3a;
    background: rgba(60, 122, 78, 0.08);
    border: 1.5px solid rgba(60, 122, 78, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    display: inline-block;
    margin-top: 10px;
}

/* --------------------------------------------------- Obsah (články, stránky, LP) */
.page-content { font-size: 17px; line-height: 1.7; }
.page-content h2 {
    font-size: 26px;
    margin: 36px 0 14px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 20px; margin: 26px 0 10px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--accent); }
.page-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--card);
    padding: 14px 18px;
    margin: 0 0 16px;
    font-style: italic;
}
.page-content table { border-collapse: collapse; margin-bottom: 16px; width: 100%; }
.page-content th, .page-content td { border: var(--border); padding: 8px 12px; text-align: left; font-size: 15px; }

/* výpis článků */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card);
    border: var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard-sm);
    padding: 22px;
    text-decoration: none;
    color: var(--ink-deep);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.article-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.article-card { padding: 0; overflow: hidden; }
.article-card-img {
    width: calc(100% + 2px);
    margin: -1px -1px 0;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    border-bottom: var(--border);
}
.article-card > :not(.article-card-img) { margin-left: 22px; margin-right: 22px; }
.article-card > h2 { margin-top: 18px; }
.article-card > .article-card-more { margin-bottom: 20px; }
.article-card h2 { font-size: 20px; }

.article-hero {
    width: 100%;
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sheet);
    margin-bottom: 32px;
    display: block;
}
.article-card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.article-card-more { font-size: 14px; font-weight: 700; color: var(--accent); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination-current {
    display: inline-block;
    min-width: 38px;
    text-align: center;
    padding: 8px 10px;
    border: var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
}
.pagination-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.article-cta {
    margin-top: 44px;
    border: var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    background: var(--card);
    padding: 28px;
    text-align: center;
}
.article-cta h2 { font-size: 24px; margin-bottom: 16px; }

/* banner náhledu konceptu */
.preview-banner {
    position: sticky;
    top: 0;
    z-index: 45;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.faq-item {
    background: var(--card);
    border: var(--border-strong);
    border-radius: var(--radius);
    padding: 0;
}
.faq-item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 17px;
    padding: 16px 20px;
    list-style: none;
    position: relative;
    padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--accent);
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 20px 16px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

@media (max-width: 900px) {
    .article-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- Stránka 404 */
.page-error {
    text-align: center;
    padding: 96px 24px;
}
.page-error h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.page-error p { color: var(--ink-soft); margin-bottom: 32px; }

/* --------------------------------------------------- Mobil */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .sheet-stack { max-width: 340px; margin: 0 auto; }
    .index-cards { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step + .step { border-left: none; border-top: var(--border); padding-left: 0; padding-top: 24px; margin-top: 16px; }
    .tpl-gallery { grid-template-columns: 1fr; gap: 32px; }
    /* Na úzké obrazovce se list zmenší natolik, že čitelná zůstane hlavička — ukážeme hlavně ji. */
    .tpl-frame { aspect-ratio: 210 / 96; }
    .tpl-frame::after { height: 38%; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .site-header .container { height: 64px; }
    .site-logo img { height: 34px; }
    .site-nav { display: none; }
    .header-login { display: none; }
    .header-cta { display: none; }
    .hero { padding: 48px 0 64px; }
    .section { padding: 56px 0; }
    .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ============================================================
   Bohatý obsah článků — boxy, tabulky, checklisty, statistiky
   ============================================================ */

/* Shrnutí / tip / varování / fakt / špatně / dobře */
.cv-box {
    border: var(--border);
    border-left: 5px solid var(--ink);
    border-radius: var(--radius);
    background: var(--card);
    padding: 18px 20px;
    margin: 26px 0;
}
.cv-box > :last-child { margin-bottom: 0; }
.cv-box strong:first-child { display: block; margin-bottom: 6px; }

/* Má-li box vlastní nadpis, generovaný štítek by ho jen zdvojil. */
.cv-box:has(> h2, > h3, > h4)::before { content: none; }

/* Nadpis uvnitř boxu je popiskem bloku, ne úrovní v hierarchii článku. */
.page-content .cv-box > h2,
.page-content .cv-box > h3,
.page-content .cv-box > h4 {
    font-size: 19px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}
.page-content .cv-box > h2::after,
.page-content .cv-box > h3::after { content: none; }

.cv-box--summary {
    border-left-color: var(--ink);
    background: var(--accent-soft);
}
.cv-box--summary::before {
    content: 'Co si odnesete';
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.cv-box--tip { border-left-color: #3c7a4e; background: rgba(60, 122, 78, 0.06); }
.cv-box--tip::before {
    content: 'Tip';
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #2b5a3a;
    margin-bottom: 6px;
}
.cv-box--warn { border-left-color: var(--accent); background: rgba(201, 79, 46, 0.06); }
.cv-box--warn::before {
    content: 'Pozor';
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a3013;
    margin-bottom: 6px;
}
.cv-box--fact {
    border: none;
    border-left: 5px solid var(--accent);
    background: var(--paper-warm);
    font-size: 18px;
    font-family: var(--font-display);
}
.cv-box--bad { border-left-color: var(--accent); background: rgba(201, 79, 46, 0.05); }
.cv-box--bad::before {
    content: '✕ Špatně';
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #8a3013;
    margin-bottom: 8px;
}
.cv-box--good { border-left-color: #3c7a4e; background: rgba(60, 122, 78, 0.05); }
.cv-box--good::before {
    content: '✓ Dobře';
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #2b5a3a;
    margin-bottom: 8px;
}

/* Dvojice špatně/dobře vedle sebe */
.cv-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 26px 0;
}
.cv-compare .cv-box { margin: 0; }

/* Checklist — odškrtávací */
.cv-check { list-style: none; margin: 22px 0 22px 0; padding: 0; }
.cv-check li {
    position: relative;
    padding: 8px 0 8px 34px;
    border-bottom: 1px dashed var(--ink-faint);
    cursor: pointer;
    user-select: none;
}
.cv-check li:last-child { border-bottom: none; }
.cv-check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ink-faint);
    border-radius: 3px;
    background: var(--card);
    transition: all 0.15s ease;
}
.cv-check li:hover::before { border-color: var(--ink); }
.cv-check li.is-done::before {
    content: '✓';
    background: #3c7a4e;
    border-color: #3c7a4e;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
}
.cv-check li.is-done { color: var(--ink-soft); text-decoration: line-through; }

/* Číslované kroky */
.cv-steps { list-style: none; counter-reset: cvstep; margin: 26px 0; padding: 0; }
.cv-steps li {
    counter-increment: cvstep;
    position: relative;
    padding: 0 0 20px 52px;
    border-left: 2px solid var(--ink-faint);
    margin-left: 16px;
}
.cv-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.cv-steps li::before {
    content: counter(cvstep);
    position: absolute;
    left: -17px;
    top: -2px;
    width: 32px;
    height: 32px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-steps li strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }

/* Statistiky */
.cv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 28px 0;
}
.cv-stat {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
}
.cv-stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
    color: #fff;
}
.cv-stat span { display: block; font-size: 13px; margin-top: 6px; opacity: 0.85; }

/* Tabulky v článcích */
.page-content table {
    box-shadow: var(--shadow-hard-sm);
    border: var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 26px 0;
}
.page-content thead th {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 15px;
    border-color: var(--ink);
}
.page-content tbody tr:nth-child(even) { background: var(--paper); }
.page-content td:first-child { font-weight: 600; }

/* Citace */
.page-content blockquote {
    border-left: 5px solid var(--accent);
    background: var(--paper-warm);
    padding: 18px 22px;
    margin: 26px 0;
    font-size: 18px;
    font-family: var(--font-display);
    font-style: italic;
}
.page-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 14px;
    color: var(--ink-soft);
}

/* Obsah článku (automaticky generovaný) */
.cv-toc {
    background: var(--card);
    border: var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard-sm);
    padding: 18px 22px;
    margin: 0 0 32px;
}
.cv-toc-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.cv-toc ol { margin: 0 0 0 18px; }
.cv-toc li { margin-bottom: 5px; font-size: 15.5px; }
.cv-toc a { color: var(--ink); text-decoration: none; }
.cv-toc a:hover { color: var(--accent); text-decoration: underline; }

/* Ukazatel průběhu čtení */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0;
    z-index: 60;
    transition: width 0.1s linear;
}

/* Posuv patří obalu, ne tabulce — display:block na tabulce by rozbil sloupce. */
.cv-tablewrap {
    overflow-x: auto;
    margin: 26px 0;
    -webkit-overflow-scrolling: touch;
}
.cv-tablewrap > table { margin: 0; }

@media (max-width: 640px) {
    .cv-compare { grid-template-columns: 1fr; }
    .cv-tablewrap > table { min-width: 520px; }
}

/* ---------------------------------------------- nastavení cookies */
.cookie-more { margin: 10px 0 0; font-size: 13.5px; }
.cookie-more a { color: var(--ink); }

.cookie-prefs {
    border: var(--border-strong);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-hard-sm);
    margin-top: 32px;
    overflow: hidden;
}
.cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
}
.cookie-pref + .cookie-pref { border-top: var(--border); }
.cookie-pref strong { font-size: 17px; }
.cookie-pref p { font-size: 14.5px; color: var(--ink-soft); margin: 4px 0 0; }
.cookie-pref-fixed {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    white-space: nowrap;
}

/* přepínač */
.cookie-switch { position: relative; flex: none; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-switch span {
    display: block;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(40, 36, 92, 0.16);
    border: 2px solid var(--ink);
    transition: background 0.15s ease;
}
.cookie-switch span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ink);
    transition: transform 0.15s ease;
}
.cookie-switch input:checked + span { background: var(--accent); }
.cookie-switch input:checked + span::after { transform: translateX(22px); background: #fff; }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.cookie-prefs-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.cookie-saved {
    font-size: 14px;
    font-weight: 700;
    color: #2b5a3a;
}
