/* --- Základní nastavení --- */
:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --brand: #2f7d32;
    --brand-2: #1f5e24;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 14px;
    --ring: rgba(47,125,50,0.35);
    --ring-strong: rgba(47,125,50,0.5);
}

::selection {
    background: rgba(47,125,50,0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: radial-gradient(1200px 400px at 50% -200px, rgba(47,125,50,0.12), transparent);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--brand);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 10000;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: var(--surface);
    padding: 24px;
    display: flex;
    gap: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.container.site-container {
    min-height: 60vh;
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Hlavička --- */
header {
    background: transparent;
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--border);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.header-text h1 {
    font-size: 30px;
    color: var(--brand);
    margin: 0;
    letter-spacing: -0.2px;
}

.header-text p {
    font-size: 14px;
    margin: 0;
    color: var(--muted);
}

/* --- Navigace --- */
.main-nav {
    background: #1a1a1a;
    padding: 0;
    border-bottom: 2px solid #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-nav .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    max-width: 1200px;
}

.main-nav nav {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 18px 20px;
    font-weight: 600;
    transition: all .3s ease;
    border-bottom: 3px solid transparent;
    display: block;
}

.main-nav a:hover {
    background-color: #2a2a2a;
    border-bottom-color: var(--brand);
}

.main-nav a:focus-visible {
    background-color: rgba(255,255,255,0.28);
}

.main-nav a[aria-current="page"] {
    background-color: #000;
    border-bottom-color: var(--brand);
}

.main-nav a:active {
    background-color: rgba(255,255,255,0.32);
}

/* Hamburger menu button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 50px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 12px;
    transition: all .3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 15px;
}

.menu-toggle span:nth-child(2) {
    top: 23px;
}

.menu-toggle span:nth-child(3) {
    top: 31px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg);
    top: 23px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg);
    top: 23px;
}

/* Banner pozice */
.banner-container {
    margin: 20px 0;
    text-align: center;
}

.banner-top {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.banner-sidebar {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner-footer {
    max-width: 728px;
    margin: 20px auto;
    border-radius: 10px;
}

/* --- Rozložení obsahu --- */
.main-content {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 0;
}

main {
    padding-right: 10px;
    scroll-margin-top: 80px;
    overflow-wrap: anywhere;
}

/* --- Postranní panel --- */
.sidebar-box {
    border: 1px solid var(--border);
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sidebar-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.sidebar-box h3 {
    background-color: var(--brand);
    color: #fff;
    font-size: 14px;
    padding: 10px 12px;
    margin: 0;
}

.sidebar-box p {
    padding: 12px;
    margin: 0;
    color: var(--muted);
}

.sidebar-box a {
    display: block;
    padding: 0 12px 12px;
    color: var(--brand);
    font-weight: 600;
}

.sidebar-box a:hover {
    text-decoration: underline;
}

.sidebar-box a:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.sidebar-box:last-child {
    margin-bottom: 0;
}

/* --- Patička --- */
footer {
    text-align: center;
    padding: 28px 16px 40px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}

.footer-content a {
    color: var(--brand);
}

.footer-content a:hover {
    text-decoration: underline;
}

.reklamni-banner {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.reklamni-banner .inzerce_square {
    display: inline-block;
}

.banner_img {
    max-width: 140px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    display: block;
}

/* --- Ostatní styly --- */
main h1, main h2, main h3 {
    color: var(--brand);
    letter-spacing: -0.2px;
    margin-top: 0.4em;
}

main h1 {
    line-height: 1.25;
}

main a {
    color: var(--brand);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

main a:hover {
    text-decoration: underline;
}

main table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

main table tr:hover td {
    background-color: #f1f5f9;
}

main th, main td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

main th {
    background-color: #f8fafc;
}

main tr:nth-child(even) td {
    background-color: #fafafa;
}

main caption {
    caption-side: top;
    text-align: left;
    color: var(--muted);
    font-size: 13px;
    padding: 6px 0;
}

.error {
    color: #b91c1c;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
}

/* --- Nové styly --- */
.content-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    width: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}

.content-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.content-card:focus {
    outline: 3px solid rgba(47,125,50,0.45);
    outline-offset: 4px;
}

.content-card > :first-child {
    margin-top: 0;
}

.content-card > :last-child {
    margin-bottom: 0;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    color: var(--text);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

button,
input[type="submit"],
input[type="button"] {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--brand-2);
}

/* --- Obrázky a bannery --- */
.header-top img {
    border-radius: 8px;
}

main img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.banner-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2em 0;
}

/* Grid pro ikony */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2em 0;
}

.icon-box {
    background: #f0f9f1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(47,125,50,0.15);
}

.icon-box .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Zvýraznění box */
.highlight-box {
    background: linear-gradient(135deg, #f0f9f1 0%, #e8f5e9 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 1.5em 0;
    border-left: 4px solid var(--brand);
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--brand);
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47,125,50,0.3);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--brand);
    color: var(--brand);
}

.btn-secondary:hover {
    background: var(--brand);
    color: white;
}

/* --- MODERNÍ DESIGN 2024 --- */

/* Hero sekce */
.hero-section {
    background: linear-gradient(135deg, #2f7d32 0%, #1b5e20 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    margin: -24px -24px 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    margin: 0 0 15px;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.hero-section .tagline {
    font-size: 20px;
    margin: 0 0 30px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-section .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* Feature grid - moderní */
.feature-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(47,125,50,0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), #4caf50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(47,125,50,0.2);
    border-color: var(--brand);
}

.feature-icon-modern {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.2) rotate(5deg);
}

.feature-card-modern h3 {
    margin: 15px 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
}

.feature-card-modern p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* CTA Box - moderní */
.cta-box-modern {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 40px;
    border-radius: 24px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(47,125,50,0.2);
}

.cta-box-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-box-modern h2 {
    margin: 0 0 15px;
    font-size: 32px;
    color: var(--brand);
    position: relative;
}

.cta-box-modern p {
    margin: 0 0 25px;
    font-size: 18px;
    color: var(--text);
    position: relative;
}

/* Moderní tlačítka */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--brand) 0%, #4caf50 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(47,125,50,0.4);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47,125,50,0.6);
}

.btn-modern-secondary {
    background: white;
    color: var(--brand);
    border: 2px solid var(--brand);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-modern-secondary:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-3px);
}

/* Stats section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(47,125,50,0.05) 0%, rgba(76,175,80,0.05) 100%);
    border-radius: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--brand);
    display: block;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--brand), #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline */
.timeline-item {
    padding-left: 30px;
    border-left: 3px solid var(--brand);
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(47,125,50,0.2);
}

.timeline-item h3 {
    margin: 0 0 10px;
    color: var(--brand);
}

/* Responsive - Hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        margin: -16px -16px 20px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section .tagline {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .feature-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Animace při načtení */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

.main-nav a,
.sidebar-box a {
    transition: background-color .2s ease, color .2s ease, text-decoration-color .2s ease;
}
