/**
 * Autoservis Tichý - Main Stylesheet
 * Version: 1.0
 * Author: Autoservis Tichý
 */

/* CSS Variables for consistent styling */
:root {
    /* Color palette based on the logo - modernized */
    --color-primary: #606060;    /* Lighter gray instead of darker gray */
    --color-primary-light: #808080; /* Lighter primary for gradients */
    --color-secondary: #d60000;  /* Brighter red */
    --color-secondary-light: #ff3333; /* Lighter secondary for hover effects */
    --color-accent: #f5f7fa;     /* Light blueish-gray */
    --color-dark: #1a1a2e;       /* Keep darker text for better readability */
    --color-light: #ffffff;      /* White */
    --color-medium: #828b9d;     /* Lighter medium gray */
    --color-light-gray: #f8fafd; /* Lighter gray background */
    
    /* Typography */
    --font-family: 'Open Sans', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 28px;
    --font-size-xxl: 40px;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    
    /* Border radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Box shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scroll to top button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modern-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.modern-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.scroll-top-arrow {
    background-color: rgba(214, 0, 0, 0.8);
    color: white;
    transform: rotate(-90deg) !important;
}

.scroll-top-arrow:hover {
    background-color: rgba(214, 0, 0, 1);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: rotate(-90deg) !important;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/* Email text color (make same as body text) */
.footer-contact p:nth-child(2),
.contact-detail p:nth-child(2) {
    color: var(--color-dark);
}

/* Footer links - make same as footer text (white) */
.footer-menu a, 
.footer-contact a, 
.footer-bottom a {
    color: var(--color-light);
}

.footer-menu a:hover, 
.footer-contact a:hover, 
.footer-bottom a:hover {
    color: var(--color-secondary-light);
}

/* Special činnosti link style */
.cinnosti-link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.cinnosti-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    transition: var(--transition);
    border-radius: 3px;
}

.cinnosti-link:hover::after {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-xxl);
}

h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    position: absolute;
    bottom: -12px;
    left: 0;
    border-radius: 2px;
}

h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
}

.btn {
    background-color: var(--color-secondary);
    color: var(--color-light);
    box-shadow: 0 4px 12px rgba(214, 0, 0, 0.2);
}

.btn:hover {
    background-color: #c00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(214, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(214, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--color-light);
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(214, 0, 0, 0.1);
}

/* Modern Header Redesign */
.header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    gap: 20px;
    height: auto;
    flex-wrap: wrap;
}

.header-modern-logo {
    padding: 0 10px;
}

.header-modern-logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

.header-info-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.header-modern-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 10px;
}

.header-modern-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--color-dark);
    flex-wrap: wrap;
    font-weight: 500;
    justify-content: flex-start;
    line-height: 1.4;
}

.header-modern-item span {
    white-space: nowrap;
}

.header-modern-item .divider {
    color: #bbb;
    font-size: 18px;
    margin: 0 6px;
    user-select: none;
    display: inline-block;
}

.header-modern-icon {
    flex-shrink: 0;
    margin-right: 2px;
}

.header-phone-icon {
    width: auto;
    height: 15px;
    vertical-align: middle;
    margin-right: 4px;
    transition: transform 0.3s ease;
}

.header-modern-item a:hover .header-phone-icon {
    transform: scale(1.1);
}

.header-modern-item strong {
    color: var(--color-secondary);
    font-weight: 700;
}

.header-modern-bosch {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
}

.header-modern-bosch img {
    max-height: 60px;
    vertical-align: middle;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 2px 6px;
}

/* Modern Navigation Bar - White Background */
.header-nav {
    position: relative;
    z-index: 900;
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-nav .nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 900px;
}

.header-nav .nav-menu li {
    margin: 0;
    padding: 0 5px;
    flex: 1;
    text-align: center;
}

.header-nav .nav-menu a {
    display: block;
    padding: 18px 10px;
    color: var(--color-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    background: none;
    border: none;
    transition: color 0.2s;
    position: relative;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.header-nav .nav-menu a::after {
    content: '';
    display: block;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #d60000, #ff3333);
    border-radius: 2px;
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 10px;
    transition: width 0.2s;
}

.header-nav .nav-menu a.active::after,
.header-nav .nav-menu a:hover::after {
    width: 60%;
}

.header-nav .nav-menu a.active,
.header-nav .nav-menu a:hover {
    color: #b00;
    background: none;
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #d60000;
    color: white;
    border: none;
    border-radius: 4px;
    width: 45px;
    height: 45px;
    margin: 10px auto;
    cursor: pointer;
    z-index: 10000;
    position: relative;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease;
    position: relative;
}

/* Hamburger animation */
.nav-toggle.active .hamburger:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #fff;
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #fff;
}

/* Body class when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    background: var(--color-primary) !important;
    color: var(--color-light);
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--color-light);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
}

.about-content {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    max-width: 100%;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Services Section */
.services-preview {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-accent);
    position: relative;
    overflow: hidden;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(96, 96, 96, 0.03), rgba(96, 96, 96, 0));
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
    padding: 4px 12px;
}

