/* Общие стили для сайта "Домашний сыровар" */

/* Цветовая палитра */
:root {
    --primary-color: #8B4513; /* Коричневый */
    --secondary-color: #A0522D; /* Сиена */
    --accent-color: #D2691E; /* Шоколадный */
    --light-bg: #f5f7fa;
    --dark-bg: #333;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
}

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, #c3cfe2 100%);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовки */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Кнопки */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
    color: var(--white);
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Сетки */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Навигация */
.nav-menu {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin: 2rem 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 10px auto;
    border-radius: 2px;
}

/* Футер */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
    }
}

/* Специальные классы */
.difficulty-high {
    color: #e74c3c;
}

.difficulty-medium {
    color: #f39c12;
}

.difficulty-easy {
    color: #27ae60;
}

.time-long {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.time-medium {
    background: #f39c12;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.time-short {
    background: #27ae60;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}