* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #382110;
    --secondary-color: #965b30;
    --accent-color: #2d1b10;
    --light-color: #F5F3EC;
    --text-color: #333;
    --light-text: #6f6f6f;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* хедер */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content a {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
}

.logo-text {
    color: var(--light-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navigation {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
}

.nav-counter {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    background-color: rgb(255, 247, 216);
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background-color: var(--accent-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item.active::after {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--light-color);
    border-radius: 50%;
}

/* главная страница */
.hero-section {
    position: relative;
    height: 90vh;
    margin-top: 80px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-quote {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 500px;
    background: rgba(111, 90, 75, 0.8);
    padding: 30px;
    border-radius: 12px;
    color: var(--light-color);
}

.hero-quote p:first-child {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-quote p:last-child {
    font-size: 1rem;
    text-align: right;
    font-weight: 500;
}

.welcome-section {
    padding: 80px 0;
    background-color: white;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.welcome-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.welcome-logo img {
    width: 100px;
    height: 100px;
}

.welcome-logo h1 {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.welcome-text {
    flex: 1;
}

.welcome-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.welcome-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
}

.welcome-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.welcome-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* слайдер */
.slider-section {
    padding: 60px 0;
    background-color: #f8f4e9;
}

.slider-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.slides {
    display: flex;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(56, 33, 16, 0.8);
    color: white;
    padding: 20px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    z-index: 2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* для контента */
.main-content {
    margin-top: 120px;
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* для статей */
.article {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.article-header {
    padding: 40px 40px 20px;
    text-align: center;
    background: var(--accent-color);
    color: white;
}

.article h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 40px;
}

.article-content img {
    height: 600px;
    display: flex;
    text-align: center;
}

.text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.text p {
    margin-bottom: 25px;
}

.highlight-box {
    background-color: #f8f4e9;
    border-left: 4px solid var(--accent-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--light-text);
}

/* список статей */
.articles-list-container {
    padding: 40px;
    margin-bottom: 40px;
}

.category-section {
    margin-bottom: 40px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.articles-list {
    list-style: none;
}

.article-item {
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition);
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background-color: #f8f4e9;
    margin: 0 -15px;
    padding: 15px;
    border-radius: 8px;
}

.article-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.article-link:hover {
    color: var(--secondary-color);
}

.article-number {
    background: var(--accent-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.article-info {
    flex: 1;
}

.article-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* рекомендуемые статьи */
.featured-articles {
    margin-top: 60px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

.featured-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.featured-excerpt {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
    color: var(--primary-color);
}

/* страница 404 */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.error-image {
    flex: 1;
    text-align: center;
}

.error-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.error-text {
    flex: 1;
}

.error-text h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.error-text p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* футер */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* адаптивность */
@media (max-width: 768px) {
    /* хедер */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        padding-right: 70px;
    }
    
    .logo {
        flex: 1;
    }
    
    /* гамбургер меню */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #F5F3EC;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        width: 48px;
        height: 48px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 10%;
        z-index: 1001;
    }
    
    /* навигация для мобильных */
    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background-color: #F5F3EC;
        box-shadow: -10px 0 30px rgba(56, 33, 16, 0.15);
        padding: 90px 30px 30px;
        z-index: 1000;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        visibility: hidden;
    }
    
    .navigation.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .navigation .nav-item {
        width: 100%;
        padding: 18px 24px;
        border-radius: 12px;
        color: var(--text-color);
        margin: 5px 0;
        text-align: left;
        font-size: 1.1rem;
        font-weight: 500;
        background: white;
        border: 2px solid transparent;
        display: block;
    }
    
    .navigation .nav-item:hover {
        background-color: #f5f5f5;
        border-color: var(--accent-color);
    }
    
    .navigation .nav-item.active {
        background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
        color: white;
        border-color: var(--accent-color);
    }
    
    .navigation .nav-item.active::after {
        display: none;
    }
    
    .navigation .nav-counter {
        margin-top: 20px;
        padding: 20px;
        border-radius: 12px;
        background: linear-gradient(135deg, #fff7d8, #ffeaa7);
        color: var(--primary-color);
        font-size: 1rem;
        text-align: center;
        border: 2px solid #f9d371;
    }

    .hero-section {
        height: 60vh;
        margin-top: 80px;
    }

    .hero-image {
        height: 60vh;
    }
    
    .hero-quote {
        position: relative;
        left: auto;
        top: -40vh;
        max-width: 90%;
        margin: 30px auto;
        padding: 25px;
        background: rgba(111, 90, 75, 0.9);
    }
    
    .welcome-section {
        padding: 60px 0;
    }
    
    .welcome-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    
    .welcome-logo {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .welcome-logo img {
        width: 80px;
        height: 80px;
    }
    
    .welcome-logo h1 {
        font-size: 2.5rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        background-clip: text;
    }
    
    .welcome-text h2 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .welcome-text p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .welcome-image {
        border-radius: 16px;
        overflow: hidden;
    }
    
    /* слайдер */
    .slider-section {
        padding: 50px 0;
    }
    
    .slider-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .slide img {
        height: 400px;
    }
    
    .slide-overlay {
        padding: 25px;
    }
    
    /* контент */
    .main-content {
        margin-top: 100px;
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* статьи */
    .page-header {
        padding: 16vh 0 0 0;
    }

    .articles-list-container {
        padding: 30px 20px;
    }

    .category-title {
        font-size: 18px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-image {
        height: 20vh;
    }
    
    .article h1 {
        font-size: 2.2rem;
    }
    
    .article-content {
        padding: 30px;
    }
    
    /* Кнопки слайдера */
    .prev, .next {
        width: 45px;
        height: 45px;
        background: rgba(56, 33, 16, 0.8);
    }
    
    /* Футер */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover {
        padding-left: 0;
        transform: translateX(5px);
    }
    
    /* 404 страница */
    .error-page {
        padding: 20px;
        height: 80vh;
    }
    
    .error-content {
        flex-direction: column;
        gap: 40px;
        padding: 30px;
        margin: 20px;
        text-align: center;
    }
    
    .error-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
        
    .error-text {
        width: 100%;
    }
    
    .error-text h1 {
        font-size: 2.2rem;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .error-text h1::after {
        left: 50%;
        width: 60px;
        height: 3px;
    }
    
    .error-text p {
        font-size: 1.1rem;
        padding-left: 0;
        border-left: none;
        padding: 0 10px;
        margin-bottom: 30px;
        position: relative;
    }
    
    .error-actions {
        justify-content: center;
        gap: 15px;
        padding-top: 10px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 16px 32px;
        font-size: 1rem;
        margin: 5px 0;
        border-radius: 40px;
    }
}
