/* Контакты - специфические стили */
.contacts-page {
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contacts-container {
    flex: 1;
    padding: 40px 20px;
    position: relative;
    min-height: calc(100vh - 160px);
}

.contacts-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 19, 24, 0.9), rgba(26, 29, 36, 0.8)),
                url('../images/backgroundCART.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.contacts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--dark-bg) 100%);
}

.contacts-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.contacts-header {
    text-align: center;
    margin-bottom: 40px;
}

.contacts-logo {
    margin-bottom: 20px;
}

.contacts-logo .logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: var(--dark-bg);
    box-shadow: 0 8px 25px rgba(246, 206, 85, 0.4);
}

.contacts-logo h1 {
    color: var(--heading-color);
    font-size: 36px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(244, 243, 240, 0.3);
}

.contacts-logo p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 14px;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(246, 206, 85, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(246, 206, 85, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-title {
    color: var(--heading-color);
    font-size: 24px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(244, 243, 240, 0.3);
}

.contact-info-grid {
    display: grid;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(16, 19, 24, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(246, 206, 85, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: rgba(246, 206, 85, 0.3);
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(246, 206, 85, 0.3);
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.8;
}

.contact-value {
    color: var(--heading-color);
    font-size: 18px;
    font-weight: 600;
}

.contact-description {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.8;
}

.contact-phone {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--heading-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(16, 19, 24, 0.7);
    border: 1px solid rgba(190, 182, 167, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(246, 206, 85, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.required::after {
    content: ' *';
    color: #e74c3c;
}

.form-actions {
    margin-top: 30px;
}

.submit-btn {
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(246, 206, 85, 0.4);
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 206, 85, 0.6);
}

.map-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(246, 206, 85, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
}

.map-container {
    width: 100%;
    height: 400px;
    background: rgba(16, 19, 24, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(246, 206, 85, 0.2);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 16px;
    text-align: center;
    padding: 20px;
}

.working-hours {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.hours-row {
    justify-content: space-between;
}

.hours-day {
    color: var(--text-color);
}

.hours-time {
    color: var(--heading-color);
    font-weight: 500;
}

/* Стили для ошибок формы */
.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error .field-error {
    display: block;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px 20px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(246, 206, 85, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-color: rgba(46, 204, 113, 0.5);
}

.notification-error {
    border-color: rgba(231, 76, 60, 0.5);
}

.notification-warning {
    border-color: rgba(241, 196, 15, 0.5);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 18px;
}

.notification-success .notification-content i {
    color: #27ae60;
}

.notification-error .notification-content i {
    color: #e74c3c;
}

.notification-warning .notification-content i {
    color: #f39c12;
}

@media (max-width: 968px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contacts-container {
        padding: 20px 15px;
    }
    
    .contact-info-section,
    .contact-form-section,
    .map-section {
        padding: 25px 20px;
    }
    
    .contacts-logo h1 {
        font-size: 28px;
    }
    
    .contacts-logo .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .working-hours {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-info-section,
    .contact-form-section,
    .map-section {
        padding: 20px 15px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .contact-value {
        font-size: 16px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* Кастомный скроллбар */
.about-content::-webkit-scrollbar {
    width: 8px;
}

.about-content::-webkit-scrollbar-track {
    background: rgba(16, 19, 24, 0.5);
    border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb:hover {
    background: #f39c12;
}

/* Стилизация скроллбара для всей страницы */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(16, 19, 24, 0.8);
}

/* WebKit браузеры (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(16, 19, 24, 0.8);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    border-radius: 6px;
    border: 2px solid rgba(16, 19, 24, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e6b800, var(--accent-color));
    box-shadow: 0 0 8px rgba(246, 206, 85, 0.6);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #d4af37, var(--accent-color));
}

/* Стилизация скроллбара для модальных окон */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(16, 19, 24, 0.9);
}

/* WebKit браузеры для модальных окон */
.modal-content::-webkit-scrollbar {
    width: 14px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(16, 19, 24, 0.9);
    border-radius: 8px;
    margin: 4px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    border-radius: 8px;
    border: 3px solid rgba(16, 19, 24, 0.9);
    box-shadow: 0 0 4px rgba(246, 206, 85, 0.4);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e6b800, var(--accent-color));
    box-shadow: 0 0 8px rgba(246, 206, 85, 0.6);
}

.modal-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #d4af37, var(--accent-color));
}

/* Стилизация для order-modal-body */
.order-modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(16, 19, 24, 0.8);
}

.order-modal-body::-webkit-scrollbar {
    width: 10px;
}

.order-modal-body::-webkit-scrollbar-track {
    background: rgba(16, 19, 24, 0.8);
    border-radius: 6px;
    margin: 2px 0;
}

.order-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    border-radius: 6px;
    border: 2px solid rgba(16, 19, 24, 0.8);
}

.order-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e6b800, var(--accent-color));
}

/* Плавная прокрутка для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Улучшение внешнего вида при прокрутке */
.modal-content,
.order-modal-body,
.account-sidebar {
    scroll-behavior: smooth;
}

/* Анимация появления скроллбара */
.modal-content::-webkit-scrollbar-thumb,
.order-modal-body::-webkit-scrollbar-thumb,
.account-sidebar::-webkit-scrollbar-thumb {
    transition: all 0.3s ease;
}

/* Стили для Firefox */
@media (max-width: 768px) {
    html {
        scrollbar-width: auto;
    }
    
    .modal-content {
        scrollbar-width: auto;
    }
}