/*
Theme Name: Автоцентр УАЗ
Theme URI: https://uaz-blag.ru
Author: Ваше имя
Author URI: https://ваш-сайт.ru
Description: Тема для сайта автоцентра УАЗ в Благовещенске. Фирменный дизайн, адаптив, форма обратной связи.
Version: 1.0
License: GPL v2 or later
Text Domain: uaz-auto-center
*/

/* ===== Базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f4f6f9;
    color: #1e2a3a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

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

/* ===== Шапка ===== */
header {
    background: #0F2F48;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}
.logo p {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
}

.contact-header {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.contact-header a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.contact-header a:hover {
    text-decoration: underline;
    color: #F15A24;
}
.contact-header i {
    margin-right: 8px;
}

/* ===== Навигация ===== */
nav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
    z-index: 99;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.8rem 0;
    list-style: none;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #0F2F48;
    transition: 0.2s;
}
.nav-links a:hover {
    color: #F15A24;
}

/* ===== Секции ===== */
section {
    padding: 35px 0;
    border-bottom: 1px solid #e2e8f0;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0F2F48;
    position: relative;
}
.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #F15A24;
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

/* ===== Герой ===== */
.hero {
    background: linear-gradient( rgba(15, 47, 72, 0.85), rgba(15, 47, 72, 0.9) ), url('https://www.uaz.ru/data/uaz/assets/patriot-061223.png?key=main_car');
    background-size: cover;
    background-position: center 30%;
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-bottom: none;
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    background-color: #F15A24;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-outline {
    background: transparent;
    border: 2px solid white;
}
.btn-outline:hover {
    background: white;
    color: #F15A24;
}
.btn-primary:hover {
    background-color: #d44a1a;
    transform: translateY(-2px);
}

/* ===== Галерея ===== */
.gallery {
    background: #ffffff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    background: white;
}
.gallery-card:hover {
    transform: translateY(-5px);
}
.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.gallery-card p {
    padding: 12px;
    text-align: center;
    font-weight: 500;
    background: white;
    color: #0F2F48;
}

/* ===== Преимущества (сетка) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 15px;
}
.feature-card {
    background: white;
    padding: 25px 15px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.feature-card i {
    font-size: 2.5rem;
    color: #F15A24;
    margin-bottom: 0.8rem;
}
.feature-card h3 {
    margin-bottom: 0.5rem;
    color: #0F2F48;
}

/* ===== Хиты продаж ===== */
.parts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.part-item {
    background: white;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-weight: 500;
    color: #0F2F48;
}
.part-item i {
    font-size: 1.8rem;
    color: #F15A24;
    margin-bottom: 8px;
    display: block;
}

/* ===== Контакты и карта ===== */
.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.contact-info {
    background: white;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.info-line {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}
.info-line i {
    width: 28px;
    color: #F15A24;
    font-size: 1.3rem;
}
.map-container {
    background: #eef2f5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    height: 320px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.map-link {
    text-align: center;
    margin-top: 10px;
}
.map-link a {
    color: #F15A24;
    font-weight: 500;
    text-decoration: none;
}

/* ===== Форма и прайс-лист ===== */
.form-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.feedback-form {
    background: white;
    border-radius: 28px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 15px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #F15A24;
}
.price-box {
    background: white;
    border-radius: 28px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.price-box .btn {
    margin: 15px auto 0;
    background-color: #F15A24;
}
.price-note {
    margin-top: 15px;
    color: #4a627a;
    font-size: 0.85rem;
}

/* ===== Футер ===== */
footer {
    background: #0F2F48;
    color: #cbd5e6;
    text-align: center;
    padding: 20px 0;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 40px;
    margin-top: 15px;
    text-align: center;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 40px;
    margin-top: 15px;
    text-align: center;
}
.catalog-link {
    color: #F15A24;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #F15A24;
}
.catalog-link:hover {
    color: #d44a1a;
    border-bottom-style: solid;
}

/* ===== Адаптив ===== */
@media (max-width: 800px) {
    .contact-map-grid, .form-price-row {
        grid-template-columns: 1fr;
    }
    .hero h2 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
}