:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --gray-light: #bdc3c7;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: white;
}

.train-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.loader p {
    font-size: 1.2rem;
    font-weight: 300;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Navigačný bar */
.navbar {
    background-color: rgba(44, 62, 80, 0.95);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background-color: rgba(44, 62, 80, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.logo-link:hover h1 {
    color: var(--secondary);
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.8rem;
    color: var(--secondary);
    transition: var(--transition);
}

.logo-link:hover .logo-icon {
    transform: rotate(15deg);
}

.nav-logo h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

/* OPRAVENÉ: Hamburger menu - krížik na stred */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Hlavička s obrázkami - UPRAVENÉ: Jeden statický obrázok */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    min-height: 600px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

/* UPRAVENÉ: Statický obrázok namiesto slideshow */
.static-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
}

/* Tlačidlá */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    margin-left: 8px;
}

.btn-hero {
    background: var(--secondary);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-hero:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(52, 152, 219, 0.4);
}

.btn-card {
    background: white;
    color: var(--primary);
}

.btn-card:hover {
    background: var(--secondary);
    color: white;
}

.btn-cta {
    background: var(--accent);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.btn-cta:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(231, 76, 60, 0.4);
}

.btn-form {
    background: var(--secondary);
    color: white;
    width: 100%;
}

.btn-form:hover {
    background: #2980b9;
}

/* Filter button - Pridané */
.btn-filter {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--gray-light);
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    height: 50px;
}

.btn-filter:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

/* Sekcia štatistík */
.stats-section {
    background: var(--gradient);
    padding: 5rem 0;
    color: white;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom right, transparent 49%, var(--secondary) 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Sekcie */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--light);
    z-index: -1;
}

.section-divider.top {
    top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.section-divider.bottom {
    bottom: 0;
    clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

#o-nas {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#nahradne-diely {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#kontakt {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Sekcia O nás */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    color: var(--success);
    margin-right: 10px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
}

.image-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.image-frame:hover .image-overlay {
    transform: translateY(0);
}

.image-frame:hover img {
    transform: scale(1.05);
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Sekcia s náhľadom dielov - UPRAVENÉ aby vyzerala ako v podstránke */
.parts-preview-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    position: relative;
}

/* Filter controls - AKO V PODSTRÁNKE */
.parts-preview-controls {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-end;
    justify-content: space-between;
}

.preview-filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.preview-filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.preview-filter-group label i {
    color: var(--secondary);
    width: 16px;
}

.filter-input, .filter-select {
    padding: 0.9rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    width: 100%;
    min-width: 0;
}

.filter-input {
    min-width: 180px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

.filter-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-shrink: 0;
}

/* UPRAVENÉ: Tabuľka - plne responzívna na mobile */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 15px;
    border: 1px solid var(--light);
    -webkit-overflow-scrolling: touch;
}

.parts-preview-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 300px;
}

.parts-preview-table thead {
    background: var(--gradient);
}

.parts-preview-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    cursor: pointer;
    user-select: none;
    position: relative;
    white-space: nowrap;
    font-size: 1rem;
}

.parts-preview-table th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.parts-preview-table th i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.index-col {
    width: 60px;
    text-align: center !important;
}

/* Sort arrows - AKO V PODSTRÁNKE */
.sort-arrow {
    margin-left: 6px;
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(255, 255, 255, 0.7);
    opacity: 0.7;
}

.parts-preview-table th.sort-asc .sort-arrow {
    border-bottom-color: white;
    opacity: 1;
}

.parts-preview-table th.sort-desc .sort-arrow {
    border-top: 5px solid white;
    border-bottom: none;
    opacity: 1;
}

.parts-preview-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    vertical-align: middle;
    transition: var(--transition);
    font-size: 0.95rem;
}

.parts-preview-table tbody tr {
    transition: var(--transition);
}

.parts-preview-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

.parts-preview-table tbody tr:hover td {
    color: var(--primary);
}

.parts-preview-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    background: rgba(52, 152, 219, 0.05);
    font-family: 'Montserrat', monospace;
    font-size: 1rem;
}

.quantity-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.4rem 0.8rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.quantity-number {
    font-size: 1rem;
    color: #27ae60;
}

