/* =========================================================================
   jkliment.cz – HLAVNÍ STYLY (verze 2.0)
   =========================================================================
   Obsah:
    1.  Design tokeny (barvy, rozestupy, stíny) + tmavý motiv
    2.  Reset a základ
    3.  Typografie a pomocné třídy
    4.  Layout (container, sekce, mřížky)
    5.  Tlačítka a ikony
    6.  Hlavička a navigace (desktop + mobilní menu)
    7.  Hero sekce (úvod + podstránky)
    8.  Karty (služby, aplikace, výhody)
    9.  Obsahové bloky (feature řádky, kroky, statistiky, checklist)
   10.  Stránka Aplikace (filtry, vyhledávání)
   11.  O mně, Kontakt, Blog, 404
   12.  Výzva k akci (CTA)
   13.  Formuláře a modální okno
   14.  Patička, spodní lišta, plovoucí tlačítko, toast
   15.  Animace
   16.  Responzivita (tablet / mobil)
   ========================================================================= */


/* =========================================================================
   1. DESIGN TOKENY
   Barvy vychází z loga (tyrkysová → indigová).
   ========================================================================= */
:root {
    /* Značka */
    --brand-cyan: #22c3e6;
    --brand-indigo: #5b6cf0;
    --brand-gradient: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-indigo) 100%);
    --primary: #4b63e8;
    --primary-hover: #3a51d4;
    --primary-soft: rgba(75, 99, 232, 0.1);

    /* Plochy a text – světlý motiv */
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #eef2fa;
    --text: #0f172a;
    --text-muted: #556079;
    --border: #e3e8f2;
    --header-bg: rgba(255, 255, 255, 0.8);

    /* Stavové barvy */
    --success: #16a34a;
    --danger: #dc2626;

    /* Rozměry */
    --container: 1200px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --header-h: 72px;
    --tabbar-h: 64px;

    /* Stíny */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
    --shadow-brand: 0 12px 28px -8px rgba(75, 99, 232, 0.45);

    /* Písmo – systémová sada (rychlé, bez externích fontů) */
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Animace */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.18s;
    --t: 0.3s;

    /* Sezónní kampaně (includes/season.php + season.css) – bez kampaně = barvy značky */
    --season-1: var(--brand-cyan);
    --season-2: var(--brand-indigo);
    --accent: var(--primary);
    --accent-soft: var(--primary-soft);
    --accent-gradient: var(--brand-gradient);

    color-scheme: light;
}

/* Tmavý motiv – přepíná se tlačítkem v hlavičce (atribut data-theme na <html>) */
[data-theme="dark"] {
    --primary: #7b8cff;
    --primary-hover: #95a3ff;
    --primary-soft: rgba(123, 140, 255, 0.14);
    --bg: #0b1120;
    --surface: #111a2e;
    --surface-2: #17223b;
    --text: #e7ecf6;
    --text-muted: #9ba7c0;
    --border: #233150;
    --header-bg: rgba(11, 17, 32, 0.78);
    --shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
}


/* =========================================================================
   2. RESET A ZÁKLAD
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px); /* kotvy se nezasunou pod hlavičku */
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* pojistka proti vodorovnému scrollování na mobilu */
    transition: background-color var(--t), color var(--t);
}

img,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--brand-cyan);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Odkaz "Přeskočit na obsah" – viditelný jen při ovládání klávesnicí */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 3000;
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus {
    top: 1rem;
}


/* =========================================================================
   3. TYPOGRAFIE A POMOCNÉ TŘÍDY
   ========================================================================= */
h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--text);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p {
    margin: 0 0 1em;
    color: var(--text-muted);
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
}

/* Text s barevným přechodem značky */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Malý štítek nad nadpisem sekce */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
}
.eyebrow .icon {
    width: 14px;
    height: 14px;
}

.text-center { text-align: center; }

/* Skrytí obsahu vizuálně, ale ne pro čtečky obrazovky */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* =========================================================================
   4. LAYOUT
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
    padding-block: clamp(3.5rem, 8vw, 6rem);
}
.section--alt {
    background: var(--surface);
    border-block: 1px solid var(--border);
}
.section--tight {
    padding-top: 0;
}

