* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-1 {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.navbar {
    background: white;
    color: white;
    padding: 1rem 0;
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #20730A;
    text-decoration: none;
}

.nav-links a, .nav-links span {
    color: #20730A;
    text-decoration: none;
    margin-left: 1.5rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Главный контент */
.main-content {
    min-height: 70vh;

}

/* Сетка статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-placeholder-img {
    height: 200px;
    background: linear-gradient(135deg, #c3cfe2 0%, #f5f7fa 100%);
}

.article-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.25rem;
}

.article-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.btn {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s;
}

.btn:hover {
    background: #5a67d8;
}

.Invisible-Div {
    width: 100%;
    height: 800px;
}




/* Подвал */
.footer {
    background: #20730A;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 130rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }
}

/*
 Главная страница
*/

.First-Block {

    width: 100%;
    height: 800px;
    background-image: url('../img/First-Block.jpg');
    background-size: cover;
    background-position: center;

}
.Header-First-Block {

    color:white;
    font-family: Arial;
    font-weight: bold;
    font-size: 45px;

}
.Under-Header-First-Block {

    color:white;
    font-weight: lighter;
    font-size: 35px;
    margin: 0;

}
.Invisible-Div-First-Block {
    width: 100%;
    height: 440px;
}
.Invisible-Div-First-Block2 {
    width: 100%;
    height: 25px;
}
.Button-First-Header {

    color: white;
    font-weight: 100;
    background-color: rgba(255, 255, 255, 0);
    border-style: solid;
    border-color: white;
    border-radius: 20px;
    width: 166px;
    height: 55px;

}

/*
Второй блок
 */

.Invisible-Div-100 {

    width: 100%;
    height: 100px;

}

.Second-Block {

    width: 100%;
    height: 1100px;
    display: flex;
    flex-direction: column;


}
.Place-For-Heading-Second-Block {

    width: 100%;
    height: 4%;
    display: flex;
    justify-content: center;

}

.Heading-Second-Block {

    color: #20730A;
    font-size: 30px;
    font-weight: 100;
    display: flex;
    justify-content: center;
    width: 100%;

}

.Container-Second-Block {

    width: 100%;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: start;

}
.Heading-Container-Second-Block {

    font-size: 30px;
    font-weight: 600;
    color: #20730A;

}
.Place-For-Text-Container-Second-Block {
    width: 60%;
    height: auto;
    margin-top: 32px;
}
.Text-Container-Second-Block {
    font-size: 20px;
}

/*
Третий блок
 */

.Third-Block {

    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;


}
.Card-Third-Block {

    width: 270px;
    height: 100%;
    background-color: #20730A;
    border: 1px solid;
    border-color: #20730A;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center

}
.Text-Card-Third-Block {

    color: white;
    justify-content: center;
    align-items: center;

}

/*
Четвертый блок
 */

.Fourth-Block {

    width: 100%;
    height: 700px;
    display: flex;
    flex-direction: column;

}
.Heading-Fourth-Block {

    font-size: 60px;
    font-weight: 700;

}
.Place-For-Text-Fourth-Block {

    font-size: 35px;
    font-weight: 100;
    margin-top: 35px;

}

.Button-End {

    color: #20730A;
    font-weight: 100;
    background-color: rgba(255, 255, 255, 0);
    border-style: solid;
    border-color: #20730A;
    border-radius: 20px;
    width: 166px;
    height: 55px;
    margin-top: 35px;

}

























/*
Страница статей
*/

/* Отступы для страницы статей */
.Invisible-Div-50 {
    width: 100%;
    height: 50px;
}

/* Заголовочный блок статей */
.Articles-Header-Block {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #20730A 0%, #2CA014 100%);
    background-size: cover;
    background-position: center;
}

.Invisible-Div-Articles-Header {
    width: 100%;
    height: 150px;
}

.Invisible-Div-Articles-Header2 {
    width: 100%;
    height: 50px;
}

.Articles-Header-Title {
    color: white;
    font-family: Arial;
    font-weight: bold;
    font-size: 48px;
    text-align: center;
}

.Articles-Header-Subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    text-align: center;
    margin-top: 15px;
}

/* Блок фильтрации */
.Articles-Filter-Block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.Filter-Label span {
    font-size: 24px;
    font-weight: 600;
    color: #20730A;
}

.Filter-Search {
    width: 300px;
}

.Search-Input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.Search-Input:focus {
    outline: none;
    border-color: #20730A;
}

/* Сетка статей */
.Articles-Grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Карточка статьи */
.Article-Card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.Article-Card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(32, 115, 10, 0.15);
}

