/* Основные стили шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Playfair Display', serif;
    --primary-color: #F49D1A; /* gamboge */
    --secondary-color: #B54214; /* rust */
    --accent-color: #E8B276; /* fawn */
    --text-color: #333333;
    --light-text: #6B7280;
    --background-color: #FFFFFF;
    --light-background: #F9FAFB;
    --dark-background: #1F2937;
    --dark-text: #E5E7EB;
    --honey-light: #F1CA94; /* sunset */
    --honey-medium: #E8B276; /* fawn */
    --honey-dark: #B54214; /* rust */
    --neutral: #D8C2AD; /* dun */
}

/* Основные стили элементов */
body {
    font-family: var(--primary-font);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--light-background);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--secondary-font);
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* Параграфы и основной текст */
p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Дополнительные классы для стилизации */
.serif {
    font-family: var(--secondary-font);
}

.sans-serif {
    font-family: var(--primary-font);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-honey-light {
    background-color: var(--honey-light);
}

.fw-light {
    font-weight: 300;
}

.fw-normal {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.fw-extrabold {
    font-weight: 800;
}

/* Кнопки - Унифицированные стили */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--primary-font);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-dark {
    background-color: var(--secondary-color);
    color: white !important;
}

.btn-dark:hover {
    background-color: var(--dark-background);
}

.btn-light {
    background-color: white;
    color: var(--text-color) !important;
    border: 1px solid #E5E7EB;
}

.btn-light:hover {
    background-color: var(--honey-light);
    border-color: var(--honey-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-rounded {
    border-radius: 2rem;
}

/* Для обратной совместимости */
.primary-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Стили для header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(1x);
    -webkit-backdrop-filter: blur(1px);
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header a {
    color: var(--text-color);
}

header .serif {
    color: var(--primary-color);
}

/* Стили для hero секции */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    background-repeat: no-repeat;
}

.hero-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background-position: center center;
}

.hero-content {
    padding: 5rem 0;
    text-align: left;
}

.hero-content h1 {
    font-family: var(--secondary-font);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    /* color: white; */
}

.hero-content p {
    font-family: var(--primary-font);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    /* color: var(--dark-text); */
}

/* Карточки продуктов */
.product-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    font-family: var(--secondary-font);
    color: var(--secondary-color);
}

.product-card .price {
    color: var(--primary-color);
    font-weight: bold;
}

/* Стили секций */
.section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section h2.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
}

section h3.section-subtitle {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Стили для footer */
footer {
    background-color: var(--honey-light);
    color: var(--text-color);
    padding: 3rem 0 1.5rem;
}

footer h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
}

/* Форма подписки */
.newsletter-form input[type="email"] {
    padding: 0.65rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    width: 100%;
    font-size: 0.875rem;
}

/* Обновленный стиль кнопки в форме подписки */
.newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Страница продуктов */
.filter-item {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-item:hover, .filter-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Обновленные стили для пагинации */
.pagination button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
}

.pagination button:hover, .pagination button.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Контактная страница */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(244, 157, 26, 0.1);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Обновленные стили для социальных кнопок */
.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--honey-light);
    color: var(--secondary-color);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* FAQ секция */
.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--neutral);
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: var(--light-text);
}

/* О нас страница */
.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.team-member h4 {
    margin-bottom: 0.25rem;
}

.team-member p.position {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item:after {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Специфические стили для RTL языков (арабский) */
[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', var(--primary-font);
}

[dir="rtl"] .serif {
    font-family: 'Noto Serif Arabic', var(--secondary-font);
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-main {
        min-height: 60vh;
    }
    .hero-inner {
        min-height: 30vh;
    }
    /* Адаптивность для кнопок */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.6s ease forwards;
}

/* Активный пункт меню */
.main-nav a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Плавное появление секций при прокрутке */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}