.quantity-display small {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Footer náhľadu */
.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light);
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-info {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.preview-info span {
    color: var(--primary);
    font-weight: 700;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    background: var(--light);
    border-radius: 15px;
    margin: 2rem 0;
}

.no-results i {
    margin-bottom: 1.5rem;
    color: var(--gray-light);
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.loader-small {
    text-align: center;
    padding: 1rem;
    color: var(--secondary);
}

.loader-small i {
    margin-right: 10px;
}

/* Kontaktná sekcia */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
    cursor: default;
}

.contact-item:hover {
    background: rgba(52, 152, 219, 0.05);
}

.contact-icon {
    background: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
}

.contact-text h4 {
    margin-bottom: 0.3rem;
    color: var(--primary);
    transition: var(--transition);
}

.contact-item:hover .contact-text h4 {
    color: var(--secondary);
}

.contact-text p {
    color: var(--gray);
    margin: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-text p {
    color: var(--primary);
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.form-group textarea + i {
    top: 1.5rem;
    transform: none;
}

/* Mapa */
.map-section {
    margin-top: 2rem;
}

.map-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Fakturačné údaje - PRESNE ROVNAKÉ AKO KONTAKTNÉ ÚDAJE */
.billing-info {
    margin-top: 1rem;
}

.billing-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
    cursor: default;
}

.billing-info .contact-item:hover {
    background: rgba(52, 152, 219, 0.05);
}

.billing-info .contact-icon {
    background: var(--secondary);
    color: white;
    width: 50px; /* ROVNAKÉ AKO KONTAKTNÉ */
    height: 50px; /* ROVNAKÉ AKO KONTAKTNÉ */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.billing-info .contact-item:hover .contact-icon {
    background: var(--primary);
}

.billing-info .contact-text {
    flex: 1;
}

.billing-info .contact-text h4 {
    font-size: 1rem; /* ROVNAKÉ AKO KONTAKTNÉ */
    margin-bottom: 0.3rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.billing-info .contact-item:hover .contact-text h4 {
    color: var(--secondary);
}

.billing-info .contact-text p {
    font-size: 0.95rem; /* ROVNAKÉ AKO KONTAKTNÉ */
    color: var(--gray);
    margin: 0;
    transition: var(--transition);
}

.billing-info .contact-item:hover .contact-text p {
    color: var(--primary);
}

/* Päta */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.footer-logo-link:hover h2 {
    color: var(--secondary);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    margin-right: 10px;
    font-size: 2rem;
    color: var(--secondary);
    transition: var(--transition);
}

.footer-logo-link:hover .logo-icon {
    transform: rotate(15deg);
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: white;
    transition: var(--transition);
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--secondary);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #ddd;
}

.web-by-section {
    margin-top: 40px;
    padding: 25px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
}

.web-by-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.web-by-text {
    color: var(--gray-medium);
    font-size: 1rem;
    font-weight: 500;
}

.web-by-logo {
    display: inline-block;
    transition: var(--transition);
}

.web-by-logo-image {
    height: 35px;
    width: auto;
    filter: brightness(0.8);
    transition: var(--transition);
    border-radius: 4px;
}

.web-by-logo:hover .web-by-logo-image {
    filter: brightness(1);
    transform: scale(1.05);
}

/* Tlačidlo späť hore */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-5px);
}

/* Animácie */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ==================== RESPOZÍVNY DIZAJN ==================== */

/* Veľké tablety a malé desktopy */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
}

