/* ====================================================
   Kominictví Matěj Stehlík
   Static website — pure CSS, no framework
   Design tokens inspired by Japanese flag aesthetic:
   white background, red sun, dark silhouettes, warm windows
   ==================================================== */

:root {
    /* Color tokens — terakotová paleta (řemeslný, profesionální tón) */
    --bg: #ffffff;
    --bg-soft: #faf5ed;
    --bg-warm: #f3e9da;
    --ink: #1f1611;
    --ink-soft: #4a3a30;
    --ink-mute: #7a6a5e;
    --rule: #e8dccc;

    --red: #b5483b;        /* terakota */
    --red-deep: #7d2e25;
    --red-soft: #f7e6e1;

    --silhouette: #2c1810;
    --window: #e8a838;     /* teplá zlato-žlutá */
    --warm: #d18a2c;

    --shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 20, 16, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 20, 16, 0.12);

    /* Typography — systémové fonty (bez externí závislosti, zero requests) */
    --font-serif: Georgia, "Times New Roman", "DejaVu Serif", "Liberation Serif", Cambria, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    /* Layout */
    --container: 1180px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ====== Reset / base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.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;
}

/* Skip link (a11y) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--ink);
    color: #fff;
    padding: .65rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus {
    top: 1rem;
    color: #fff;
    outline: 3px solid var(--window);
    outline-offset: 2px;
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    cursor: pointer;
    text-align: center;
    line-height: 1;
}
.btn--small { padding: .6rem 1rem; font-size: .9rem; }
.btn--primary {
    background: var(--red);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn--primary:hover {
    background: var(--red-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn--ghost {
    background: rgba(255,255,255,.85);
    color: var(--ink);
    border: 1.5px solid var(--ink);
    backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--instagram {
    background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn--instagram:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* WhatsApp tlačítko — brand zelená, sjednocené s ostatními btn */
