:root {
    --blue-top: #82b4cc;
    --magenta: #e5398d;
    --light-blue: #f0f7fa;
    --star-color: #7ba6c0;
    --border: #e1e8ed;
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; color: #333; line-height: 1.4; }

/* Announcement */
.top-bar { background: var(--blue-top); color: white; padding: 10px; text-align: center; font-size: 14px; font-weight: 500; }
.top-bar a { color: white; text-decoration: underline; }

/* Header */
.main-header { border-bottom: 1px solid var(--border); padding: 15px 0; }
.header-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.header-logo img { height: 50px; }

/* Layout */
.container { display: flex; max-width: 1300px; margin: 0 auto; padding: 40px 20px; gap: 60px; }
.gallery-side { width: 55%; }
.info-side { width: 45%; }

/* Slider Fix */
.main-slider { background: #fdfdfd; border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
.main-slider .swiper-slide img { width: 100%; display: block; }
.swiper-button-next, .swiper-button-prev { color: #ccc !important; }

.thumb-slider { height: 90px; }
.thumb-slider .swiper-slide { cursor: pointer; opacity: 0.4; transition: 0.3s; }
.thumb-slider .swiper-slide-thumb-active { opacity: 1; border: 1px solid #000; }
.thumb-slider img { width: 100%; height: 100%; object-fit: cover; }

/* Info Side */
.prod-title { font-size: 34px; margin-bottom: 10px; font-weight: 600; }
.meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 25px; }
.score { font-weight: bold; font-size: 18px; }
.stars { color: var(--star-color); font-size: 14px; }
.reviews-txt { color: #666; font-size: 14px; text-decoration: underline; cursor: pointer; }

.promo-line { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 5px; }
.promo-text { color: #5a8ba5; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.main-price { font-size: 32px; font-weight: 700; color: #000; }

.quote-box { background: var(--light-blue); padding: 25px; border-radius: 4px; margin: 20px 0; }
.quote-box p { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: #1a2b3c; }
.quote-box cite { font-style: normal; color: #555; font-size: 14px; }

/* Colors */
.color-label { font-weight: bold; font-size: 14px; margin-bottom: 12px; }
.color-grid { display: flex; gap: 15px; margin-bottom: 40px; }
.color-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ddd; cursor: pointer; position: relative; }
.color-dot.active { border-color: #000; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
.is-new::after { content: 'New'; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9px; background: #333; color: white; padding: 1px 4px; border-radius: 2px; font-weight: bold; }

/* Options */
.buy-option { display: flex; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 12px; cursor: pointer; }
.buy-option.active { border-color: #333; background: #fff; }
.buy-option input { margin-right: 15px; }
.buy-option label { flex: 1; font-weight: 600; font-size: 15px; cursor: pointer; }
.opt-price { font-weight: 700; }
.opt-price del { font-weight: 400; color: #999; margin-right: 5px; }
.pink-txt { color: var(--magenta); }
.sub-link { color: #666; font-size: 14px; display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 5px 0 25px 0; }

/* Cart */
.cart-actions { display: flex; gap: 15px; margin-bottom: 15px; }
.qty-control { display: flex; border: 1px solid #ddd; border-radius: 2px; }
.qty-control button { width: 45px; height: 50px; background: none; border: none; font-size: 20px; cursor: pointer; }
.qty-control input { width: 40px; text-align: center; border: none; font-size: 18px; font-weight: bold; }
.btn-add { flex: 1; background: var(--magenta); color: white; border: none; font-size: 18px; font-weight: 700; border-radius: 3px; cursor: pointer; text-transform: uppercase; }

.guarantee-text { text-align: center; color: #5a8ba5; font-weight: bold; font-size: 15px; margin-bottom: 30px; }

/* Довгий опис */
.product-long-description { font-size: 15px; color: #444; line-height: 1.6; margin-bottom: 30px; }
.product-long-description p { margin-bottom: 15px; }

/* Charity Box */
.charity-box { background: var(--light-blue); padding: 25px; border-radius: 2px; display: flex; align-items: center; gap: 30px; }
.charity-title { font-family: Georgia, serif; font-size: 24px; color: #5a8ba5; width: 160px; line-height: 1.1; }
.charity-content { font-size: 14px; color: #333; flex: 1; }
.charity-content a { color: var(--magenta); text-decoration: underline; font-weight: 600; }

.brands-marquee {
    background-color: #ebebeb; /* Колір як на скріншоті */
    padding: 20px 0;
    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.marquee-inner {
    max-width: 1100px; /* Затискаємо до центру */
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.marquee-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #333;
    padding-right: 40px;
    white-space: nowrap;
    z-index: 5;
    background-color: #ebebeb; /* Щоб текст перекривав лого при прокрутці */
}

.marquee-window {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: scroll-left 25s linear infinite;
}

/* === Компактна секція брендів === */
/* === Фінальна компактна секція брендів === */
.brands-marquee-section {
    background-color: #e5e5e5;
    padding: 10px 0; /* Мінімальні відступи зверху/знизу */
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
    height: 80px; /* Фіксована висота всієї секції */
    display: flex;
    align-items: center;
}

.brands-marquee-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
}

.brands-marquee-title {
    font-size: 12px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 40px;
    letter-spacing: 1px;
}

.brands-marquee-slider {
    flex: 1;
    height: 100%;
}

.brands-marquee-slider .swiper-wrapper {
    /* Лінійна швидкість без ривків */
    transition-timing-function: linear !important;
}

.brands-marquee-slider .swiper-slide {
    display: flex;
    align-items: center; /* ЦЕНТРУВАННЯ ПО ВЕРТИКАЛІ */
    justify-content: center;
    width: auto !important;
    padding: 0 35px;
    height: 100%;
}

.brands-marquee-slider img {
    filter: brightness(0) opacity(0.8);
    object-fit: contain;
    display: block;
}

/* Налаштування розмірів: Marie та Cosmo тепер великі, але в рядку */
.logo-marie { height: 45px; } /* Оптимально, щоб не ламало висоту */
.logo-cosmo { height: 42px; }
.logo-vogue { height: 28px; }
.logo-gh { height: 35px; }
.logo-today { height: 35px; }

/* Якщо хочете ПРЯМ ДУЖЕ великі (до 60-70), розкоментуйте це, 
   але тоді збільште height у .brands-marquee-section до 120px */
/* 
.logo-marie { height: 65px; }
.logo-cosmo { height: 60px; } 
*/
/* ============================================================
   АДАПТИВНІСТЬ (МОБІЛЬНА ВЕРСІЯ)
   ============================================================ */

@media (max-width: 1024px) {
    .container { gap: 30px; }
}

@media (max-width: 768px) {
    /* 1. Хедер */
    .header-logo img { height: 35px; }
    .header-grid { padding: 0 15px; }

    /* 2. Контейнер (Фото зверху, інфо знизу) */
    .container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 25px;
    }

    .gallery-side, .info-side {
        width: 100%; /* Кожен блок займає всю ширину */
    }

    /* 3. Слайдер */
    .main-slider {
        aspect-ratio: 1 / 1.1; /* Робимо фото трохи вищими для мобільного */
    }
    .thumb-slider {
        height: 70px; /* Зменшуємо мініатюри */
    }

    /* 4. Тексти інфо */
    .prod-title { font-size: 26px; }
    .main-price { font-size: 28px; }
    .quote-box { padding: 15px; }
    .quote-box p { font-size: 16px; }

    /* 5. Кнопки (робимо великими для пальців) */
    .cart-actions {
        flex-direction: column; /* Кількість зверху, кнопка знизу */
        gap: 10px;
    }
    .qty-control {
        width: 100%;
        justify-content: center;
    }
    .btn-add {
        width: 100%;
        height: 55px;
    }

    /* 6. Благодійність (Вертикальне розташування) */
    .charity-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    .charity-title {
        width: 100%;
        font-size: 22px;
    }

    /* 7. Бігучий рядок брендів */
    .brands-marquee-section {
        height: 60px; /* Робимо секцію тоншою */
    }
    .brands-marquee-title {
        font-size: 10px;
        margin-right: 20px;
    }
    .brands-marquee-slider .swiper-slide {
        padding: 0 15px; /* Зближуємо логотипи ще сильніше */
    }
    
    /* Зменшуємо логотипи для мобілок */
    .logo-marie { height: 30px; }
    .logo-cosmo { height: 28px; }
    .logo-vogue { height: 18px; }
    .logo-gh { height: 22px; }
    .logo-today { height: 22px; }
}

@media (max-width: 480px) {
    .prod-title { font-size: 22px; }
    .top-bar { font-size: 12px; }
}

/* === Секція порівняння До/Після === */
.comparison-section {
    padding: 60px 0;
    background-color: #fff;
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 20px;
}

/* Зображення та бейджі */
.comparison-image-box {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.comparison-image-box img {
    width: 100%;
    display: block;
}

.badge {
    position: absolute;
    top: 20px;
    background-color: var(--magenta);
    color: white;
    padding: 8px 25px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 16px;
    z-index: 2;
}

.badge-before { left: 10px; }
.badge-after { right: 10px; }

/* Контентна частина */
.comparison-content {
    flex: 1;
}

.comp-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.comp-subtitle {
    color: #82b4cc; /* Блакитний колір з макету */
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 700;
}

.comp-text {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.comp-accent {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Іконки та особливості */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.feature-item {
    text-align: center;
}

.feature-item img {
    height: 60px;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.cta-question {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.order-button {
    display: block;
    background-color: var(--magenta);
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.order-button:hover {
    background-color: #cf327f;
}

/* АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ */
@media (max-width: 768px) {
    .comparison-container {
        flex-direction: column; /* Зображення зверху, текст знизу */
        gap: 30px;
    }

    .comp-title {
        font-size: 24px;
        text-align: left;
    }

    .comp-subtitle {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Іконки в один стовпчик на маленьких екранах */
        gap: 30px;
    }

    .badge {
        font-size: 12px;
        padding: 5px 15px;
    }
}

/* --- Стилі для секції PrimeLash --- */

.primelash-section {
    padding: 50px 20px;
    background-color: #f0f0f0; /* Світло-сірий фон */
}

.primelash-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Ліва частина з текстом */
.primelash-content {
    flex: 1; /* Займає доступний простір */
    max-width: 55%; /* Трохи більше місця для тексту */
}

.primelash-content h2 {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #2c2c2c;
}

.feature-item {
    margin-bottom: 25px;
}

.feature-item h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Іконки переваг */
.features-icons {
    display: flex;
    justify-content: space-between; /* Рівномірний розподіл на великих екранах */
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.icon-item {
    text-align: center;
    width: 100px; /* Фіксована ширина для кращого вирівнювання */
}

.icon-item img {
    height: 45px;
    margin-bottom: 10px;
}

.icon-item span {
    font-size: 14px;
    color: #444;
}

/* Права частина з фото */
.primelash-image {
    flex: 1;
    max-width: 45%;
}

.primelash-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- АДАПТИВНА ВЕРСТКА --- */

/* Планшети (до 992px) */
@media (max-width: 992px) {
    .primelash-container {
        flex-direction: column; /* Ставимо блоки один під одним */
        text-align: center; /* Центруємо весь текст */
    }

    .primelash-content,
    .primelash-image {
        max-width: 100%; /* Дозволяємо блокам займати всю ширину */
    }
    
    .features-icons {
        justify-content: center; /* Центруємо іконки */
        gap: 20px;
    }

    .primelash-image {
        margin-top: 40px; /* Відступ зверху для зображення */
    }
}

/* Мобільні телефони (до 576px) */
@media (max-width: 576px) {
    .primelash-section {
        padding: 30px 15px;
    }
    
    .primelash-content h2 {
        font-size: 28px;
    }

    .feature-item h3 {
        font-size: 20px;
    }
    
    .features-icons {
        gap: 25px;
    }

    .icon-item {
        width: 40%; /* Ставимо по дві іконки в ряд */
    }
}

/* --- Секція PrimeLash (Виправлено) --- */
.primelash-section {
    padding: 60px 0;
    background-color: #f3f3f3; /* Світло-сірий фон, як у брендів */
}

.primelash-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.primelash-content {
    flex: 1;
    text-align: left; /* Завжди зліва */
}

.primelash-main-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 35px;
    line-height: 1.2;
    color: #1a2b3c;
}

.feature-point {
    margin-bottom: 25px;
}

.feature-point h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a2b3c;
}

.feature-point p {
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

/* Іконки: Вирівнювання */
.primelash-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.p-icon-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-icon-item img {
    height: 45px;
    width: auto;
    margin-bottom: 10px;
}

.p-icon-item span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    display: block;
}

.primelash-image-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.primelash-image-side img {
    max-width: 100%;
    height: auto;
}

/* --- АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ --- */
@media (max-width: 992px) {
    .primelash-container {
        flex-direction: column;
        gap: 40px;
    }

    /* Ховаємо фото бабусі на мобілках */
    .primelash-image-side {
        display: none;
    }

    .primelash-content {
        max-width: 100%;
    }

    .primelash-main-title {
        font-size: 26px;
    }

    /* Робимо іконки по дві в ряд на телефонах, щоб було красиво */
    .primelash-icons-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .p-icon-item span {
        font-size: 13px;
    }
}


/* === Секція Гарантії (Сіре вікно) === */
.refund-section {
    padding: 60px 0;
    background-color: #fff; /* Фон основної сторінки */
    display: flex;
    justify-content: center;
}

.refund-inner-window {
    max-width: 1200px;
    width: 95%; /* Не на всю ширину, залишаємо відступи по боках */
    background-color: #f2f2f2; /* Світло-сіре вікно */
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 4px; /* Легке закруглення як на макеті */
}

.refund-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.refund-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #222;
}

.refund-subtitle {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #222;
}

.refund-text-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.refund-text-block a {
    color: #444;
    text-decoration: underline;
    font-weight: 600;
}

.refund-closing {
    font-weight: 500;
    margin-top: 10px;
}

.refund-image {
    flex: 1;
}

.refund-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заповнює свою частину вікна */
    display: block;
}

/* === АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ === */
@media (max-width: 992px) {
    .refund-inner-window {
        flex-direction: column;
        width: 90%;
    }

    /* Ховаємо зображення на мобільних пристроях */
    .refund-image {
        display: none;
    }

    .refund-content {
        padding: 40px 25px;
        text-align: left;
    }

    .refund-title {
        font-size: 24px;
    }

    .refund-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .refund-section {
        padding: 40px 0;
    }
    
    .refund-inner-window {
        width: 100%; /* На зовсім малих екранах можна на всю ширину */
        border-radius: 0;
    }
}

/* === Секція Гарантії (Сіре вікно) === */
.refund-section {
    padding: 60px 0;
    background-color: #fff; /* Фон основної сторінки */
    display: flex;
    justify-content: center;
}

.refund-inner-window {
    max-width: 1200px;
    width: 95%; /* Не на всю ширину, залишаємо відступи по боках */
    background-color: #f2f2f2; /* Світло-сіре вікно */
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 4px; /* Легке закруглення як на макеті */
}

.refund-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.refund-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #222;
}

.refund-subtitle {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #222;
}

.refund-text-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.refund-text-block a {
    color: #444;
    text-decoration: underline;
    font-weight: 600;
}

.refund-closing {
    font-weight: 500;
    margin-top: 10px;
}

.refund-image {
    flex: 1;
}

.refund-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заповнює свою частину вікна */
    display: block;
}

/* === АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ === */
@media (max-width: 992px) {
    .refund-inner-window {
        flex-direction: column;
        width: 90%;
    }

    /* Ховаємо зображення на мобільних пристроях */
    .refund-image {
        display: none;
    }

    .refund-content {
        padding: 40px 25px;
        text-align: left;
    }

    .refund-title {
        font-size: 24px;
    }

    .refund-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .refund-section {
        padding: 40px 0;
    }
    
    .refund-inner-window {
        width: 100%; /* На зовсім малих екранах можна на всю ширину */
        border-radius: 0;
    }
}

/* === FAQ Секція === */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
}

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

.faq-main-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.faq-list {
    border-top: 1px solid #ddd;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    transition: 0.3s;
}

.faq-header:hover {
    color: var(--magenta);
}

.faq-header i {
    font-size: 20px;
    transition: transform 0.4s ease;
}

/* Стан при відкритті */
.faq-item.active .faq-header i {
    transform: rotate(45deg); /* Плюс перетворюється на Х (або мінус через JS) */
}

/* Контент з плавною анімацією */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-body {
    max-height: 2000px; /* Достатня висота для розкриття */
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-content {
    padding-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.faq-content p { margin-bottom: 15px; }
.faq-content ul, .faq-content ol { padding-left: 20px; margin-bottom: 15px; }
.faq-content li { margin-bottom: 8px; }

.faq-inline-img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 4px;
}

/* Футер секції */
.faq-footer {
    margin-top: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.faq-order-btn {
    display: inline-block;
    background-color: var(--magenta);
    color: white;
    padding: 18px 80px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    transition: 0.3s;
}

.faq-order-btn:hover { background-color: #cf327f; }

.faq-guarantee {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 20px;
    color: #222;
}

.faq-guarantee img { height: 80px; }

/* Мобільна версія */
@media (max-width: 768px) {
    .faq-main-title { font-size: 26px; }
    .faq-header { font-size: 16px; }
    .faq-order-btn { width: 100%; padding: 18px 0; }
    .faq-guarantee { font-size: 16px; }
    .faq-guarantee img { height: 60px; }
}

/* === Секція Благодійності === */
.charity-mission {
    background-image: url('img/charity-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
}

/* Напівпрозорий блакитний шар поверх фону */
.charity-overlay {
    background-color: rgba(130, 180, 204, 0.2); /* Блакитний колір бренду з прозорістю */
    padding: 80px 0;
}

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

.charity-header {
    margin-bottom: 50px;
}

.charity-pre-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.charity-main-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.charity-subtitle {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Сітка карток на ПК */
.charity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.charity-card {
    background: white;
    padding: 40px 25px;
    border-radius: 4px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.charity-card:hover {
    transform: translateY(-5px);
}

.charity-icon {
    width: 70px;
    height: 70px;
    background-color: #f0f7fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.charity-icon img {
    width: 55px;
    height: auto;
}

.charity-card h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a2b3c;
}

.charity-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

/* === АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ === */
@media (max-width: 992px) {
    .charity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .charity-overlay {
        padding: 40px 0;
    }

    .charity-main-title {
        font-size: 26px;
    }

    .charity-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }

    /* На мобілці картки йдуть в ряд з блакитними межами, як на фото */
    .charity-grid {
        grid-template-columns: 1fr;
        gap: 0; /* Прибираємо стандартний зазор */
        border: 2px solid #fff; /* Зовнішня біла рамка навколо всього блоку */
        border-radius: 5px;
        overflow: hidden;
    }

    .charity-card {
        border-radius: 0;
        border-bottom: 3px solid #82b4cc; /* Блакитна лінія-розділювач */
        padding: 30px 20px;
    }

    .charity-card:last-child {
        border-bottom: none;
    }

    .charity-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
}


/* === ОНОВЛЕНИЙ КОМПАКТНИЙ ФУТЕР === */
.main-footer {
    background-color: #7ba6c0; /* Фірмовий блакитний */
    color: #fff;
    padding: 30px 0 0; /* Зменшено відступи */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.footer-left {
    flex: 0 0 auto;
}

.footer-logo-img {
    height: 35px; /* Компактний розмір */
    display: block;
    
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-info-row {
    display: flex;
    gap: 25px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.footer-legal-nav {
    display: flex;
    gap: 20px;
}

.footer-legal-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.9;
    border-bottom: 1px solid transparent;
}

.footer-legal-nav a:hover {
    border-bottom-color: #fff;
}

/* Нижня смуга */
.footer-bottom-bar {
    margin-top: 25px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.bottom-flex {
    justify-content: space-between;
}

.copyright {
    font-size: 11px;
    opacity: 0.7;
}

.payment-icons {
    display: flex;
    gap: 12px;
    font-size: 22px;
    opacity: 0.8;
}

/* === МОБІЛЬНА ВЕРСІЯ === */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-right {
        align-items: center;
    }

    .footer-info-row {
        flex-direction: column;
        gap: 10px;
    }

    .bottom-flex {
        gap: 15px;
    }
}

/* === Липка панель для мобільних (Sticky Bar) === */
.sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    z-index: 9999;
    display: none; /* Приховано за замовчуванням */
}

.sticky-bar-container {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Селектор кількості в панелі */
.sticky-qty-control {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.sticky-qty-control button {
    width: 35px;
    height: 45px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.sticky-qty-control input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: bold;
    outline: none;
}

/* Кнопка в панелі */
.sticky-btn-add {
    flex: 1;
    background-color: var(--magenta);
    color: white;
    border: none;
    height: 45px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ПОКАЗУЄМО ТІЛЬКИ НА МОБІЛЬНИХ */
@media (max-width: 768px) {
    .sticky-mobile-bar {
        display: block;
    }
    
    /* Додаємо відступ знизу для body, щоб панель не закривала футер */
    body {
        padding-bottom: 70px; 
    }
}

@media (max-width: 768px) {
    .gallery-side {
        width: 100%;
        padding: 0;           /* Прибираємо зайві відступи, які можуть штовхати слайдер */
    }

    .main-slider {
        /* Задаємо чітку пропорцію для мобільного, щоб слайдер не "сплющувався" */
        aspect-ratio: 1 / 1; 
        margin-bottom: 10px;
    }
    
    /* Стрілки навігації на мобілці часто заважають, центруємо їх відносно краю */
    .swiper-button-next, .swiper-button-prev {
        transform: scale(0.8); /* Трохи зменшуємо їх */
        top: 50% !important;   /* Строго посередині */
    }
}


/* === Секція підсумку відгуків (Pixel Perfect) === */
.reviews-summary-section {
    padding: 60px 0;
    background-color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

.reviews-main-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.reviews-summary-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

/* Ліва колонка */
.rating-left-box {
    text-align: center;
    min-width: 200px;
}

.rating-big-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
}

.rating-big-stars {
    color: #7ba6c0; /* Точний колір з макету */
    font-size: 24px;
    margin: 10px 0;
}

.rating-based-text {
    font-size: 15px;
    color: #666;
}

/* Середня колонка з графіками */
.rating-bars-middle {
    flex: 1;
    max-width: 450px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.bar-stars-label {
    width: 90px;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    margin-right: 15px;
}

.bar-stars-label .fas {
    color: #666; /* Сірі зірочки в списку */
}

.bar-line-container {
    flex: 1;
    height: 14px;
    background-color: #f2f2f2;
    border-radius: 2px;
    overflow: hidden;
    margin-right: 15px;
}

.bar-line-active {
    height: 100%;
    background-color: #7ba6c0; /* Блакитний колір смужки */
}

.bar-count-number {
    width: 60px;
    font-size: 13px;
    color: #666;
}

/* === Мобільна адаптація === */
@media (max-width: 768px) {
    .reviews-summary-flex {
        flex-direction: column;
        gap: 40px;
    }

    .rating-bars-middle {
        width: 100%;
    }

    .reviews-main-title {
        font-size: 24px;
    }

    .rating-big-number {
        font-size: 52px;
    }
}

/* === Оновлена секція відгуків (Clean) === */
.reviews-feed-section { padding: 60px 0; background-color: #fff; border-top: 1px solid #eee; }
.container-reviews { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.rev-card-item { border-bottom: 1px solid #f2f2f2; padding: 35px 0; }
.rev-user-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; position: relative; }
.rev-avatar { width: 50px; height: 50px; background: #7ba6c0; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.rev-user-meta { flex: 1; }
.rev-name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.v-tag {
    color: #74e19c !important; /* Ваш новий світло-зелений колір */
    font-size: 12px;
    margin-left: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Відступ між галочкою та текстом */
}
.rev-v-tag {
    color: #74e19c !important; /* Ваш новий світло-зелений колір */
    font-size: 12px;
    margin-left: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Відступ між галочкою та текстом */
}
.rev-loc { font-size: 13px; color: #777; }
.rev-date { position: absolute; right: 0; top: 0; font-size: 12px; color: #aaa; }

.rev-stars-blue { color: #7ba6c0; font-size: 15px; margin-bottom: 12px; }
.rev-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: #111; }
.rev-body { font-size: 16px; line-height: 1.6; color: #333; margin-bottom: 15px; }
.rev-img-box img { max-width: 250px; border-radius: 4px; border: 1px solid #eee; display: block; }

/* Логіка плавної появи */
.hidden-reviews-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease-in-out; /* Плавність */
}
.hidden-reviews-content.is-open {
    max-height: 5000px; /* Велике значення, щоб влізло все */
}

.reviews-action-center { text-align: center; margin-top: 40px; }
.btn-show-more {
    background: none;
    border: 2px solid #7ba6c0;
    color: #7ba6c0;
    padding: 16px 50px;
    font-weight: 800;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-show-more:hover { background: #7ba6c0; color: #fff; }

.reviews-guarantee-footer { margin-top: 60px; display: flex; align-items: center; justify-content: center; gap: 15px; font-weight: 700; font-size: 18px; color: #222; }
.reviews-guarantee-footer img { height: 60px; }

/* Адаптація */
@media (max-width: 768px) {
    .rev-date { display: none; }
    .rev-img-box img { max-width: 100%; }
    .reviews-guarantee-footer { font-size: 15px; }
}

/* === МОДАЛЬНЕ ВІКНО === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Напівпрозорий фон */
    display: none; /* Приховано за замовчуванням */
    justify-content: center;
    align-items: center;
    z-index: 20000; /* Поверх всього, навіть липкої панелі */
    padding: 20px;
}

.modal-window {
    background-color: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
}

.form-group input {
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #26bcc1; /* Бірюзовий фокус */
}

/* Кнопка як на скріншоті */
.modal-submit-btn {
    background-color: #7ba6c0;
    color: white;
    border: none;
    height: 55px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.modal-submit-btn:hover {
    background-color: #1ea2a7;
}

/* Помилки */
.error-msg {
    color: #ff4d4d;
    font-size: 12px;
    font-weight: 600;
    display: none;
}

.input-error {
    border-color: #ff4d4d !important;
}

/* Мобільна адаптація */
@media (max-width: 480px) {
    .modal-window { padding: 30px 20px; }
    .modal-title { font-size: 20px; }
}
/* Правила для головного слайдера */
.main-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Обрізаємо все, що виходить за межі */
    background-color: #f9f9f9;
}

/* Робимо відео ідентичним до картинок */
.main-slider .swiper-slide img,
.main-slider .swiper-slide video {
    width: 100% !important;
    height: 100% !important; /* Важливо задати 100% висоти контейнера */
    object-fit: cover;      /* Відео заповнить кадр повністю, як фото */
    display: block;
    border-radius: 4px;
}

/* Виправлення для мобільної версії */
@media (max-width: 768px) {
    .main-slider {
        /* Задаємо фіксовану пропорцію, щоб відео не "стрибало" по висоті */
        aspect-ratio: 1 / 1.1; 
    }
    
    .main-slider .swiper-slide video {
        /* На мобілках відео часто краще виглядає з contain, 
           якщо ви хочете бачити весь кадр без обрізки сторін */
        /* object-fit: contain; */ 
        
        /* Але для "влитого" вигляду залишаємо cover */
        object-fit: cover;
    }
}
/* ---------- Блок скидки: адаптив ---------- */
.price-container{position:relative;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.old-price{font-size:18px;color:#999;text-decoration:line-through}
.main-price-with-badge{display:inline-flex;align-items:center;gap:6px;font-size:26px;font-weight:700;color:black}
.discount-badge{background:#d31818;color:#fff;font-size:14px;font-weight:700;padding:2px 6px;border-radius:4px;line-height:1}

/* 375 px и уже */
@media (max-width:420px){
  .promo-line{flex-wrap:wrap}          /* переносим строку, если совсем тесно */
  .price-container{width:100%;justify-content:flex-start;margin-top:4px}
  .old-price{font-size:15px}
  .main-price-with-badge{font-size:20px;gap:4px}
  .discount-badge{font-size:12px;padding:2px 4px}
}

.opt-price-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.opt-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

.opt-price-current {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    gap: 4px;
}

.opt-discount-badge {
    background-color:#d31818;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .opt-price-container {
        gap: 4px;
    }
    
    .opt-price-old {
        font-size: 12px;
    }
    
    .opt-price-current {
        font-size: 16px;
    }
    
    .opt-discount-badge {
        font-size: 10px;
        padding: 1px 4px;
    }
}