/* Tablety */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-content {
        max-width: 700px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-divider {
        height: 70px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .parts-preview-controls {
        flex-wrap: wrap;
        gap: 1.2rem;
    }
    
    .preview-filter-group {
        flex: 1 1 45%;
        min-width: 200px;
    }
    
    .filter-buttons {
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Malé tablety a veľké mobily */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 10px 20px;
        display: block;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-divider {
        height: 50px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .parts-preview-container {
        padding: 1.5rem;
    }
    
    /* Responzívne štýly pre filtre */
    .parts-preview-controls {
        gap: 1rem;
    }
    
    .preview-filter-group {
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .filter-buttons {
        margin-top: 0.5rem;
    }
    
    .preview-footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .parts-preview-table th,
    .parts-preview-table td {
        padding: 0.8rem;
    }
    
    .parts-preview-table td:first-child {
        font-size: 0.95rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section li {
        justify-content: center;
    }
    
    /* Fakturačné údaje - PRESNE ROVNAKÉ AKO KONTAKTNÉ NA MOBILE */
    .billing-info .contact-item {
        flex-direction: row !important;
        align-items: flex-start;
        text-align: left;
        padding: 1rem; /* ROVNAKÉ AKO KONTAKTNÉ */
        margin-bottom: 1.5rem; /* ROVNAKÉ AKO KONTAKTNÉ */
    }
    
    .billing-info .contact-icon {
        margin-right: 1rem;
        margin-bottom: 0;
        width: 50px; /* ROVNAKÉ AKO KONTAKTNÉ */
        height: 50px; /* ROVNAKÉ AKO KONTAKTNÉ */
    }
    
    .billing-info .contact-text h4 {
        font-size: 1rem; /* ROVNAKÉ AKO KONTAKTNÉ */
        margin-bottom: 0.3rem;
    }
    
    .billing-info .contact-text p {
        font-size: 0.95rem; /* ROVNAKÉ AKO KONTAKTNÉ */
    }
}

/* Mobily */
@media (max-width: 576px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .btn-hero {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .section-divider {
        height: 30px;
    }
    
    .map-container {
        height: 200px;
    }
    
    /* UPRAVENÉ: Tabuľka plne responzívna na mobile */
    .parts-preview-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .preview-filter-group {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .filter-select,
    .filter-input {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .parts-preview-table {
        font-size: 0.85rem;
        min-width: 100% !important;
    }
    
    .parts-preview-table th,
    .parts-preview-table td {
        padding: 0.6rem 0.5rem;
        white-space: normal;
    }
    
    .parts-preview-table th {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .parts-preview-table th i {
        margin-right: 5px;
        font-size: 0.8rem;
    }
    
    .quantity-display {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .quantity-number {
        font-size: 0.9rem;
    }
    
    .index-col {
        width: 50px;
    }
    
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-logo h2 {
        font-size: 1.5rem;
    }
    
    /* Fakturačné údaje - PRESNE ROVNAKÉ AKO KONTAKTNÉ NA MOBILE */
    .billing-info .contact-item {
        padding: 1rem; /* ROVNAKÉ AKO KONTAKTNÉ */
        margin-bottom: 1.5rem; /* ROVNAKÉ AKO KONTAKTNÉ */
    }
    
    .billing-info .contact-icon {
        width: 50px; /* ROVNAKÉ AKO KONTAKTNÉ */
        height: 50px; /* ROVNAKÉ AKO KONTAKTNÉ */
        margin-right: 1rem;
    }
    
    .billing-info .contact-text h4 {
        font-size: 1rem; /* ROVNAKÉ AKO KONTAKTNÉ */
    }
    
    .billing-info .contact-text p {
        font-size: 0.95rem; /* ROVNAKÉ AKO KONTAKTNÉ */
    }
}

/* Veľmi malé mobily */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-hero, .btn-cta {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* UPRAVENÉ: Ešte kompaktnejšia tabuľka pre malé mobily */
    .parts-preview-table {
        font-size: 0.8rem;
    }
    
    .parts-preview-table th,
    .parts-preview-table td {
        padding: 0.5rem 0.4rem;
    }
    
    .parts-preview-table th {
        font-size: 0.85rem;
    }
    
    .quantity-display {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .quantity-number {
        font-size: 0.85rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 1rem;
    }
    
    /* Hamburger menu ikony menšie */
    .hamburger {
        width: 26px;
        height: 20px;
    }
    
    .hamburger span {
        height: 2.5px;
    }
    
    .hamburger span:nth-child(2) {
        top: 8px;
    }
    
    .hamburger span:nth-child(3) {
        top: 16px;
    }
    
    .hamburger.active span:nth-child(1) {
        top: 8px;
    }
    
    .hamburger.active span:nth-child(3) {
        top: 8px;
    }
    
    /* Fakturačné údaje - mierne zmenšenie na veľmi malých mobiloch */
    .billing-info .contact-item {
        padding: 0.8rem;
    }
    
    .billing-info .contact-icon {
        width: 45px;
        height: 45px;
        margin-right: 0.8rem;
    }
    
    .billing-info .contact-text h4 {
        font-size: 0.95rem;
    }
    
    .billing-info .contact-text p {
        font-size: 0.9rem;
    }
}

/* Zariadenia s malou výškou */
@media (max-height: 600px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
}

/* Špeciálne úpravy pre veľmi úzke obrazovky */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .parts-preview-table {
        font-size: 0.75rem;
    }
    
    .parts-preview-table th {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
    
    .parts-preview-table td {
        padding: 0.5rem 0.3rem;
    }
    
    .nav-logo h1 {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        font-size: 1.3rem;
        margin-right: 6px;
    }
    
    /* Fakturačné údaje na veľmi úzkych obrazovkách */
    .billing-info .contact-item {
        padding: 0.6rem;
    }
    
    .billing-info .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.7rem;
    }
    
    .billing-info .contact-text h4 {
        font-size: 0.9rem;
    }
    
    .billing-info .contact-text p {
        font-size: 0.85rem;
    }
}