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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6d9 100%);
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== НАВИГАЦИЯ ========== */
nav {
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
    padding: 18px 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 30px;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #80cbc4;
    transition: width 0.3s ease;
}

nav a:hover::before {
    width: 70%;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

nav span {
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    max-width: 1300px;
    margin: 0 auto 50px auto;
    background: rgba(255,255,255,0.95);
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    flex: 1;
    width: 92%;
    backdrop-filter: blur(2px);
}

h1 {
    margin-bottom: 35px;
    color: #004d40;
    font-size: 2.4rem;
    text-align: center;
    position: relative;
    padding-bottom: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #26a69a, #00897b, #26a69a);
    border-radius: 4px;
}

h2 {
    color: #004d40;
    margin: 30px 0 20px 0;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

/* ========== ФОРМЫ ========== */
form {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(38,166,154,0.1);
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #004d40;
    font-weight: 600;
    font-size: 0.9rem;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0 18px 0;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-family: inherit;
    transition: all 0.3s;
    font-size: 1rem;
    background: #f8f9fa;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #26a69a;
    box-shadow: 0 0 0 4px rgba(38,166,154,0.15);
    background: white;
}

/* ========== КНОПКИ ========== */
button, .btn {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(38,166,154,0.3);
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38,166,154,0.4);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* ========== СООБЩЕНИЯ ========== */
.message {
    padding: 14px 22px;
    margin: 20px 0;
    border-radius: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message::before {
    font-size: 1.3rem;
}

.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.success::before {
    content: '✓';
    font-weight: bold;
}

.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.error::before {
    content: '⚠';
    font-weight: bold;
}

/* ========== КАРТОЧКИ КУРСОВ ========== */
.products, .courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card, .course-card {
    border: none;
    padding: 0;
    border-radius: 20px;
    background: white;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.product-card:hover, .course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,77,64,0.15);
}

.product-card img, .course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover img, .course-card:hover img {
    transform: scale(1.05);
}

.product-card h3, .course-card h3 {
    margin: 0;
    padding: 20px 20px 10px 20px;
    font-size: 1.35rem;
    color: #004d40;
    font-weight: 700;
}

.price {
    font-size: 26px;
    color: #00897b;
    font-weight: bold;
    margin: 5px 0;
    padding: 0 20px;
}

.price small {
    font-size: 14px;
    color: #888;
    font-weight: normal;
}

.product-card p, .course-card p {
    padding: 0 20px 20px 20px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-order {
    display: inline-block;
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
    padding: 12px 24px;
    margin: 0 20px 20px 20px;
    border-radius: 40px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-order:hover {
    background: linear-gradient(135deg, #00897b, #00695c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,137,123,0.3);
}

/* ========== КАРТОЧКИ ЗАЯВОК ========== */
.app-card, .admin-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 18px 0;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 5px solid #26a69a;
    transition: all 0.3s;
}

.app-card:hover, .admin-card:hover {
    box-shadow: 0 8px 25px rgba(0,77,64,0.1);
    transform: translateX(5px);
}

/* Статусы заявок */
.status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
}

.status-new, .status-Новая {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.status-learning, .status-Идетобучение {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #17a2b8;
}

.status-completed, .status-Обучениезавершено {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

/* ========== СЛАЙДЕР ========== */
.slider-container {
    position: relative;
    max-width: 700px;
    margin: 30px auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,77,64,0.2);
}

.slider {
    width: 100%;
    overflow: hidden;
}

.slides img {
    width: 100%;
    display: none;
    border-radius: 24px;
    height: auto;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,77,64,0.7);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: all 0.3s;
    width: auto;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: #26a69a;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* ========== АДМИН-ПАНЕЛЬ ========== */
.admin-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.admin-filters form {
    max-width: 100%;
    padding: 0;
    background: transparent;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    box-shadow: none;
}

.admin-filters select, .admin-filters button {
    width: auto;
    margin: 0;
}

.pagination {
    margin-top: 35px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: linear-gradient(135deg, #00897b, #00695c);
    transform: translateY(-2px);
}

.pagination .active {
    background: #00695c;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* ========== ФУТЕР ========== */
footer {
    background: linear-gradient(135deg, #004d40 0%, #00332a 100%);
    color: #e0e0e0;
    padding: 50px 30px 25px 30px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 35px;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: #80cbc4;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: #80cbc4;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container, .product-card, .course-card, .app-card {
    animation: fadeIn 0.5s ease-out;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px 20px;
        position: relative;
    }
    
    nav a, nav span {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
    
    .container {
        padding: 20px;
        margin: 0 15px 30px 15px;
        width: auto;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .products, .courses {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    form {
        padding: 25px;
        margin: 0;
    }
    
    .slider-container {
        max-width: 100%;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .admin-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-filters select, 
    .admin-filters button,
    .admin-card select,
    .admin-card button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .app-card, .admin-card {
        padding: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 18px;
        margin: 0 10px 20px 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 22px;
    }
    
    button, .btn, .btn-order {
        padding: 10px 20px;
    }
}

/* ========== ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ========== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #26a69a, #00897b);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00695c;
}

/* Карточка курса с изображением */
.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
    font-size: 48px;
    height: 200px;
}

/* Плавающие кнопки действий */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Бейджи */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.badge-admin {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.badge-user {
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
}