/* Záhlaví sekce (štítek + nadpis + perex) */
.section__head {
    max-width: 720px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}
.section__head p {
    font-size: 1.1rem;
}

/* Mřížky – automaticky se přizpůsobí šířce obrazovky */
.grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }


/* =========================================================================
   5. TLAČÍTKA A IKONY
   ========================================================================= */
.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.btn {
    --btn-bg: var(--surface);
    --btn-color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    font-weight: 650;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--btn-color);
    background: var(--btn-bg);
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease),
                background-color var(--t), border-color var(--t), color var(--t);
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn--primary {
    --btn-color: #fff;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
    box-shadow: 0 16px 32px -8px rgba(75, 99, 232, 0.55);
}

.btn--secondary {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--light {
    --btn-bg: #fff;
    --btn-color: #1e2a6e;
}
.btn--ghost-light {
    --btn-bg: rgba(255, 255, 255, 0.12);
    --btn-color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost-light:hover {
    --btn-bg: rgba(255, 255, 255, 0.22);
}

.btn--sm {
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    font-size: 0.92rem;
}
.btn--block {
    width: 100%;
}

/* Kruhové tlačítko s ikonou (motiv, menu, zavřít) */
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: background-color var(--t), border-color var(--t), transform var(--t-fast);
}
.icon-btn:hover {
    background: var(--surface-2);
}
.icon-btn .icon {
    width: 20px;
    height: 20px;
}

/* Barevná dlaždice s ikonou */
.icon-tile {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 14px;
}
.icon-tile .icon {
    width: 24px;
    height: 24px;
}
.icon-tile--gradient {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-brand);
}


/* =========================================================================
   6. HLAVIČKA A NAVIGACE
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), box-shadow var(--t);
}
/* Rozmazané pozadí je v pseudo-prvku – backdrop-filter přímo na hlavičce
   by "uvěznil" vysouvací mobilní menu (position: fixed) uvnitř hlavičky */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}
/* Po odscrollování se objeví jemná linka a stín (třída z JS) */
.site-header.is-scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: var(--header-h);
}

/* Logo */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.brand img {
    width: 40px;
    height: 40px;
}
.brand__tld {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hlavní menu (desktop) */
.nav {
    margin-left: auto;
}
.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav__item {
    position: relative;
}
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: 0;
    border-radius: 999px;
    transition: color var(--t), background-color var(--t);
}
.nav__link .icon {
    width: 18px;
    height: 18px;
}
.nav__link:hover,
.nav__link.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}
.nav__chevron {
    width: 16px !important;
    height: 16px !important;
    transition: transform var(--t) var(--ease);
}
.has-dropdown.is-open .nav__chevron {
    transform: rotate(180deg);
}

/* Rozbalovací menu služeb */
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: 380px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
/* Neviditelný "most", aby menu nezmizelo při přejezdu myší */
.dropdown::before {
    content: "";
    position: absolute;
    inset: -12px 0 auto;
    height: 12px;
}
.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.dropdown__link {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem;
    color: var(--text);
    border-radius: 12px;
    transition: background-color var(--t-fast);
}
.dropdown__link:hover,
.dropdown__link[aria-current="page"] {
    background: var(--surface-2);
}
.dropdown__link .icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}
.dropdown__link strong {
    display: block;
    font-size: 0.95rem;
}
.dropdown__link small {
    display: block;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Pravá část hlavičky */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Přepínač motivu – ukazuje slunce v tmavém a měsíc ve světlém režimu */
.theme-toggle .icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }

/* Tlačítko mobilního menu (na desktopu skryté) */
.menu-toggle {
    display: none;
}
.menu-toggle .icon--close { display: none; }
.nav-open .menu-toggle .icon--open { display: none; }
.nav-open .menu-toggle .icon--close { display: block; }

.nav-backdrop {
    display: none;
}


/* =========================================================================
   7. HERO SEKCE
   ========================================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
}
/* Barevné rozostřené "skvrny" v pozadí */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}
.hero::before {
    top: -120px;
    right: -80px;
    width: 460px;
    height: 460px;
    background: var(--season-1);
}
.hero::after {
    bottom: 10%;
    left: -220px;
    width: 380px;
    height: 380px;
    background: var(--season-2);
}
[data-theme="dark"] .hero::before,
[data-theme="dark"] .hero::after {
    opacity: 0.2;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}
