﻿/* Базовые стили */
:root {
    --primary-color: #4a6f28; /* Основной зеленый */
    --secondary-color: #8b5a2b; /* Коричневый */
    --accent-color: #e6a756; /* Акцентный бежевый */
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #444;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Секции */
.fullscreen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

    .btn:hover {
        background: transparent;
        color: var(--primary-color);
    }

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-outline:hover {
        background: var(--primary-color);
        color: white;
    }

/* Анимации */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 100px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Стили для страниц новости, вакансии */
.items-page {
    margin-top: 10px;
    padding: 60px 0; /* Увеличиваем нижний отступ для панели админа */
}

.items-list {
    margin-top: 40px;
}

/* Панель администратора */
.admin-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
}

    .admin-panel .container {
        max-width: 1200px;
    }

#item-editor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

    .form-row > * {
        flex: 1;
    }

#item-title, #item-date {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

#item-text {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Кнопки админа */
.admin-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-btn {
    background: var(--primary-color);
    color: white;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.hidden {
    display: none !important;
}

.scroll-padding {
    height: 0; /* Совпадает с высотой admin-panel */
    visibility: hidden;
}

/* Базовый стиль для всех кнопок */
.admin-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-right: 10px;
}

/* Стиль кнопки сохранения */
.save-btn {
    background-color: #4CAF50; /* Зеленый */
    color: white;
}

    .save-btn:hover {
        background-color: #45a049;
        transform: translateY(-2px);
    }

/* Стиль кнопки отмены */
.cancel-btn {
    background-color: #f44336; /* Красный */
    color: white;
}

    .cancel-btn:hover {
        background-color: #d32f2f;
        transform: translateY(-2px);
    }

/* Стиль кнопки добавления */
.add-btn {
    background-color: #2196F3; /* Синий */
    color: white;
}

    .add-btn:hover {
        background-color: #0b7dda;
        transform: translateY(-2px);
    }

/* Анимация нажатия для всех кнопок */
.admin-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