.btn--whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn--whatsapp:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ====== Top contact bar (vždy viditelná) ======
   Neutrální cream/white akcent (jako Stripe/Linear) — vysoký
   kontrast na tmavém pozadí, terakotový hover bez křiklavosti. */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.92);
    font-size: .88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: .55rem 1.25rem;
    min-height: 38px;
}
.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color .2s;
    line-height: 1.2;
    padding: .35rem 0;          /* zvětšuje touch target na ~28px (mobile-friendly) */
    min-height: 28px;
}
.topbar__link svg {
    color: rgba(255, 255, 255, 0.55);  /* neutrální cream místo oranžové */
    flex-shrink: 0;
    transition: color .2s;
}
.topbar__link:hover {
    color: #fff;
}
.topbar__link:hover svg {
    color: var(--red);  /* terakotový hover — sladí s brand barvou */
}
.topbar__phone span {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.topbar__loc {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.topbar__loc svg {
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 720px) {
    .topbar__inner {
        gap: .85rem;
        padding: .55rem 1rem;
    }
    .topbar__loc {
        display: none;  /* na mobilu šetříme místo — lokalita schovaná */
    }
    .topbar__email span {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
@media (max-width: 460px) {
    .topbar__inner { gap: .75rem; }
    .topbar__email span {
        max-width: 130px;
        font-size: .82rem;
    }
}

/* ====== Header ====== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rule);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    gap: 1rem;
}
.header__logo img {
    height: 56px;
    width: 56px;
    object-fit: contain;
    transition: transform .3s;
}
.header__logo:hover img { transform: rotate(-5deg); }

.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .98rem;
    position: relative;
    padding: .25rem 0;
}
.nav a:not(.nav__cta)::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width .25s;
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav a:hover { color: var(--red-deep); }
.nav__cta {
    background: var(--ink);
    color: #fff !important;
    padding: .55rem 1.1rem !important;
    border-radius: 999px;
}
.nav__cta:hover { background: var(--red); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform .3s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== Hero ====== */
.hero {
    position: relative;
    min-height: clamp(560px, 85vh, 760px);
    overflow: hidden;
    background: linear-gradient(180deg, #fffaf3 0%, #ffffff 70%);
    padding: clamp(3rem, 8vw, 6rem) 0 0;
    display: flex;
    flex-direction: column;
}

.hero__sun {
    position: absolute;
    top: 12%;
    right: 8%;
    width: clamp(240px, 32vw, 380px);
    height: clamp(240px, 32vw, 380px);
    background: radial-gradient(circle, var(--red) 0%, var(--red) 65%, rgba(181,72,59,0.35) 80%, rgba(181,72,59,0) 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(181,72,59,.18);
    /* Východ slunce — 1× při načtení, 8 s.
       Sluníčko vystoupá zespodu (zezadu skyline) na svou pozici a tam zůstane.
       Pak začne jemné pulsování (sun-pulse) po dokončení východu. */
    animation:
        sun-rise 8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        sun-pulse 10s ease-in-out 8s infinite;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__sun picture {
    display: block;
    width: 82%;
    height: 82%;
}
.hero__sun-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Logo začne tmavé (invert 0), zatímco slunce stoupá. Po většinu cyklu
       postupně přejde do čistě bílé (invert 1) a tam zůstane. */
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.22));
    animation: logo-rise 8s ease-out forwards;
}
@keyframes sun-rise {
    0% {
        transform: translateY(70vh) scale(0.94);
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
@keyframes logo-rise {
    /* Tmavé logo zůstává prvních ~30 % cyklu (slunce ještě stoupá za baráčky),
       pak postupně bělá, ke konci je v plné bílé. */
    0%, 30% { filter: brightness(0) invert(0) drop-shadow(0 4px 12px rgba(0,0,0,0.22)); }
    100%    { filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.22)); }
}
/* Respekt k uživatelské preferenci (a11y) — kdo má vypnuté animace, vidí
   slunce + bílé logo rovnou statické v cílovém stavu. */
@media (prefers-reduced-motion: reduce) {
    .hero__sun, .hero__sun-logo { animation: none; }
}
@keyframes sun-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.04); opacity: .94; }
}

.hero__skyline {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 220px;
    z-index: 1;
    pointer-events: none;
}
.hero__skyline svg { width: 100%; height: 100%; display: block; }

.hero__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 220px;
    max-width: 720px;
}
.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: .85rem;
    font-weight: 600;
    color: var(--red-deep);
    margin: 0 0 1rem;
}
.hero__title {
    font-family: var(--font-serif);
    font-weight: 700;
    margin: 0 0 1.25rem;
}
.hero__title span { display: block; }
.hero__title span + span { margin-top: .05em; }
.hero__sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 0 2rem;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.hero__pref {
    margin-top: 1.25rem;
    font-size: .92rem;
    color: var(--ink-soft);
}
.hero__pref strong { color: var(--ink); }

/* ====== Sections ====== */
.section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section--lhuty { background: var(--bg-soft); }
.section--about { background: var(--bg); }
.section--instagram { background: var(--bg-soft); }
.section--contact { background: var(--bg); }

.section__head {
    max-width: 720px;
    margin: 0 0 3rem;
}
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: .82rem;
    font-weight: 600;
    color: var(--red-deep);
    margin: 0 0 .75rem;
}
.lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin: 0;
}

/* ====== Cards (Services) ====== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}
.card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--red-soft);
    color: var(--red-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.25rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }

.card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.card--link:hover { color: inherit; }
.card__cta {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--red-deep);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}
.card--link:hover .card__cta { color: var(--red); }

.card--cta {
    background: linear-gradient(135deg, var(--ink) 0%, #2a201a 100%);
    color: #fff;
    border: none;
    justify-content: center;
}
.card--cta h3 { color: #fff; }
.card--cta p { color: rgba(255,255,255,0.78); }
.card__link {
    color: var(--window);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1.05rem;
    white-space: nowrap;
}
.card__link:hover { color: #fff; }

/* "Ostatní služby" karta — výpis položek */
.card--more {
    background: var(--bg-soft);
    border-color: var(--rule);
}
.card--more h3 {
    color: var(--ink);
    margin-bottom: 1rem;
}
.card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.card__list li {
    padding: .35rem 0 .35rem 1.25rem;
    position: relative;
    font-size: .95rem;
    color: var(--ink-soft);
    line-height: 1.45;
}
.card__list li::before {
    content: "·";
    position: absolute;
    left: 0;
    top: .15rem;
    color: var(--red);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}
