/* contacts.css — исправленная версия */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --text-light: #666;
    --text-dark: #333;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Основные стили */
.contacts-page {
    background: #f8f9fa;
    padding-bottom: 0px;
}

/* Хлебные крошки */
.breadcrumbss {
    margin-bottom: 20px;
    padding: 0;
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumbss a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumbss a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.breadcrumbss span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Герой секция */
.contacts-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
    color: white;
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
}
.contacts-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}
.contacts-hero .breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}
.contacts-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.contacts-hero .breadcrumbs a:hover {
    color: white;
}
.contacts-hero .breadcrumbs span {
    color: white;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.page-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: white;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Карточки контактов */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

}
.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-bottom: 30px;
    opacity: 1;
}
.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.contact-card:hover .contact-icon {
    background: var(--secondary-color);
    transform: scale(1.1);
}
.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}
.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
}
.contact-link {
    display: inline-block;
    margin-top: auto;
    margin-bottom: 15px;
    padding: 12px 8px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    width: calc(100% - 12px);
}
.contact-link:hover {
    background: transparent;
    border-color: white;
    transform: translateY(-2px);
}

/* Карта и магазины */
.map-stores {
    padding: 100px 0;
    background: white;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}
.map-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}
.map-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.map-header {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    flex-shrink: 0;
}
.map-header h3 {
    font-size: 1.5rem;
    margin: 0 0 5px;
    color: white;
}
.map-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}
.map-placeholder {
    flex-grow: 1;
    min-height: 450px;
}
.stores-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}
.store-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.store-card:hover {
    transform: translateY(-5px);
}
.store-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.store-info {
    flex-grow: 1;
}
.store-info p {
    margin: 12px 0;
    color: var(--text-dark);
    line-height: 1.5;
}
.store-info strong {
    color: var(--primary-color);
}
.work-hours {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}
.work-hours li {
    padding: 5px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}
.work-hours li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}
.store-actions {
    margin-top: 30px;
    flex-shrink: 0;
}
.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 25px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}
.store-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Форма обратной связи */
.contact-form-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.form-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.form-content > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}
.contact-form .form-group {
    margin-bottom: 25px;
}
.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.submit-btn {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    transition: var(--transition);
    margin-top: 20px;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}
.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 15px 0 0;
}

/* Боковая информация */
.form-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}
.info-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    border-top: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
}
.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}
.chat-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: auto;
}
.chat-btn:hover {
    background: #c0392b;
}
.messenger-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.messenger-btn {
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s;
}
.messenger-btn:hover {
    transform: translateY(-3px);
}
.telegram {
    background: #0088cc;
    color: white;
}
.vk {
    background: #2787F5;
    color: white;
}
.vk:hover {
    background: #1f6bb3;
}

/* FAQ */
.contact-faq {
    padding: 80px 0 100px;
    background: white;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.faq-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.3s;
}
.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.faq-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Доступность */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.contact-card:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
@media (prefers-contrast: high) {
    .contact-card,
    .store-card,
    .faq-item {
        border: 2px solid currentColor;
    }
    .btn,
    .store-btn,
    .submit-btn,
    .chat-btn,
    .messenger-btn {
        border: 2px solid currentColor;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .map-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-container {
        grid-template-columns: 1fr;
    }
    .map-placeholder {
        min-height: 400px;
    }
    .store-card {
        height: auto;
    }
}
@media (max-width: 992px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .contacts-hero {
        padding: 30px 0 60px;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .map-stores, .contact-form-section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .form-container {
        padding: 30px;
    }
    .contacts-page {
        padding-bottom: 0px;
    }
    .map-placeholder {
        min-height: 350px;
    }
    .store-card {
        padding: 25px;
    }
}
@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    .contact-card {
        padding: 25px;
    }
    .form-container {
        padding: 25px;
    }
    .form-content h2 {
        font-size: 1.8rem;
    }
    .store-card {
        padding: 20px;
    }
    .store-btn {
        padding: 12px 20px;
    }
    .map-placeholder {
        min-height: 300px;
    }
}