.foodzy-calculator {
    --foodzy-primary: #6C4186;
    --foodzy-primary-dark: #56346B;
    --foodzy-yellow: #f2d94e;
    --foodzy-purple: #6C4186;
    --foodzy-ink: #202020;
    --foodzy-muted: #68707a;
    --foodzy-border: #d9dee5;
    --foodzy-bg: #fffdf5;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(108, 65, 134, .12);
    color: var(--foodzy-ink);
    font-family: inherit;
}

.foodzy-calculator *,
.foodzy-calculator *::before,
.foodzy-calculator *::after { box-sizing: border-box; }

.foodzy-calculator__header { text-align: center; margin-bottom: 34px; }
.foodzy-calculator__eyebrow,
.foodzy-result__eyebrow {
    margin: 0 0 8px;
    color: var(--foodzy-purple);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.foodzy-calculator__header h2 {
    margin: 0 0 12px;
    color: #090909;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}
.foodzy-calculator__header p:last-child {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.foodzy-calculator__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
}
.foodzy-field { min-width: 0; }
.foodzy-field label,
.foodzy-field legend {
    display: block;
    margin: 0 0 8px;
    color: var(--foodzy-primary);
    font-size: 18px;
    font-weight: 800;
}
.foodzy-field label span { color: var(--foodzy-muted); font-size: 13px; font-weight: 500; }
.foodzy-field input[type="text"],
.foodzy-field input[type="number"],
.foodzy-field select {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid var(--foodzy-border);
    border-radius: 12px;
    background: #fff;
    color: var(--foodzy-ink);
    font: inherit;
    font-size: 17px;
}
.foodzy-field input:focus,
.foodzy-field select:focus {
    border-color: var(--foodzy-primary);
    outline: 3px solid rgba(108, 65, 134, .14);
}
.foodzy-field small { display: block; margin-top: 6px; color: var(--foodzy-muted); line-height: 1.35; }
.foodzy-fieldset { margin: 0; padding: 0; border: 0; }
.foodzy-input-unit { position: relative; }
.foodzy-input-unit input { padding-right: 52px !important; }
.foodzy-input-unit span { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); font-weight: 700; }
.foodzy-age-group { display: grid; grid-template-columns: 1fr 130px; gap: 8px; }

.foodzy-options { display: grid; gap: 10px; }
.foodzy-options--two { grid-template-columns: repeat(2, 1fr); }
.foodzy-options label { margin: 0; cursor: pointer; }
.foodzy-options input { position: absolute; opacity: 0; pointer-events: none; }
.foodzy-options span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 10px;
    border: 1px solid var(--foodzy-border);
    border-radius: 12px;
    color: var(--foodzy-ink) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: .2s ease;
}
.foodzy-options input:checked + span {
    border-color: var(--foodzy-primary);
    background: var(--foodzy-primary);
    color: #fff !important;
}
.foodzy-options input:focus-visible + span { outline: 3px solid rgba(108, 65, 134, .2); }

.foodzy-form-error { min-height: 24px; margin-top: 14px; color: #b42318; font-weight: 700; text-align: center; }
.foodzy-calculate-button,
.foodzy-shop-button,
.foodzy-whatsapp-button,
.foodzy-recalculate-button {
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.foodzy-calculate-button {
    width: 100%;
    margin-top: 4px;
    padding: 14px 24px;
    background: var(--foodzy-primary) !important;
    color: #fff !important;
}
.foodzy-calculate-button:hover { background: var(--foodzy-primary-dark) !important; color: #fff !important; }

.foodzy-result {
    margin-top: 34px;
    padding: clamp(24px, 4vw, 42px);
    border: 2px solid var(--foodzy-yellow);
    border-radius: 20px;
    background: var(--foodzy-bg);
    text-align: center;
}
.foodzy-result[hidden] { display: none !important; }
.foodzy-result__title { margin: 0 0 22px; color: var(--foodzy-primary); font-size: clamp(24px, 4vw, 36px); }
.foodzy-result__sentence { margin: 0 0 18px; color: var(--foodzy-primary); font-size: clamp(24px, 4vw, 36px); line-height: 1.3; }
.foodzy-result__sentence strong { color: var(--foodzy-purple); }
.foodzy-result__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.foodzy-result__cards div { padding: 20px 10px; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.06); }
.foodzy-result__cards strong { display: block; color: var(--foodzy-purple); font-size: clamp(24px, 4vw, 34px); line-height: 1.15; }
.foodzy-result__cards span { display: block; margin-top: 6px; color: var(--foodzy-muted); }
.foodzy-result__product { margin: 20px 0 10px; font-size: 18px; font-weight: 800; }
.foodzy-result__estimate { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.foodzy-result__estimate p { margin: 0; padding: 12px 16px; border-radius: 10px; background: #fff; }
.foodzy-result__estimate strong { color: var(--foodzy-purple); }
.foodzy-result__warnings p { margin: 10px 0; padding: 12px; border-radius: 10px; background: #fff3cd; color: #664d03; }
.foodzy-result__note { max-width: 730px; margin: 18px auto; line-height: 1.55; }
.foodzy-result__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.foodzy-shop-button,
.foodzy-whatsapp-button,
.foodzy-recalculate-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; }
.foodzy-shop-button,
.foodzy-whatsapp-button { background: var(--foodzy-primary) !important; color: #fff !important; }
.foodzy-shop-button:hover,
.foodzy-whatsapp-button:hover { background: var(--foodzy-primary-dark) !important; color: #fff !important; }
.foodzy-whatsapp-button[hidden] { display: none !important; }
.foodzy-recalculate-button { border: 2px solid var(--foodzy-primary); background: transparent; color: var(--foodzy-primary); }
.foodzy-recalculate-button:hover { background: var(--foodzy-primary) !important; color: #fff !important; }
.foodzy-calculator__disclaimer { margin: 24px 0 0; color: var(--foodzy-muted); font-size: 13px; line-height: 1.5; text-align: center; }

@media (max-width: 700px) {
    .foodzy-calculator { padding: 24px 18px; border-radius: 18px; }
    .foodzy-calculator__grid { grid-template-columns: 1fr; }
    .foodzy-result__cards { grid-template-columns: 1fr; }
    .foodzy-age-group { grid-template-columns: 1fr 115px; }
}

