/* ============================================================
   KRÁTKODOBÉ UBYTOVANIE – dizajnová vrstva v2 (2026-09)
   Načítava sa ZA styles.css na všetkých stránkach (tools/v2_inject.py).
   Farby ostávajú: čierna + fialová (#9d4edd / #c77dff), písmo Inter + Playfair.
   ============================================================ */

:root {
    --v2-radius: 18px;
    --v2-radius-lg: 26px;
    --v2-line: rgba(255, 255, 255, 0.08);
    --v2-line-strong: rgba(255, 255, 255, 0.14);
    --v2-surface: rgba(255, 255, 255, 0.035);
    --v2-surface-2: rgba(255, 255, 255, 0.06);
    --v2-grad: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    --v2-grad-soft: linear-gradient(135deg, rgba(157, 78, 221, 0.18), rgba(199, 125, 255, 0.06));
    --v2-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --v2-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

/* ---------- Pozadie: jemná fialová žiara ---------- */
body { background: #000; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(157, 78, 221, 0.16), transparent 60%),
        radial-gradient(700px 480px at 100% 30%, rgba(199, 125, 255, 0.07), transparent 60%),
        radial-gradient(800px 600px at 40% 110%, rgba(124, 58, 237, 0.08), transparent 60%);
}
::selection { background: rgba(157, 78, 221, 0.45); color: #fff; }
html { scrollbar-color: #3a2352 #000; }

/* ---------- Pruh priebehu čítania ---------- */
.v2-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--v2-grad);
    box-shadow: 0 0 12px rgba(199, 125, 255, 0.7);
    z-index: 10001;
    pointer-events: none;
}

/* ---------- Hlavička ---------- */
.header {
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--v2-ease), border-color 0.4s, box-shadow 0.4s, height 0.4s var(--v2-ease);
}
.header.scrolled {
    background: rgba(6, 4, 10, 0.78) !important;
    border-bottom-color: var(--v2-line);
    box-shadow: 0 10px 40px -20px rgba(157, 78, 221, 0.35);
}
.logo .logo-icon {
    box-shadow: 0 6px 20px -6px rgba(157, 78, 221, 0.8);
    transition: transform 0.5s var(--v2-ease);
}
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.06); }

@media (min-width: 1261px) {
    .nav > a:not(.phone-link),
    .nav-dropdown > a {
        position: relative;
    }
    .nav > a:not(.phone-link)::after,
    .nav-dropdown > a::after {
        content: "";
        position: absolute;
        left: 12px; right: 12px; bottom: 2px;
        height: 2px;
        border-radius: 2px;
        background: var(--v2-grad);
        transform: scaleX(0);
        transition: transform 0.35s var(--v2-ease);
    }
    .nav > a:not(.phone-link):hover::after,
    .nav > a.active::after,
    .nav-dropdown:hover > a::after { transform: scaleX(1); }
    .dropdown-menu {
        border-radius: 16px !important;
        border: 1px solid var(--v2-line-strong) !important;
        background: rgba(12, 8, 18, 0.96) !important;
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(157, 78, 221, 0.08) !important;
        padding: 8px !important;
    }
    .dropdown-menu a { border-radius: 10px !important; }
}

/* tlačidlo Hľadať v hlavičke (pridáva v2.js) */
.v2-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    margin-left: 6px;
    border-radius: 10px;
    border: 1px solid var(--v2-line-strong);
    background: var(--v2-surface);
    color: var(--text-secondary);
    font: 500 0.85rem var(--font-body);
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    flex-shrink: 0;
}
.v2-search-btn:hover { border-color: rgba(199, 125, 255, 0.6); color: #fff; background: rgba(157, 78, 221, 0.12); }
.v2-search-btn svg { width: 16px; height: 16px; }
.v2-search-btn kbd {
    font: 600 0.68rem var(--font-body);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--v2-line-strong);
    color: var(--text-muted);
}
@media (min-width: 1261px) {
    .header .container > .nav { margin-left: auto; }
    .header .container > .v2-search-btn { order: 10; width: 38px; padding: 0; justify-content: center; margin-left: 8px; }
    .v2-search-btn span, .v2-search-btn kbd { display: none; }
}
@media (max-width: 1260px) {
    .v2-search-btn { margin-left: auto; margin-right: 6px; width: 42px; height: 42px; padding: 0; justify-content: center; }
    .v2-search-btn span, .v2-search-btn kbd { display: none; }
}

