/*
Theme Name: Autosport Szilágyi
Theme URI: https://www.autosportszilagyi.sk
Description: Profesionálna webová stránka Autosport Szilágyi - predaj a servis talianskych vozidiel
Version: 1.0
Author: Števo Bodor
Author URI: https://www.stvbdr.com
License: GPL v2 or later
*/

/* ============ CSS VARIABLES & RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E31E24;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
    --accent-red: #c4181d;
    --text-dark: #2b2b2b;
    --white: #ffffff;
    --border-light: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* ============ HEADER & NAVIGATION ============ */
header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Hamburger - hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1002;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* DESKTOP NAVIGATION */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
}

nav a:hover {
    color: var(--primary-red);
}

nav a.active {
    color: var(--primary-red);
}

/* DROPDOWN - DESKTOP */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-top: 3px solid var(--primary-red);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-red);
    padding-left: 25px;
}

.dropdown-menu a.active {
    color: var(--primary-red);
    font-weight: 600;
}

/* SOCIAL ICONS */
.nav-social {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #e0e0e0;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-red);
    color: white;
}

/* ============ MOBILE MENU ============ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        transition: left 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    nav a {
        padding: 16px 20px;
        text-align: center;
    }

    /* MOBILE DROPDOWN */
    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: auto;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f8f8;
        box-shadow: none;
        border-top: none;
        border-bottom: 2px solid var(--primary-red);
        padding: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        display: block;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 600px;
        padding: 8px 0;
    }

    /* DISABLE DESKTOP HOVER ON MOBILE */
    .nav-dropdown:hover .dropdown-menu {
        max-height: 0;
        padding: 0;
    }

    .nav-dropdown.active:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        max-height: 600px;
        padding: 8px 0;
    }

    .dropdown-menu a {
        padding: 12px 20px;
        text-align: center;
        white-space: normal;
        font-size: 13px;
        color: #555;
    }

    .dropdown-menu a:hover {
        padding-left: 20px;
        background: #ececec;
    }

    .nav-social {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        margin-left: 0;
        padding-left: 0;
        padding: 16px 0;
        justify-content: center;
        width: 100%;
    }
}

/* ============ HERO SECTION ============ */
.hero {
    margin-top: 70px;
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--dark-gray);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    color: white;
    width: 90%;
    max-width: 800px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content .tagline {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-content .slogan {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 25px;
    font-style: italic;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.slider-dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ============ SERVICES SECTION ============ */
.services {
    padding: 80px 20px;
    background: var(--light-gray);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 35px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-red);
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(227, 30, 36, 0.15);
}

.service-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============ SECTION TITLES ============ */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* ============ INSTAGRAM SECTION ============ */
.instagram {
    padding: 80px 20px;
    background: white;
}

.instagram-header {
    text-align: center;
    margin-bottom: 50px;
}

.instagram-header p {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
}

.instagram-handle {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-handle:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
}

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

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 30, 36, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.instagram-overlay a:hover {
    background: white;
    color: var(--primary-red);
}

/* ============ PRODUCTS SECTION ============ */
.products {
    padding: 80px 20px;
    background: var(--light-gray);
}

.products-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-header .section-title {
    margin-bottom: 15px;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-red);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
}

.see-more {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: transparent;
    color: var(--primary-red);
}

/* ============ BRANDS SECTION ============ */
.brands {
    padding: 60px 20px;
    background: white;
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.brands h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.brands-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.brands-grid-full {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.brands-image {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 200px;
    object-fit: contain;
}

.brand-item {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    background: var(--primary-red);
    transform: scale(1.08);
}

.brand-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(0);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: brightness(0) invert(1);
}

/* ============ INFO BAR ============ */
.info-bar {
    background: var(--primary-red);
    color: white;
    padding: 40px 20px;
}

.info-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 15px;
}

.info-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.info-item p {
    font-size: 0.95rem;
    opacity: 0.95;
}

.info-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid white;
    transition: border-color 0.3s ease;
}

.info-item a:hover {
    border-bottom-color: transparent;
}

/* ============ FOOTER ============ */
footer {
    background: var(--dark-gray);
    color: #ddd;
    padding: 50px 20px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-social a {
    color: #ddd;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============ FLOATING HOTLINE BUTTON ============ */
.hotline-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.4);
    transition: all 0.3s ease;
    z-index: 99;
    animation: popIn 0.5s ease 0.5s forwards;
    opacity: 0;
}

.hotline-btn svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

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

.hotline-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0.5);
}

