/* Важные базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #8b5a2b;
    z-index: 1002;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #8b5a2b;
}

.cart-btn {
    background: #8b5a2b;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #8b5a2b;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Герой секция */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://placehold.co/1920x600/8b5a2b/white?text=Галерея+Картин');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background: #8b5a2b;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background: #754a23;
}

/* Галерея */
.gallery {
    padding: 5rem 0;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

/* Фильтры */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #8b5a2b;
    background: transparent;
    color: #8b5a2b;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background: #8b5a2b;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .overlay {
    opacity: 1;
}

.quick-view {
    background: white;
    color: #8b5a2b;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.technique {
    color: #666;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #8b5a2b;
}

.add-to-cart {
    background: #8b5a2b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #754a23;
}

/* О художнике */
.about {
    background: #f8f9fa;
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #8b5a2b;
}

.label {
    color: #666;
}

/* Контакты */
.contacts {
    padding: 5rem 0;
}

.contacts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    color: #8b5a2b;
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    color: #8b5a2b;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #754a23;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

/* Подвал */
.footer {
    background: #f8f9fa;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #8b5a2b;
}

.footer-section a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #8b5a2b;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.payment-methods i {
    font-size: 1.5rem;
    color: #666;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    color: #666;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: #8b5a2b;
}

/* Галерея в модальном окне */
.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.thumbnail-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-gallery img.active,
.thumbnail-gallery img:hover {
    border-color: #8b5a2b;
}

/* Информация в модальном окне */
.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8b5a2b;
}

.modal-info .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8b5a2b;
    margin-bottom: 1.5rem;
}

.description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #666;
}

.details {
    margin-bottom: 2rem;
}

.details p {
    margin-bottom: 0.5rem;
    color: #555;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1.5rem 1rem;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
        text-decoration: none;
        color: #333 !important;
        display: block;
    }
    
    .nav-links a:hover {
        background: #f8f9fa;
        color: #8b5a2b !important;
    }
    
    .cart-btn {
        margin-top: 1rem;
        background: #8b5a2b;
        color: white !important;
        padding: 1rem;
        border-radius: 5px;
        text-align: center;
    }
    
    /* Анимация бургера при открытии */
    .burger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Затемнение фона при открытом меню */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
    
    /* Остальная адаптивность */
    .navbar .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hero {
        margin-top: 70px;
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-info .price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .gallery h2 {
        font-size: 2rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .number {
        font-size: 1.5rem;
    }
}

/* Улучшенные стили для секции праздников */
.holidays {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 5rem 0;
    position: relative;
}

.holidays-header {
    text-align: center;
    margin-bottom: 3rem;
}

.holidays h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8b5a2b;
}

.holidays-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.holidays-scroll-container {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.holiday-nav {
    background: #8b5a2b;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holiday-nav:hover:not(:disabled) {
    background: #754a23;
    transform: scale(1.1);
}

.holiday-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.holidays-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.holidays-scroll::-webkit-scrollbar {
    display: none;
}

.holiday-card {
    flex: 0 0 320px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.7;
    transform: scale(0.95);
}

.holiday-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: #8b5a2b;
    box-shadow: 0 20px 40px rgba(139, 90, 43, 0.2);
}

.holiday-card:hover {
    opacity: 1;
    transform: scale(1.02);
}

.holiday-preview {
    height: 180px;
    overflow: hidden;
}

.holiday-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.holiday-card.active .holiday-preview img,
.holiday-card:hover .holiday-preview img {
    transform: scale(1.1);
}

.holiday-content {
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.holiday-icon {
    width: 60px;
    height: 60px;
    background: #f8f0e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px auto 1rem;
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    color: #8b5a2b;
    transition: all 0.3s ease;
}

.holiday-card.active .holiday-icon {
    background: #8b5a2b;
    color: white;
    transform: scale(1.1);
}

.holiday-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #8b5a2b;
    font-weight: 600;
}

.holiday-card p {
    color: #666;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.holiday-count {
    display: inline-block;
    background: #8b5a2b;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.holidays-dots-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.holidays-dots {
    display: flex;
    gap: 0.8rem;
}

.holiday-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.holiday-dot.active {
    background: #8b5a2b;
    transform: scale(1.3);
}

.holiday-dot:hover {
    background: #8b5a2b;
    transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .holidays-scroll-container {
        gap: 0.5rem;
    }
    
    .holiday-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .holiday-card {
        flex: 0 0 280px;
    }
    
    .holidays-scroll {
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .holiday-content {
        padding: 1rem;
    }
    
    .holiday-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: -35px auto 0.8rem;
    }
}

@media (max-width: 480px) {
    .holidays {
        padding: 3rem 0;
    }
    
    .holidays h2 {
        font-size: 2rem;
    }
    
    .holiday-card {
        flex: 0 0 250px;
    }
    
    .holiday-preview {
        height: 150px;
    }
}

/* Стили для кнопки "Купить" */
.buy-now {
    background: #8b5a2b;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.buy-now:hover {
    background: #754a23;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .buy-now {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}


/* Стили для модального окна быстрого заказа */
.quick-order {
    max-width: 500px;
    padding: 2rem;
}

.quick-order-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quick-order-header h2 {
    color: #8b5a2b;
    margin-bottom: 0.5rem;
}

.quick-order-header p {
    color: #666;
    font-size: 0.95rem;
}

.quick-order-product {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    align-items: center;
}

.product-preview {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.product-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b5a2b;
}

.quick-order-form .form-group {
    margin-bottom: 1rem;
}

.quick-order-form input,
.quick-order-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.quick-order-form input:focus,
.quick-order-form textarea:focus {
    outline: none;
    border-color: #8b5a2b;
    box-shadow: 0 0 0 2px rgba(139, 90, 43, 0.1);
}

.submit-order-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quick-order {
        padding: 1.5rem;
        margin: 5% auto;
    }
    
    .quick-order-product {
        flex-direction: column;
        text-align: center;
    }
    
    .product-preview {
        width: 100px;
        height: 100px;
    }
}


/* Адаптивные фильтры с селектом на мобильных */
.filters-responsive {
    margin-bottom: 2rem;
}

.filter-select-mobile {
    display: none;
}

.filters-desktop {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Стили для селекта */
.filter-select-mobile select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #8b5a2b;
    border-radius: 10px;
    background: white;
    color: #8b5a2b;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.filter-select-mobile select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.2);
}

/* Переключение между селектом и кнопками */
@media (max-width: 768px) {
    .filter-select-mobile {
        display: block;
    }
    
    .filters-desktop {
        display: none;
    }
}

@media (min-width: 769px) {
    .filter-select-mobile {
        display: none;
    }
    
    .filters-desktop {
        display: flex;
    }
}

/* Стили для кнопки Купить в модальном окне просмотра */
.buy-from-modal {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    background: #28a745;
    border: none;
}

.buy-from-modal:hover {
    background: #218838;
    transform: translateY(-2px);
}