/* Плейсхолдер для картинки (пока нет загрузки) */
.Article-Card-Image-Placeholder {
    height: 220px;
    background: linear-gradient(135deg, #20730A 0%, #3CB51E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.Placeholder-Text {
    font-size: 48px;
    color: white;
    opacity: 0.8;
}

/* Контент карточки */
.Article-Card-Content {
    padding: 20px;
}

.Article-Card-Category {
    display: inline-block;
    background: #e8f5e5;
    color: #20730A;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.Article-Card-Title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.Article-Card-Excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.Article-Card-Button {
    display: inline-block;
    color: #20730A;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.Article-Card-Button:hover {
    color: #2CA014;
    transform: translateX(5px);
}

/* Пагинация */
.Pagination-Block {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.Pagination-Btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.Pagination-Btn:hover {
    border-color: #20730A;
    color: #20730A;
}

.Pagination-Btn.active {
    background: #20730A;
    border-color: #20730A;
    color: white;
}

/* Простой поиск на JS (работает прямо сейчас) */
.no-results {
    text-align: center;
    padding: 60px;
    font-size: 20px;
    color: #999;
    grid-column: 1 / -1;
}

/* Адаптивность для страницы статей */
@media (max-width: 768px) {
    .Articles-Grid {
        grid-template-columns: 1fr;
    }

    .Articles-Filter-Block {
        flex-direction: column;
        gap: 15px;
    }

    .Filter-Search {
        width: 100%;
    }

    .Articles-Header-Title {
        font-size: 32px;
    }

    .Articles-Header-Subtitle {
        font-size: 18px;
    }
}

/*
Пустое состояние (когда нет статей)
*/

.Empty-Articles-Message {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.Empty-Message-Content {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 500px;
}

.Empty-Message-Icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.Empty-Message-Content h3 {
    font-size: 28px;
    color: #20730A;
    margin-bottom: 15px;
}

.Empty-Message-Content p {
    font-size: 18px;
    color: #666;
    line-height: 1.5;
}
















/*
Страницы авторизации (вход и регистрация)
*/

.Auth-Block {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: #f5f5f5;
}

.Auth-Card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.Auth-Title {
    font-size: 32px;
    font-weight: 700;
    color: #20730A;
    text-align: center;
    margin-bottom: 35px;
}

.Auth-Form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.Auth-Label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.Auth-Input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.Auth-Input:focus {
    outline: none;
    border-color: #20730A;
}

.Auth-Error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.Auth-Checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.Auth-Checkbox input {
    width: 18px;
    height: 18px;
}

.Auth-Buttons {
    margin-top: 10px;
}

.Auth-Submit {
    width: 100%;
    padding: 14px;
    background: #20730A;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.Auth-Submit:hover {
    background: #2CA014;
}

.Auth-Link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

.Auth-Link a {
    color: #20730A;
    text-decoration: none;
    font-weight: 600;
}

.Auth-Link a:hover {
    text-decoration: underline;
}












/*
Админ-панель
*/

.Admin-Block {
    min-height: 70vh;
    padding: 40px 0;
}

.Admin-Header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.Admin-Title {
    font-size: 32px;
    color: #20730A;
}

.Admin-Create-Btn, .Admin-Back-Btn {
    background: #20730A;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.Admin-Create-Btn:hover, .Admin-Back-Btn:hover {
    background: #2CA014;
    color: white;
}

.Admin-Back-Btn {
    background: #666;
}

.Admin-Back-Btn:hover {
    background: #888;
}

.Admin-Table {
    background: white;
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.Admin-Table table {
    width: 100%;
    border-collapse: collapse;
}

.Admin-Table th {
    background: #20730A;
    color: white;
    padding: 15px;
    text-align: left;
}

.Admin-Table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.Admin-Table tr:hover {
    background: #f9f9f9;
}

.Admin-Table-Img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.Admin-Table-NoImg {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    color: #999;
}

.Admin-Edit-Btn, .Admin-Delete-Btn {
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    margin: 0 3px;
    display: inline-block;
}

.Admin-Edit-Btn {
    background: #3498db;
    color: white;
}

.Admin-Delete-Btn {
    background: #e74c3c;
    color: white;
}

.Admin-Form-Card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.Admin-Form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.Form-Group {
    display: flex;
    flex-direction: column;
}

.Form-Label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.Form-Input, .Form-Select, .Form-File {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.Form-Input:focus, .Form-Select:focus {
    outline: none;
    border-color: #20730A;
}

textarea.Form-Input {
    resize: vertical;
}

.Form-Error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.Form-Row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.Submit-Btn {
    background: #20730A;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.Submit-Btn:hover {
    background: #2CA014;
}

.Current-Image {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.Current-Image-Preview {
    max-width: 200px;
    border-radius: 12px;
    margin-top: 10px;
}

.Form-Hint {
    font-size: 13px;
    color: #999;
    margin-top: -10px;
}

.Alert-Success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/*
Страница отдельной статьи
*/

.Article-Page {
    padding: 40px 0;
}

.Article-Header {
    text-align: center;
    margin-bottom: 40px;
}

.Article-Breadcrumb {
    color: #999;
    margin-bottom: 20px;
}

.Article-Breadcrumb a {
    color: #20730A;
    text-decoration: none;
}

.Article-Title {
    font-size: 42px;
    color: #20730A;
    margin-bottom: 20px;
}

.Article-Meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    flex-wrap: wrap;
}

.Article-Image {
    text-align: center;
    margin-bottom: 40px;
}

.Article-Image img {
    max-width: 100%;
    border-radius: 30px;
    max-height: 500px;
    object-fit: cover;
}

.Article-Content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    font-size: 18px;
    line-height: 1.8;
}

.Article-Content h2 {
    color: #20730A;
    margin-top: 30px;
}

.Article-Content h3 {
    color: #333;
    margin-top: 25px;
}

.Article-Content p {
    margin-bottom: 20px;
}

.Article-Content img {
    max-width: 100%;
    border-radius: 16px;
}

.Article-Footer {
    margin-top: 40px;
    text-align: center;
}

.Back-Btn {
    background: #20730A;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.Back-Btn:hover {
    background: #2CA014;
    color: white;
}

/* Картинка в карточке статьи */
.Article-Card-Image {
    height: 220px;
    overflow: hidden;
}

.Article-Card-Image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .Form-Row {
        grid-template-columns: 1fr;
    }

    .Article-Title {
        font-size: 28px;
    }

    .Article-Content {
        padding: 20px;
        font-size: 16px;
    }

    .Admin-Header {
        flex-direction: column;
        text-align: center;
    }
}