* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

/* CONTAINER GLOBAL */
.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* SPACER */
.spacer {
    background: #f5f5f5;
    height: 7.55rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
}  
.spacer h2 {
    font-weight: 400;
}

/* HEADER + NAVIGATION */
header {
    background: #f9f9f9;
    height: 5.55rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.logo img {
    max-height: 61px;
}

nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 5.55rem;
    left: 0;
    width: 100%;
    background: #f9f9f9;
    padding: 1rem;
    z-index: 999;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #222222;
    font-weight: 400;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

/* Pseudo-element pro podtržení */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff4343;
    transition: width 0.3s ease;
}

/* Hover efekt */
nav ul li a:hover {
    color: #ff4343;
}

/* Zobrazení podtržení při hoveru */
nav ul li a:hover::after {
    width: 100%;
}

/* Aktivní stav pro kliknuté tlačítko */
nav ul li a:active {
    color: #ff4343;
    font-weight: 500;
}

.action-button {
    display: none;
    background-color: #ff4343;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: white;
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.action-button:hover {
    background-color: #ff1a1a;
    transform: scale(1.1);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.action-button a {
    text-decoration: none;
    color: white;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 100%;
}

/* Checkbox hack pro mobilní menu */
#menu-toggle {
    display: none;
}

#menu-toggle:checked + label + nav {
    display: flex;
}

#menu-toggle:checked + label .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 7px;
}

#menu-toggle:checked + label .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + label .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -7px;
}

/* BANNER UNDER NAV */
.banner {
    background-image: url('https://radovanbohac.cz/editorweb/filemanager/files/71//produkty/DSC_0055.JPG');
    background-size: cover;
    background-position: center;
    color: white;
    height: calc(100vh - 5.55rem);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.banner-content {
    padding: 0 2rem;
    max-width: 30em;
}
.contact-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-form input {
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
}
.contact-form button {
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #ff4343;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    background-color: #ff1a1a;
    transform: scale(1.05);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-form button:active {
    background-color: #d12f2f;
    transform: scale(1);
}

/* HELP CARDS */
.help-cards {
    display: grid;
    gap: 1.5rem;
    padding: 2rem 0;
    grid-template-columns: 1fr;
}

.card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-weight: 400;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px;
    max-height: 220px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: #444;
}

.card-button {
    align-self: center;
    padding: 0.6rem 1.5rem;
    background-color: #ff4343;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.25s ease;
    font-weight: 500;
}

.card-button:hover {
    background-color: #e33434;
}

/* VIDEO LIST */
.videolist {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.video-sidebar a i.fa-lock {
    margin-left: 0.4em;
    color: #c00;
    font-size: 0.85em;
}

.video-sidebar {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

.video-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    text-align: center;
}

.video-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-sidebar li {
    position: relative;
    margin-bottom: 0.5rem;
}

.video-sidebar li > span {
    display: block;
    padding: 0.8rem;
    font-size: 1rem;
    color: #444;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.video-sidebar li.has-submenu:hover > span {
    background-color: #f0f0f0;
    color: #ff4343;
    cursor: default;
}

.video-sidebar a {
    display: block;
    text-decoration: none;
    color: #444;
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.video-sidebar a:hover {
    background-color: #eee;
    color: #ff4343;
}

/* Mobile-first submenu – směrem dolů */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 999;
}
/* Zobraz submenu při hoveru */
li.has-submenu:hover > .submenu {
    max-height: 500px;
}

.video-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    justify-items: center;
}

.video-card {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.video-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.video-card h4 {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #222;
}

/* RECENZE */
.recenze-sekce {
    padding: 3rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.recenze-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: center;
    grid-auto-rows: minmax(200px, auto);
    max-width: 1200px;
    width: 100%;
}

.recenze-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-weight: 400;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 350px;
    height: 250px;
    max-height: 250px;
}

.recenze-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.recenze-card .recenze-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
}

.recenze-card .recenze-author {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.recenze-card .recenze-rating {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
}

.recenze-card .star {
    color: #ff4343;
    font-size: 1.2rem;
}

/* Základní styly pro galerii */
.realizace-sekce {
    padding: 2rem;
    text-align: center;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease-in-out;
    }
  
  .gallery-item:hover img {
    transform: scale(1.10);
  }
  
  figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .gallery-item:hover figcaption {
    opacity: 1;
  }

  .footer {
    background-color: #f5f5f5;
    padding: 2rem 1rem 1rem;
    font-family: system-ui, sans-serif;
    color: #333;
  }
  
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-col h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-col ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-col ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-col ul li a:hover {
    color: #ff1a1a;
  }
  
  .footer-bottom {
    text-align: center;
    color: #777;
    font-size: 0.85rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
  }

/* MEDIA QUERIES */
@media (min-width: 568px) {
    .container {
        max-width: 100%;
    }
    .help-cards, .recenze-grid, .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 666px) {
    .container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    .videolist {
        flex-direction: row;
        text-align: left;
    }
    .video-sidebar {
        flex: 1;
    }
    .video-grid {
        flex: 3;
        grid-template-columns: repeat(2, 1fr);
    }
    .recenze-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-col {
        flex: 1;
        padding: 0 1rem;
    }
}
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
    nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        background: none;
        padding: 0;
        align-items: center;
    }

    nav ul {
        flex-direction: row;
        gap: 0;
    }

    .hamburger {
        display: none;
    }

    .action-button {
        display: inline-block;
    }
    .banner-content {
        padding: 0 0;
    }
    .help-cards {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .recenze-grid, .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    .submenu {
        position: absolute;
        top: 0;
        left: 100%;
        background-color: #fff;
        padding: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        min-width: 180px;
        opacity: 0;
        pointer-events: none;
        transform: translateX(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        max-height: none;
    }

    li.has-submenu:hover > .submenu {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    /* Skryj výchozí mobile-first styl */
    .video-sidebar li.has-submenu:hover > .submenu {
        max-height: none;
    }

    .submenu a {
        padding: 1rem;
    }
}
@media (min-width: 1300px) {
    .container {
        max-width: 1250px;
    }
}