.hero__lead {
    max-width: 560px;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
}
.hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero__trust .icon {
    width: 18px;
    height: 18px;
    color: var(--success);
}
.hero__media {
    position: relative;
}

/* Rámeček pro video / obrázek (vzhled okna aplikace) */
.device-frame {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.device-frame__bar {
    display: flex;
    gap: 6px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.device-frame__bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--border);
}
.device-frame__bar span:nth-child(1) { background: #ff5f57; }
.device-frame__bar span:nth-child(2) { background: #febc2e; }
.device-frame__bar span:nth-child(3) { background: #28c840; }
.device-frame video,
.device-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

/* Plovoucí "bublina" u hero obrázku */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 650;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}
.float-badge .icon-tile {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}
.float-badge .icon-tile .icon {
    width: 18px;
    height: 18px;
}
.float-badge small {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
}
.float-badge--tl { top: 18%; left: -28px; }
.float-badge--br { bottom: -20px; right: 24px; animation-delay: -3s; }

/* Hero podstránek */
.page-hero {
    padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem);
}
.page-hero .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
}
.page-hero__media {
    position: relative;
    max-width: 440px;
    margin-inline: auto;
}
.page-hero__media img {
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

/* Drobečková navigace */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.4rem;
    opacity: 0.5;
}
.breadcrumb a {
    color: var(--text-muted);
}
.breadcrumb a:hover {
    color: var(--primary);
}


/* =========================================================================
   8. KARTY
   ========================================================================= */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(1.4rem, 3vw, 1.9rem);
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.card h3 {
    margin: 0.25rem 0 0;
}
.card p {
    margin: 0;
}

/* Klikatelná karta – zvedne se při najetí */
.card--link:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    box-shadow: var(--shadow-lg);
}
.card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.75rem;
    font-weight: 650;
    color: var(--accent);
}
.card__more .icon {
    width: 18px;
    height: 18px;
    transition: transform var(--t) var(--ease);
}
.card--link:hover .card__more .icon {
    transform: translateX(4px);
}

/* Karta služby s obrázkem */
.service-card__img {
    margin: -0.25rem -0.25rem 0.5rem;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    aspect-ratio: 4 / 3;
}
.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s var(--ease);
}
.card--link:hover .service-card__img img {
    transform: scale(1.04);
}

/* Karta aplikace */
.app-card__thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    margin: -0.25rem -0.25rem 0.5rem;
    overflow: hidden;
    color: #fff;
    background: var(--brand-gradient);
    border-radius: 12px;
}
.app-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-card__thumb .icon {
    width: 56px;
    height: 56px;
    stroke-width: 1.6;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
    transition: transform 0.5s var(--ease);
}
.card--link:hover .app-card__thumb .icon {
    transform: scale(1.12) rotate(-4deg);
}
.badge {
    align-self: flex-start;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 999px;
}


/* =========================================================================
   9. OBSAHOVÉ BLOKY
   ========================================================================= */

/* Řádek "obrázek + text", střídá strany */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.feature-row + .feature-row {
    margin-top: clamp(3rem, 7vw, 5.5rem);
}
.feature-row:nth-child(even) .feature-row__media {
    order: 2;
}
.feature-row__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}
.feature-row__body .icon-tile {
    margin-bottom: 1rem;
}

/* Seznam s fajfkami */
.checklist {
    display: grid;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text);
    font-weight: 500;
}
.checklist .icon {
    width: 22px;
    height: 22px;
    padding: 3px;
    margin-top: 1px;
    color: #fff;
    background: var(--success);
    border-radius: 50%;
    stroke-width: 3;
}
.checklist--warn .icon {
    background: var(--danger);
}

