* {
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-image: url(img/cure3d_logo_notext.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Roboto', sans-serif;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #293746;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: rgb(1, 242, 255);
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-direction: row;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.objednat {
    border: 3px solid red;
    background-color: red;
    padding: 5px;
    border-radius: 5px;
}

.menu a.aktivni {
    background: rgba(255, 255, 255, 0.158);
    padding: 6px 10px;
    border-radius: 6px;
    color: white;
}

.menu a {
    transition: background 0.18s ease, transform 0.12s ease;
}

.menu a.aktivni {
    transform: translateY(-2px);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 625px;
    width: 100%;
    flex-grow: 1;
}

.text {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 20px auto;
}

main h1 {
    font-size: 42px;
}

main h4 {
    font-size: 20px;
    margin-top: 20px;
}

.obdelnik {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.obdelniky {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.7);
    padding: 20px;
    min-width: 180px;
    max-width: 240px;
    border-radius: 10px;
    color: white;
    font-size: 18px;
}

.katalog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px);
    gap: 20px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.katalog-item {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s ease;
}

.katalog-item:hover {
    transform: scale(1.1);
}

.katalog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.katalog-item h3 {
    text-align: center;
    color: white;
    font-size: 18px;
}

.text ul {
    text-align: left;
    display: inline-block;
    margin: 20px auto 0;
    padding-left: 20px;
}

.text ul ul {
    padding-left: 30px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.text li {
    margin-bottom: 6px;
}

.cenik-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cenik-table th,
.cenik-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
}

.cenik-table th {
    background: rgba(255, 255, 255, 0.1);
}

.cenik-table td {
    background: rgba(0, 0, 0, 0.5);
}

.cena {
    margin-top: 10px;
    margin-bottom: 10px;
    color: red;
    font-size: 20px;
    font-weight: bold;
}

form {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
}

.radek {
    margin-bottom: 12px;
    text-align: left;
}

.radek label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #2e2e2e;
    background: black;
    color: white;
    box-sizing: border-box;
}

form textarea {
    min-height: 140px;
}

form button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: red;
    color: white;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 800px) {
    form {
        padding: 8px;
        max-width: 100%;
    }

    form input,
    form textarea {
        font-size: 15px;
        padding: 8px;
    }

    form button {
        font-size: 16px;
        padding: 10px;
    }
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 10px;
    text-align: center;
    padding: 15px;
    background: #2c3e50;
    color: white;
}

footer p {
    margin: 0;
}

footer .social-links {
    position: absolute;
    right: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

footer .social-links a {
    color: white;
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 800px) {
    header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .burger {
        display: flex;
    }

    .menu {
        width: 100%;
    }

    .menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: #293746;
        border-radius: 8px;
        overflow: hidden;
    }

    .menu ul li {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .menu ul li:first-child {
        border-top: none;
    }

    .menu ul li a {
        display: block;
        padding: 12px 18px;
    }

    .menu-toggle:checked+.burger+.menu ul {
        display: flex;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    footer .social-links {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .katalog-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: center;
    }

    .katalog-item {
        width: 250px;
        margin: 0 auto;
    }
}

.odkaz-dolu {
    color: white;
    text-decoration: underline;
    margin-top: 15px;
    display: inline-block;
}

.odkaz-dolu:hover {
    color: rgb(1, 242, 255);
}

.menu a:hover {
    color: rgb(1, 242, 255);
}

.materialy {
    text-align: left;
    list-style: none;
    padding: 0;
}

.materialy>li {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
    margin-top: 20px;
}

.materialy strong {
    width: 180px;
    text-align: right;
    color: rgb(1, 242, 255);
}

.materialy ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}