/* Основные стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

main {
    min-height: 70vh;
} 
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

header h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.office-info {
    background: #e3f2fd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #1565c0;
    font-size: 0.95rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher .lang-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
    border: 2px solid transparent;
}

.language-switcher .lang-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.language-switcher .lang-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Основное содержимое */
/*
main {
    padding: 2rem 0;
}
*/

/* Стили для отображения недели */
.week-display {
    text-align: center;
    margin-top: 1rem;
}

.week-range {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2rem;
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* Стиль для выбранного салата */
.salad-single .dish-select.selected {
    opacity: 1;
    transform: scale(1);
}

/* Сообщения об ошибках */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid #f5c6cb;
}

/* Подвал */
/*
footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bbdefb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}
*/

/* RTL поддержка 
[dir="rtl"] .header-content,
[dir="rtl"] .week-navigation,
[dir="rtl"] .accordion-header,
[dir="rtl"] .option-label,
[dir="rtl"] .dish-nutrition,
[dir="rtl"] .section-title {
    flex-direction: row-reverse;
}*/

/*
[dir="rtl"] .language-switcher,
[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}
*/

[dir="rtl"] .dish-select {
    right: auto;
    left: 1rem;
}

/*[dir="rtl"] .accordion-icon {
    transform: rotate(180deg);
}

[dir="rtl"] .accordion-input:checked + .accordion-header .accordion-icon {
    transform: rotate(0deg);
}*/

/* RTL для language-switcher */
[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}


/* ===== ОБНОВЛЕННЫЙ ФУТЕР ===== */
.site-footer {
    background: #f5f5f5;
    color: #333;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-contacts-section {
    align-items: flex-start;
}

.footer-links-section {
    align-items: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    display: block;
    height: 40px;
}

.footer-contact-info {
    margin-bottom: 1.5rem;
}

.footer-contact-info p {
    margin: 0.5rem 0;
}

.footer-contact-info a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.footer-contact-info a:hover {
    color: #3498db;
}

.phone-number {
    font-weight: 600;
    font-size: 1.1rem;
}

.email-link {
    color: #666;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #555;
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.footer-title {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: block;
    text-align: center;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-link {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #3498db;
}

.separator {
    color: #999;
    font-size: 0.8rem;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-contacts-section,
    .footer-links-section {
        align-items: center;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-contact-info {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* Исправление для цифр и телефонных номеров в RTL */
.phone-number,
[dir="ltr"] {
    unicode-bidi: isolate;
}

/* Особые стили для телефонных номеров */
.footer-links .phone-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Для времени работы */
.footer-links [dir="ltr"]:not(.phone-number) {
    font-family: inherit;
}