/* ---------- Tlačidlá ---------- */
.btn {
    border-radius: 14px;
    transition: transform 0.35s var(--v2-ease), box-shadow 0.35s var(--v2-ease), background 0.3s, border-color 0.3s;
}
.btn-primary {
    background: var(--v2-grad) !important;
    border: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 30px -10px rgba(157, 78, 221, 0.8);
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--v2-ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(157, 78, 221, 0.95); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-secondary, .btn-outline {
    border: 1px solid var(--v2-line-strong);
    background: var(--v2-surface);
}
.btn-secondary:hover, .btn-outline:hover { transform: translateY(-2px); border-color: rgba(199, 125, 255, 0.6); }

/* ---------- Nadpisy sekcií ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(199, 125, 255, 0.3);
    background: rgba(157, 78, 221, 0.1);
}
.section-label::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #c77dff;
    box-shadow: 0 0 10px #c77dff;
    animation: v2-pulse 2.4s ease-in-out infinite;
}
@keyframes v2-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.section-header h2, .hero h1 {
    letter-spacing: -0.01em;
}
.section-header h2 em, .hero h1 em {
    font-style: normal;
    background: var(--v2-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Úvod domovskej stránky ---------- */
.hero { overflow: hidden; }
.hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% -20%;
    height: 70%;
    background: radial-gradient(closest-side, rgba(157, 78, 221, 0.28), transparent);
    filter: blur(10px);
    animation: v2-float 14s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
@keyframes v2-float { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(4%, -6%, 0) scale(1.08); } }
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    background: linear-gradient(100deg, #fff 0%, #fff 38%, #e0c3ff 50%, #fff 62%, #fff 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: v2-lesk 7s ease-in-out infinite;
}
@keyframes v2-lesk { 0%, 35% { background-position: 100% 0; } 65%, 100% { background-position: 0 0; } }

/* ---------- Karty: spoločný pohyb ---------- */
.apt-card, .blog-card, .feature-card, .info-card, .rule-card,
.mag-featured-card, .mag-list-item, .review-widget, .booking-cta {
    border-radius: var(--v2-radius) !important;
    border: 1px solid var(--v2-line) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)) !important;
    box-shadow: var(--v2-shadow);
    transition: transform 0.5s var(--v2-ease), border-color 0.4s, box-shadow 0.5s var(--v2-ease) !important;
}
.apt-card:hover, .blog-card:hover, .feature-card:hover, .info-card:hover, .rule-card:hover,
.mag-featured-card:hover, .mag-list-item:hover {
    transform: translateY(-6px);
    border-color: rgba(199, 125, 255, 0.45) !important;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(157, 78, 221, 0.18), 0 20px 50px -20px rgba(157, 78, 221, 0.45);
}
.apt-card-img, .blog-card-img, .mag-list-item-img { overflow: hidden; }
.apt-card-img img, .blog-card-img img, .mag-featured-card img, .mag-list-item-img img {
    transition: transform 0.9s var(--v2-ease), filter 0.6s;
}
.apt-card:hover .apt-card-img img, .blog-card:hover .blog-card-img img,
.mag-featured-card:hover img, .mag-list-item:hover img { transform: scale(1.06); }

