﻿/* ============================================
   СТИЛИ ДЛЯ ИНФОРМАЦИОННЫХ СТРАНИЦ
   (О нас, Контакты и подобные)
   ============================================ */

/* Общие стили страниц */
.about-page, .contacts-page {
    background: #f5f5f5;
    min-height: calc(100vh - 70px);
}

/* Шапка страницы */
.page-header {
    background: linear-gradient(135deg, #FFE733 0%, #FFD700 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid #000;
}

    .page-header h1 {
        font-size: 3rem;
        font-weight: 900;
        color: #000;
        margin: 0 0 15px 0;
    }

    .page-header .highlight {
        background: #000;
        color: #FFE733;
        padding: 5px 20px;
        border-radius: 10px;
    }

    .page-header .subtitle {
        font-size: 1.3rem;
        color: #333;
        margin: 0;
    }

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки секций */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 50px;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: #FFE733;
        margin: 15px auto 0;
        border-radius: 2px;
    }

/* ===== СТРАНИЦА "О НАС" ===== */

/* Секция "О компании" */
.home-about-section {
    padding: 80px 0;
    /*background: #fff;*/
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Преимущества */
.features-section {
    display: flex;
    gap: 80px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    background: transparent !important; /* ВАЖНО: убираем белый фон */
    padding: 0 !important;
    border-radius: 0 !important;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: transparent !important; /* ВАЖНО: убираем белый фон */
    padding: 0;
    border: none;
    flex: 1;
    min-width: 250px;
    max-width: 320px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        background: #FFE733;
    }

.feature-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    color: #000;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Статистика */
.stats-section {
    padding: 80px 0;
    background: #000;
    color: #fff;
}

    .stats-section .section-title {
        color: #fff;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-card {
    background: #FFE733;
    border: 3px solid #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px; /* Фиксированная минимальная высота */
}

    .stat-card:hover {
        transform: scale(1.05);
        background: #fff;
        border-color: #FFE733;
    }

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem; /* Чуть уменьшили шрифт */
    color: #333;
    font-weight: 600;
    line-height: 1.4; /* Добавили межстрочный интервал */
    word-wrap: break-word; /* Перенос длинных слов */
    overflow-wrap: break-word; /* Современный перенос */
    padding: 0 5px; /* Небольшой отступ по бокам */
}

