*,
*::before,
*::after {
    box-sizing: border-box;
}
.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 10px 15px;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    font-size: 14px;
    transition: top 0.2s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #ffbf00;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #1a1a1a;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

header {
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #2c2c2c, #444);
    padding: 25px;
    grid-area: hlavicka;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-top: 2px solid #555;
    grid-area: pata;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

footer a {
    color: #aad4f5;
}

h1,
h2,
h3 {
    font-family: sans-serif;
}

h1 {
    letter-spacing: 1px;
    font-size: 1.8rem;
}

h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    color: #1a1a1a;
    font-size: 1.4rem;
}

h3 {
    font-size: 1.15rem;
    color: #2c2c2c;
}

p {
    margin-bottom: 15px;
    line-height: 1.7;
    max-width: 70ch;
}

table,
th,
td {
    border: 1px solid #666;
    border-collapse: collapse;
    padding: 8px;
}

table {
    width: 100%;
    margin-top: 15px;
}

th {
    background-color: #e0e0e0;
    text-align: left;
    color: #1a1a1a;
}

main a,
aside a {
    color: #1a5276;
    text-underline-offset: 3px;
}

main a:visited,
aside a:visited,
footer a:visited {
    color: #5a3f7a;
}

a:active {
    background-color: #cc0000;
    color: #fff;
}

a:focus {
    outline: 3px solid #ffbf00;
    outline-offset: 2px;
}

nav:not(.breadcrumb) {
    grid-area: vlavo;
    background: #222;
    padding: 10px;
    box-shadow: 2px 0 0 #444;
}

nav:not(.breadcrumb) ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

nav:not(.breadcrumb) li {
    margin: 0;
    list-style: none;
}

nav:not(.breadcrumb) a {
    display: block;
    color: #fff;
    text-decoration: none;
    background-color: #555;
    padding: 10px 8px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

nav:not(.breadcrumb) a:hover {
    background-color: #2c6fad;
    transform: scale(1.03);
}

nav:not(.breadcrumb) a:focus {
    outline: 3px solid #ffbf00;
    outline-offset: 2px;
}

nav:not(.breadcrumb) a.active,
nav:not(.breadcrumb) a[aria-current="page"] {
    background-color: #1a5276;
    font-weight: bold;
}

.breadcrumb {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    margin: 0;
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    grid-area: drobky;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.breadcrumb li + li::before {
    content: "›";
    margin-right: 4px;
    color: #999;
}

.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #555;
    font-weight: bold;
}

#kontajner {
    display: grid;
    grid-template-areas:
        "hlavicka hlavicka hlavicka"
        "drobky   drobky   drobky"
        "vlavo    stred    vpravo"
        "pata     pata     pata";

    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: auto auto 1fr auto;

    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    grid-area: stred;
    padding: 20px;
    margin: 0;
}

aside {
    grid-area: vpravo;
    padding: 20px;
    background: #f5f5f5;
    font-size: 14px;
}

section {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

ul li,
ol li {
    margin: 8px 0;
}

figure {
    text-align: center;
    margin: 20px;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

blockquote {
    font-style: italic;
    border-left: 4px solid #555;
    padding-left: 12px;
    color: #333;
    margin: 16px 0;
}

pre {
    background: #e8e8e8;
    padding: 12px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
}

button,
.btn {
    background: #1a5276;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    transition: background 0.3s;
    cursor: pointer;
    font-size: 16px;
}

button:hover,
.btn:hover {
    background: #154360;
}

button:focus,
.btn:focus {
    outline: 3px solid #ffbf00;
    outline-offset: 2px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery li {
    margin: 0;
}

.gallery figure {
    margin: 0;
    text-align: center;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.gallery figcaption {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 12px;
    color: #1a1a1a;
}

.field-hint {
    font-size: 13px;
    color: #555;
    margin-top: 3px;
    margin-bottom: 4px;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-radius: 5px;
    border: 2px solid #666;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #ffbf00;
    border-color: #1a5276;
}

input:invalid:not(:placeholder-shown) {
    border-color: #cc0000;
}

input:valid:not(:placeholder-shown) {
    border-color: #1a7a3c;
}

.form-error {
    color: #cc0000;
    font-size: 13px;
    margin-bottom: 8px;
    display: none;
}

.required-note {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.required-note abbr {
    color: #cc0000;
    text-decoration: none;
}

.pouzitelnost-sekcia {
    background: #f0f8f0;
    border-left: 4px solid #1a7a3c;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.pristupnost-sekcia {
    background: #f0f4f8;
    border-left: 4px solid #1a5276;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 1024px) {
    #kontajner {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "hlavicka hlavicka"
            "drobky   drobky"
            "vlavo    vlavo"
            "stred    vpravo"
            "pata     pata";
    }

    nav {
        box-shadow: none;
        border-bottom: 2px solid #444;
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    #kontajner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hlavicka"
            "drobky"
            "vlavo"
            "stred"
            "vpravo"
            "pata";
    }

    nav ul {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    aside {
        border-left: none;
        border-top: 2px solid #ccc;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    body {
        overflow-x: hidden;
    }

    section {
        padding: 15px;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    h1,
    h2 {
        font-family: sans-serif;
    }

    p {
        font-family: serif;
    }

    .skip-link,
    nav,
    .breadcrumb {
        display: none;
    }
}
footer p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}