.hotline-label {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--dark-gray);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.hotline-btn:hover .hotline-label {
    opacity: 1;
    transform: translateX(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    nav ul {
        gap: 20px;
    }

    nav a {
        font-size: 13px;
    }

    .nav-social {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .services-grid,
    .instagram-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .info-bar-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hotline-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    .logo {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    header {
        position: relative;
    }

    .header-container {
        height: auto;
        padding: 15px;
        flex-wrap: wrap;
        gap: 15px;
    }

    nav ul {
        width: 100%;
        gap: 10px;
        font-size: 12px;
    }

    .hero {
        margin-top: 0;
        height: 400px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .services {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ============ PAGE STYLES (O NÁS, SLUŽBY) ============ */
.page-hero {
    margin-top: 70px;
    position: relative;
    height: 400px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.page-hero .slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.page-hero p {
    font-size: 1.2rem;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.page-content {
    background: white;
    padding: 60px 20px;
}

.about-intro, .services-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-intro h2, .services-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.about-intro h2::after, .services-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.intro-highlight {
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(227, 30, 36, 0.05));
    padding: 30px;
    border-left: 4px solid var(--primary-red);
    border-radius: 4px;
}

.intro-highlight p {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.services-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 30px;
    font-weight: 700;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

.about-gallery {
    margin-bottom: 60px;
}

.about-gallery h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.about-unique {
    background: var(--light-gray);
    padding: 60px 30px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.about-unique h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}

.unique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.unique-item {
    text-align: center;
}

.unique-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.unique-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.unique-item p {
    color: #666;
    font-size: 0.95rem;
}

.about-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: white;
    padding: 60px 30px;
    border-radius: 8px;
}

.about-cta h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.about-cta h2::after {
    display: none;
}

.about-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.about-cta .btn {
    background: white;
    color: var(--primary-red);
    border-color: white;
}

.about-cta .btn:hover {
    background: transparent;
    color: white;
}

/* ============ SERVICE STYLES ============ */
.service-section {
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.service-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.service-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.service-content ul li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.finance-box {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-top: 2px solid var(--primary-red) !important;
        border-bottom: 1px solid #e0e0e0;
}

.finance-box h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.finance-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.detail-column strong {
    display: block;
    color: var(--primary-red);
    margin-bottom: 10px;
    font-weight: 700;
}

.price-table {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    margin: 25px 0;
}

.price-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
}

.price-row:last-child {
    border-bottom: none;
}

.price-label {
    font-weight: 700;
    color: var(--text-dark);
}

.price-value {
    color: var(--primary-red);
    font-weight: 600;
}

/* ============ FOOTER REDESIGNED ============ */
footer {
    background: var(--dark-gray);
    color: #ccc;
    padding: 60px 20px 30px;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 200px 1fr 250px;
    gap: 60px;
    align-items: start;
}

.footer-logo-section {
    text-align: center;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 0;
    object-fit: contain;
}

.footer-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--primary-red);
}

.footer-social-section {
    text-align: center;
}

.footer-social-section h4 {
    color: var(--primary-red);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-icons-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 30, 36, 0.15);
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ff6b6b;
}

/* ============ PAGE RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-content-section {
        grid-template-columns: 1fr;
    }

    .footer-logo-section {
        border-bottom: 1px solid #333;
        padding-bottom: 30px;
    }

    .footer-social-section {
        border-top: 1px solid #333;
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 300px;
        margin-top: 70px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .about-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-intro h2, .services-intro h2,
    .about-unique h2, .about-cta h2 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .unique-grid {
        grid-template-columns: 1fr;
    }

    .finance-details {
        grid-template-columns: 1fr;
    }

    .price-row {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 40px 15px 20px;
    }

    .footer-wrapper {
        margin-bottom: 30px;
    }

    .footer-content-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social-icons-group {
        gap: 20px;
    }

    .footer-column h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
}

/* ============ CATALOG PROMO KARTY (homepage) ============ */
.catalog-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.catalog-promo-card {
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.catalog-promo-card:hover {
    border-color: #E31E24;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(227,30,36,0.12);
}

.catalog-promo-dark {
    background: #1a1a1a;
    border-color: #333;
}

.catalog-promo-dark:hover {
    border-color: #E31E24;
}

.catalog-promo-dark h3 {
    color: white;
}

.catalog-promo-dark p {
    color: #aaa;
}

.catalog-promo-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.catalog-promo-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.catalog-promo-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .catalog-promo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .catalog-promo-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ HOMEPAGE VEHICLE CARDS ============ */
.hp-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.hp-vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.hp-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
    border-color: #E31E24;
}

.hp-card-photo {
    position: relative;
    aspect-ratio: 16/10;
    background: #f0f0f0;
    overflow: hidden;
}

.hp-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-vehicle-card:hover .hp-card-photo img {
    transform: scale(1.05);
}

.hp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #ccc;
}

.hp-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E31E24;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.hp-badge-bazaar {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1a1a1a;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.hp-badge-km {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.hp-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hp-card-brand {
    font-size: 11px;
    font-weight: 700;
    color: #E31E24;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hp-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 6px;
}

.hp-card-specs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hp-card-specs span {
    font-size: 12px;
    color: #777;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.hp-card-price {
    font-size: 20px;
    font-weight: 800;
    color: #E31E24;
    margin-top: auto;
}

@media (max-width: 768px) {
    .hp-vehicles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .hp-card-name { font-size: 13px; }
    .hp-card-price { font-size: 17px; }
}

@media (max-width: 480px) {
    .hp-vehicles-grid {
        grid-template-columns: 1fr;
    }
}
