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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

nav {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

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

.nav-links a i,
.nav-links a span[role="img"] {
    font-size: 1.1em;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

header {
    background: linear-gradient(135deg, rgba(46,125,50,0.9) 0%, rgba(76,175,80,0.9) 100%); 
    color: white;
    text-align: center;
    padding: 150px 20px;
    margin-top: 70px;
    border-radius: 0 0 50px 50px;
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.4em;
    margin-bottom: 30px;
}

.offer-carousel {
    height: 40px;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
}

.offer {
    font-size: 1.3em;
    color: #FFD700;
    font-weight: bold;
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.offer.active {
    opacity: 1;
}

.timer {
    font-size: 1.6em;
    margin: 30px 0;
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

.cta-button {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    color: #333;
    padding: 18px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,168,0,0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,168,0,0.4);
}

section {
    padding: 80px 0;
    margin: 40px 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2e7d32;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.product-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-item:hover {
    transform: translateY(-10px);
    border-color: #4caf50;
    box-shadow: 0 10px 30px rgba(76,175,80,0.2);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.price {
    font-size: 1.3em;
    font-weight: bold;
    color: #2e7d32;
    margin-top: 15px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: scale(1.05);
}

.advantage-item i {
    font-size: 60px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.achievement-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border-radius: 15px;
    font-size: 1.4em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: rotate(5deg) scale(1.1);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.review-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #4caf50;
}

.stars {
    color: #FFD700;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: #4caf50;
    box-shadow: 0 0 10px rgba(76,175,80,0.2);
    outline: none;
}

.form-container button {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    width: 100%;
}

.form-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76,175,80,0.3);
}

.callback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.callback-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.callback-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #2196f3, #ff9800);
    animation: progressBar 3s linear infinite;
}

@keyframes progressBar {
    0% { background-position: -500px 0; }
    100% { background-position: 500px 0; }
}

.callback-modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    text-align: center;
    position: relative;
}

.callback-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
}

.callback-modal-icon {
    font-size: 4em;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.callback-modal-title {
    color: white;
    font-size: 2em;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.callback-modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    margin-top: 10px;
}

.callback-modal-body {
    padding: 40px;
    background: white;
}

.callback-form-group {
    margin-bottom: 25px;
    position: relative;
}

.callback-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.callback-form-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.callback-form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background: white;
    transform: translateY(-2px);
}

.callback-form-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: #667eea;
    z-index: 2;
}

.callback-form-select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1.1em;
    background: #f8f9fa;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    transition: all 0.3s ease;
}

.callback-form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background-color: white;
}

.callback-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border: none;
    border-radius: 15px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.callback-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.callback-submit-btn:hover::before {
    left: 100%;
}

.callback-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.callback-guarantee {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
}

.callback-guarantee-text {
    color: #2e7d32;
    font-size: 0.9em;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.callback-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
    font-weight: 600;
    font-size: 1.1em;
}

.callback-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.callback-button i {
    font-size: 1.5em;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
        padding: 20px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
    }

    .callback-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .callback-modal-header {
        padding: 20px;
    }
    
    .callback-modal-body {
        padding: 25px;
    }
    
    .callback-modal-title {
        font-size: 1.6em;
    }
    
    .callback-button {
        bottom: 20px;
        right: 20px;
        padding: 15px 20px;
        font-size: 1em;
    }
    
    .callback-form-input {
        padding: 15px 15px 15px 45px;
    }

    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.2em;
    }

    .nav-links {
        gap: 15px;
    }
}

/* Дополнительные стили для успешного сообщения */
.callback-success {
    text-align: center;
    padding: 30px 20px;
}

.callback-success i {
    font-size: 4em;
    color: #4caf50;
    margin-bottom: 20px;
    display: block;
}

.callback-success h3 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.callback-success p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.5;
}
.admin-content {
    padding: 20px;
    margin-top: 80px; /* отодвигаем вниз на высоту меню */
}
/* Стили для категорий товаров */
.category-section {
    margin-bottom: 60px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4caf50;
    position: relative;
}

.category-header h3 {
    font-size: 2.2em;
    color: #2e7d32;
    margin: 0;
    display: inline-block;
    background: white;
    padding: 0 30px;
    position: relative;
    top: 10px;
}

.category-header::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4caf50, transparent);
}

/* Адаптивность для категорий */
@media (max-width: 768px) {
    .category-header h3 {
        font-size: 1.8em;
        padding: 0 20px;
    }
    
    .category-section {
        margin-bottom: 40px;
    }
}