/* assets/css/style.css */

/* Цвета темы */
:root {
    --nutrix-primary: #1aa37a;
    --nutrix-primary-dark: #13835f;
    --nutrix-accent: #f9b234;
    --nutrix-bg-soft: #f5f7fa;
    --nutrix-text-main: #1e293b;
    --nutrix-border-soft: #e2e8f0;
}

/* Базовая типографика */
.body-nutrix {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--nutrix-text-main);
    background-color: var(--nutrix-bg-soft);
}

/* Логотип */
.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nutrix-primary), var(--nutrix-accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.text-primary-nutrix {
    color: var(--nutrix-primary) !important;
}

/* Кнопки */
.btn-primary-nutrix {
    background: var(--nutrix-primary);
    border-color: var(--nutrix-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding-inline: 1.8rem;
    padding-block: 0.65rem;
    box-shadow: 0 8px 18px rgba(26, 163, 122, 0.28);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-primary-nutrix:hover,
.btn-primary-nutrix:focus {
    background: var(--nutrix-primary-dark);
    border-color: var(--nutrix-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(26, 163, 122, 0.32);
}

.btn-outline-nutrix {
    border-radius: 999px;
    border-color: var(--nutrix-primary);
    color: var(--nutrix-primary);
    font-weight: 500;
}

.btn-outline-nutrix:hover {
    background-color: var(--nutrix-primary);
    color: #fff;
}

/* Sticky footer */
.footer-nutrix {
    font-size: 0.85rem;
}

/* Карточки */
.card-nutrix {
    border-radius: 18px;
    border: 1px solid var(--nutrix-border-soft);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
    background-color: #fff;
}

/* Hero квиза */
.quiz-hero img {
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Формы */
.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--nutrix-border-soft);
    padding-block: 0.6rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nutrix-primary);
    box-shadow: 0 0 0 0.18rem rgba(26, 163, 122, 0.18);
}

/* Радио и чекбоксы — перекрашиваем */
input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--nutrix-primary);
}

/* Текущий вопрос / прогресс */
.quiz-step-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.quiz-progress {
    height: 0.5rem;
    border-radius: 999px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.quiz-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--nutrix-primary), var(--nutrix-accent));
    width: 0;
    transition: width 0.4s ease-out;
}

/* Кнопки квиза */
.quiz-next-btn {
    display: inline-block;
    min-width: 220px;
    text-align: center;
    margin-top: 1rem;
}

.quiz-back-btn {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Прогресс бары "Calculating" */
.progress-nutrix {
    height: 0.6rem;
    border-radius: 999px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.progress-nutrix-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--nutrix-primary), var(--nutrix-accent));
    width: 0;
}

/* Upsell карточки */
.product-card {
    border-radius: 18px;
    border: 1px solid var(--nutrix-border-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

/* Мелочи */
.badge-soft {
    background-color: rgba(26, 163, 122, 0.08);
    color: var(--nutrix-primary);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
}

@media (max-width: 575.98px) {
    .quiz-next-btn {
        width: 100%;
    }
}
