/* Copied to static path */
/* Православный сайт иконописца - Основные стили */

:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8860B;
    --deep-red: #8B0000;
    --warm-white: #FFF8DC;
    --dark-brown: #3E2723;
    --light-brown: #5D4037;
    --text-dark: #2E2E2E;
    --shadow: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--warm-white) 0%, #F5F5DC 100%);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--deep-red) 0%, var(--dark-brown) 100%);
    color: var(--primary-gold);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav a:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(rgba(139, 0, 0, 0.1), rgba(139, 0, 0, 0.1));
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow);
}

.hero-section h1 {
    font-size: 3rem;
    color: var(--deep-red);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 3rem 0;
    margin: 2rem 0;
}

.section h2 {
    font-size: 2.5rem;
    color: var(--deep-red);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--primary-gold);
    margin: 1rem auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 3px solid var(--primary-gold);
}

/* Gallery */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-filter, .search-input {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-gold);
    border-radius: 25px;
    background: white;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.category-filter:hover, .search-input:focus {
    box-shadow: 0 2px 10px var(--shadow);
    outline: none;
}

.category-filter.active {
    background: var(--primary-gold);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item-info {
    padding: 1.5rem;
}

.gallery-item h3 {
    color: var(--deep-red);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-item p {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.gallery-item .category-tag {
    display: inline-block;
    background: var(--primary-gold);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

.modal-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 5px;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-red);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn {
    background: var(--primary-gold);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

/* Footer */
.footer {
    background: var(--dark-brown);
    color: var(--primary-gold);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-dark);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-gold);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
}