/* Postup spolupráce (číslované kroky) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 1.6rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    counter-increment: step;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.step p {
    margin: 0;
    font-size: 0.95rem;
}

/* Statistiky / čísla */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.stat {
    text-align: center;
}
.stat__value {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat__label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Časté dotazy (rozbalovací <details>) */
.faq {
    display: grid;
    gap: 0.75rem;
    max-width: 820px;
    margin-inline: auto;
}
.faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t), box-shadow var(--t);
}
.faq__item[open] {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    box-shadow: var(--shadow);
}
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}
.faq__item summary::-webkit-details-marker {
    display: none;
}
.faq__item summary .icon {
    color: var(--primary);
    transition: transform var(--t) var(--ease);
}
.faq__item[open] summary .icon {
    transform: rotate(180deg);
}
.faq__item p {
    margin: 0;
    padding: 0 1.3rem 1.2rem;
}

/* Štítky (tagy) */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tags li {
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
}


/* =========================================================================
   10. STRÁNKA APLIKACE – filtry a vyhledávání
   ========================================================================= */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.chips::-webkit-scrollbar {
    display: none;
}
.chip {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all var(--t-fast);
}
.chip:hover {
    color: var(--text);
}
.chip.is-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}
.search {
    position: relative;
    flex: 0 1 300px;
}
.search .icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}
.search input {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 1rem 0.6rem 2.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.no-results {
    display: none;
    padding: 3rem 1rem;
    text-align: center;
}
.no-results.is-visible {
    display: block;
}


/* =========================================================================
   11. O MNĚ, KONTAKT, BLOG, 404
   ========================================================================= */

/* Profilová karta (O mně) */
.profile {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.profile__card {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    padding: 1.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.profile__photo {
    width: 100%;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
}
.profile__photo img {
    width: 100%;
}
.profile__card h2 {
    margin-bottom: 0.2rem;
    font-size: 1.5rem;
}
.profile__role {
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}
.profile__card .tags {
    justify-content: center;
    margin-bottom: 1.25rem;
}
/* Mezery mezi bloky textu v profilu */
.profile__body > * + * {
    margin-top: 2.5rem;
}
.profile__body > h3 + .grid {
    margin-top: 0;
}

/* Kontaktní dlaždice */
.contact-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t);
}
a.contact-tile:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.contact-tile small {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.contact-tile strong {
    font-size: 1.02rem;
    word-break: break-word;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.panel {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.panel > h2 {
    font-size: 1.5rem;
}

/* Kontaktní hodiny */
.hours {
    margin: 0;
    padding: 0;
    list-style: none;
}
.hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
}
.hours li:last-child {
    border-bottom: 0;
}
.hours span:last-child {
    font-weight: 650;
}

.map-frame {
    display: block;
    width: 100%;
    height: 280px;
    margin-top: 1.5rem;
    border: 0;
    border-radius: var(--radius);
    filter: saturate(0.9);
}
/* Mapa před načtením (zástupný box se souhlasem) */
.map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 280px;
    margin-top: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    background:
        radial-gradient(circle at 50% 40%, var(--primary-soft), transparent 70%),
        var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.map-consent p {
    margin: 0;
}
.map-consent .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.map-consent__icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
}
.checkbox a {
    text-decoration: underline;
}
.site-footer__bottom a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

[data-theme="dark"] .map-frame {
    filter: invert(0.9) hue-rotate(180deg) saturate(0.6);
}

/* Prázdný stav (blog) a chybová stránka */
.empty-state {
    max-width: 640px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.empty-state .icon-tile {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
}
.empty-state .icon-tile .icon {
    width: 30px;
    height: 30px;
}
.error-code {
    margin: 0;
    font-size: clamp(6rem, 22vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}


/* =========================================================================
   12. VÝZVA K AKCI (CTA)
   ========================================================================= */
.cta-band {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    overflow: hidden;
    color: #fff;
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-brand);
}
/* Dekorativní kruhy v pozadí */
.cta-band::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 380px;
    height: 380px;
    border: 60px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.cta-band h2 {
    margin-bottom: 0.4rem;
    color: #fff;
}
.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}
.cta-band > div:first-child {
    flex: 1 1 380px;
}
.cta-band__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


/* =========================================================================
   13. FORMULÁŘE A MODÁLNÍ OKNO
   ========================================================================= */
.contact-form {
    display: grid;
    gap: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 650;
}
.field__optional {
    font-weight: 400;
    color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    font-size: 1rem; /* 16px = iOS při kliknutí nezoomuje */
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea {
    resize: vertical;
    min-height: 120px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.field.has-error input,
.field.has-error textarea {
    border-color: var(--danger);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
}
.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

/* Skryté pole proti spamu */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Stav odesílání – točící se kolečko v tlačítku */
.btn__label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.is-loading .btn__label { display: none; }
.is-loading .spinner { display: block; }

.form-status {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}
.form-status:empty {
    display: none;
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* Modální okno (nativní <dialog>) */
.modal {
    width: min(560px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal[open] {
    animation: modalIn 0.35s var(--ease);
}
.modal::backdrop {
    background: rgba(8, 12, 24, 0.55);
    backdrop-filter: blur(4px);
}
.modal__inner {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.25rem);
}
.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.modal__title {
    margin-bottom: 0.3rem;
    padding-right: 3rem;
    font-size: 1.6rem;
}
.modal__lead {
    margin-bottom: 1.5rem;
}
/* Při otevřeném okně se nescrolluje stránka pod ním */
body.modal-open {
    overflow: hidden;
}


/* =========================================================================
   14. PATIČKA, SPODNÍ LIŠTA, PLOVOUCÍ TLAČÍTKO, TOAST
   ========================================================================= */
.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 1.3fr;
    gap: 2rem;
}
.site-footer__brand p {
    max-width: 320px;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.site-footer__title {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.site-footer__links {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}
.site-footer__links a,
.site-footer__links span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    transition: color var(--t-fast);
}
.site-footer__links a:hover {
    color: var(--primary);
}
.site-footer__contact .icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-block: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: 0;
}
.back-to-top:hover {
    color: var(--primary);
}
.back-to-top .icon {
    width: 16px;
    height: 16px;
}

/* Spodní lišta – jen na mobilu (viz responzivita) */
.tabbar {
    display: none;
}

/* Plovoucí tlačítko s avatarem */
.fab {
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 900;
    width: 64px;
    height: 64px;
    padding: 0;
    background: #fff;
    border: 3px solid transparent;
    border-radius: 50%;
    background-image: linear-gradient(#fff, #fff), var(--brand-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-lg);
    transition: transform var(--t) var(--ease);
}
.fab:hover {
    transform: scale(1.08);
}
.fab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
}
.fab__tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 650;
    white-space: nowrap;
    color: #fff;
    background: var(--text);
    border-radius: 999px;
    opacity: 0;
    transform: translate(8px, -50%);
    transition: opacity var(--t), transform var(--t) var(--ease);
    pointer-events: none;
}
[data-theme="dark"] .fab__tooltip {
    color: var(--bg);
}
.fab:hover .fab__tooltip,
.fab:focus-visible .fab__tooltip {
    opacity: 1;
    transform: translate(0, -50%);
}
/* Pulzující kruh – upoutá pozornost */
.fab__pulse {
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: 50%;
    background: var(--brand-gradient);
    animation: pulse 2.8s ease-out infinite;
}

/* Oznámení (toast) */
.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 2500;
    max-width: calc(100% - 2rem);
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    color: #fff;
    background: var(--text);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px);
    transition: all var(--t) var(--ease);
}
[data-theme="dark"] .toast {
    color: var(--bg);
}
.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.toast.is-error {
    color: #fff;
    background: var(--danger);
}


/* =========================================================================
   15. ANIMACE
   ========================================================================= */

/* Postupné zobrazení prvků při scrollování (třída is-visible z JS) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* Úvodní část stránky (hero) je vidět hned – nečeká na animaci při scrollování */
.hero .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Bez JavaScriptu zůstane obsah viditelný */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    70%, 100% { transform: scale(1.45); opacity: 0; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* Respektuje nastavení systému "omezit pohyb" */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================================
   16. RESPONZIVITA
   ========================================================================= */

/* ---------- Desktop: rozbalení menu služeb při najetí myší ---------- */
@media (hover: hover) and (min-width: 1081px) {
    .has-dropdown:hover .dropdown,
    .has-dropdown:focus-within .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
    .has-dropdown:hover .nav__chevron {
        transform: rotate(180deg);
    }
}

/* ---------- Užší desktop (1081–1300 px): menu bez ikon, aby se vešlo ---------- */
@media (min-width: 1081px) and (max-width: 1300px) {
    .nav__link > .icon:not(.nav__chevron) {
        display: none;
    }
    .nav__link {
        padding-inline: 0.7rem;
    }
    .site-header__inner {
        gap: 1rem;
    }
}
.brand {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ---------- Tablet a menší (≤ 1080 px): vysouvací menu ---------- */
@media (max-width: 1080px) {
    .menu-toggle {
        display: inline-grid;
    }

    /* Menu jako panel vysouvaný zprava */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        width: min(360px, 88vw);
        margin: 0;
        padding: calc(var(--header-h) + 1rem) 1.25rem 2rem;
        overflow-y: auto;
        background: var(--surface);
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s var(--ease), visibility 0.4s;
    }
    .nav-open .nav {
        transform: none;
        visibility: visible;
    }
    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    .nav__link {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
        border-radius: 12px;
    }
    .nav__chevron {
        margin-left: auto;
    }

    /* Podmenu jako rozbalovací "harmonika" */
    .dropdown {
        position: static;
        width: auto;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        transition: max-height 0.4s var(--ease);
    }
    .has-dropdown.is-open .dropdown {
        max-height: 600px;
        transform: none;
    }
    .dropdown__link small {
        display: none;
    }
    .dropdown__link {
        align-items: center;
        padding: 0.6rem 1rem;
    }

    /* Ztmavení stránky za otevřeným menu */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 999; /* pod hlavičkou (1000), ve které je panel menu */
        display: block;
        background: rgba(8, 12, 24, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--t), visibility var(--t);
    }
    .nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .nav-open {
        overflow: hidden;
    }
    /* Tlačítka v hlavičce zůstanou nad panelem (kvůli tlačítku zavřít) */
    .site-header__actions {
        position: relative;
        z-index: 1200;
        margin-left: auto;
    }

    .hero__grid,
    .page-hero .hero__grid {
        grid-template-columns: 1fr;
    }
    .hero__media {
        max-width: 640px;
        margin-inline: auto;
        width: 100%;
    }
    .page-hero__media {
        max-width: 380px;
    }
    .profile {
        grid-template-columns: 280px 1fr;
    }
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Menší tablet (≤ 860 px) ---------- */
@media (max-width: 860px) {
    .feature-row,
    .contact-layout,
    .profile {
        grid-template-columns: 1fr;
    }
    .feature-row:nth-child(even) .feature-row__media {
        order: 0;
    }
    .feature-row__media {
        max-width: 560px;
        margin-inline: auto;
    }
    .profile__card {
        position: static;
        max-width: 420px;
        margin-inline: auto;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1.5rem;
    }
}

/* ---------- Mobil (≤ 640 px): spodní lišta jako v aplikaci ---------- */
@media (max-width: 640px) {
    :root {
        --header-h: 64px;
    }

    body {
        /* místo pro spodní lištu + bezpečná zóna iPhonu */
        padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    }

    .site-header__cta {
        display: none;
    }
    .brand {
        font-size: 1.1rem;
    }
    .brand img {
        width: 34px;
        height: 34px;
    }

    .tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--header-bg);
        backdrop-filter: saturate(180%) blur(14px);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid var(--border);
    }
    .tabbar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text-muted);
        -webkit-tap-highlight-color: transparent;
    }
    .tabbar__item .icon {
        width: 22px;
        height: 22px;
        transition: transform var(--t) var(--ease);
    }
    .tabbar__item.is-active {
        color: var(--accent);
    }
    .tabbar__item.is-active .icon {
        transform: translateY(-2px);
    }
    .tabbar__item:active .icon {
        transform: scale(0.88);
    }

    /* Plovoucí tlačítko nad spodní lištou */
    .fab {
        bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
        width: 56px;
        height: 56px;
    }
    .fab__tooltip {
        display: none;
    }
    .toast {
        bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
    }

    .hero__actions .btn,
    .cta-band__actions,
    .cta-band__actions .btn {
        width: 100%;
    }
    .float-badge {
        display: none;
    }
    .page-hero__media {
        max-width: 280px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
    .site-footer__bottom {
        justify-content: center;
        text-align: center;
    }
    .toolbar {
        flex-direction: column;
        flex-wrap: nowrap; /* se zalamováním by se řada filtrů roztáhla přes okraj */
        align-items: stretch;
    }
    .search {
        flex-basis: auto;
    }

    /* Modální okno na mobilu vyjede zespodu jako "sheet" */
    .modal {
        width: 100%;
        max-width: none;
        max-height: 92dvh;
        margin: auto 0 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-bottom: 0;
    }
    .modal[open] {
        animation: sheetIn 0.4s var(--ease);
    }
}