.card__list-title {
    margin: .5rem 0 .25rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.card--cta-wide {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.card--cta-wide h3 { margin-bottom: .5rem; }

/* ====== Lhůty / Table ====== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--bg);
    border: 1px solid var(--rule);
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .96rem;
    min-width: 640px;
}
.table thead {
    background: var(--ink);
    color: #fff;
}
.table th, .table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.table thead th {
    font-weight: 600;
    color: #fff;
    border-bottom: 0;
    font-size: .92rem;
}
.table th[scope="row"] {
    font-weight: 600;
    color: var(--ink);
    background: var(--bg-warm);
    width: 32%;
}
.th-sub { display: block; font-weight: 400; color: rgba(255,255,255,0.7); font-size: .8rem; margin-top: 2px; }
.td-sub { display: block; color: var(--ink-mute); font-size: .85rem; margin-top: 2px; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-warm); }

.note {
    margin-top: 1.5rem;
    color: var(--ink-mute);
    font-size: .95rem;
    line-height: 1.55;
}

/* ====== About ====== */
.about {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about__text p { margin-bottom: 1.1em; color: var(--ink-soft); }
.about__text strong { color: var(--ink); font-weight: 600; }
.about__text .btn { margin-top: 1rem; }
.about__logo {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--rule);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
.about__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ====== Instagram section ====== */
.ig-cta {
    text-align: center;
    margin-bottom: 2.5rem;
}
.ig-hint {
    color: var(--ink-mute);
    font-size: .9rem;
    margin-top: .75rem;
}
.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ig-tile {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f5ede0 0%, #faf6f0 100%);
    border: 1px dashed var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mute);
    font-size: .9rem;
    transition: transform .25s, border-color .25s;
}
/* === Instagram feed (vlastní fetch z Behold.so) ===
   Free tier Behold dává 6 příspěvků. Grid 3×2 sjednotí
   layout (žádné prázdné dlaždice na desktopu). */
.ig-grid#igFeed {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    min-height: 280px;
    align-items: stretch;
}
.ig-grid#igFeed > .ig-tile {
    /* override placeholder styles when JS populates real tiles */
    background: var(--ink);
    border: 1px solid var(--rule);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
    display: block;
}
.ig-grid#igFeed > .ig-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}
.ig-tile__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}
.ig-tile__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.ig-grid#igFeed > .ig-tile:hover .ig-tile__img-wrap img {
    transform: scale(1.05);
}
.ig-tile__badge {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.ig-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.ig-grid#igFeed > .ig-tile:hover .ig-tile__overlay,
.ig-grid#igFeed > .ig-tile:focus .ig-tile__overlay {
    opacity: 1;
}
.ig-tile__caption {
    color: #fff;
    font-size: .9rem;
    line-height: 1.4;
    margin: 0 0 .35rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ig-tile__date {
    color: var(--window);
    font-size: .78rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.ig-feed-loading,
.ig-feed-error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ink-mute);
    padding: 3rem 1rem;
    font-style: italic;
}
.ig-feed-error a {
    color: var(--red-deep);
    font-weight: 600;
}

/* Mobile — show overlay always (no hover on touch devices) */
@media (hover: none) {
    .ig-grid#igFeed > .ig-tile .ig-tile__overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
    }
}

/* Univerzální helper — text v rámci spanu se nikdy nezalomí.
   Použito hlavně pro telefonní čísla (731 026 254) v textech / tlačítkách. */
.nowrap { white-space: nowrap; }

/* ====== Contact ====== */
.contact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}
/* Varianta s 3 kartami v řadě (telefon / SMS / WhatsApp) */
.contact__grid--three {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
    .contact__grid { grid-template-columns: 1fr 1fr; }
    .contact__grid--three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .contact__grid { grid-template-columns: 1fr; }
    .contact__grid--three { grid-template-columns: 1fr; }
}