.apt-badge, .apt-capacity-badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px !important;
}
.apt-card-tags span {
    border-radius: 999px !important;
    border: 1px solid var(--v2-line) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
.view-link { transition: letter-spacing 0.4s var(--v2-ease), color 0.3s; }
.apt-card:hover .view-link { letter-spacing: 0.02em; color: #c77dff; }

.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
    content: "";
    position: absolute;
    width: 220px; height: 220px;
    left: var(--mx, 50%); top: var(--my, 0%);
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(157, 78, 221, 0.28), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

.blog-tag {
    border-radius: 999px;
}

/* ---------- Postupné zobrazovanie ---------- */
.reveal { transition: opacity 0.9s var(--v2-ease), transform 0.9s var(--v2-ease) !important; }
.v2-in { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--v2-ease), transform 0.9s var(--v2-ease); }
.v2-in.v2-on { opacity: 1; transform: none; }

/* ---------- Článok ---------- */
.article-header .blog-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(199, 125, 255, 0.3);
    background: rgba(157, 78, 221, 0.1);
}
.article-header h1 { font-size: clamp(1.9rem, 4.2vw, 3rem) !important; line-height: 1.15; letter-spacing: -0.01em; }
.article-hero img { border-radius: var(--v2-radius-lg); box-shadow: 0 40px 80px -40px rgba(157, 78, 221, 0.55); }
.article-content { max-width: 72ch; margin-inline: auto; }
.article-content > div[style*="border-left"] {
    border-radius: 16px !important;
    border: 1px solid rgba(199, 125, 255, 0.25) !important;
    border-left: 4px solid #9d4edd !important;
    background: var(--v2-grad-soft) !important;
}
.article-content h2 { scroll-margin-top: 100px; position: relative; }
.article-content h3 { scroll-margin-top: 100px; }
.article-content a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(199, 125, 255, 0.4); text-underline-offset: 3px; }
.article-content a:not(.btn):hover { text-decoration-color: #c77dff; }
.article-content table { border-radius: 14px; overflow: hidden; }
@media (max-width: 768px) {
    .article-content table { display: block; max-width: 100%; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
}
.article-toc { border-radius: var(--v2-radius) !important; }
.article-content .article-toc a { text-decoration: none; }
.article-toc a.v2-akt { color: #fff !important; font-weight: 600; }
.faq-item { border-radius: 16px; }

/* bočný obsah na širokých obrazovkách (v2.js) */
.v2-toc {
    position: fixed;
    top: 110px;
    left: calc(50% + 450px);
    width: min(250px, calc(50vw - 480px));
    max-height: calc(100vh - 150px);
    overflow: auto;
    padding: 18px 16px;
    border-radius: var(--v2-radius);
    border: 1px solid var(--v2-line);
    background: rgba(10, 6, 16, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.5s var(--v2-ease), transform 0.5s var(--v2-ease);
    z-index: 50;
}
.v2-toc.v2-on { opacity: 1; transform: none; }
.v2-toc b { display: block; font: 700 0.72rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: #c77dff; margin-bottom: 10px; }
.v2-toc a {
    display: block;
    padding: 6px 10px;
    margin: 2px 0;
    border-left: 2px solid var(--v2-line);
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.v2-toc a:hover { color: #fff; }
.v2-toc a.v2-akt { color: #fff; border-left-color: #c77dff; background: rgba(157, 78, 221, 0.1); border-radius: 0 8px 8px 0; }
@media (max-width: 1379px) { .v2-toc { display: none; } }

/* pojem zo slovníka v texte (v2.js) */
.v2-term {
    color: inherit !important;
    text-decoration: underline dotted rgba(199, 125, 255, 0.8) !important;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px !important;
    cursor: help;
}
.v2-bubble {
    position: absolute;
    z-index: 10002;
    width: min(320px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(199, 125, 255, 0.35);
    background: #120b1c;
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.9), 0 0 30px -10px rgba(157, 78, 221, 0.5);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s var(--v2-ease);
    pointer-events: none;
}
.v2-bubble.v2-on { opacity: 1; transform: none; pointer-events: auto; }
.v2-bubble strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.v2-bubble a { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 0.85rem; color: #c77dff; }

/* blok Pojmy v článku */
.v2-pojmy {
    max-width: 72ch;
    margin: 40px auto 0;
    padding: 22px 24px;
    border-radius: var(--v2-radius);
    border: 1px solid var(--v2-line);
    background: var(--v2-surface);
}
.v2-pojmy h2 { font-size: 1.15rem !important; margin: 0 0 12px !important; font-family: var(--font-body) !important; }
.v2-pojmy ul { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-pojmy a {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(199, 125, 255, 0.3);
    background: rgba(157, 78, 221, 0.08);
    color: #e9d5ff;
    font-size: 0.88rem;
    transition: background 0.3s, border-color 0.3s;
}
.v2-pojmy a:hover { background: rgba(157, 78, 221, 0.22); border-color: #c77dff; }

/* ---------- Vyhľadávanie (Ctrl+K) ---------- */
.v2-hladat {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 16px 16px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.v2-hladat.v2-on { opacity: 1; visibility: visible; }
.v2-hladat-box {
    width: min(680px, 100%);
    max-height: 76vh;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid rgba(199, 125, 255, 0.3);
    background: #0c0812;
    box-shadow: 0 40px 100px -30px rgba(157, 78, 221, 0.6);
    overflow: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: transform 0.35s var(--v2-ease);
}
.v2-hladat.v2-on .v2-hladat-box { transform: none; }
.v2-hladat-pole { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--v2-line); }
.v2-hladat-pole svg { width: 20px; height: 20px; color: #c77dff; flex-shrink: 0; }
.v2-hladat-pole input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font: 500 1.1rem var(--font-body);
}
.v2-hladat-pole input::-webkit-search-cancel-button { display: none; }
.v2-hladat-pole button { background: none; border: 1px solid var(--v2-line-strong); color: var(--text-muted); border-radius: 8px; padding: 4px 8px; font-size: 0.75rem; cursor: pointer; }
.v2-hladat-vysl { overflow: auto; padding: 8px; }
.v2-hladat-vysl a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-secondary);
}
.v2-hladat-vysl a:hover, .v2-hladat-vysl a.v2-akt { background: rgba(157, 78, 221, 0.14); color: #fff; }
.v2-hladat-vysl img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.v2-hladat-vysl .v2-ik { width: 64px; height: 44px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--v2-grad-soft); color: #c77dff; font: 700 1.1rem var(--font-display); }
.v2-hladat-vysl strong { display: block; color: #fff; font-size: 0.95rem; line-height: 1.35; }
.v2-hladat-vysl small { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.v2-hladat-vysl p { padding: 18px 12px; color: var(--text-muted); font-size: 0.9rem; }
.v2-hladat-vysl h6 { padding: 10px 12px 4px; font: 700 0.7rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: #c77dff; }

/* ---------- Spodný panel na mobile ---------- */
.v2-mcta { display: none; }
@media (max-width: 768px) {
    .v2-mcta {
        position: fixed;
        left: 12px; right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 900;
        display: flex;
        gap: 8px;
        padding: 8px;
        border-radius: 18px;
        border: 1px solid var(--v2-line-strong);
        background: rgba(10, 6, 16, 0.86);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9);
        transform: translateY(140%);
        transition: transform 0.5s var(--v2-ease);
    }
    .v2-mcta.v2-on { transform: none; }
    .v2-mcta > * {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        border-radius: 12px;
        border: 1px solid var(--v2-line-strong);
        background: var(--v2-surface);
        color: #fff !important;
        font: 600 0.92rem var(--font-body);
        cursor: pointer;
    }
    .v2-mcta > .v2-mcta-hl { background: var(--v2-grad); border: 0; box-shadow: 0 10px 24px -10px rgba(157, 78, 221, 0.9); }
    .v2-mcta svg { width: 18px; height: 18px; }
    body.v2-ma-mcta .back-to-top { bottom: 92px !important; }
    body.v2-ma-mcta .footer { padding-bottom: 90px; }
}

/* ---------- Pätička ---------- */
.footer { border-top: 1px solid var(--v2-line); background: linear-gradient(180deg, rgba(157, 78, 221, 0.05), transparent 40%) !important; }
.footer-apt-chip { border-radius: 14px !important; transition: transform 0.35s var(--v2-ease), border-color 0.3s !important; }
.footer-apt-chip:hover { transform: translateY(-3px); border-color: rgba(199, 125, 255, 0.5) !important; }
.back-to-top { border-radius: 14px !important; }

/* ============================================================
   MAGAZÍN A SLOVNÍK – rozcestník (generuje tools/magazin_hub.py)
   ============================================================ */
.mh { padding-top: 120px; }
.mh-hero { position: relative; text-align: center; padding: 40px 0 34px; }
.mh-hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 14px; }
.mh-hero h1 em { font-style: normal; background: var(--v2-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mh-hero > p { max-width: 640px; margin: 0 auto; color: var(--text-secondary); font-size: 1.08rem; }
.mh-hladaj {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(640px, 100%);
    margin: 28px auto 0;
    padding: 8px 8px 8px 20px;
    border-radius: 18px;
    border: 1px solid rgba(199, 125, 255, 0.35);
    background: rgba(14, 9, 22, 0.85);
    box-shadow: 0 20px 60px -25px rgba(157, 78, 221, 0.8);
    cursor: text;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.mh-hladaj:hover { border-color: #c77dff; box-shadow: 0 20px 70px -20px rgba(157, 78, 221, 0.95); }
.mh-hladaj svg { width: 20px; height: 20px; color: #c77dff; flex-shrink: 0; }
.mh-hladaj span { flex: 1; text-align: left; color: var(--text-muted); font-size: 1rem; }
.mh-hladaj kbd { font: 600 0.75rem var(--font-body); padding: 8px 12px; border-radius: 12px; background: var(--v2-grad); color: #fff; }
.mh-cisla { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; color: var(--text-muted); font-size: 0.9rem; }
.mh-cisla b { color: #fff; font-size: 1.15rem; margin-right: 4px; font-variant-numeric: tabular-nums; }

.mh-temy {
    position: sticky;
    top: calc(var(--header-height) - 1px);
    z-index: 40;
    margin: 10px -24px 30px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.mh-temy.v2-prilepene { border-bottom-color: var(--v2-line); }
.mh-temy ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; padding: 2px; }
.mh-temy ul::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .mh-temy ul { flex-wrap: wrap; justify-content: center; } }
.mh-temy a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--v2-line-strong);
    background: var(--v2-surface);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--v2-ease);
}
.mh-temy a:hover { color: #fff; border-color: rgba(199, 125, 255, 0.5); }
.mh-temy a.v2-akt { background: var(--v2-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(157, 78, 221, 0.9); }
.mh-temy a small { font-size: 0.75rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.mh-temy a.mh-slovnik-chip { border-color: rgba(199, 125, 255, 0.45); color: #e9d5ff; }

.mh-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; margin-bottom: 56px; }
.mh-hlavny {
    position: relative;
    display: block;
    min-height: 460px;
    border-radius: var(--v2-radius-lg);
    overflow: hidden;
    border: 1px solid var(--v2-line);
    isolation: isolate;
}
.mh-hlavny img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--v2-ease); }
.mh-hlavny::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.92) 100%); }
.mh-hlavny:hover img { transform: scale(1.05); }
.mh-hlavny-telo { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; }
.mh-hlavny h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 12px 0 10px; }
.mh-hlavny p { color: rgba(255, 255, 255, 0.8); max-width: 60ch; }
.mh-stitok { display: inline-flex; gap: 10px; align-items: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }
.mh-stitok b { padding: 5px 12px; border-radius: 999px; background: rgba(157, 78, 221, 0.85); color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.mh-bok { display: flex; flex-direction: column; gap: 14px; }
.mh-mini {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: var(--v2-radius);
    border: 1px solid var(--v2-line);
    background: var(--v2-surface);
    transition: border-color 0.3s, transform 0.4s var(--v2-ease), background 0.3s;
}
.mh-mini:hover { border-color: rgba(199, 125, 255, 0.45); transform: translateX(4px); background: rgba(157, 78, 221, 0.07); }
.mh-mini img { width: 112px; height: 84px; object-fit: cover; border-radius: 12px; }
.mh-mini small { color: #c77dff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.mh-mini strong { display: block; color: #fff; font-size: 0.98rem; line-height: 1.35; margin-top: 3px; }
.mh-pojem-dna {
    position: relative;
    padding: 20px 22px;
    border-radius: var(--v2-radius);
    border: 1px solid rgba(199, 125, 255, 0.35);
    background: radial-gradient(400px 200px at 100% 0%, rgba(199, 125, 255, 0.2), transparent 70%), rgba(157, 78, 221, 0.08);
    overflow: hidden;
}
.mh-pojem-dna small { color: #c77dff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mh-pojem-dna h3 { font-size: 1.35rem; margin: 6px 0 6px; color: #fff; }
.mh-pojem-dna p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.55; }
.mh-pojem-dna a { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.88rem; }

.mh-nadpis { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.mh-nadpis h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.mh-nadpis a { font-weight: 600; font-size: 0.92rem; white-space: nowrap; }

.mh .blog-grid .blog-card { opacity: 1; transform: none; }
.mh .blog-grid .blog-card.mh-skry { display: none; }
.mh .blog-grid .blog-card.mh-nove { animation: mh-nove 0.6s var(--v2-ease) both; }
@keyframes mh-nove { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.mh-viac { display: flex; justify-content: center; margin: 36px 0 10px; }
.mh-prazdne { display: none; text-align: center; color: var(--text-muted); padding: 30px 0; }

.mh-slovnik-pas {
    margin: 80px 0 20px;
    padding: 40px;
    border-radius: var(--v2-radius-lg);
    border: 1px solid rgba(199, 125, 255, 0.28);
    background: radial-gradient(700px 300px at 0% 0%, rgba(157, 78, 221, 0.22), transparent 70%), var(--v2-surface);
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 34px;
    align-items: center;
}
.mh-slovnik-pas h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 10px 0 12px; }
.mh-slovnik-pas p { color: var(--text-secondary); }
.mh-slovnik-pas ul { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-slovnik-pas li a {
    display: inline-block;
    padding: 9px 15px;
    border-radius: 12px;
    border: 1px solid var(--v2-line-strong);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s var(--v2-ease);
}
.mh-slovnik-pas li a:hover { border-color: #c77dff; background: rgba(157, 78, 221, 0.2); transform: translateY(-2px); }

@media (max-width: 960px) {
    .mh-top { grid-template-columns: 1fr; }
    .mh-hlavny { min-height: 380px; }
    .mh-slovnik-pas { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 600px) {
    .mh { padding-top: 96px; }
    .mh-hero { padding-top: 20px; }
    .mh-temy { margin-inline: -24px; }
    .mh-temy ul { justify-content: flex-start; }
    .mh-hlavny { min-height: 340px; }
    .mh-hlavny-telo { padding: 22px; }
    .mh-hlavny p { display: none; }
    .mh-mini { grid-template-columns: 88px 1fr; }
    .mh-mini img { width: 88px; height: 70px; }
    .mh-hladaj kbd { display: none; }
    .mh-nadpis { flex-direction: column; align-items: flex-start; }
}

/* ---------- Stránka Slovník ---------- */
.sl-az {
    position: sticky;
    top: calc(var(--header-height) - 1px);
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0 -24px 26px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--v2-line);
}
.sl-az a, .sl-az span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}
.sl-az a { color: #fff; border: 1px solid var(--v2-line-strong); background: var(--v2-surface); transition: all 0.3s; }
.sl-az a:hover { background: var(--v2-grad); border-color: transparent; }
.sl-az span { color: rgba(255, 255, 255, 0.2); }
.sl-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-bottom: 30px; }
.sl-filter input {
    width: min(380px, 100%);
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(199, 125, 255, 0.35);
    background: rgba(14, 9, 22, 0.85);
    color: #fff;
    font: 500 1rem var(--font-body);
    outline: 0;
}
.sl-filter input:focus { border-color: #c77dff; box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2); }
.sl-filter button {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--v2-line-strong);
    background: var(--v2-surface);
    color: var(--text-secondary);
    font: 500 0.88rem var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
}
.sl-filter button.v2-akt { background: var(--v2-grad); color: #fff; border-color: transparent; }
.sl-pismeno { font: 700 2rem var(--font-display); color: #c77dff; margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--v2-line); scroll-margin-top: 150px; }
.sl-mriezka { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sl-pojem {
    padding: 22px 24px;
    border-radius: var(--v2-radius);
    border: 1px solid var(--v2-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    scroll-margin-top: 150px;
    transition: border-color 0.4s, box-shadow 0.4s;
}
.sl-pojem:target, .sl-pojem.v2-svieti { border-color: #c77dff; box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.22), 0 20px 50px -20px rgba(157, 78, 221, 0.6); }
.sl-pojem h3 { font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.sl-pojem .sl-sk { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c77dff; margin-bottom: 10px; }
.sl-pojem p { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.7; }
.sl-pojem ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sl-pojem li a { display: inline-block; padding: 6px 12px; border-radius: 10px; font-size: 0.83rem; border: 1px solid rgba(199, 125, 255, 0.28); background: rgba(157, 78, 221, 0.08); color: #e9d5ff; }
.sl-pojem li a:hover { border-color: #c77dff; }
.sl-pojem.mh-skry, .sl-pismeno.mh-skry { display: none; }
@media (max-width: 760px) {
    .sl-mriezka { grid-template-columns: 1fr; }
    .sl-az { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero h1 { animation: none; }
    .hero::after, .section-label::before { animation: none; }
    .v2-in { opacity: 1; transform: none; }
}

/* ---------- Hlavička: „Voľné termíny" ako hlavné tlačidlo, prepínač jazykov ako rozbaľovací zoznam ---------- */
.nav > a[href$="volne-terminy.html"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--v2-grad) !important;
    color: #fff !important;
    font-weight: 600;
}
.nav > a[href$="volne-terminy.html"]::before {
    content: "";
    width: 1.1em; height: 1.1em;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 1261px) {
    /* poradie vpravo: jazyk, Voľné termíny, telefón (hľadanie má order 10 mimo .nav) */
    .nav > .lang-switcher { order: 1; }
    .nav > a[href$="volne-terminy.html"] { order: 2; }
    .nav > .phone-link { order: 3; }
    .nav > a[href$="volne-terminy.html"] {
        padding: 8px 14px 8px 12px;
        margin: 0 8px 0 2px;
        border-radius: 12px;
        box-shadow: 0 8px 22px -10px rgba(157, 78, 221, 0.95);
        transition: transform 0.3s var(--v2-ease), box-shadow 0.3s var(--v2-ease), filter 0.3s;
    }
    .nav > a[href$="volne-terminy.html"]::after { display: none; }
    .nav > a[href$="volne-terminy.html"]:hover { transform: translateY(-1px); filter: brightness(1.1); }
    .nav > a[href$="volne-terminy.html"].active { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }

    /* Prepínač jazykov: vidno len aktuálny jazyk, ostatné sa vysunú pod ním (myš, klávesnica, na dotyk v2.js). */
    .nav > .lang-switcher {
        position: relative;
        z-index: 5;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        width: 58px; height: 36px;
        padding: 0; margin: 0 4px; gap: 0;
        border-radius: 10px;
        border-color: var(--v2-line-strong);
        overflow: hidden;
    }
    .nav > .lang-switcher a {
        order: 1;
        flex: 0 0 34px;
        display: flex; align-items: center; justify-content: center;
        padding: 0 !important;
        font-size: 0.78rem !important;
        border-radius: 0;
        background: #100b18;
        box-shadow: 0 0 0 1px var(--v2-line-strong);
    }
    .nav > .lang-switcher a.active { order: 0; background: transparent; box-shadow: none; }
    .nav > .lang-switcher a.active::after { content: "▾"; margin-left: 6px; font-size: 0.8em; opacity: 0.7; }
    .nav > .lang-switcher a:not(.active):hover { background: #2a1840; }
    .nav > .lang-switcher a:last-child { border-radius: 0 0 10px 10px; }
    .nav > .lang-switcher:hover,
    .nav > .lang-switcher:focus-within,
    .nav > .lang-switcher.open { overflow: visible; border-radius: 10px 10px 0 0; }
}
@media (max-width: 1260px) {
    .nav > a[href$="volne-terminy.html"] {
        order: -1;
        justify-content: center;
        margin-bottom: 14px;
        padding: 16px !important;
        border: 0 !important;
        border-radius: 14px;
        font-family: var(--font-body) !important;
        font-size: 1.1rem !important;
        font-weight: 700;
    }
}
