html {
    scroll-behavior: auto;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-effect {
    animation: pulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vypocet_ceny,
.wpcf7-form {
    overflow: visible !important;
}

.vyber_typu_sub_section {
    position: relative;
    overflow: visible !important;
}

.vyber_typu_sub_section {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.78);
    -webkit-box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 20px;
}

.vyber_typu_sub_section .seriemain {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.vyber_typu_sub_section .seriemain .seria {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #091335;
    line-height: 1.2;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.vyber_typu_sub_section .seriemain .seria img {
    height: 40px;
    object-fit: cover;
    width: 50%;
    transition: transform 0.3s ease;
}

.vyber_typu_sub_section .seriemain .seria:hover img {
    transform: scale(1.05);
}

.vyber_typu_sub_section .seriemain .seria.active,
.vyber_typu_sub_section .seriemain .seria:hover {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(97, 206, 112, 0.3);
}

.vyber_typu_sub_section .subserie {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.vyber_typu_sub_section .subserie a {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #091335;
    border-radius: 4px;
    color: #091335;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vyber_typu_sub_section .subserie a:hover::before {
    width: 100%;
}

.vyber_typu_sub_section .subserie a:hover {
    color: white;
}

.vyber_typu_sub_section .subserie a.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
    box-shadow: 0 3px 10px rgba(97, 206, 112, 0.25);
}

.vyber_typu_sub_section .subserie a.active::before {
    width: 100%;
}

@media (max-width: 768px) {
    .vyber_typu_sub_section {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 100;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.95));
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        border-radius: 0 0 16px 16px;
        padding: 10px 20px;
        transition: transform 0.3s ease, opacity 0.25s ease;
        will-change: transform, opacity;
    }

    .vyber_typu_sub_section.out-of-view {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .vyber_typu_sub_section .seriemain {
        display: flex;
        gap: 10px;
        margin-bottom: 0;
        justify-content: center;
    }

    .vyber_typu_sub_section .seria {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        text-decoration: none;
        color: #091335;
        min-width: 100px;
        transition: all 0.3s ease;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        position: relative;
        overflow: hidden;
    }

    .vyber_typu_sub_section .seria:active {
        transform: scale(0.98);
    }

    .vyber_typu_sub_section .seria img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 6px;
        transition: transform 0.3s ease;
    }

    .vyber_typu_sub_section .seria.active {
        border-color: #2196F3;
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .vyber_typu_sub_section .seria.active img {
        transform: scale(1.1);
    }

    .vyber_typu_sub_section .subserie {
        display: none;
        gap: 6px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        justify-content: center;
        flex-wrap: wrap;
        opacity: 0;
        transform: translateY(-10px);
    }

    .vyber_typu_sub_section .subserie.show {
        display: grid !important;
        opacity: 1;
        transform: translateY(0);
        animation: fadeInSmooth 0.3s ease;
        grid-template-columns: repeat(6, 1fr);
    }

    @keyframes fadeInSmooth {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .vyber_typu_sub_section .subserie a {
        padding: 8px 14px;
        background: white;
        border: 1.5px solid #e0e0e0;
        border-radius: 8px;
        color: #091335;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.25s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .vyber_typu_sub_section .subserie a:active {
        transform: scale(0.95);
    }

    .vyber_typu_sub_section .subserie a.active {
        background: #091335;
        color: white;
        border-color: #091335;
        box-shadow: 0 2px 8px rgba(9, 19, 53, 0.25);
    }

    .vyber_typu_sub_section .subserie a:not(.active):hover {
        border-color: #2196F3;
        background: rgba(33, 150, 243, 0.05);
        transform: translateY(-1px);
        color: var(--color-text);
        box-shadow: 0 2px 6px rgba(33, 150, 243, 0.15);
    }

    .cast_oplotenia_sticky {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 99;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
        -webkit-backdrop-filter: blur(24px) saturate(200%);
        backdrop-filter: blur(24px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        border-radius: 0 0 20px 20px;
        padding: 5px 10px;
        transition: transform 0.3s ease, opacity 0.25s ease;
        will-change: transform, opacity;
    }

    .cast_oplotenia_sticky.hiding {
        transform: translateY(-100%);
        opacity: 0;
    }

    .cast_oplotenia_sticky .cast-items {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: rgba(9, 19, 53, 0.2) transparent;
    }

    .cast_oplotenia_sticky .cast-items::-webkit-scrollbar {
        height: 3px;
    }

    .cast_oplotenia_sticky .cast-items::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, rgba(9, 19, 53, 0.2), rgba(9, 19, 53, 0.3));
        border-radius: 3px;
    }

    .cast_oplotenia_sticky .cast-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 8px;
        background: white;
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        text-decoration: none;
        color: #334155;
        min-width: 72px;
        height: 50px;
        flex-shrink: 0;
        transition: all 0.25s ease;
        position: relative;
        cursor: pointer;
        scroll-snap-align: center;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .cast_oplotenia_sticky .cast-item img {
        width: 60px;
        height: 28px;
        object-fit: contain;
        margin-bottom: 4px;
        transition: all 0.3s ease;
        opacity: 0.8;
    }

    .cast_oplotenia_sticky .cast-item .text {
        font-size: 9px;
        font-weight: 500;
        text-align: center;
        line-height: 1.1;
        color: #64748b;
        transition: color 0.25s ease;
    }

    .cast_oplotenia_sticky .cast-item:active {
        transform: scale(0.95);
    }

    .cast_oplotenia_sticky .cast-item.selected {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        animation: selectPulse 0.4s ease;
    }

    @keyframes selectPulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }

    .cast_oplotenia_sticky .cast-item.selected img {
        opacity: 1;
    }

    .cast_oplotenia_sticky .cast-item.selected .text {
        color: white;
        font-weight: 600;
    }

    .cast_oplotenia_sticky .cast-item.selected::after {
        content: '✓';
        position: absolute;
        top: 4px;
        right: 4px;
        background: white;
        color: #2563eb;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        font-size: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        animation: checkmarkAppear 0.3s ease;
    }

    @keyframes checkmarkAppear {
        from {
            transform: scale(0);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    .cast_oplotenia_sticky .cast-item.in-view {
        border-color: #10b981;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), 0 2px 8px rgba(16, 185, 129, 0.1);
        animation: pulseGlow 2s ease-in-out infinite;
    }

    .cast_oplotenia_sticky .cast-item.in-view img {
        opacity: 1;
        transform: scale(1.1);
    }

    .cast_oplotenia_sticky .cast-item.in-view .text {
        color: #059669;
        font-weight: 600;
    }

    .cast_oplotenia_sticky .cast-item.selected.in-view {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 4px 12px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    @keyframes pulseGlow {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.02);
        }
    }

    .cast_oplotenia_sticky .cast-item:not(.selected):not(.in-view):hover {
        border-color: #cbd5e1;
        background: #f8fafc;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .cast_oplotenia_sticky .cast-item:not(.selected):not(.in-view):hover img {
        opacity: 1;
        transform: scale(1.05);
    }

    .cast_oplotenia_sticky .cast-item:not(.selected):not(.in-view):hover .text {
        color: #1e293b;
    }
}

@media (min-width: 769px) {
    .vyber_typu_sub_section,
    .cast_oplotenia_sticky {
        display: none !important;
    }
}

.subpagetitle {
    text-align: center;
    line-height: 1.2 !important;
}

.wpcf7-form .imgradio .item .subtitle {
    padding: 4px 8px 8px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    background: white;
    line-height: 1.2;

}

.screen-reader-response ul {
    display: none !important;
}


body .wpcf7 .screen-reader-response {
    clip-path: inset(0) !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
}


body .wpcf7 .screen-reader-response p {
    margin: 0 !important;
}

@media (max-width: 1000px) {

    .wpcf7-form {
        margin-bottom: 140px;
    }

}