
:root {
    --bg-dark: #0a0b0e;
    --bg-darker: #050608;
    --bg-card: rgba(26, 29, 36, 0.6);
    
    --text-main: #f0f2f5;
    --text-muted: #a0aabf;
    --primary-color: #e63946;
    --primary-hover: #c12a35;

    
    --radius-sm: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    --shadow-base: none;
    --shadow-hover: none;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
input,
textarea,
button,
select {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 15% 50%, rgba(230, 57, 70, 0.03), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(230, 57, 70, 0.04), transparent 25%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}


.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(5, 6, 8, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

.site-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.logo-link:hover .site-logo {
    opacity: 0.85;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid transparent;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.btn-nav:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}


.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: var(--shadow-base);
    text-align: center;
    min-height: 48px;
    
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff4d5a);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}


footer {
    background-color: var(--bg-darker);
    padding: 80px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
    align-items: center;
}

.contact-info {
    text-align: left;
    padding-right: 20px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-info strong {
    color: var(--text-main);
    font-size: 1.2rem;
    display: block;
    margin-top: 5px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons p {
    margin-bottom: 7px;
    font-size: 0.9rem;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    color: var(--text-muted);
    margin-right: 15px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 26px 20px 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 56px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.input-group textarea {
    resize: vertical;
    max-height: 400px;
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 20px;
    color: #6c758a;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
    transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100% - 40px);
}

.input-group textarea+label {
    top: 24px;
    transform: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: 8px;
    left: 20px;
    font-size: 0.75rem;
    color: var(--primary-color);
    transform: none;
}

.contact-form button {
    margin-top: 10px;
    padding: 18px;
    font-size: 1.1rem;
}


.form-message {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-left: 5px solid var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.form-message.show {
    bottom: 30px;
    opacity: 1;
}

.form-message.success {
    border-left-color: #2ecc71;
}

.form-message.error {
    border-left-color: #e63946;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a,
.legal-link-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.legal-links a:hover,
.legal-link-btn:hover {
    color: var(--primary-color);
}

.copyright,
.dev-credit {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.dev-credit a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.dev-credit a:hover {
    color: var(--primary-color);
}


.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.link:hover {
    color: var(--primary-hover);
}

.link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


.car-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 15px;
}

.car-price-wrapper .car-price {
    margin-bottom: 0;
}

.car-price-dph {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}


.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 5px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, width 0.3s ease;
}

.menu-toggle span:nth-child(2) {
    width: 18px;
    align-self: flex-end;
}

.menu-toggle:hover span:nth-child(2) {
    width: 25px;
}

@media (max-width: 992px) {
    .contact-wrapper {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h2 {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .input-group input,
    .input-group textarea {
        font-size: 16px;
    }

    .contact-form button {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(7, 8, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }

    nav.nav-active {
        right: 0;
    }

    .menu-toggle.toggle-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.toggle-active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .menu-toggle.toggle-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }
}

/* ============================================================
   LIGHTWEIGHT LEGAL MODALS (GDPR & VOP)
   ============================================================ */
dialog.legal-modal {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--primary-color);
    background-color: var(--bg-darker);
    background-image: radial-gradient(circle at 10% 10%, rgba(230, 57, 70, 0.05), transparent 40%);
    color: var(--text-main);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 92%;
    max-height: 85vh;
    padding: 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    margin: auto;
    overflow: hidden;
}

dialog.legal-modal[open] {
    animation: modalFadeIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

dialog.legal-modal::backdrop {
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.legal-modal-close:hover {
    color: #fff;
    border-color: var(--primary-color);
    background: rgba(230, 57, 70, 0.15);
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(85vh - 145px);
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.legal-modal-body h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 22px 0 10px 0;
    display: flex;
    align-items: center;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.legal-modal-body h4:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: 14px;
}

.legal-modal-body ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.legal-modal-body li {
    margin-bottom: 8px;
}

.legal-modal-footer {
    padding: 16px 28px;
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
}

.legal-modal-footer .btn {
    min-height: 42px;
    padding: 10px 28px;
    font-size: 0.85rem;
}

/* Responzivní přizpůsobení modálů */
@media (max-width: 768px) {
    dialog.legal-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-sm);
    }

    .legal-modal-header {
        padding: 16px 20px;
    }

    .legal-modal-header h3 {
        font-size: 1.05rem;
    }

    .legal-modal-body {
        padding: 20px;
        max-height: calc(90vh - 130px);
        font-size: 0.9rem;
    }

    .legal-modal-footer {
        padding: 12px 20px;
    }

    .legal-modal-footer .btn {
        width: 100%;
    }
}