/* ======== GLOBAL STYLES ======== */
:root {
    --bg-dark: #2B2B2B;
    --bg-light: #3a3a3a;
    --wood-brown: #6F4E37;
    --accent-beige: #D2B48C;
    --text-light: #FFFFFF;
    --text-dark: #e0e0e0;
    --font-family: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--accent-beige); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

a {
    color: var(--accent-beige);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-light);
}

.page-section {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--bg-light);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-beige);
    color: var(--bg-dark);
    border: 2px solid var(--accent-beige);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-beige);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

/* ======== HEADER ======== */
.header {
    background-color: rgba(43, 43, 43, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-link {
    margin: 0 15px;
    color: var(--text-light);
    font-weight: 600;
}

.lang-switcher .lang-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1rem;
    margin-left: 5px;
    padding: 5px;
    transition: color 0.3s;
}

.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn.active {
    color: var(--accent-beige);
}

/* ======== HERO SECTION ======== */
.hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDEzfHxtb2Rlcm4lMjB3b29kZW4lMjBob3VzZSUyMGV4dGVyaW9yfGVufDB8fHx8MTY3ODg2NjE5MQ&ixlib=rb-4.0.3&q=80&w=1080');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* ======== CALCULATOR ======== */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid var(--wood-brown);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 1.1rem;
}

.radio-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    color: var(--text-dark);
}

.radio-group input {
    margin-right: 10px;
}

.calc-result {
    text-align: center;
    background: url('https://www.transparenttextures.com/patterns/wood-pattern.png') var(--bg-dark);
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-result p {
    font-size: 1.2rem;
    color: var(--accent-beige);
}

#total-cost {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

#cost-details h4 {
    color: var(--accent-beige);
    margin-bottom: 15px;
}

#details-list {
    list-style: none;
    color: var(--text-dark);
}
#details-list li {
    margin-bottom: 5px;
}

/* ======== STAGES SECTION (2x2 GRID) ======== */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 30px;
}

.stage-card {
    background-color: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center; 
    padding-bottom: 20px;
}

.stage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.stage-card h3 {
    padding: 20px 20px 0;
}

.stage-img {
    width: 100%;
    height: 220px; /* Менша висота зображення */
    object-fit: cover;
    margin-bottom: 15px;
}

.stage-card p {
    padding: 0 20px;
}

/* ======== CONTACT SECTION ======== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info ul {
    list-style: none;
    font-size: 1.1rem;
}

.contact-info li {
    margin-bottom: 15px;
}

.map-container iframe {
    border-radius: 10px;
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--bg-light);
    padding: 20px 0;
    text-align: center;
    color: var(--text-dark);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ======== STICKY BUTTONS ======== */
.sticky-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sticky-btn {
    background-color: var(--accent-beige);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.sticky-btn span {
    display: none; /* Hide text on desktop */
}

/* ======== COOKIE CONSENT ======== */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: bottom 0.5s ease;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-consent p {
    margin: 0 20px 0 0;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav { display: none; } /* Simple hiding for demo */

    .calculator-wrapper, .contact-container, .stages-grid {
        grid-template-columns: 1fr; 
    }
    
    .footer-container {
        flex-direction: column;
    }
    .footer-container p {
        margin-bottom: 10px;
    }

    .sticky-btn {
        width: auto;
        border-radius: 30px;
        padding: 10px 20px;
    }
    .sticky-btn span {
        display: inline;
        margin-left: 10px;
    }
    .sticky-buttons {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--bg-light);
        padding: 10px 0;
        margin: 0;
    }
}