@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #8B7355;
    --accent: #D4AF37;
    --background: #F5F3F0;
    --highlight: #2C2C2C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--highlight);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    background-color: var(--background);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--highlight);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

section {
    margin: 2rem 0;
}

section.hero {
    margin-top: 0;
}

section.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

section.gallery .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/texture-bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 3rem 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    color: var(--highlight);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 500px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent);
    color: var(--highlight);
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 0;
}

.gallery .gallery-item {
    flex: 1 1 280px;
    min-width: 280px;
    max-width: 100%;
    display: flex;
    flex-direction: row;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.home-page .gallery-item img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.25);
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-page .gallery-item:hover img {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 115, 85, 0.4);
    border-color: rgba(212, 175, 55, 0.4);
}

.collections-page .gallery-item img {
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(44, 44, 44, 0.15);
    filter: grayscale(0.1) contrast(1.1);
    transition: all 0.5s ease;
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.collections-page .gallery-item:hover img {
    transform: scale(1.06) rotate(0.5deg);
    filter: grayscale(0) contrast(1.2);
    box-shadow: 0 10px 30px rgba(44, 44, 44, 0.25);
}

.about-page .gallery-item {
    display: flex;
    justify-content: center;
}

.about-page .gallery-item img {
    border-radius: 50%;
    width: 350px;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    border: 3px solid var(--accent);
    transition: all 0.4s ease;
}

.about-page .gallery-item:hover img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
    border-color: var(--primary);
}

.gallery-page .gallery-item img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    filter: brightness(0.95) saturate(1.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-page .gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05) saturate(1.2);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    border-color: var(--primary);
}

.inspiration-page .gallery-item img {
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(139, 115, 85, 0.2);
    filter: sepia(0.1);
    transition: all 0.5s ease;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.inspiration-page .gallery-item:hover img {
    transform: scale(1.07) translateX(5px);
    filter: sepia(0);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.35);
    border-color: var(--accent);
}

.contacts-page .gallery-item img {
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(44, 44, 44, 0.2);
    filter: opacity(0.9);
    transition: all 0.4s ease;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.contacts-page .gallery-item:hover img {
    transform: scale(1.04);
    filter: opacity(1);
    box-shadow: 0 7px 22px rgba(44, 44, 44, 0.3);
    border-color: var(--highlight);
}

.text-section {
    padding: 4rem 0;
    text-align: center;
}

.text-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--highlight);
}

.parallax-section {
    position: relative;
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    background: rgba(44, 44, 44, 0.6);
    padding: 3rem;
    text-align: center;
    color: var(--background);
}

.parallax-overlay h2 {
    color: var(--background);
}

form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--highlight);
}

form input,
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    margin-bottom: 0;
}

footer {
    background-color: var(--highlight);
    color: var(--background);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-family: 'Lora', serif;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-column p,
.footer-column a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--background);
    opacity: 0.9;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.privacy-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.privacy-links a {
    font-size: 0.9rem;
    opacity: 0.8;
}

.privacy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--highlight);
    color: var(--background);
    padding: 2rem;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.privacy-popup.show {
    transform: translateY(0);
}

.privacy-popup-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.privacy-popup p {
    flex: 1;
    min-width: 250px;
}

.privacy-popup-buttons {
    display: flex;
    gap: 1rem;
}

.privacy-popup-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--background);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.privacy-popup-btn.accept {
    background: var(--accent);
    color: var(--highlight);
}

.privacy-popup-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-page h1 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.legal-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.legal-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--highlight);
}

.legal-page p,
.legal-page ul {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you-content h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.thank-you-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    body {
        hyphens: auto;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--background);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        transform: translateX(0);
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .gallery {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .gallery .gallery-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .about-page .gallery-item img {
        width: 280px;
        height: 280px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .privacy-popup-content {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-popup-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .privacy-popup-btn {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        margin: 1.5rem 0;
    }
    
    .text-section {
        padding: 2rem 0;
    }
    
    form {
        padding: 1.5rem;
    }
    
    .about-page .gallery-item img {
        width: 250px;
        height: 250px;
    }
}

