/* Базові змінні та скидання */
: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 {
    height: 600px; 
    background-size: cover; 
    background-position: center;
    display: flex;
    align-items: center;
    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; }

/* ПЕРЕВАГИ (Чому обирають нас) - Відступи зменшено на 50% */
.features { 
    padding: 30px 0 60px; /* Зменшено верхній padding */
    background: var(--bg-light); 
    text-align: center; 
}
.features .section-header {
    margin-top: 30px; /* Зменшено верхній margin для заголовка */
}
.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%; }

/* КАРТА ТА КОНТАКТИ - Відступи зменшено на 50% */
.contacts-section { 
    background: var(--bg-light); 
    padding: 30px 0 60px; /* Зменшено верхній padding */
}
.contacts-section .section-header {
    margin-top: 30px; /* Зменшено верхній margin для заголовка */
}
.contacts-grid { display: grid; grid-template-columns: 0.25fr 0.75fr; gap: 40px; align-items: center; }
.contact-item { margin-bottom: 20px; }
.contact-item h4 { font-size: 16px; margin-bottom: 5px; color: var(--primary); }

/* Адаптивність для Google iframe */
.contacts-map { width: 100%; height: 100%; min-height: 400px; }
.contacts-map iframe { width: 100%; height: 100%; border-radius: 8px; min-height: 400px; }

/* 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); }
}

@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 { height: 500px; padding: 60px 0; }
    .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; }
    .footer__inner { grid-template-columns: repeat(2, 1fr); }
    
    .contacts-map iframe { min-height: 300px; }
}

@media (max-width: 480px) {
    .hero { height: 400px; } 
    .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;
}


















/* Стилі для сторінки політики */
.policy-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.policy-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.policy-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary);
}

.last-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.policy-content section {
    margin-bottom: 30px;
}

.policy-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.policy-content p {
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.7;
}

.policy-content a {
    color: var(--accent);
    text-decoration: underline;
}

.policy-note {
    margin-top: 40px;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .policy-page { padding: 40px 0; }
    .policy-content { padding: 20px; }
    .policy-content h1 { font-size: 28px; }
}



/* Стилі для інформаційних сторінок (Доставка, Оплата) */
.page-hero {
    background-color: var(--primary);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.section-title-custom {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.section-title-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.info-page section {
    padding: 60px 0;
}

.bg-light-section {
    background-color: var(--bg-light);
}

/* Картки доставки */
.methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.method-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.method-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.method-header i {
    font-size: 32px;
    color: var(--accent);
}

.method-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.method-list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.note-box {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    background: #fff9f4;
    padding: 20px;
    border-left: 4px solid var(--accent);
    align-items: center;
}

/* Оплата */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.payment-item {
    display: flex;
    gap: 20px;
}

.payment-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.payment-info {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.payment-info p {
    margin-bottom: 10px;
    font-size: 15px;
}

/* CTA блок */
.cta-box {
    background: var(--bg-light);
    padding: 50px;
    text-align: center;
    border-radius: 12px;
}

.cta-contacts {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

/* Адаптивність */
@media (max-width: 768px) {
    .methods-grid, .payment-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 32px; }
    .cta-box { padding: 30px 15px; }
}


/* Додаткові стилі для сторінки Повернення */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.condition-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
}

.condition-card i {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 15px;
}

.warning-box {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    background: #fff4f4;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #e74c3c;
}

.warning-icon i {
    font-size: 24px;
    color: #e74c3c;
}

.defect-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.status-icon.success { color: var(--new-color); font-size: 20px; }

/* Кроки (Steps) */
.steps-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
}

/* Порада (Tip) */
.tip-box {
    background: #eef7ff;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.tip-box i {
    font-size: 40px;
    color: #3498db;
}

.tip-content h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary);
}

.custom-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.custom-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--new-color);
}

@media (max-width: 768px) {
    .defect-content, .steps-horizontal { flex-direction: column; text-align: center; }
    .step:not(:last-child) { margin-bottom: 30px; }
    .tip-box { flex-direction: column; text-align: center; }
}











