/* ----------- Reset a základ ----------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f7f8fa;
}

/* ----------- Header s farebným bannerom ----------- */
header {
    background: linear-gradient(135deg, #0077cc, #005fa3);
    color: #fff;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: background 0.3s;
}

header .brand h1 {
    font-size: 2rem;
    color: #fff;
}

header .brand p.slogan {
    font-size: 1rem;
    color: #dce6f1;
    margin-top: 0.2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

nav ul li a {
    font-weight: 500;
    color: #fff;
    padding: 0.3rem 0.5rem;
    position: relative;
}

nav ul li a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #ffd700;
    border-radius: 2px;
}

/* ----------- Kontajner ----------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* ----------- Sekcie ----------- */
.section {
    margin: 3rem 0;
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0077cc;
    border-bottom: 3px solid #0077cc;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.section p,
.section ul {
    margin-bottom: 1rem;
    color: #555;
}

/* ----------- Grid ----------- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ----------- Card ----------- */
.card {
    background-color: #fdfdfd;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card .body {
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: #0077cc;
}

.card p {
    font-size: 1rem;
    color: #555;
}

/* ----------- Obrázky v kartách produktov ----------- */
.card img {
    width: 100%;           /* zaplní šírku karty */
    max-height: 200px;     /* obmedzí výšku pre jednotnosť */
    object-fit: contain;   /* zachová proporcie obrázku */
    border-bottom: 1px solid #eee;
    padding: 0.5rem;
    background-color: #fafafa;
    border-radius: 6px 6px 0 0;
}

/* ----------- Tlačidlá ----------- */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #0077cc, #005fa3);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn:hover {
    background: linear-gradient(135deg, #005fa3, #003f70);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ----------- Footer ----------- */
footer.footer {
    background-color: #222;
    color: #eee;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #444;
    letter-spacing: 0.5px;
}

/* ----------- Tabuľky ----------- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th, .table td {
    padding: 0.7rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f0f8ff;
    font-weight: 600;
    color: #0077cc;
}

/* ----------- Formulár ----------- */
.form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #333;
}

.form input,
.form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 8px rgba(0,119,204,0.3);
}

/* ----------- Malé texty / poznámky ----------- */
.small {
    font-size: 0.85rem;
    color: #666;
}

.notice {
    background-color: #f1f8ff;
    border-left: 4px solid #0077cc;
    padding: 1rem;
    border-radius: 8px;
}

/* ----------- Responsívne ----------- */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }
}
