/* ==================================================================
   CONTACTS.CSS — СТРАНИЦА КОНТАКТОВ АВТОСАЛОНА
   КРАСНО-БЕЛАЯ ТЕМА | ПРОФЕССИОНАЛЬНЫЙ ДИЗАЙН
   ================================================================== */

/* -------------------- RESET & БАЗА -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* -------------------- ЦВЕТОВАЯ СХЕМА -------------------- */
:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-light: #fef2f2;
    --dark: #111111;
    --gray: #666666;
    --gray-light: #f5f5f5;
    --border: #e5e5e5;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(220, 38, 38, 0.15);
}

/* -------------------- ШАПКА (общая) -------------------- */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--dark);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: var(--red);
    color: var(--red);
}

.header-contacts {
    text-align: right;
}

.header-phone {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-time {
    font-size: 0.7rem;
    color: var(--gray);
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--dark);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--red);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--red);
}

/* -------------------- ХЛЕБНЫЕ КРОШКИ -------------------- */
.page-header {
    background: linear-gradient(135deg, #fff 0%, var(--red-light) 100%);
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
}

.page-header .accent-text {
    color: var(--red);
}

.breadcrumbs {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--gray);
}

.breadcrumbs a:hover {
    color: var(--red);
}

/* -------------------- ОСНОВНАЯ СЕКЦИЯ -------------------- */
.contacts-section {
    padding: 70px 0;
    background: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* -------------------- КОНТАКТНАЯ ИНФОРМАЦИЯ -------------------- */
.info-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
}

.info-title .accent-text {
    color: var(--red);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: var(--shadow-hover);
}

.info-card i {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--dark);
}

.info-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

.info-card a {
    color: var(--gray);
}

.info-card a:hover {
    color: var(--red);
}

/* Соцсети */
.social-links {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.social-links h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--red);
    color: white;
    transform: translateY(-3px);
}

/* -------------------- ФОРМА ОБРАТНОЙ СВЯЗИ -------------------- */
.feedback-form {
    background: var(--red-light);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border);
}

.form-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
}

.form-title .accent-text {
    color: var(--red);
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 25px;
}

/* Alert */
.alert {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

/* Поля формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Чекбокс */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.8rem;
    color: var(--gray);
    cursor: pointer;
}

/* Кнопка */
.btn-primary {
    width: 100%;
    background: var(--red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

/* -------------------- РЕКВИЗИТЫ -------------------- */
.requisites {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.requisites h2 {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 35px;
    color: var(--dark);
}

.requisites h2 .accent-text {
    color: var(--red);
}

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.requisites-item {
    background: var(--red-light);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.requisites-item:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: var(--shadow-hover);
}

.requisites-item h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.requisites-item p {
    font-size: 0.85rem;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 5px;
}

/* -------------------- КАРТА -------------------- */
.map-container {
    margin-top: 50px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 380px;
    display: block;
}

/* -------------------- ПОДВАЛ -------------------- */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 50px 0 25px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-logo img {
    height: 60px;
}

.footer h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links li,
.footer-contacts li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contacts a {
    color: #ccc;
    font-size: 0.85rem;
    transition: 0.2s;
}

.footer-links a:hover,
.footer-contacts a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.2s;
}

.footer-social a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

/* -------------------- АДАПТИВНОСТЬ -------------------- */
@media (max-width: 1000px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .requisites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 260px;
        height: 100%;
        background: white;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        transition: left 0.3s;
        z-index: 99;
        padding: 30px 25px;
    }
    
    .main-nav.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-contacts {
        display: none;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .info-title,
    .form-title {
        font-size: 1.4rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .feedback-form {
        padding: 25px;
    }
    
    .requisites-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .requisites h2 {
        font-size: 1.4rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* -------------------- АНИМАЦИИ -------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card,
.feedback-form,
.requisites-item {
    animation: fadeInUp 0.4s ease forwards;
}

.info-card:nth-child(1) { animation-delay: 0.05s; }
.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.15s; }
.info-card:nth-child(4) { animation-delay: 0.2s; }