:root {
    --bg: #0f1013;
    --bg-soft: #181a20;
    --accent: #ffb300;
    --accent-soft: #ffd65c;
    --accent-elo: #4ac0ff;
    --text: #f4f4f4;
    --text-muted: #9ca3af;
    --border-soft: #2a2d35;
    --radius: 12px;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.35);
    --container-width: 1100px;
    --transition-fast: 150ms ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,179,0,0.25), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(5,10,64,0.30), #06070a);
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header / menu */

/* Reorder elements so burger is fully right-aligned */
.header-inner { position: relative; }
.logo { order: 1; }
.main-nav { order: 2; }
.nav-toggle { order: 3; margin-left: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(6,7,10,0.92);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo-main {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 20px;
}

.logo-main span {
    color: var(--accent-soft);
}


.logo-img {
    height: 42px;           /* aby hezky sedělo v menu */
    width: auto;
    display: block;
}


.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 14px;
}

.main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-nav li.active a {
    background: var(--accent);
    color: #111;
}

.main-nav li a:hover {
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.main-nav li.elo a {
    border: 1px solid rgba(74,192,255,0.5);
}

.badge-soon {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
}

.badge-soon.large {
    font-size: 11px;
    padding: 4px 10px;
}

/* Mobile nav toggle */

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    margin: 3px 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Layout */

.site-main {
    flex: 1;
    padding: 24px 0 40px;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr);
    gap: 24px;
    padding: 26px 24px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(255,179,0,0.18), transparent 60%),
                radial-gradient(circle at bottom right, rgba(5,10,64,0.45), transparent 55%),
                #050a40;
    box-shadow: var(--shadow-soft);
    margin-bottom: 26px;
}

.hero-text h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.hero-text p {
    margin: 0 0 18px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn.primary {
    background: var(--accent);
    color: #111;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.btn.secondary {
    background: transparent;
    color: var(--accent-soft);
    border: 1px solid rgba(255,255,255,0.25);
}

.btn.secondary:hover {
    background: rgba(255,255,255,0.06);
}

.hero-side {
    align-self: center;
}

.hero-note {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-soft);
}

/* Cards / grid */

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.home-card {
    background: #050a40; /* tady máš tu tmavě modrou */
    border-radius: var(--radius);
    padding: 16px 18px 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.home-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.home-card p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.home-card .card-link {
    font-size: 13px;
    font-weight: 500;
}

.elo-card {
    border-color: rgba(74,192,255,0.6);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-soft);
    background: rgba(6,7,10,0.98);
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* Responsivita */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
   .logo {
        padding-left: 6px;
    }

    .nav-toggle {
        margin-right: 6px;
    }
}


/* Page header pro seznamy (Aktuality, Archiv) */
.page-header-simple {
    margin-bottom: 22px;
}

.page-header-simple h1 {
    margin: 0 0 6px;
    font-size: 26px;
}

.page-header-simple p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* GRID článků */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.article-card {
    background: #050a40;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}

.article-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.article-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
}

.article-category {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.article-meta time {
    color: var(--text-muted);
}

.article-title {
    margin: 0 0 6px;
    font-size: 17px;
}

.article-perex {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-muted);
    flex-grow: 1;
}

.article-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-soft);
}

/* Responsivita – 2 sloupce / 1 sloupec */

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .articles-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}