@keyframes sheetIn {
    from { transform: translateY(100%); }
    to { transform: none; }
}

/* Tisk – bez navigace a plovoucích prvků */
@media print {
    .site-header,
    .tabbar,
    .fab,
    .toast,
    .cta-band__actions {
        display: none !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================================
   17. BLOG – výpis a detail článku
   ========================================================================= */

/* Karta článku */
.post-card-wrap {
    display: grid;
}
.post-card-wrap[hidden] {
    display: none;
}
.post-card__img {
    margin: -0.25rem -0.25rem 0.5rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #fff;
    border-radius: 12px;
}
.post-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.card--link:hover .post-card__img img {
    transform: scale(1.04);
}
.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.post-card__meta > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.post-card__meta .icon {
    width: 15px;
    height: 15px;
}

/* Úzký sloupec pro pohodlné čtení */
.post-container {
    max-width: 780px;
}
.post-hero {
    padding-bottom: 0;
}
.post-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.post-meta img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: top;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 50%;
}
.post-meta strong,
.post-meta small {
    display: block;
}
.post-meta small {
    color: var(--text-muted);
}
.post-cover {
    margin-top: 2rem;
}
.post-cover img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Text článku */
.prose {
    padding-block: clamp(2rem, 5vw, 3rem) 1rem;
    font-size: 1.08rem;
    line-height: 1.8;
}
.prose > * + * {
    margin-top: 1.1em;
}
.prose p,
.prose li {
    color: var(--text);
    opacity: 0.92;
}
.prose p {
    margin-bottom: 0;
}
.prose h2 {
    margin: 2.2em 0 0.6em;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
}
.prose h3 {
    margin: 1.8em 0 0.5em;
    font-size: 1.2rem;
}
.prose h2 + *,
.prose h3 + * {
    margin-top: 0;
}
.prose ul,
.prose ol {
    padding-left: 1.4rem;
}
.prose li + li {
    margin-top: 0.45em;
}
.prose li::marker {
    color: var(--primary);
    font-weight: 700;
}
.prose a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
    text-underline-offset: 3px;
}
.prose a:hover {
    text-decoration-color: var(--primary);
}
.prose code {
    padding: 0.1em 0.4em;
    font-size: 0.9em;
    background: var(--surface-2);
    border-radius: 6px;
}

