:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover h1 {
    color: var(--secondary-color);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 2px;
    transition: color 0.3s;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero-background.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 300;
}

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

.tab-btn {
    padding: 10px 20px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    color: var(--text-color);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

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

.gallery-item,
.shop-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.shop-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item:hover,
.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item {
    cursor: default;
}

.gallery-item[style*="cursor: pointer"] {
    cursor: pointer;
}

.gallery-item-image,
.shop-item-image {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    overflow: hidden;
}

.gallery-item-image img,
.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-placeholder,
.shop-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

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

.gallery-item-title,
.shop-item-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.gallery-item-category,
.shop-item-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.gallery-item-material,
.shop-item-material,
.gallery-item-size,
.shop-item-size {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.shop-item-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 0.5rem;
}

.shop-item-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0 1.5rem 1.5rem;
    position: relative;
    z-index: 10;
}

.shop-item-btn,
.shop-item-btn-link {
    flex: 1;
    text-align: center;
}

.shop-item-btn {
    position: relative;
    z-index: 11;
}

.shop-item-btn-link {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
}

.shop-item-btn-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.gallery-detail-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.gallery-detail-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

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

.about-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    object-fit: cover;
    margin-bottom: 1rem;
}

.about-image-caption {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
    margin-top: 0.5rem;
}

.about-text {
    text-align: left;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contacts Section */
.contacts-content {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
}

.contact-item {
    flex: 0 0 300px;
    width: 300px;
    min-height: 140px;
    padding: 2rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.contact-item h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    width: 100%;
    text-align: center;
    line-height: 1.5;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item .social-links {
    justify-content: center;
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: #2980b9;
}

.social-icon {
    padding: 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon:hover {
    background-color: transparent;
    transform: scale(1.1);
    opacity: 0.8;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s, transform 0.3s;
}

.social-icon:hover img {
    filter: brightness(1.1);
    transform: scale(1.1);
}

.site-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
    display: block;
}

.modal-content[src=""] {
    display: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
}

.modal-caption-hidden {
    display: none;
}

/* Buy modal: choose contact method */
.buy-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s;
}

.buy-modal.active {
    display: flex;
}

.buy-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.buy-modal-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 100%;
    padding: 2rem;
    animation: zoomIn 0.25s;
}

.buy-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.buy-modal-close:hover {
    color: var(--primary-color);
    background: var(--bg-color);
}

.buy-modal-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    padding-right: 2.5rem;
}

.buy-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
}

.buy-modal-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.buy-modal-option {
    display: block;
    padding: 0.9rem 1.25rem;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.buy-modal-option:hover {
    background: var(--white);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.buy-modal-option-contacts {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.buy-modal-option-contacts:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: var(--white);
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 1.5rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0 1.5rem;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .gallery-grid,
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .contacts-content {
        padding: 0 1rem;
    }

    .contacts-content {
        width: 100%;
        padding: 0 1rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        width: 100%;
        gap: 1.5rem;
    }

    .contact-item {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .about-image-wrapper {
        margin: 0 auto;
        max-width: 300px;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 4rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top span {
    line-height: 1;
    font-weight: bold;
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 3.5rem;
        left: 1.5rem;
        font-size: 1.3rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}