@media (max-width: 800px) {
    .header-inner {
        gap: 8px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        position: relative;
    }

    .main-nav ul {
        position: absolute;
        right: 0;
        top: 110%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 12px;
        border-radius: 12px;
        background: rgba(6,7,10,0.97);
        border: 1px solid var(--border-soft);
        box-shadow: var(--shadow-soft);
        min-width: 180px;
        display: none;
        z-index: 60;
    }

    .main-nav.is-open ul {
        display: flex;
    }

    .home-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Hlavička stránky (Aktuality, Archiv) */

.page-head {
    margin-bottom: 20px;
}

.page-head h1 {
    margin: 0 0 6px;
    font-size: 26px;
}

.page-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Seznam článků */

.articles-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.article-card {
    background: #050a40;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    overflow: hidden;
}

.article-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.article-thumb {
    position: relative;
    padding-top: 52%; /* 16:9-ish */
    overflow: hidden;
}

.article-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.article-category {
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
}

.article-title {
    margin: 2px 0 0;
    font-size: 16px;
}

.article-excerpt {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.article-more {
    margin-top: 8px;
    font-size: 13px;
    color: var(--accent-soft);
}

/* Hover efekt */

.article-card-inner:hover {
    background: rgba(255,255,255,0.03);
}

/* Responsivita pro seznam článků */

@media (max-width: 1024px) {
    .articles-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .articles-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pagination {
    margin: 16px 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.pagination a {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text);
}

.pagination .pag-num.active {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

.pagination .pag-prev,
.pagination .pag-next {
    font-weight: 500;
}

.archive-years {
    margin: 4px 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
}

.archive-years-label {
    color: var(--text-muted);
    margin-right: 4px;
}

.archive-year-chip {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text-muted);
}

.archive-year-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #111;
    font-weight: 500;
}

/* Detail článku */

.article-detail {
    max-width: 900px;
    margin: 0 auto 40px;
}

.article-detail-back {
    margin-bottom: 12px;
    font-size: 14px;
}

.article-detail-back a {
    color: var(--text-muted);
}

.article-detail-back a:hover {
    color: var(--accent-soft);
    text-decoration: none;
}

.article-detail-card {
    background: rgba(5, 10, 64, 0.98);
    border-radius: 20px;
    padding: 22px 22px 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.08);
}

.article-detail-header {
    margin-bottom: 14px;
}

.article-detail-title {
    margin: 4px 0 8px;
    font-size: 26px;
}

.article-detail-perex {
    font-size: 15px;
    color: var(--text-muted);
}

.article-detail-perex p {
    margin: 0 0 0.7em;
}

.article-detail-thumb {
    margin: 18px 0 16px;
    border-radius: 16px;
    overflow: hidden;
}

.article-detail-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.article-detail-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

.article-detail-body p {
    margin: 0 0 1em;
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 0 0 1em 1.4em;
}

@media (max-width: 700px) {
    .article-detail-card {
        padding: 18px 16px 22px;
    }

    .article-detail-title {
        font-size: 22px;
    }
}

.article-detail {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 20px 24px 28px;
    background: rgba(15,16,20,0.96);
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.article-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
    gap: 20px;
    margin-bottom: 20px;
}

.article-detail-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}

.article-detail-perex {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.article-detail-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.article-detail-body p {
    margin: 0 0 1em;
}

.article-detail-meta {
    font-size: 13px;
    margin-top: 4px;	
    color: var(--text-muted);
}

.article-detail-nav {
    max-width: 900px;
    margin: 0 auto 10px;
    display: flex;
    gap: 10px;
}
@media (max-width: 800px) {
    .article-detail-header {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Zvýšení dostupné šířky článku */
.article-detail-wrapper .container {
    max-width: 1300px;       /* původně 1100px, můžeš dát i 1400 */
    padding-left: 4px;
    padding-right: 4px;
}

/* Panel článku */
.article-detail-card {
    padding: 24px;
    border-radius: 16px;
}

/* Obrázek přes celou šířku panelu */
.article-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* --- Mobilní optimalizace --- */
@media (max-width: 768px) {

    /* Menší okraje kolem celého wrapperu */
    .article-detail-wrapper .container {
        padding-left: 4px;
        padding-right: 4px;
    }

    /* Panel téměř přes celou šířku */
    .article-detail-card {
        padding: 14px;
        border-radius: 14px;
    }

    /* Nadpis nemusí mít tak velký offset */
    .article-detail-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
}

.article-detail-actions {
    max-width: 1300px;
    margin: 10px auto 0;   /* tady zvětšíme mezeru nad tlačítky */
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Panel s modrým pozadím pro textové bloky (Služby, Ceník, Kontakty) */
.blue-panel {
    background: rgba(9, 18, 60, 0.9);   /* temně modrý panel */
    border-radius: 16px;
    padding: 24px 20px 28px;
    margin-top: 16px;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* jemné odsazení sekcí uvnitř panelu */
.blue-panel .page-section {
    margin-bottom: 24px;
}

.blue-panel .page-section:last-child {
    margin-bottom: 0;
}