/* Zvýrazněný rámeček v článku */
.callout {
    padding: 1.1rem 1.25rem;
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}


/* =========================================================================
   18. VZORY – ukázky webů a aplikací
   ========================================================================= */
.template-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.template-card[hidden] {
    display: none;
}
.template-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    box-shadow: var(--shadow-lg);
}
/* Náhled jako okno prohlížeče */
.template-card__preview {
    display: block;
    margin: 1rem 1rem 0;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.template-card__bar {
    display: flex;
    gap: 5px;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.template-card__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
}
.template-card__bar i:nth-child(1) { background: #ff5f57; }
.template-card__bar i:nth-child(2) { background: #febc2e; }
.template-card__bar i:nth-child(3) { background: #28c840; }
.template-card__preview img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    transition: transform 0.6s var(--ease);
}
.template-card:hover .template-card__preview img {
    transform: scale(1.03);
}
.template-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.4rem 1.5rem;
}
.template-card__body h2 {
    margin: 0;
    font-size: 1.35rem;
}
.template-card__body p {
    margin: 0;
}
.template-card__body .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Informační rámeček pod vzory */
.note-box {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    max-width: 760px;
    margin: 2.5rem auto 0;
    padding: 1.1rem 1.3rem;
    background: var(--primary-soft);
    border-radius: var(--radius);
}
.note-box .icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--primary);
}
.note-box p {
    margin: 0;
}