/* Wide karta (e-mail samostatně přes celou šířku) */
.contact__card--wide {
    text-align: left;
}
.contact__card--wide .contact__icon {
    width: 56px;
    height: 56px;
}
.contact__card--wide .contact__value--email {
    font-size: 1.05rem;
    white-space: normal;
    word-break: break-all;
    line-height: 1.3;
}
.contact__card--whatsapp {
    border-color: #25D366;
    background: linear-gradient(135deg, #fff 0%, rgba(37, 211, 102, 0.08) 100%);
}
.contact__card--whatsapp .contact__icon {
    background: #25D366;
    color: #fff;
}
.contact__card--whatsapp .contact__label {
    color: #128C7E;
}
.contact__card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: left;
    transition: all .25s;
    color: var(--ink);
    display: block;
}
.contact__card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--ink);
}
.contact__card--primary {
    border-color: var(--red);
    background: linear-gradient(135deg, #fff 0%, var(--red-soft) 100%);
}
.contact__card--primary .contact__icon {
    background: var(--red);
    color: #fff;
}
.contact__card--primary .contact__label {
    color: var(--red-deep);
}
.contact__icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__label {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    margin: 0 0 .25rem;
    font-weight: 600;
}
.contact__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
    /* Telefonní hodnoty (čísla) se nikdy nelámou — pouze e-mail
       v adresářové variantě může lámat (viz .contact__card[href^="mailto"]) */
    white-space: nowrap;
}
/* E-mailová karta — povolit zalomení (jinak by 27 znaků přetékalo) */
.contact__card[href^="mailto"] .contact__value {
    white-space: normal;
    word-break: break-all;
    font-size: .92rem;
    line-height: 1.3;
}

.invoice {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--rule);
}
.invoice h3 { margin-bottom: 1.25rem; }
.invoice__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 0 0 1rem;
}
.invoice__list > div { display: flex; flex-direction: column; gap: 2px; }
.invoice__list dt {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
    font-weight: 600;
}
.invoice__list dd {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}
.invoice__note {
    font-size: .9rem;
    color: var(--ink-mute);
    font-style: italic;
    margin: 0;
}

/* ====== Footer ====== */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.78);
    padding: 4rem 0 0;
    margin-top: 0;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { padding-right: 1rem; }
.footer__addr {
    color: rgba(255,255,255,0.6);
    font-size: .9rem;
    margin-top: 1rem;
    line-height: 1.5;
}
.footer__logo {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    margin-bottom: 1.25rem;
}
.footer__tagline {
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    font-size: .98rem;
}
.footer h4 {
    color: #fff;
    margin-bottom: 1.25rem;
}
.footer__nav, .footer__contact {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.footer__nav a, .footer__contact a {
    color: rgba(255,255,255,0.78);
    font-size: .95rem;
}
.footer__nav a:hover, .footer__contact a:hover {
    color: var(--window);
}
.footer__contact p { margin: 0; }

.footer__bottom {
    padding: 1.5rem 0;
    background: rgba(0,0,0,0.3);
}
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .88rem;
    color: rgba(255,255,255,0.55);
}
.footer__credit a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    text-underline-offset: 3px;
}
.footer__credit a:hover { color: var(--window); }

/* ====== Cookie bar ====== */
.cookie-bar {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: cookie-in .3s ease-out;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
@keyframes cookie-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}
.cookie-bar p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
    flex: 1;
    min-width: 220px;
}
.cookie-bar a { color: var(--window); text-decoration: underline; }
.cookie-bar a:hover { color: #fff; }

/* ====== Sub-page hero (services, lhuty, o-nas, kontakt) ====== */
.page-hero {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--rule);
}
.page-hero__inner {
    max-width: 820px;
}
.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin: .5rem 0 1rem;
}
.page-hero p {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--ink-soft);
    margin: 0;
    max-width: 640px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: .88rem;
    color: var(--ink-mute);
    margin: 0 0 .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--red-deep); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 500; }
.breadcrumbs li { list-style: none; }
.breadcrumbs ol { display: contents; padding: 0; margin: 0; }

