/*
Theme Name: Demid Shop & Retrofit
Theme URI: https://example.com
Author: Custom
Author URI: https://example.com
Description: Кастомная тема WordPress по HTML-шаблону Demid Shop & Retrofit (с плавным скроллом и scrollspy)
Version: 1.3
License: GNU General Public License v2 or later
Text Domain: demid-theme
*/

/* === Extracted styles from original HTML === */
/* Сброс стилей */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            line-height: 1.6;
            color: #333;
            background-color: #f9f9f9;
        }
        
        /* Шапка сайта */
        header {
            background: linear-gradient(135deg, #1a3a6c 0%, #0d1f3d 100%);
            color: white;
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo img {
            height: 50px;
            margin-right: 10px;
        }
        
        .logo h1 {
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .company-name {
            color: #ffcc00;
            font-weight: 700;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 1.5rem;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
            font-weight: 500;
            font-size: 1rem;
        }
        
        nav ul li a:hover {
            color: #ffcc00;
        }
        
        /* Основной контент */
        .hero {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/hero/hero-bg-02.jpg') no-repeat center center/cover;
            color: white;
            padding: 6rem 0;
            text-align: center;
        }
        
        .hero h2 {
            font-size: 2.8rem;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        
        .hero p {
            font-size: 1.3rem;
            max-width: 700px;
            margin: 0 auto 2.5rem;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        
        .btn {
            display: inline-block;
            background-color: #ffcc00;
            color: #1a3a6c;
            padding: 1rem 2rem;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
            font-size: 1.1rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .btn:hover {
            background-color: #e6b800;
            transform: translateY(-3px);
            box-shadow: 0 6px 8px rgba(0,0,0,0.15);
        }
        
        /* Секции */
        section {
            padding: 5rem 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            color: #1a3a6c;
            font-size: 2.2rem;
            position: relative;
        }
        
        .section-title:after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: #ffcc00;
            margin: 15px auto;
            border-radius: 2px;
        }
        
        /* Услуги */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .service-card {
            background: white;
            border-radius: 8px;
            padding: 2.5rem 2rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
            border-top: 4px solid #1a3a6c;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }
        
        .service-icon {
            font-size: 3.5rem;
            color: #1a3a6c;
            margin-bottom: 1.5rem;
        }
        
        .service-card h3 {
            margin-bottom: 1rem;
            color: #1a3a6c;
            font-size: 1.4rem;
        }
        
        /* Бренды */
        .brands {
            background-color: #f0f0f0;
        }
        
        .brands-grid {
           display: flex;
    justify-content: center; /* центрируем */
    align-items: stretch;
    gap: 20px;
    flex-wrap: nowrap; /* запрет переноса */
    overflow-x: auto;  /* горизонтальная прокрутка, если не помещается */
    padding: 10px 0;
    scrollbar-width: thin; /* красивый скролл для Firefox */
        }
        
        .brand-item {
			flex: 0 0 180px; /* фиксированная ширина карточки */
            text-align: center;
            padding: 2rem 1rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }
           
        .brand-item:hover {
            transform: scale(1.05);
        }
        
        .brand-logo {
			max-width: 100px;
			max-height: 60px;
            margin-bottom: 1rem;
            filter: grayscale(100%);
            transition: filter 0.3s;
        }

        .brand-item:hover .brand-logo {
            filter: grayscale(0%);
        }
        
        /* Галерея автомобилей */
        .cars-gallery {
            background: linear-gradient(135deg, #1a3a6c 0%, #0d1f3d 100%);
            color: white;
            text-align: center;
        }
        
        .cars-gallery .section-title {
            color: white;
        }
        
        .cars-grid {
		    display: grid;
		    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		    gap: 25px;
		    margin-top: 30px;
		}
        
        .car-item {
			position: relative;
		    border-radius: 15px;
		    overflow: hidden;
		    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
		    transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .car-item:hover {
            transform: translateY(-5px);
        }
        
        .car-item img {
            width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
	object-fit: cover;
            transition: transform 0.5s;
        }
        
        .car-item:hover img {
            transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        }
        
        .car-brand {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 0.5rem;
            font-weight: bold;
        }
        



        /* О нас */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }
        
        .about-text h3 {
            margin-bottom: 1.5rem;
            color: #1a3a6c;
            font-size: 1.8rem;
        }
        
        .about-text p {
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }
        
        .about-image {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }
        
        .about-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s;
        }
        
        .about-image:hover img {
            transform: scale(1.05);
        }
        
        /* Преимущества */
        .features {
            background-color: #f8f9fa;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2.5rem;
        }
        
        .feature-item {
            text-align: center;
            padding: 2.5rem 1.5rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }
        
        .feature-item:hover {
            transform: translateY(-5px);
        }
        
        .feature-icon {
            font-size: 3rem;
            color: #1a3a6c;
            margin-bottom: 1.5rem;
        }
        
        .feature-item h3 {
            margin-bottom: 1rem;
            color: #1a3a6c;
        }
        
        /* Контакты */
        .contact-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }
        
        .contact-item {
            text-align: center;
            padding: 2rem 1.5rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s;
        }
        
        .contact-item:hover {
            transform: translateY(-5px);
        }
        
        .contact-icon {
            font-size: 2.5rem;
            color: #1a3a6c;
            margin-bottom: 1.5rem;
        }
        
        .map {
            height: 400px;
            background-color: #e9e9e9;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        /* Подвал */
        footer {
            background: linear-gradient(135deg, #1a3a6c 0%, #0d1f3d 100%);
            color: white;
            padding: 4rem 0 1.5rem;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }
        
        .footer-section h3 {
            margin-bottom: 1.5rem;
            color: #ffcc00;
            font-size: 1.3rem;
        }
        
        .footer-section ul {
            list-style: none;
        }
        
        .footer-section ul li {
            margin-bottom: 0.8rem;
        }
        
        .footer-section a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-section a:hover {
            color: #ffcc00;
        }
        
        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s;
        }
        
        .social-icons a:hover {
            background: #ffcc00;
            color: #1a3a6c;
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 0.9rem;
            color: #ccc;
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
            }
            
            nav ul {
                margin-top: 1.5rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            nav ul li {
                margin: 0.5rem 1rem;
            }
            
            .hero h2 {
                font-size: 2.2rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .about-content {
                grid-template-columns: 1fr;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
        }

/* Active menu item style */
nav ul li a.active {
    color: #ffcc00;
    font-weight: bold;
}
