/* ================================================
   БЕЗОПАСНЫЕ КРЕАТИВНЫЕ УЛУЧШЕНИЯ
   Подключать ПОСЛЕ style.css и animations.css
   ================================================ */

/* ================================================
   1. ДОПОЛНИТЕЛЬНЫЕ ЦВЕТА И ГРАДИЕНТЫ
   ================================================ */

:root {
    /* Добавляем новые цвета, не трогая существующие */
    --olive-medium: #556b2f;
    --olive-light: #708238;
    --gold-light: #f4e4bc;
    --gold-shine: #fff3d4;
    --terracotta: #c65d3c;
    --warm-sand: #f1e3d3;

    /* Градиенты для использования */
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #fff3d4 100%);
    --gradient-olive: linear-gradient(135deg, #1a3d2e 0%, #556b2f 50%, #708238 100%);
}

/* ================================================
   2. ХУДОЖЕСТВЕННЫЕ ШРИФТЫ (МЯГКОЕ ОБНОВЛЕНИЕ)
   ================================================ */

/* Применяем новые шрифты только к конкретным элементам */
.hero-title {
    font-family: 'Playfair Display', 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
}

.section-title {
    font-family: 'Playfair Display', 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-label {
    font-family: 'Dancing Script', 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Основной текст остается читабельным */
.about-text p,
.product-description,
.quality-feature {
    font-family: 'Crimson Text', 'Raleway', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ================================================
   3. УЛУЧШЕНИЕ КАРТОЧЕК БЕЗ ПОЛОМКИ
   ================================================ */

/* Добавляем эффекты к существующим карточкам */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

/* Улучшаем featured карточку */
.product-card-featured {
    background: linear-gradient(135deg,
        rgba(250, 249, 246, 0.5) 0%,
        rgba(255, 243, 212, 0.3) 100%);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

/* Quality карточки - добавляем стиль */
.quality-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 61, 46, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.quality-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.12);
}

/* Исправляем выравнивание quality grid */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* ================================================
   4. СТИЛИЗАЦИЯ КНОПОК
   ================================================ */

.btn {
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Градиент для primary кнопки */
.btn-primary {
    background: linear-gradient(135deg, #1a3d2e 0%, #2d5a3d 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d5a3d 0%, #1a3d2e 100%);
}

/* ================================================
   5. HERO СЕКЦИЯ УЛУЧШЕНИЯ
   ================================================ */

/* Градиентный overlay */
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(26, 61, 46, 0.4) 0%,
        rgba(26, 61, 46, 0.6) 100%
    );
}

/* Анимация scroll индикатора */
.scroll-indicator {
    width: 2px;
    height: 30px;
    background: #ffffff;
    margin: 10px auto;
    position: relative;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* ================================================
   6. НАВИГАЦИЯ - СТЕКЛЯННЫЙ ЭФФЕКТ
   ================================================ */

.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ================================================
   7. СТАТИСТИКА СТИЛИЗАЦИЯ
   ================================================ */

.stat-number {
    font-family: 'Playfair Display', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

/* ================================================
   8. ПРОЦЕСС ПРОИЗВОДСТВА
   ================================================ */

.process-step {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.12);
}

.process-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--gradient-gold);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ================================================
   9. ИЗОБРАЖЕНИЯ - HOVER ЭФФЕКТЫ
   ================================================ */

.product-image {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ================================================
   10. ФОРМЫ УЛУЧШЕНИЯ
   ================================================ */

.form-group input,
.form-group textarea,
.form-group select {
    border: 2px solid rgba(26, 61, 46, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ================================================
   11. BADGE СТИЛИЗАЦИЯ
   ================================================ */

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-gold);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-badge-premium {
    background: var(--gradient-olive);
}

/* ================================================
   12. FOOTER ГРАДИЕНТ
   ================================================ */

.footer {
    background: linear-gradient(180deg,
        var(--color-primary) 0%,
        #0f2419 100%);
}

.footer-title {
    font-family: 'Playfair Display', 'Montserrat', sans-serif;
}

/* ================================================
   13. АДАПТИВНОСТЬ
   ================================================ */

@media (max-width: 768px) {
    .quality-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Упрощаем hover на мобильных */
    .product-card:hover,
    .quality-item:hover {
        transform: none;
    }
}

/* ================================================
   14. АНИМАЦИЯ ПОЯВЛЕНИЯ (ПРОСТАЯ)
   ================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   15. ДОПОЛНИТЕЛЬНЫЕ ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ
   ================================================ */

/* Декоративная линия после заголовков секций */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 1.5rem 0;
}

/* Текстура для about секции */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(212, 175, 55, 0.05) 10px,
        rgba(212, 175, 55, 0.05) 20px
    );
    pointer-events: none;
}

/* ================================================
   16. ИСПРАВЛЕНИЕ ИКОНОК
   ================================================ */

.quality-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================================================
   17. ФИНАЛЬНЫЕ ШТРИХИ
   ================================================ */

/* Селекция текста */
::selection {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-primary);
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Убираем outline для мыши, оставляем для клавиатуры */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}