/* ====== Article-style content (subpages) ====== */
.content {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.content__layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}
.content__main h2 {
    margin-top: 2.5rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.content__main h2:first-child { margin-top: 0; }
.content__main h3 {
    margin-top: 2rem;
    font-size: 1.2rem;
}
.content__main p, .content__main li {
    color: var(--ink-soft);
    line-height: 1.75;
}
.content__main ul, .content__main ol {
    padding-left: 1.5rem;
}
.content__main li { margin-bottom: .4rem; }
.content__main strong { color: var(--ink); font-weight: 600; }
.content__main blockquote {
    border-left: 4px solid var(--red);
    padding: .25rem 0 .25rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--ink);
    font-style: italic;
}
.content__main a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 2px; }
.content__main a:hover { color: var(--red); }

.aside-card {
    position: sticky;
    top: 100px;
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}
.aside-card h3 {
    margin: 0 0 .75rem;
    font-size: 1.15rem;
}
.aside-card p { margin: 0 0 1rem; font-size: .95rem; color: var(--ink-soft); }
.aside-card .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    /* Pokud telefonní číslo nebo dlouhý text nezalomí mezi slovy, dovolíme zalomení */
    white-space: normal;
    line-height: 1.3;
    padding-top: .8rem;
    padding-bottom: .8rem;
}
.aside-card .btn + .btn { margin-top: .5rem; }

@media (max-width: 900px) {
    .content__layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .aside-card { position: static; }
}

/* FAQ accordion-like section */
.faq {
    display: grid;
    gap: .75rem;
}
.faq__item {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq__item summary {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--red);
    flex-shrink: 0;
    transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item div {
    padding: 0 1.5rem 1.5rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ====== Privacy page ====== */
.legal {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.legal__inner {
    max-width: 760px;
    margin: 0 auto;
}
.legal h1 { margin-bottom: 2rem; }
.legal h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.5rem; }
.legal ul li { margin-bottom: .5rem; }
.legal a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 2px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 2rem;
}
.back-link:hover { color: var(--red); }

/* ====================================================
   RESPONSIVE — tablet
   ==================================================== */
@media (max-width: 960px) {
    .nav-toggle { display: flex; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--rule);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        align-items: stretch;
    }
    .nav.is-open { max-height: 500px; }
    .nav a {
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--rule);
        font-size: 1rem;
    }
    .nav a:not(.nav__cta)::after { display: none; }
    .nav__cta {
        margin: 1rem 1.5rem !important;
        text-align: center;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about__logo {
        max-width: 380px;
        margin: 0 auto;
        padding: 2rem;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer__brand { grid-column: 1 / -1; }
}

/* ====================================================
   RESPONSIVE — mobile
   ==================================================== */
@media (max-width: 600px) {
    body { font-size: 16px; }

    .container { padding: 0 1rem; }

    .header__inner { padding: .75rem 1rem; }
    .header__logo img { height: 48px; width: 48px; }

    .hero {
        min-height: 540px;
        text-align: left;
        padding-top: 1.5rem;
    }
    /* Mobilní layout B — sluníčko jako "razítko" vycentrované nad textem.
       Logo invertované na bílou kresbu (filter brightness(0) invert(1)). */
    .hero__sun {
        position: relative;
        top: auto;
        right: auto;
        width: 160px;
        height: 160px;
        align-self: center;
        margin: 0 auto 1.25rem;
        flex-shrink: 0;
    }
    .hero__skyline { height: 160px; }
    .hero__content {
        /* Text plyne pod sluníčkem, žádné odsazení nahoru — sluníčko
           je v normálním flow před hero__content. */
        padding: 0 0 160px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .hero__title span { display: inline; }
    .hero__title span + span::before { content: ' '; }
    .hero__actions .btn { width: 100%; justify-content: center; }

    .section { padding: 3rem 0; }
    .section__head { margin-bottom: 2rem; }

    .cards { gap: 1rem; }
    .card { padding: 1.5rem; }

    .table th, .table td { padding: .75rem .9rem; font-size: .9rem; }

    .invoice { padding: 1.5rem; }
    .invoice__list { gap: 1rem; }

    .footer { padding: 3rem 0 0; }
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
    }

    .cookie-bar { left: .75rem; right: .75rem; bottom: .75rem; }
    .cookie-bar__inner { padding: 1rem; }
    .cookie-bar .btn--small { width: 100%; }
}

/* ====================================================
   ACCESSIBILITY
   ==================================================== */
@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;
    }
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* Print */
@media print {
    .header, .footer__bottom, .cookie-bar, .nav-toggle, .hero__sun, .hero__skyline { display: none !important; }
    .hero { min-height: auto; padding: 1rem 0; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}


/* ====== Related services (interní propojení detailů) ====== */
.related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0;
}
.related__card {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
    color: var(--ink);
}
.related__card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}
.related__card h3 {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
    line-height: 1.3;
}
.related__card span {
    white-space: nowrap;
    font-size: .9rem;
    color: var(--red-deep);
    font-weight: 600;
}


