/* Базові змінні та скидання */
:root {
    --primary: #2b2b2b;
    --accent: #d2a98e;
    --accent-hover: #b89178;
    --bg-light: #f9f9f9;
    --text: #333;
    --text-muted: #777;
    --sale-color: #e74c3c;
    --new-color: #2ecc71;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); background: #fff; line-height: 1.5; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }
.mt-20 { margin-top: 20px; }

/* Кнопки */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 12px 20px; border-radius: 4px; font-weight: 600;
    cursor: pointer; transition: var(--transition); border: none; font-size: 14px;
    width: 100%; text-transform: uppercase;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--large { padding: 15px 40px; font-size: 16px; background: var(--accent); color: #fff; text-transform: uppercase; width: auto; }

/* Шапка */
.header { border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 100; }
.header__inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 40px; }
.nav__list { display: flex; gap: 30px; }
.nav__link { font-weight: 500; text-transform: uppercase; font-size: 14px; }
.nav__link:hover { color: var(--accent); }
.header__contacts .phone-link { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.phone-icon { width: 20px; height: 20px; }

/* Бургер меню */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 25px; height: 3px; background: var(--primary); transition: var(--transition); }

/* Головний банер */
.hero {
    background-size: cover; background-position: center;
    padding: 100px 0; text-align: center; color: #fff; position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}
.hero__content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 42px; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 18px; margin-bottom: 30px; }

/* Секції загальне */
.section-header { text-align: center; margin: 60px 0 40px; }
.section-title { font-size: 32px; font-weight: 600; text-transform: uppercase; }
.title-line { margin: 15px auto 0; height: 2px; }

/* Переваги */
.features { padding: 60px 0; background: var(--bg-light); text-align: center; }
.features__grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}
.feature-card img { width: 60px; height: 60px; margin: 0 auto 20px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* Товари */
.products__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.product-card { 
    border: 1px solid #eee; border-radius: 8px; padding: 15px; 
    text-align: center; position: relative; transition: var(--transition); 
    background: #fff; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-5px); }
.product-card__img img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 15px; }
.product-card__title { font-size: 14px; font-weight: 500; margin-bottom: 10px; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.product-card__price { margin-bottom: 15px; font-weight: 700; font-size: 18px; }
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: 14px; margin-left: 10px; font-weight: 400; }
.price-new { color: var(--sale-color); }

/* Плашки товарів */
.product-badge {
    position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 4px;
    color: #fff; font-size: 12px; font-weight: 600; z-index: 2;
}
.badge-sale { background-color: var(--sale-color); }
.badge-new { background-color: var(--new-color); }

.product-card__actions { margin-top: auto; width: 100%; }

/* =========================================
   КАРТА ТА КОНТАКТИ (Оновлено)
   ========================================= */
.contacts-section { background: var(--bg-light); padding: 60px 0; }

.contacts-grid { 
    display: grid; 
    grid-template-columns: 260px 1fr; /* Текст займає 400px, карта - весь залишок */
    gap: 40px; 
    align-items: center; 
}

.contact-item { margin-bottom: 20px; }
.contact-item h4 { font-size: 16px; margin-bottom: 5px; color: var(--primary); }

.contacts-map {
    width: 100%;
}

.contacts-map iframe { 
    width: 100%; 
    height: 500px; /* Оптимальна висота для десктопа */
    border: none;
    border-radius: 8px; 
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* FAQ Акордеон */
.faq { padding-bottom: 60px; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border: 1px solid #ddd; margin-bottom: 10px; border-radius: 4px; overflow: hidden; }
.accordion-header {
    width: 100%; text-align: left; padding: 20px; background: #fff; border: none;
    font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px; background: #fafafa; }
.accordion-content p { padding: 15px 0; color: var(--text-muted); }
.accordion-item.active .accordion-content { max-height: 300px; }
.icon img { width: 20px; }

/* Підвал */
.footer { background: #222; color: #fff; padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer h4 { margin-bottom: 20px; font-size: 18px; border-bottom: 1px solid #444; padding-bottom: 10px; display: inline-block;}
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent); }
.socials { display: flex; gap: 15px; }
.socials img { width: 30px; filter: invert(1); }
.footer__bottom { border-top: 1px solid #333; padding: 20px 0; font-size: 14px; color: #aaa; }
.flex-bottom { display: flex; justify-content: space-between; }
.flex-bottom span { color: var(--accent); font-weight: bold; }

/* =========================================
   АДАПТИВНІСТЬ
   ========================================= */
@media (max-width: 1024px) {
    .products__grid { grid-template-columns: repeat(3, 1fr); }
    .contacts-grid { grid-template-columns: 350px 1fr; }
}

@media (max-width: 768px) {
    .header__contacts { display: none; }
    .burger { display: flex; z-index: 102; }
    
    .nav {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
        background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex; align-items: center; justify-content: center; transition: 0.3s; z-index: 101;
    }
    .nav.active { right: 0; }
    .nav__list { flex-direction: column; text-align: center; gap: 30px; }
    
    .burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero h1 { font-size: 32px; }
    .features__grid { grid-template-columns: 1fr; }
    .products__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    /* Карта на планшетах та мобільних */
    .contacts-grid { grid-template-columns: 1fr; }
    .contacts-map iframe { height: 350px; }
    
    .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .products__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; text-align: center; }
    .footer h4 { margin: 0 auto 20px; }
    .socials { justify-content: center; }
    .flex-bottom { flex-direction: column; text-align: center; gap: 10px; }
}


/* =========================================
   СТОРІНКА ТОВАРУ (PRODUCT PAGE)
   ========================================= */
.product-page { padding: 40px 0 80px; }

.breadcrumbs { margin-bottom: 30px; font-size: 14px; color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.product-single { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: start;
}

/* Галерея */
.main-image { 
    border: 1px solid #eee; 
    border-radius: 8px; 
    overflow: hidden; 
    margin-bottom: 20px;
    background: #fff;
}
.main-image img { width: 100%; height: 500px; object-fit: contain; }

.thumbnails { display: flex; gap: 15px; }
.thumb { 
    width: 80px; height: 80px; 
    object-fit: cover; 
    border: 2px solid #eee; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: var(--transition);
}
.thumb:hover, .thumb.active { border-color: var(--accent); }

/* Деталі */
.product-title { font-size: 28px; margin-bottom: 10px; line-height: 1.2; }
.product-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 25px; }

.current-price { font-size: 32px; font-weight: 700; color: var(--sale-color); margin-right: 15px; }
.old-price { font-size: 20px; text-decoration: line-through; color: var(--text-muted); }

.product-description { margin: 30px 0; border-top: 1px solid #eee; padding-top: 20px; color: #555; }

.product-options { margin-bottom: 30px; }
.product-options label { display: block; font-weight: 600; margin-bottom: 10px; }
.product-select { 
    width: 100%; max-width: 300px; padding: 12px; 
    border: 1px solid #ddd; border-radius: 4px; 
    font-family: inherit; font-size: 16px;
}

.btn--buy { width: 100%; max-width: 350px; }

.product-extra-info { margin-top: 40px; background: #fff; padding: 20px; border-radius: 8px; border: 1px dashed var(--accent); }
.product-extra-info p { margin-bottom: 10px; font-size: 14px; }

/* Адаптивність для картки товару */
@media (max-width: 992px) {
    .product-single { grid-template-columns: 1fr; gap: 40px; }
    .main-image img { height: 400px; }
}

@media (max-width: 480px) {
    .product-title { font-size: 22px; }
    .main-image img { height: 300px; }
}




/* ... попередні стилі залишаються ... */

.header__inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.header__right { display: flex; align-items: center; gap: 20px; }

/* Приховуємо мобільний телефон за замовчуванням (на десктопі) */
.header__mobile-phone { display: none; }

.header__contacts .phone-link { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.phone-icon { width: 20px; height: 20px; }

/* =========================================
   АДАПТИВНІСТЬ (Зміни для мобільної шапки)
   ========================================= */

@media (max-width: 768px) {
    .header__contacts { display: none; } /* Ховаємо десктопний текст */
    
    .header__mobile-phone { 
        display: flex; 
        align-items: center; 
        justify-content: center;
        width: 40px; 
        height: 40px; 
        background: var(--bg-light); 
        border-radius: 50%;
        transition: var(--transition);
    }
    .header__mobile-phone:active { background: var(--accent); }
    .header__mobile-phone .phone-icon { width: 18px; height: 18px; }

    .burger { display: flex; z-index: 102; }
    
    /* Навігація */
    .nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex; align-items: center; justify-content: center; transition: 0.3s; z-index: 101;
    }
    .nav.active { right: 0; }
    /* ... решта стилів ... */
}


/* =========================================
   МОДАЛЬНЕ ВІКНО ТА ФОРМА ЗАМОВЛЕННЯ
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    transform: translateY(-20px);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--sale-color);
}

.modal-title {
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: var(--sale-color);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
}

.w-100 {
    width: 100%;
    margin-top: 10px;
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    display: none;
    padding: 12px;
    border-radius: 4px;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}





