:root {
    --dark: #1a1a1a;
    --light-bg: #fdfdfd;
    --accent: #5e6b5a; /* Глибокий лісовий */
    --gold: #c5a059;
    --footer-bg: #151d16; /* Дуже темний зелений */
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--light-bg);
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }

.container { max-width: 1250px; margin: 0 auto; padding: 0 30px; }
.section-padding { padding: 100px 0; }
.center-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; }

/* Header - Виправлено появу */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    display: flex;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

header.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 35px; }
nav ul li a { text-decoration: none; color: var(--dark); font-weight: 400; font-size: 0.9rem; letter-spacing: 1px; transition: 0.3s; }
nav ul li a:hover { color: var(--gold); }

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)), 
                url('https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?auto=format&fit=crop&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 { font-size: clamp(4rem, 10vw, 9rem); font-weight: 300; letter-spacing: 20px; animation: fadeIn 2s ease; }

@keyframes fadeIn { from { opacity: 0; letter-spacing: 40px; } to { opacity: 1; letter-spacing: 20px; } }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 3rem; margin-bottom: 30px; }
.about-text p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; color: #555; }
.about-img img { width: 100%; border-radius: 2px; box-shadow: 20px 20px 0 var(--accent); }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 250px); gap: 15px; }
.gallery-item { background-size: cover; background-position: center; transition: 0.5s; cursor: pointer; }
.gallery-item:hover { filter: brightness(1.1); transform: scale(1.02); }
.large { grid-column: span 2; grid-row: span 2; }
.tall { grid-row: span 2; }

/* Cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.card { background: white; padding: 35px; border: 1px solid #eee; transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: var(--gold); }

.card-meta { margin-top: 10px; font-size: 0.8rem; color: #888; display: flex; gap: 15px; }
.price-box { margin: 25px 0; }
.amount { font-size: 1.8rem; font-weight: 600; color: var(--accent); }
.amenities-list { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.amenities-list li { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; color: #444; }
.amenities-list i { color: var(--gold); width: 20px; }

.btn { padding: 15px; background: var(--accent); color: white; border: none; cursor: pointer; letter-spacing: 1px; transition: 0.3s; }
.btn:hover { background: var(--dark); }
.dark-btn { background: var(--dark); padding: 15px 40px; width: auto; }

/* Contact Section */
.contact-section { background: #f4f4f4; padding: 80px 40px; margin: 100px auto; border-radius: 5px; }
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input, textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ccc; background: white; font-family: inherit; }

/* Footer - Новий стиль */
footer { background: var(--footer-bg); color: #c4c4c4; padding: 80px 0 40px 0; }
.footer-container { 
    max-width: 1250px; margin: 0 auto; padding: 0 30px;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px;
}
.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #c4c4c4; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 5px; }
.footer-col p { margin-bottom: 15px; line-height: 1.6; }
.footer-col i { margin-right: 10px; color: var(--gold); }

.socials { display: flex; gap: 20px; margin-top: 20px; }
.socials a { color: white; font-size: 1.2rem; transition: 0.3s; }
.socials a:hover { color: var(--gold); }

.dev-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.copyright { margin-top: 30px; font-size: 0.8rem; opacity: 0.5; }


@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; }
    .form-group { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; letter-spacing: 10px; }
    header { padding: 0 10px; }
    .logo { font-size: 1.2rem; }
}