/* ==================================================
   YUME – INGREDIENTS
   ================================================== */

.yume-ingredients {
    width: 100%;

    background: var(--yume-green);
    color: var(--yume-white);

    padding: 82px 0 88px;
}


/* ==================================================
   VNITŘNÍ CONTAINER
   ================================================== */

.yume-ingredients__inner {
    width: min(
        calc(100% - 64px),
        var(--yume-container)
    );

    max-width: var(--yume-container);

    margin-inline: auto;
}


/* ==================================================
   HLAVNÍ NADPIS
   ================================================== */

.yume-ingredients__header {
    margin-bottom: 54px;
}

.yume-ingredients__title {
    max-width: 850px;

    margin: 0;

    color: var(--yume-white) !important;

    font-family: var(--yume-heading-font) !important;

    font-size: var(--yume-h1-size);
    line-height: var(--yume-h1-line);

    font-weight: 600;

    letter-spacing: -0.025em;

    text-transform: none !important;
}


/* ==================================================
   GRID INGREDIENCÍ
   ================================================== */

.yume-ingredients__grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0;

    align-items: start;
}


/* ==================================================
   JEDEN BLOK INGREDIENCE
   ================================================== */

.yume-ingredient {
    position: relative;

    min-width: 0;

    padding: 0 30px 0;

    color: var(--yume-white);
}


/* První blok bez levého odsazení */

.yume-ingredient:first-child {
    padding-left: 0;
}


/* Poslední blok bez pravého odsazení */

.yume-ingredient:last-child {
    padding-right: 0;
}


/* Jemné vertikální oddělení */

.yume-ingredient + .yume-ingredient {
    border-left: 1px solid rgba(245, 245, 245, 0.28);
}


/* ==================================================
   NÁZEV INGREDIENCE
   ================================================== */

.yume-ingredient__name {
    margin: 0 0 8px;

    color: var(--yume-white) !important;

    font-family: var(--yume-heading-font) !important;

    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;

    letter-spacing: -0.025em;

    text-transform: none !important;
}


/* ==================================================
   DÁVKA
   ================================================== */

.yume-ingredient__dose {
    margin: 0 0 20px !important;

    color: var(--yume-white) !important;

    font-family: var(--yume-font) !important;

    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.4 !important;
}


/* ==================================================
   ÚVODNÍ TEXT
   ================================================== */

.yume-ingredient__intro {
    margin: 0 0 24px !important;

    color: var(--yume-white) !important;

    font-family: var(--yume-font) !important;

    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.65 !important;
}

.yume-ingredient__intro strong {
    color: inherit;
    font-weight: 700;
}


/* ==================================================
   ROZBALOVACÍ TLAČÍTKO
   ================================================== */

.yume-ingredient__toggle {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 0;

    padding: 15px 0;

    border: 0;
    border-top: 1px solid rgba(245, 245, 245, 0.35);
    border-bottom: 1px solid rgba(245, 245, 245, 0.35);

    background: transparent;
    color: var(--yume-white);

    font-family: var(--yume-font) !important;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}


/* ==================================================
   HOVER – TMAVĚ RŮŽOVÁ
   ================================================== */

.yume-ingredient__toggle:hover {
    color: #EE1E9E;

    border-top-color: #EE1E9E;
    border-bottom-color: #EE1E9E;
}


/* ==================================================
   ŠIPKA
   ================================================== */

.yume-ingredient__arrow {
    flex: 0 0 auto;

    font-size: 16px;
    line-height: 1;

    color: currentColor;

    transition:
        transform 0.25s ease,
        color 0.2s ease;
}

.yume-ingredient.is-open .yume-ingredient__arrow {
    transform: rotate(180deg);
}


/* ==================================================
   ROZBALOVACÍ DETAIL
   ================================================== */

.yume-ingredient__details {
    max-height: 0;

    overflow: hidden;

    transition: max-height 0.4s ease;
}

.yume-ingredient__details-inner {
    padding-top: 22px;
}


/* Texty uvnitř */

.yume-ingredient__details p {
    margin: 0 0 16px !important;

    color: rgba(245, 245, 245, 0.92) !important;

    font-family: var(--yume-font) !important;

    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.65 !important;
}

.yume-ingredient__details strong {
    color: var(--yume-white);
    font-weight: 700;
}


/* ==================================================
   PROCES 5-HTP
   ================================================== */

.yume-ingredient__process {
    margin: 4px 0 20px !important;

    color: var(--yume-pink) !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    letter-spacing: 0.01em;
}


/* ==================================================
   ZÁVĚREČNÁ VĚTA
   ================================================== */

.yume-ingredient__closing {
    margin-bottom: 0 !important;

    color: var(--yume-white) !important;

    font-weight: 700 !important;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1100px) {

    .yume-ingredients {
        padding: 72px 0 78px;
    }

    .yume-ingredients__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        row-gap: 52px;
    }

    .yume-ingredient {
        padding: 0 28px;
    }

    .yume-ingredient:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .yume-ingredient:nth-child(even) {
        padding-right: 0;
    }

    .yume-ingredient:nth-child(3) {
        border-left: 0;
    }

    .yume-ingredient__name {
        font-size: 27px;
    }
}


/* ==================================================
   MOBIL
   ================================================== */

@media (max-width: 767px) {

    .yume-ingredients {
        padding: 58px 0 64px;
    }

    .yume-ingredients__inner {
        width: min(
            calc(100% - 28px),
            var(--yume-container)
        );
    }

    .yume-ingredients__header {
        margin-bottom: 42px;
    }

    .yume-ingredients__grid {
        grid-template-columns: 1fr;

        row-gap: 0;
    }

    .yume-ingredient,
    .yume-ingredient:first-child,
    .yume-ingredient:last-child,
    .yume-ingredient:nth-child(odd),
    .yume-ingredient:nth-child(even) {
        padding: 34px 0;

        border-left: 0;
        border-bottom: 1px solid rgba(245, 245, 245, 0.28);
    }

    .yume-ingredient:first-child {
        padding-top: 0;
    }

    .yume-ingredient:last-child {
        padding-bottom: 0;

        border-bottom: 0;
    }

    .yume-ingredient__name {
        font-size: 26px;
    }

    .yume-ingredient__dose {
        font-size: 14px !important;
    }

    .yume-ingredient__intro {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .yume-ingredient__toggle {
        font-size: 14px;
    }

    .yume-ingredient__details p {
        font-size: 14px !important;
    }

}