/* Партнёры */
.partners-section {
    padding: 80px 0;
    background: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.partner-logo {
    background: #f8f8f8;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #000;
    transition: all 0.3s;
}

    .partner-logo:hover {
        background: #FFE733;
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

/* ===== СТРАНИЦА "КОНТАКТЫ" ===== */

.contacts-page {
    padding-bottom: 60px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

    .contact-card:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-color: #FFE733;
    }

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000;
    margin: 0 0 10px 0;
}

.contact-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.contact-content a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

    .contact-content a:hover {
        color: #FFE733;
    }

.work-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .hours-row:last-child {
        border-bottom: none;
    }

    .hours-row span:first-child {
        font-weight: 600;
        color: #333;
    }

    .hours-row span:last-child {
        color: #000;
        font-weight: 700;
    }

.requisites {
    background: #f8f8f8;
    border-left: 4px solid #FFE733;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

    .requisites p {
        margin: 5px 0;
    }

/* Карта */
.map-container {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    text-align: center;
}

.map-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.map-placeholder h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
}

.map-placeholder p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.btn-map {
    display: inline-block;
    padding: 14px 35px;
    background: #000;
    color: #FFE733;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

    .btn-map:hover {
        background: #FFE733;
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 992px) {
    .about-content,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

        .page-header h1 {
            font-size: 1.8rem;
        }

        .page-header .subtitle {
            font-size: 1rem;
        }

    .home-about-section,
    .features-section,
    .stats-section,
    .partners-section {
        padding: 50px 0;
    }

    .features-grid,
    .stats-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .map-container {
        min-height: 400px;
    }
}

/* Вступительный абзац политики */
.policy-intro {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    background: #FFFDE7;
    border-left: 4px solid #FFE733;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Дата обновления */
.policy-date {
    margin-top: 40px;
    padding: 15px 20px;
    background: #f8f8f8;
    border: 2px dashed #000;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    color: #000;
    font-size: 1rem;
}

/* Изображение на странице адреса */
.address-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== ФОРМА ОБРАТНОЙ СВЯЗИ ===== */
.contact-form-section {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 35px;
    height: fit-content;
}

.contact-form-container {
    width: 100%;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-weight: 600;
        color: #000;
        font-size: 0.95rem;
    }

    .form-group .required {
        color: #ff0000;
    }

.form-control {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #FFE733;
        box-shadow: 0 0 0 3px rgba(255, 232, 31, 0.2);
    }

    .form-control::placeholder {
        color: #999;
    }

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #FFE733;
}

    .checkbox-group a:hover {
        color: #FFE733;
    }

.btn-submit {
    margin-top: 10px;
    padding: 15px 30px;
    background: #000;
    color: #FFE733;
    border: 2px solid #000;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

    .btn-submit:hover {
        background: #FFE733;
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

/* Ссылки в соцсетях */
.social-link {
    display: inline-block;
    margin-bottom: 8px;
    padding: 8px 15px;
    background: #f8f8f8;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

    .social-link:hover {
        background: #FFE733;
        transform: translateX(5px);
    }

/* Адаптивность для формы */
@media (max-width: 992px) {
    .contact-form-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .btn-submit {
        width: 100%;
    }
}

/* Кнопка "Показать на карте" */
.map-link-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #000;
    color: #FFE733 !important; /* Принудительно жёлтый цвет */
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid #000;
    text-align: center;
    line-height: 1.4;
}

    .map-link-btn:hover {
        background: #FFE733;
        color: #000 !important; /* Принудительно чёрный цвет при наведении */
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

/* ===== СТРАНИЦА ИЗБРАННОГО ===== */
.favorites-page {
    background: #f5f5f5;
    min-height: calc(100vh - 70px);
    padding-bottom: 60px;
}

.favorites-content {
    margin-top: 40px;
}

/* Панель инструментов */
.favorites-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

    .select-all-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

.selected-count {
    color: #666;
    font-size: 0.95rem;
}

    .selected-count strong {
        color: #000;
        font-size: 1.1rem;
    }

.btn-delete-selected {
    padding: 12px 25px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-delete-selected:hover:not(:disabled) {
        background: #c82333;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    }

    .btn-delete-selected:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* Сетка товаров */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.favorite-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s;
}

    .favorite-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-color: #FFE733;
    }

.favorite-checkbox {
    display: flex;
    justify-content: flex-end;
}

    .favorite-checkbox input[type="checkbox"] {
        width: 22px;
        height: 22px;
        cursor: pointer;
    }

.favorite-info {
    flex-grow: 1;
}

.favorite-brand {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.favorite-articul {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    font-family: monospace;
}

.favorite-name {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.favorite-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-add-to-cart {
    flex-grow: 1;
    padding: 12px 20px;
    background: #000;
    color: #FFE733;
    border: 2px solid #000;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-add-to-cart:hover {
        background: #FFE733;
        color: #000;
        transform: translateY(-2px);
    }

.btn-remove-fav {
    padding: 12px 18px;
    background: #fff;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    min-height: 45px;
}

    .btn-remove-fav:hover {
        background: #dc3545;
        color: #fff;
        transform: scale(1.1);
    }

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 2px dashed #000;
    border-radius: 15px;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.btn-go-catalog {
    display: inline-block;
    padding: 15px 35px;
    background: #000;
    color: #FFE733;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

    .btn-go-catalog:hover {
        background: #FFE733;
        color: #000;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

/* Пагинация */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

    .pagination-btn:hover {
        background: #FFE733;
        transform: translateY(-2px);
    }

    .pagination-btn.active {
        background: #000;
        color: #FFE733;
    }

/* Адаптивность */
@media (max-width: 768px) {
    .favorites-toolbar {
        flex-direction: column;
        gap: 15px;
    }

    .toolbar-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .favorite-actions {
        flex-direction: column;
    }
}