.home-v2 { --h2-ink: #172328; --h2-muted: #566164; --h2-line: #d9dcd5; --h2-red: #b52f29; max-width: 1280px; padding: 0 32px 64px; color: var(--h2-ink); font-size: 15px; line-height: 1.6; }
.home-v2 *, .home-v2 *::before, .home-v2 *::after { box-sizing: border-box; }
.home-v2 ::selection { color: #172328; background: #f4b5a5; }
.home-v2 input { caret-color: #b52f29; }
.home-v2 * { scrollbar-color: #6a797a #e9ede3; scrollbar-width: thin; }
.home-v2 a { color: inherit; text-decoration: none; }
.home-v2 a:focus-visible, .home-v2 button:focus-visible, .home-v2 input:focus-visible { outline: 3px solid #b52f29; outline-offset: 5px; }
.home-v2 [hidden] { display: none !important; }
.home-v2 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.home-v2 h1, .home-v2 h2, .home-v2 h3, .home-v2 p { margin: 0; }
.home-v2 h2 { font-size: 28px; line-height: 1.2; font-weight: 750; letter-spacing: -.8px; }
.h2-hero { background: #172328; color: #fff; position: relative; padding: 56px 0 44px; margin-bottom: 42px; isolation: isolate; }
/* Pozadí sahá k okrajům okna pouze vykreslením, nezvětšuje šířku stránky. */
.h2-hero::before { content: ''; position: absolute; inset: 0; background: #172328; box-shadow: 0 0 0 100vmax #172328; clip-path: inset(0 -100vmax); z-index: -1; }
.h2-hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.home-v2 h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -.035em; font-weight: 780; max-width: 540px; }
.h2-hero h1 span { color: #f29b88; }
.h2-intro { color: #c4cfcf; margin-top: 20px !important; max-width: 470px; font-size: 17px; line-height: 1.65; }
.h2-search label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 650; }
.h2-search-box { display: flex; align-items: center; gap: 14px; background: white; color: #172328; padding: 7px 7px 7px 18px; border-radius: 6px; border: 2px solid transparent; }
.h2-search-box:focus-within { border-color: #f29b88; }
.h2-search-box input { flex: 1; min-width: 0; width: 100%; border: 0; border-radius: 0; background: #fff; color: #172328; font: inherit; padding: 10px 0; box-shadow: none; }
.h2-search-box input:focus-visible { outline-offset: 0; outline-width: 2px; }
.h2-search-box button { border: 0; border-radius: 3px; padding: 12px 18px; background: #b52f29; color: #fff; font: inherit; font-weight: 650; min-height: 46px; cursor: pointer; }
.h2-search-box button:hover { background: #90241f; }
.h2-search-hint { color: #c4cfcf; font-size: 13px; margin-top: 12px !important; }
.h2-search-hint a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.h2-search-results { padding: 14px 0 0; }
.h2-search-results > p { color: #d6dedd; font-size: 14px; padding-bottom: 6px; }
.h2-search-results ul { list-style: none; padding: 0; margin: 0; max-height: 280px; overflow: auto; border-radius: 4px; background: #fff; }
.h2-search-results a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; color: #172328; border-bottom: 1px solid #e7e9e2; }
.h2-search-results a:hover, .h2-search-results a:focus-visible { background: #eeeFE9; outline-offset: -3px; }
.h2-search-results small { color: #566164; text-align: right; }
.h2-quicklinks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #3e494c; }
.h2-quicklinks a { display: inline-flex; align-items: center; gap: 9px; color: #e3e8e6; font-size: 14px; min-height: 44px; }
.h2-quicklinks a:hover { color: #f29b88; }
.h2-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.h2-heading p { color: var(--h2-muted); font-size: 14px; margin-top: 7px; }
.h2-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--h2-red) !important; font-size: 14px; font-weight: 650; min-height: 44px; }
.h2-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.h2-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; grid-template-areas: "top comments" "recent comments"; grid-template-rows: auto 1fr; gap: 40px; align-items: start; }
.h2-top { grid-area: top; min-width: 0; }
.h2-top-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--h2-line); background: white; border-radius: 6px; overflow: hidden; }
.h2-service { display: flex; flex-direction: column; min-width: 0; padding: 22px 18px; border-right: 1px solid var(--h2-line); border-bottom: 1px solid var(--h2-line); transition: background .15s; }
.h2-service:nth-child(3n) { border-right: 0; }
.h2-service:nth-last-child(-n+3) { border-bottom: 0; }
.h2-service:hover { background: #f0f2ea; }
.h2-service:focus-visible { outline-offset: -4px !important; }
.h2-service-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.h2-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; background: #fff; border: 1px solid #e7e9e2; border-radius: 10px; color: #445358; font-size: 22px; }
.h2-logo img { width: 32px; height: 32px; object-fit: contain; }
.h2-service h3 { font-size: 16px; line-height: 1.3; letter-spacing: -.2px; overflow-wrap: anywhere; }
.h2-category { display: block; font-size: 12px; color: var(--h2-muted); line-height: 1.4; margin-top: 4px; }
.h2-service-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 12px; color: var(--h2-muted); }
.h2-comment-count { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; color: #39484d; }
.h2-comments { grid-area: comments; min-width: 0; border-top: 3px solid #b52f29; padding-top: 18px; }
.h2-comments h2 { font-size: 23px; }
.h2-comments-intro { color: var(--h2-muted); font-size: 13px; margin-top: 6px !important; }
.h2-comment { padding: 20px 0; border-bottom: 1px solid var(--h2-line); }
.h2-comment-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.h2-comment-meta a { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.h2-comment-meta > span { font-size: 12px; color: var(--h2-muted); white-space: nowrap; }
.h2-comment-body { font-size: 14px; margin: 9px 0 12px !important; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.h2-comment-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--h2-muted); font-size: 12px; }
.h2-comment-footer > span:first-child { overflow-wrap: anywhere; }
.h2-stars { display: inline-flex; gap: 3px; color: #946216; flex-shrink: 0; font-size: 10px; }
.h2-stars .h2-star-empty { color: #697574; }
.h2-recent { grid-area: recent; min-width: 0; }
.h2-recent-list { border-top: 1px solid var(--h2-line); }
.h2-recent-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 125px; align-items: center; gap: 14px; padding: 15px 8px; border-bottom: 1px solid var(--h2-line); }
.h2-recent-row:hover { background: #eceee6; }
.h2-recent-name { font-size: 15px; font-weight: 700; }
.h2-recent-count { font-size: 12px; color: var(--h2-muted); margin-top: 4px; display: block; }
.h2-recent-date { text-align: right; color: var(--h2-muted); font-size: 12px; }
.h2-recent-date time { display: block; color: #39484d; }
.h2-editorial { margin-top: 56px; padding-top: 34px; border-top: 2px solid #172328; }
.h2-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.h2-article { display: flex; flex-direction: column; align-items: start; border-right: 1px solid var(--h2-line); padding-right: 32px; }
.h2-article:last-child { border: 0; padding-right: 0; }
.h2-article h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 13px; }
.h2-article h3 a:hover { color: var(--h2-red); text-decoration: underline; text-underline-offset: 4px; }
.h2-article-meta { color: var(--h2-muted); font-size: 12px; margin-bottom: 13px !important; }
.h2-article > p:not(.h2-article-meta) { color: var(--h2-muted); font-size: 14px; margin-bottom: 15px; }
.h2-article > a { margin-top: auto; }
.h2-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--h2-line); }
.h2-term { display: block; padding: 16px 0; border-bottom: 1px solid var(--h2-line); }
.h2-term:first-of-type { padding-top: 0; }
.h2-term h3 { font-size: 16px; display: inline; }
.h2-term small { margin-left: 10px; color: var(--h2-muted); font-size: 12px; }
.h2-term p { margin-top: 5px; color: var(--h2-muted); font-size: 14px; }
.h2-term:hover h3 { color: var(--h2-red); text-decoration: underline; }
.h2-statistics { padding: 28px; background: #e9ede3; border-radius: 6px; align-self: start; }
.h2-statistics h2 { font-size: 23px; }
.h2-statistics dl { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.h2-statistics dl div { display: flex; flex-direction: column-reverse; }
.h2-statistics dl div:last-child { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #cbd2c5; }
.h2-statistics dt { font-size: 13px; color: var(--h2-muted); }
.h2-statistics dd { font-size: 32px; line-height: 1.2; font-weight: 750; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.h2-statistics-note { font-size: 12px; line-height: 1.5; color: var(--h2-muted); margin-top: 24px !important; }
.h2-empty { color: var(--h2-muted); padding: 24px 0; }
@media (max-width: 1050px) {
    .h2-main-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
    .h2-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h2-service:nth-child(n) { border-right: 1px solid var(--h2-line); border-bottom: 1px solid var(--h2-line); }
    .h2-service:nth-child(2n) { border-right: 0; }
    .h2-service:last-child { border-bottom: 0; }
    .h2-recent-row { grid-template-columns: 40px minmax(0, 1fr) 112px; gap: 10px; }
    .h2-hero-layout { gap: 32px; }
}
@media (max-width: 760px) {
    .home-v2 { padding: 0 20px 40px; }
    .h2-hero { padding: 22px 0 18px; margin-bottom: 26px; }
    .h2-hero-layout, .h2-main-grid, .h2-bottom { grid-template-columns: 1fr; gap: 30px; }
    .h2-hero-layout { gap: 20px; }
    .h2-main-grid { grid-template-areas: "top" "comments" "recent"; grid-template-rows: auto; }
    .home-v2 h1 { font-size: 38px; }
    .h2-intro { margin-top: 12px !important; font-size: 15px; }
    .h2-quicklinks { gap: 4px 18px; margin-top: 18px; padding-top: 10px; }
    .h2-quicklinks a { font-size: 13px; min-height: 44px; }
    .home-v2 h2 { font-size: 25px; }
    .h2-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .h2-article-grid { grid-template-columns: 1fr; gap: 24px; }
    .h2-article { border-right: 0; border-bottom: 1px solid var(--h2-line); padding: 0 0 24px; }
    .h2-article h3 { font-size: 23px; }
    .h2-editorial { margin-top: 36px; padding-top: 26px; }
    .h2-bottom { margin-top: 32px; }
    .h2-comments { margin-top: 6px; }
    .h2-comment { padding: 17px 0; }
}
@media (max-width: 420px) {
    .h2-service { padding: 16px 12px; }
    .h2-service-head { flex-direction: column; align-items: start; gap: 10px; margin-bottom: 16px; }
    .h2-service-bottom { gap: 5px; flex-wrap: wrap; }
    .h2-search-box { gap: 8px; padding-left: 10px; }
    .h2-search-box button { padding-inline: 12px; }
    .h2-recent-row { padding-inline: 0; grid-template-columns: 40px minmax(0, 1fr) 104px; }
    .h2-statistics { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .home-v2 * { transition: none !important; } }
/* Kompaktní přehled ponechává všech devět služeb i jejich údaje. */
.h2-recent-row { padding-block: 10px; }
.h2-recent-row .h2-category, .h2-recent-count { display: inline; font-size: 12px; }
.h2-recent-count::before { content: " · "; }
.h2-comment-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.h2-comment { padding-block: 12px; }
.h2-comment-body { margin-top: 2px !important; }
@media (max-width: 420px) {
    .h2-recent-row .h2-category, .h2-recent-count { display: block; }
    .h2-recent-count::before { content: none; }
}

