body {
    background-image: url('https://cloud.bykosmetika.ru/index.php/apps/theming/image/background?v=79');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
}

.logo {
    display: block;
    max-width: 120px;
    margin: 0 auto 10px;
}

.chat-box {
    min-height: 200px;
    max-height: 60vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
}

.message {
    margin-bottom: 15px;
}
.user strong {
    color: #0d6efd;
}
.ai strong {
    color: #28a745;
}

/* 🔹 Индикатор ожидания */
.thinking {
    display: none;
    text-align: center;
    padding: 12px;
    color: #6c757d;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.thinking.show {
    display: block;
    opacity: 1;
}

/* 🔹 Таймер */
#timer {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}
#warning {
    display: none;
    text-align: center;
    color: #dc3545;
    font-weight: 500;
    margin-bottom: 10px;
}

/* 🔹 Блок бренда */
.brand-block {
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 10px 15px;
    animation: fadeInBrand 0.5s ease;
}
@keyframes fadeInBrand {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.brand-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d6efd;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

/* 🔹 Сетка карточек внутри блока бренда */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 5px;
    animation: fadeInGrid 0.4s ease-in;
}
@keyframes fadeInGrid {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🔹 Карточки товаров */
.product-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInCard 0.6s ease forwards;
}
@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1s; }

.product-card:hover {
    background-color: #eef1f4;
    transform: translateY(-2px);
}

.product-card h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.product-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: all 0.4s ease;
    font-size: 0.9rem;
}

.product-card.open .product-description {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.product-card .toggle-indicator {
    float: right;
    font-size: 1.2rem;
    color: #888;
    transition: transform 0.3s ease;
}
.product-card.open .toggle-indicator {
    transform: rotate(180deg);
}

/* 🔹 Отказ от ответственности */
.disclaimer {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 10px;
}
.disclaimer-toggle {
    background: none;
    border: none;
    color: #0d6efd;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.disclaimer-toggle:hover {
    color: #0056b3;
    text-decoration: underline;
}
.disclaimer-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.5s ease;
}
.disclaimer-content.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
}

@media (max-width: 576px) {
    h1 { font-size: 1.5rem; text-align: center; }
    .chat-box { max-height: 65vh; }
    .products-grid { grid-template-columns: 1fr; }
}