.service-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    background-color: var(--color-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover .service-icon {
    background-color: var(--color-secondary);
    transform: scale(1.1);
}

.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.8);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.3;
    transition: var(--transition);
    text-align: center;
}

.service-card h3 a {
    color: var(--color-secondary);
}

.service-card h3 a:hover {
    color: var(--color-secondary-light);
}

.service-card p {
    color: var(--color-medium);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    text-align: center;
}

.services h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-dark);
    position: relative;
}

.services h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.service-card .btn-secondary {
    align-self: center;
}

.services-more {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Gallery Section */
.gallery-preview {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-light);
}

.gallery-preview h2 {
    text-align: center;
}

.gallery-preview h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.gallery-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.gallery-slider {
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.gallery-track {
    display: flex;
    transition: transform 0.3s ease;
}

.gallery-item {
    flex: 0 0 33.333%;
    box-sizing: border-box;
    padding: 15px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Partners Section */
.partners {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-accent);
}

.partners h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.partners h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.partners-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.partners-slider {
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.partners-track {
    display: flex;
    transition: transform 0.3s ease;
}

.partner {
    flex: 0 0 25%;
    padding: 20px;
    text-align: center;
}

.partner-logo {
    display: block;
    height: 100px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner img:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-detail {
    flex: 1 1 220px;
    background-color: var(--color-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-detail:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-detail h3 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary-light);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.contact-map {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Page header for secondary pages */
.page-header {
    background: var(--color-primary) !important;
    color: var(--color-light);
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.page-header h1 {
    margin-bottom: 10px;
    font-size: 36px;
    color: var(--color-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumbs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: var(--color-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-secondary-light);
}

/* Improved Footer */
footer {
    background: linear-gradient(135deg, #707070, #909090);
    color: var(--color-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    max-height: 65px;
    margin-bottom: var(--spacing-md);
}

.footer-menu, .footer-contact, .footer-hours {
    margin-bottom: var(--spacing-md);
}

.footer-menu h3, .footer-contact h3, .footer-hours h3 {
    color: var(--color-light);
    position: relative;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-menu h3::after, .footer-contact h3::after, .footer-hours h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    border-radius: 2px;
}

.footer-menu ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-menu a, .footer-contact a {
    display: inline-block;
    padding: 3px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Footer opening hours - desktop view */
.footer-opening-hours p {
    display: flex;
    flex-direction: column;
    line-height: 1.8;
}

.footer-opening-hours p span {
    display: block;
    margin-bottom: 5px;
}

.footer-opening-hours p .divider {
    display: none;
}

/* Блокова выжимка стилization */
.box-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.info-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.info-box ul {
    margin-left: 20px;
    list-style-type: disc;
}

.info-box ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Enhanced Styles for Ceník (Price List) */
.price-list {
    padding: var(--spacing-xl) 0;
    background: var(--color-light);
}

.price-category {
    margin-bottom: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 16px;
}

.price-table th {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    letter-spacing: 0.5px;
    font-size: 18px;
}

.price-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.2s;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background-color: #f9f9f9;
}

.price-table td:last-child {
    font-weight: 600;
    color: var(--color-secondary);
    text-align: right;
}

.price-note {
    margin-top: var(--spacing-md);
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    font-style: italic;
    color: #555;
}

/* Enhanced Styles for Bloková výjimka */
.block-exemption {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-light);
}

.block-exemption-content {
    max-width: 900px;
    margin: 0 auto;
}

.block-exemption-content h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #000000;
    text-align: center;
}

.block-exemption-content h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.block-exemption-content h3 {
    margin-top: 30px;
    color: #000000;
    font-size: 22px;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.block-exemption-content h3::after {
    display: none;
}

.block-exemption-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #000000;
    font-size: 16px;
    text-align: justify;
}

.block-exemption-content .intro-text {
    font-size: 18px;
    line-height: 1.9;
    color: #000000;
    max-width: 90%;
    margin: 0 auto 30px;
    padding: 0 0 20px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.block-exemption-content .intro-text p {
    font-size: 18px;
    text-align: center;
    color: #000000;
}

.prohlaseni-bosch-wrapper {
    margin: 30px auto;
    text-align: center;
    position: relative;
    display: block;
    width: 60%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    padding: 10px;
    background: #fff;
}

.prohlaseni-bosch-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}

.prohlaseni-bosch {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.magnifier-overlay {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.prohlaseni-bosch-wrapper:hover .magnifier-overlay {
    opacity: 1;
    transform: scale(1.1);
}

.magnifier-overlay svg {
    width: 20px;
    height: 20px;
}

/* Modal for Bosch Certificate */
.bosch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bosch-modal.open {
    opacity: 1;
    visibility: visible;
}

.bosch-modal-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.bosch-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.bosch-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.bosch-modal-zoom-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 1010;
}

.bosch-modal-zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bosch-modal-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive adjustment for Bloková výjimka certificate */
@media (max-width: 768px) {
    .prohlaseni-bosch-wrapper {
        width: 90%;
    }
}

/* Replacement Vehicle Page Styling */
.replacement-vehicle {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-light);
}

.replacement-vehicle-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.replacement-vehicle-info-text {
    flex: 1;
    padding: 20px 0;
}

.replacement-vehicle-info-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.replacement-vehicle-info-text p:first-child {
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
}

.replacement-vehicle-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.replacement-vehicle-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.replacement-vehicle-image img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .replacement-vehicle-flex {
        flex-direction: column;
        padding: 20px;
    }
    
    .replacement-vehicle-info-text,
    .replacement-vehicle-image {
        width: 100%;
    }
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    overflow: auto;
}

.gallery-modal-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.gallery-modal-content {
    max-width: 95% !important;
    max-height: 95vh !important;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.gallery-caption-modal {
    color: white;
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
    max-width: 80%;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10;
}

.gallery-close:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.gallery-prev-btn, .gallery-next-btn, .partner-prev, .partner-next, .gallery-prev, .gallery-next {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.gallery-track, .partners-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slider, .partners-slider {
    overflow: hidden;
    position: relative;
}

.gallery-item, .partner {
    flex-shrink: 0;
}

.gallery-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    transition: all 0.3s ease;
    color: white;
}

.gallery-nav-arrow:hover {
    background-color: rgba(214, 0, 0, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .gallery-modal-content {
        max-width: 98% !important;
        max-height: 98vh !important;
    }
    
    .gallery-prev-btn {
        left: 15px;
    }
    
    .gallery-next-btn {
        right: 15px;
    }
    
    .gallery-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Gallery and Partners Slider Arrows */
.gallery-prev-btn, .gallery-next-btn, .partner-prev, .partner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    margin: 0;
}

.gallery-prev-btn, .partner-prev {
    left: 0;
}

.gallery-next-btn, .partner-next {
    right: 0;
}

.gallery-slider-container, .partners-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.modern-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.modern-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .gallery-slider-container, .partners-slider-container {
        padding: 0 40px;
    }
    
    .modern-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    /* Header */
    .header-modern {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 10px 0;
    }
    
    .header-modern-logo {
        margin-bottom: 10px;
        flex: 0 0 100%;
        text-align: center;
    }
    
    .header-modern-logo img {
        max-height: 50px;
        margin: 0 auto;
    }
    
    .header-modern-info {
        flex-direction: column;
        width: 100%;
        order: 2;
    }
    
    /* Show both info items but make them more compact */
    .header-modern-item {
        justify-content: center;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .header-modern-item:first-child {
        display: flex;
        flex-direction: column;
    }
    
    .opening-hours {
        text-align: center;
        line-height: 1.5;
    }
    
    /* Hide only Bosch logo */
    .header-modern-bosch {
        display: none;
    }
    
    /* Navigation */
    .header-nav .nav-menu a {
        padding: 15px 15px;
        font-size: 14px;
    }
    
    /* Grid layouts */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Content sections */
    .about-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .about-image img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
    
    /* Gallery and Partners */
    .gallery-item {
        flex: 0 0 50%;
    }
    
    .partner {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    /* Header - show both opening times and phone numbers in a clean layout */
    .header-modern {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 10px 0;
    }
    
    .header-modern-logo {
        margin-bottom: 10px;
        flex: 0 0 100%;
        text-align: center;
    }
    
    .header-modern-logo img {
        max-height: 50px;
        margin: 0 auto;
    }
    
    .header-modern-info {
        flex-direction: column;
        width: 100%;
        order: 2;
    }
    
    /* Show both info items but make them more compact */
    .header-modern-item {
        justify-content: center;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .header-modern-item:first-child {
        display: flex;
        flex-direction: column;
    }
    
    .opening-hours {
        text-align: center;
        line-height: 1.5;
    }
    
    /* Hide only Bosch logo */
    .header-modern-bosch {
        display: none;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex !important;
    }
    
    .header-nav {
        position: relative;
        width: 100%;
    }
    
    .header-nav .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: none;
    }
    
    .header-nav .nav-menu.open {
        display: flex;
    }
    
    .header-nav .nav-menu a {
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid #eee;
        text-align: center;
        font-size: 16px;
    }
    
    .header-nav .nav-menu a:hover,
    .header-nav .nav-menu a.active {
        background-color: #f8f8f8;
        color: var(--color-secondary);
    }
    
    .header-nav .nav-menu a::after {
        display: none;
    }
    
    /* Sections */
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* Layouts */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        flex: 0 0 100%;
    }
    
    .partner {
        flex: 0 0 50%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo, .footer-menu, .footer-contact, .footer-hours {
        text-align: center;
    }
    
    .footer-menu h3::after, .footer-contact h3::after, .footer-hours h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Modals */
    .gallery-nav-arrow {
        width: 35px;
        height: 35px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    /* Typography */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    /* Make header even more compact on small screens */
    .header-modern {
        padding: 8px 0;
    }
    
    .header-modern-logo img {
        max-height: 40px;
    }
    
    .header-modern-item {
        font-size: 12px;
    }
    
    .header-modern-item .divider {
        margin: 0 2px;
    }
    
    .opening-hours span {
        display: block;
        margin: 3px 0;
    }
    
    /* Contact Details */
    .contact-details {
        flex-direction: column;
    }
    
    .contact-detail {
        width: 100%;
    }
    
    /* Sliders & Galleries */
    .partner {
        flex: 0 0 100%;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Buttons */
    .btn, .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Arrows */
    .modern-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .header-nav {
        position: relative;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    
    .header-nav .nav-menu {
        display: none;
    }
    
    .header-nav .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .header-nav .nav-menu.open li {
        width: 100%;
    }
    
    .header-nav .nav-menu.open a {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid #eee;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }
}

/* Privacy Policy Styling - Simple Version */
.privacy-content {
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.privacy-content h2 {
    color: var(--color-dark);
    margin-bottom: 20px;
    text-align: center;
}

.privacy-content h3 {
    color: var(--color-dark);
    margin: 30px 0 15px;
    font-size: 20px;
}

.privacy-content h4 {
    color: var(--color-primary);
    margin: 20px 0 10px;
    font-size: 18px;
}

.privacy-content h5 {
    margin: 15px 0 10px;
    font-size: 16px;
}

.privacy-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.privacy-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 5px;
    list-style-type: disc;
}

.privacy-content a {
    color: var(--color-secondary);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.browser-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 25px;
}

.browser-buttons .btn-secondary {
    padding: 8px 15px;
    font-size: 14px;
}

@media (max-width: 576px) {
    .browser-buttons {
        flex-direction: column;
    }
    
    .browser-buttons .btn-secondary {
        margin-bottom: 5px;
        text-align: center;
    }
}

.opening-hours {
    display: flex;
    flex-direction: column;
}

.opening-hours span {
    display: block;
    margin-bottom: 2px;
}

.contact-numbers {
    display: flex;
    flex-direction: column;
}

.contact-numbers span {
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .header-info-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-modern-item {
        justify-content: center;
    }
    
    .contact-line {
        justify-content: center;
    }
}

.contact-numbers-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.contact-line {
    display: flex;
    align-items: center;
}

.contact-line span {
    white-space: normal;
}

/* Certificates Page */
.certificates-content {
    padding: 20px 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.certificate-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-image:hover .certificate-overlay {
    opacity: 1;
}

.certificate-image:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-zoom {
    color: white;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 4px;
}

.certificate-item h3 {
    padding: 15px 15px 5px;
    margin: 0;
    color: #333;
}

.certificate-item p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.certificate-modal-container {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.certificate-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.certificate-close:hover,
.certificate-close:focus {
    color: #bbb;
    text-decoration: none;
}

.certificate-modal-content {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.certificate-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-modal-container {
        width: 95%;
    }
    
    .certificate-caption {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .info-box,
    .prohlaseni-bosch-wrapper,
    .certificate-item,
    .price-category,
    .price-table td,
    .block-exemption-content .intro-text,
    .footer-bottom {
        border: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }
}

/* Red link for 'Created by' footer */
.created-by-link {
  color: #d60000 !important;
}