/* ====== Coverage strip (lokální SEO) ====== */
.coverage {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    padding: 1.75rem 0;
    text-align: center;
}
.coverage__title {
    font-weight: 600;
    color: var(--window);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: .85rem;
    margin: 0 0 .5rem;
}
.coverage__list {
    font-size: .98rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    .coverage { padding: 1.25rem 0; }
    .coverage__list { font-size: .9rem; line-height: 1.5; }
}

/* ====== Mapa působnosti (SVG) ====== */
.section--coverage {
    background: var(--bg);
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.coverage-map {
    margin: 2rem 0;
    text-align: center;
}
.coverage-map img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: #faf5ed;
    box-shadow: var(--shadow-sm);
}
.coverage-map figcaption {
    margin-top: 1rem;
    color: var(--ink-mute);
    font-size: .92rem;
    font-style: italic;
    text-align: center;
}
.coverage-map--inline {
    margin: 1.75rem 0 2rem;
}
.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}
.coverage-grid .coverage-map {
    margin: 0;
}
.coverage-grid .coverage-map img {
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) {
    .coverage-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
.coverage-cities {
    text-align: center;
    color: var(--ink-soft);
    margin-top: 1.5rem;
    line-height: 1.7;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}
.coverage-cities strong { color: var(--ink); }

/* ====== Sezónní banner — automatická změna podle měsíce ====== */
.seasonal {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-soft) 100%);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 1.75rem 0;
    transition: background 0.4s ease;
}
.seasonal__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}
.seasonal__icon {
    font-size: 2.75rem;
    line-height: 1;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 50%;
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.seasonal__text { min-width: 0; }
.seasonal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--red-deep);
    margin: 0 0 .15rem;
}
.seasonal__title {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .25rem;
    line-height: 1.25;
}
.seasonal__sub {
    color: var(--ink-soft);
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
}
.seasonal__cta {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Sezónní varianty — barva ikony/akcentu */
.seasonal--autumn  { background: linear-gradient(135deg, #f9eadd 0%, #faf5ed 100%); }
.seasonal--autumn  .seasonal__icon { background: #fff4e8; }
.seasonal--winter  { background: linear-gradient(135deg, #f7e6e1 0%, #faf5ed 100%); }
.seasonal--winter  .seasonal__icon { background: #fff0eb; }
.seasonal--winter  .seasonal__eyebrow { color: var(--red); }
.seasonal--spring  { background: linear-gradient(135deg, #e8f1e3 0%, #faf5ed 100%); }
.seasonal--spring  .seasonal__icon { background: #f0f7eb; }
.seasonal--spring  .seasonal__eyebrow { color: #4a7a3a; }
.seasonal--summer  { background: linear-gradient(135deg, #fcf2d6 0%, #faf5ed 100%); }
.seasonal--summer  .seasonal__icon { background: #fff8e0; }
.seasonal--summer  .seasonal__eyebrow { color: #8a6510; }

@media (max-width: 720px) {
    .seasonal__inner {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    .seasonal__cta {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
        justify-content: center;
    }
    .seasonal__icon {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }
    .seasonal__title { font-size: 1.1rem; }
    .seasonal__sub { font-size: .9rem; }
}

/* ====== Utility classes (extrakce inline stylů) ====== */
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.ml-2 { margin-left: .5rem; }
.text-center { text-align: center; }
.muted-small {
    font-size: .9rem;
    color: var(--ink-mute);
}
.boxed-light {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}
.section__head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
}
