/* =========================================
   1. Global & Reset
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Забороняємо скрол і для html, і для body */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cardo', serif;
    color: #000;
    background: #f7f7f7;
    width: 100%;
    position: relative; /* Додаткова стабілізація */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Spacer Utility */
.space {
    height: 50px;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. Header
   ========================================= */
.header {
    /* Основні стилі */
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
    padding: 20px 40px;
    
    /* "Магія" фіксації */
    position: fixed; /* Замість sticky ставимо fixed */
    top: 0;
    left: 0;
    width: 100%;     /* Обов'язково, бо fixed елементи втрачають ширину */
    z-index: 1000;   /* Щоб він був поверх усіх картинок */
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-family: 'Cardo', serif;
    font-size: 16px;
    color: #333;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.logo-container {
    text-align: center;
}

/* =========================================
   3. Hero Section
   ========================================= */
.hero {
    /* Висота: 100vh означає 100% від висоти екрана браузера */
    height: 100vh; 
    /* Ширина: на всю ширину */
    width: 100%;
    
    /* Фон: Картинка центрується і розтягується, щоб покрити все без пробілів */
    background: url('img/background.png') no-repeat center center;
    background-size: cover; 
    
    /* Центрування тексту всередині */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    
    /* Важливо: прибрати будь-які обмеження ширини, якщо вони були */
    max-width: none; 
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 35px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-button {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 35px;
    font-family: 'Cardo', serif;
    font-size: 18px;
    font-weight: 700;
}

.hero-button:hover {
    background: #fff;
    color: #000;
}

/* Чорний блок зліва знизу */
.hero-decor-style {
    position: absolute; /* Абсолютне позиціонування відносно батька (.hero) */
    bottom: 0;          /* Притиснути до самого низу */
    left: 40px;         /* Відступ зліва (такий самий, як у хедері, щоб було рівно) */
    
    background-color: #000;
    color: #fff;
    padding: 25px 40px; /* Внутрішні відступи, щоб блок був широким */
    
    font-family: 'Cardo', serif;
    font-size: 18px;
    z-index: 10;        /* Щоб точно був поверх картинки */
    
    /* Необов'язково: плавна поява при наведенні, якщо захочеш зробити це посиланням */
    cursor: pointer;
}

/* =========================================
   4. Features Strip
   ========================================= */
.features-strip {
    display: flex;
    justify-content: center;
    gap: 150px;
    padding: 40px;
    background: #f9f9f9;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #333;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-item img {
    width: 40%;
    height: auto;
}

/* Gallery Strip (Small photos below features) */
.gallery-strip {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-photo {
    background-color: #ccc;
}

/* =========================================
   5. Product Showcase (Zig-Zag)
   ========================================= */
.product-showcase {
    /* Combined styles from both previous declarations */
    margin-top: 30px;
    padding: 0;
    width: 100%;
}

/* Common Layout for Products */
.product-layout,
.product-layout-reverse {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 500px;
    gap: 80px;
}

/* Specific: Reverse direction for the alternating layout */
.product-layout-reverse {
    flex-direction: row-reverse;
}

/* Product Info Column */
.product-info {
    flex: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text Content Wrappers */
.info-content {
    padding-left: 40px;
    text-align: right;
}

.info-content-reverse {
    max-width: 450px;
    padding-right: 40px;
    text-align: left;
}

/* Product Typography */
.product-name {
    font-family: 'Roboto', sans-serif;
    font-size: 31px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-type {
    font-style: italic;
    color: #000;
    margin-bottom: 18px;
}

.price-wrap {
    font-family: 'Cardo', serif;
    margin-bottom: 20px;
    font-size: 15px;
}

.product-desc,
.product-variations {
    font-size: 18px;
    color: #54595f;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-variations {
    font-size: 16px;
}

.shop-link {
    border-bottom: 1px solid #000;
    padding-bottom: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
}

/* Product Image Column */
.product-image {
    flex: 0.7;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-awards-image {
    margin-top: 40px;
}

/* =========================================
   6. Design Values (About Section)
   ========================================= */
.design-values {
    padding: 60px 0 ;
    text-align: center;
    height: auto;
}

.values-grid {
    display: flex;
    flex: 1;
    justify-content: space-between;
    height: auto;
}

.value-item {
    display: flex;          /* 1. Вмикаємо Flexbox */
    flex-direction: column; /* 2. Кажемо шикувати елементи в стовпчик */
    align-items: center;    /* 3. Центруємо по горизонталі */
    width: 360px;
    height: auto; 
    min-height: 370px;
    margin: 0 auto;
}

.item-white {
    background-color: #ffffff;
}

.item-gray {
    background-color: #f8f8f8;
}

.value-item:last-child {
    border: none;
}

.value-svg-box {
    margin: 60px auto 20px;
    /* Size is controlled by SVG attributes, but we can enforce centering */
    display: flex;
    justify-content: center;
}

.value-item h3 {
    font-family: 'Cardo', serif;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.value-item p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    margin-left: 15px;
    margin-right: 15px;
    line-height: 1.5;
    height: 60px;
}

.learn-more {
    text-decoration: underline;
    font-size: 14px;
}

/* =========================================
   7. Stories & Instagram
   ========================================= */
.gallery-section {
    padding: 60px 0 100px;
    text-align: center;
    height: auto;
}

.center-title {
    font-family: 'Cardo', serif;
    font-size: 30px;
    margin-bottom: 10px;
}

.center-sub {
    color: #666;
    margin-bottom: 40px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px; 
    margin: 40px auto 30px;
}

.insta-grid img {
    width: 100%;  
    height: 100%;     
    object-fit: cover; 
    display: block;    /* Прибирає мікро-відступ знизу */
}

/* Dots Indicator */
.dots-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.square-dot {
    width: 8px;
    height: 8px;
    background-color: #000;
    opacity: 1;
    display: block;
}

/* =========================================
   8. Testimonial Section
   ========================================= */
.testimonial-section {
    padding: 60px 0;
    margin-top: 0px;
    text-align: center;
}

.testimonial-text {
    font-family: 'Cardo', serif;
    font-style: italic;
    font-size: 24px;
    line-height: 1.6;
    color: #000;
    max-width: 900px;
    margin: 0 auto 30px;
}

.testimonial-author {
    display: block;
    font-family: 'Cardo', serif;
    font-size: 14px;
    font-style: normal;
    color: #000;
    margin-bottom: 40px;
}

.dots-indicator.small .square-dot {
    width: 4px;
    height: 4px;
    gap: 15px;
}

/* =========================================
   9. Press Section
   ========================================= */
.press-section {
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.press-title {
    font-family: 'Cardo', serif;
    font-size: 24px;
    margin-bottom: 30px;
    color: #454545;
    font-weight: 400;
}

.press-logos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   10. Footer
   ========================================= */
.main-footer {
    background-color: #eee;
    color: #000;
    padding-top: 60px;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Footer Links Group */
.footer-columns-group {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-family: 'Cardo', serif;
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-family: 'Cardo', serif;
    font-size: 15px;
    color: #333;
}

.footer-col ul li a:hover {
    color: #000;
}

/* Footer Sidebar (Newsletter & Trust) */
.footer-sidebar {
    text-align: center;
    max-width: 300px;
}

.newsletter-label {
    font-family: 'Cardo', serif;
    margin-bottom: 15px;
    font-size: 15px;
}

.newsletter-btn {
    background: #fff;
    border: 1px solid #000;
    padding: 10px 20px;
    width: 100%;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 30px;
}

.newsletter-btn:hover {
    background: #000;
    color: #fff;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 15px;
}

/* Bottom Copyright Row */
.footer-bottom-row {
    padding: 40px 0;
    font-size: 12px;
    color: #666;

}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.payment-icons-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;         /* Дозволяє перенос на новий рядок */
    justify-content: center; /* Центрує іконки, якщо вони перенеслись */
}

/* =========================================
11. Responsive Design (Media Queries)
========================================= */

/* Tablet & Mobile Layout Changes */
@media (max-width: 1200px) {
    /* Stack products vertically */
    .product-layout,
    .product-layout-reverse {
        flex-direction: column-reverse;
        /* Image top, Text bottom */
        height: auto;
        min-height: auto;
        gap: 0;
    }

    .product-info,
    .product-image {
        flex: none;
        width: 100%;
    }

    .product-info {
        padding: 40px 20px;
        text-align: center;
    }

    .design-awards-image {
        margin-left: auto;
        margin-right: auto;
    }

    /* Reset specific text alignments for mobile */
    .info-content,
    .info-content-reverse {
        text-align: center;
        padding: 0;
        max-width: 100%;
    }

    /* Footer changes */
    .footer-content-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .footer-columns-group {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
        text-align: center;
    }

    .footer-sidebar {
        margin: 0 auto;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .nav-menu{
        display: none; /* Ховаємо меню на маленьких екранах */
    }
}

/* === Mobile Specific (Оновлений та Виправлений) === */
@media (max-width: 768px) {
    /* --- 1. Header --- */
    .header-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    .logo-container img { max-height: 40px; margin-right: auto; }

    /* --- 2. Hero Section (ВИПРАВЛЕННЯ ТЕКСТУ) --- */
    .hero {
        align-items: center; /* Центрування по вертикалі */
    }

    /* Це виправляє ту саму проблему з "фіксованим" екраном */
    .hero > div {
        width: 100%;         /* Блок займає 100% ширини екрана */
        max-width: 100%;     /* Не дозволяємо вилазити */
        padding: 0 20px;     /* Внутрішні відступи, щоб текст не лип до країв */
        box-sizing: border-box; /* Враховуємо відступи в ширину */
    }
    
    .hero-title {
        font-size: 26px;
        width: 100%;         /* Текст на всю ширину контейнера */
        margin: 0 0 30px 0;  /* Забираємо бокові відступи, залишаємо нижній */
        line-height: 1.3;
    }

    .hero-decor-style {
        left: 0;
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 14px;
    }

    /* --- 3. Features Strip (Іконки зверху) --- */
    .features-strip {
        padding: 30px 20px;
        gap: 20px;
        justify-content: center; 
    }
    
    .feature-item {
        flex-direction: column; /* Іконка над текстом */
        width: 45%; 
        text-align: center;
        gap: 10px;
        align-items: center;
    }

    .feature-item img {
        width: 35px;
        height: auto;
    }

    /* --- 4. Gallery & Products --- */
    .gallery-strip { flex-wrap: wrap; }
    .gallery-photo { width: 50%; height: 150px; }
    .gallery-photo img { width: 100%; height: 100%; object-fit: cover; }

    .product-layout, .product-layout-reverse {
        flex-direction: column-reverse;
        gap: 0;
    }
    .product-image { width: 100%; height: 350px; }
    .product-image img { object-fit: cover; }
    
    .product-info { padding: 40px 20px; text-align: center; }
    .info-content, .info-content-reverse { text-align: center; padding: 0; }
    
    /* Footer & Others */
    .values-grid { 
        flex-direction: column;
        gap: 30px; /* Додаємо відступ між плитками по вертикалі */
    }

    .value-item { 
        border-right: none; 
        border-bottom: 1px solid #eee; 
        padding-bottom: 30px; 
        
        /* ВАЖЛИВО: Щоб плитка не була ширша за екран телефону */
        width: 100%; 
        max-width: 360px; /* Але не більше 360px */
    }
    
    .insta-grid { grid-template-columns: 1fr; }

    .footer-content-wrapper, .footer-columns-group, .bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* === Extra Large Screens (2K, 4K монітори) === */
@media (min-width: 2000px) {
    /* Збільшуємо контейнер для дуже широких екранів */
    .container, 
    .header-inner, 
    .press-logos-container {
        max-width: 2000px;
    }

    .footer-content-wrapper,
    .bottom-flex {
        max-width: 1600px;
    }

    /* Продукти робимо ширшими */
    .product-layout,
    .product-layout-reverse {
        max-width: 2000px;
        margin-left: auto;
        margin-right: auto;
    }

    .insta-grid{
        gap: 120px;
    }

    /* Збільшуємо шрифт Hero заголовка*/
    .hero-title {
        font-size: 60px; 
        max-width: 2000px;
    }
    
    /* Збільшуємо висоту головного банера*/
    .hero {
        height: 1600px;
    }
}