/* ============================================================
   Блок «Как проходит день» (template-parts/day-schedule.php)
   Все классы начинаются с .dsch — с остальной темой не пересекаются.
   ============================================================ */

.dsch {
    --dsch-ink: #3a3a5e;
    --dsch-muted: #7a7a9a;
    --dsch-card: #ffffff;
    --dsch-border: #eceaf4;
    --dsch-sun: #ffe08a;
    --dsch-berry: #ffc9c2;
    --dsch-sky: #c3e0f7;
    --dsch-leaf: #c8efc5;
    --dsch-night: #d9c8f0;
    --dsch-deep-night: #3d3478;
    --dsch-star: #f6f2ff;

    position: relative;
    max-width: 1200px;
    margin: 24px auto;
	margin-top: -24px;
    padding: 1.5rem 1rem;
    border-radius: 28px;
    color: var(--dsch-ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 224, 138, .5), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(195, 224, 247, .5), transparent 40%),
        #fbf3e4;
}

.dsch__inner {margin: 0 auto; }

/* ---------- Иконки ---------- */
.dsch .dsch-icon { display: block; width: 100%; height: 100%; }

/* ---------- Заголовок ---------- */
.dsch__head { text-align: center; }
.dsch__clock {
    display: inline-block;
    width: 3.5rem; height: 3.5rem;
    color: var(--dsch-ink);
    animation: dsch-bounce 1.6s ease-in-out infinite;
}
.dsch .dsch__title { margin: .35rem 0 0; }
.dsch__subtitle {
    margin: .6rem auto 0;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--dsch-muted);
}

/* ---------- Лента «сейчас» ---------- */
.dsch__ribbon {
    margin: 1rem auto 0;
    width: fit-content; max-width: 100%;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .25rem .75rem;
    background: var(--dsch-card);
    border: 2px solid var(--dsch-border);
    border-radius: 16px;
    padding: .6rem 1.25rem;
    box-shadow: 0 10px 24px -16px rgba(58, 58, 94, .55);
}
.dsch__ribbon[hidden] { display: none; }
.dsch__dot { width: .65rem; height: .65rem; border-radius: 9999px; flex-shrink: 0; }
.dsch__dot.is-live { background: #57b96a; animation: dsch-live-pulse 1.8s ease-out infinite; }
.dsch__dot.is-rest { background: rgba(122, 122, 154, .55); }
.dsch__ribbon-time { font-size: 1.15rem; font-weight: 800; }
.dsch__ribbon-day { font-size: .9rem; font-weight: 600; color: var(--dsch-muted); }
.dsch__ribbon-status { font-size: .9rem; font-weight: 700; }

/* ---------- Карточка: панель + список ---------- */
.dsch__card {
    margin-top: 1rem;
    display: grid;
    gap: 1.25rem;
    background: var(--dsch-card);
    border-radius: 2rem;
    padding: 1.25rem;
    box-shadow: 0 20px 50px -20px rgba(58, 58, 94, .35);
}
@media (min-width: 768px) {
    .dsch__card { grid-template-columns: 1fr 1.2fr; padding: 1.5rem; }
}
.dsch__panel { min-height: 22rem; }
.dsch__panel:empty { display: none; }
@media (min-width: 768px) { .dsch__panel:empty { display: block; } }

/* ---------- Цвета ---------- */
.dsch-tone-sun   { background-color: var(--dsch-sun);   color: var(--dsch-ink); }
.dsch-tone-berry { background-color: var(--dsch-berry); color: var(--dsch-ink); }
.dsch-tone-sky   { background-color: var(--dsch-sky);   color: var(--dsch-ink); }
.dsch-tone-leaf  { background-color: var(--dsch-leaf);  color: var(--dsch-ink); }
.dsch-tone-night { background-color: var(--dsch-night); color: var(--dsch-ink); }

/* ---------- Большая карточка шага ---------- */
.dsch__step-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; min-height: 22rem;
    border-radius: 1.5rem; padding: 2rem; text-align: center;
    background-image:
        radial-gradient(110% 75% at 88% 6%, rgba(255, 255, 255, .55), transparent 62%),
        radial-gradient(90% 60% at 6% 96%, rgba(255, 255, 255, .38), transparent 60%);
}
.dsch__big-icon { position: relative; width: 6.5rem; height: 6.5rem; }
.dsch__big-time { margin-top: 1rem; font-size: 3rem; font-weight: 800; line-height: 1.1; }
.dsch__big-title { margin: .75rem 0 0; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }

/* ---------- Сцены: ночь / вечер / выходной ---------- */
.dsch__scene {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; min-height: 22rem;
    border-radius: 1.5rem; padding: 2rem; text-align: center;
}
.dsch__scene--sleep {
    background:
        radial-gradient(90% 50% at 50% 0%, rgba(217, 200, 240, .26), transparent 65%),
        linear-gradient(165deg, #453a86, var(--dsch-deep-night));
    color: var(--dsch-star);
}
.dsch__scene--home {
    background:
        radial-gradient(110% 80% at 85% 5%, rgba(255, 224, 138, .85), transparent 60%),
        linear-gradient(165deg, #ffe9d6, #ffe4e0);
    color: var(--dsch-ink);
}
.dsch__scene--weekend {
    background:
        radial-gradient(110% 80% at 12% 8%, rgba(200, 239, 197, .65), transparent 58%),
        radial-gradient(110% 80% at 92% 92%, rgba(195, 224, 247, .65), transparent 58%),
        linear-gradient(165deg, #fff3d6, #ffffff);
    color: var(--dsch-ink);
}
.dsch__scene .dsch__big-icon { width: 7rem; height: 7rem; }
.dsch__scene-title { position: relative; margin: 1rem 0 0; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.dsch__scene-sub   { position: relative; margin: .5rem 0 0; font-size: 1.05rem; font-weight: 600; }
.dsch__scene-note  { position: relative; margin: 1rem 0 0; font-size: .9rem; font-weight: 600; opacity: .85; }

.dsch__pill {
    position: relative;
    display: inline-block; margin-top: 1.25rem;
    border-radius: 9999px; padding: .3rem 1rem;
    font-size: .9rem; font-weight: 700;
    background: rgba(255, 255, 255, .88); color: var(--dsch-ink);
    border: 2px solid rgba(58, 58, 94, .12);
    box-shadow: 0 8px 18px -10px rgba(58, 58, 94, .5);
}
.dsch__pill--live::before {
    content: ""; display: inline-block; width: .55rem; height: .55rem;
    margin-right: .45rem; border-radius: 9999px; background: #57b96a; vertical-align: middle;
}
.dsch__scene--sleep .dsch__pill {
    background: rgba(246, 242, 255, .16); color: var(--dsch-star);
    border-color: rgba(246, 242, 255, .38);
}

/* ---------- Стрелки ---------- */
.dsch__nav { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; position: relative; }
.dsch__nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; padding: 0; margin: 0;
    border: 0; border-radius: 9999px; cursor: pointer;
    background: var(--dsch-card); color: var(--dsch-ink);
    box-shadow: 0 6px 14px -8px rgba(58, 58, 94, .6);
    transition: transform .2s;
}
.dsch__nav-btn svg { width: 1.3rem; height: 1.3rem; }
.dsch__nav-btn:hover { transform: scale(1.15) rotate(-8deg); }
.dsch__nav-btn:focus-visible,
.dsch__row:focus-visible { outline: 3px solid var(--dsch-ink); outline-offset: 2px; }

/* ---------- Список распорядка ---------- */
.dsch__list {
    border-radius: 1.5rem; padding: .75rem;
    background: linear-gradient(180deg, rgba(195, 224, 247, .35), rgba(255, 224, 138, .35));
}
.dsch__list-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .5rem; padding: 0 .25rem; margin-bottom: .75rem;
}
.dsch__list-title { font-size: 1.1rem; font-weight: 800; }
.dsch__badge {
    border-radius: 9999px; padding: .25rem .75rem;
    font-size: .75rem; font-weight: 700;
    background: #f1f0f7; color: var(--dsch-muted);
}
.dsch__badge:empty { display: none; }
.dsch__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dsch__steps > li { list-style: none; margin: 0; padding: 0; }

.dsch__row {
    display: flex; align-items: center; gap: .75rem;
    width: 100%; margin: 0; padding: .55rem .9rem;
    border: 3px solid transparent; border-radius: 1rem;
    cursor: pointer; text-align: left; font: inherit;
    -webkit-appearance: none; appearance: none;
    transition: transform .2s, border-color .2s, opacity .2s;
}
.dsch__row:not(.is-active) { opacity: .78; }
.dsch__row:hover { transform: translateX(6px) rotate(-.5deg); opacity: 1; }
.dsch__row.is-active { border-color: var(--dsch-ink); opacity: 1; transform: scale(1.02); }
.dsch__row-icon { flex: 0 0 auto; width: 2rem; height: 2rem; }
.dsch__row-time { flex: 0 0 3.4rem; font-size: 1.05rem; font-weight: 800; }
.dsch__row-title { flex: 1 1 auto; font-size: .92rem; font-weight: 600; line-height: 1.35; }
@media (min-width: 768px) { .dsch__row-title { font-size: 1rem; } }

.dsch__ping {
    margin-left: auto; flex: 0 0 auto;
    width: .75rem; height: .75rem; border-radius: 9999px;
    background: #57b96a; animation: dsch-ping 1.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.dsch__note {
    margin: 1rem 0 0; border-radius: 1rem; padding: .75rem 1rem; text-align: center;
    font-size: .9rem; font-weight: 600; background: #f1f0f7; color: var(--dsch-muted);
}
.dsch__note:empty { display: none; }

.dsch__footer { margin: 1rem 0 0; text-align: center; font-size: .9rem; color: var(--dsch-muted); }

/* ---------- Декор сцен ---------- */
.dsch__stars {
    position: absolute; inset: 0; border-radius: inherit;
    animation: dsch-twinkle 3.6s ease-in-out infinite;
    background-image:
        radial-gradient(2px 2px at 12% 20%, var(--dsch-star), transparent 60%),
        radial-gradient(2px 2px at 28% 62%, var(--dsch-star), transparent 60%),
        radial-gradient(3px 3px at 42% 15%, var(--dsch-star), transparent 60%),
        radial-gradient(2px 2px at 58% 74%, var(--dsch-star), transparent 60%),
        radial-gradient(2px 2px at 72% 28%, var(--dsch-star), transparent 60%),
        radial-gradient(3px 3px at 86% 52%, var(--dsch-star), transparent 60%),
        radial-gradient(2px 2px at 20% 86%, var(--dsch-star), transparent 60%),
        radial-gradient(2px 2px at 94% 12%, var(--dsch-star), transparent 60%);
}
.dsch__zzz {
    position: absolute; opacity: 0; font-weight: 800; font-style: normal;
    color: var(--dsch-star); animation: dsch-zzz 4.6s ease-in-out infinite;
}
.dsch__confetti { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.dsch__confetti i {
    position: absolute; top: -14px; width: .7rem; height: .7rem; border-radius: .2rem;
    opacity: 0; animation: dsch-drift 6s linear infinite;
}

/* ---------- Анимации ---------- */
@keyframes dsch-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dsch-pop-in { 0% { transform: scale(.85) rotate(-3deg); opacity: 0; } 70% { transform: scale(1.04) rotate(1deg); } 100% { transform: none; opacity: 1; } }
@keyframes dsch-wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes dsch-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes dsch-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(87, 185, 106, .65); } 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes dsch-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes dsch-twinkle { 0%, 100% { opacity: .45; } 50% { opacity: .95; } }
@keyframes dsch-zzz { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 25% { opacity: .95; } 100% { transform: translate(46px, -84px) scale(1.35); opacity: 0; } }
@keyframes dsch-drift { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(280px) rotate(300deg); opacity: 0; } }

.dsch .dsch-pop    { animation: dsch-pop-in .45s ease-out; }
.dsch .dsch-wiggle { animation: dsch-wiggle 2s ease-in-out infinite; }
.dsch .dsch-float  { animation: dsch-float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .dsch .dsch-wiggle, .dsch .dsch-float, .dsch .dsch-pop,
    .dsch .dsch__dot, .dsch .dsch__stars, .dsch .dsch__clock, .dsch .dsch__ping { animation: none !important; }
    .dsch .dsch__zzz, .dsch .dsch__confetti { display: none; }
}

@media (max-width: 480px) {
    .dsch {padding: 1.25rem .75rem; border-radius: 22px; }
    .dsch__step-card, .dsch__scene { min-height: 18rem; padding: 1.5rem 1rem; }
    .dsch__big-time { font-size: 2.4rem; }
}


/* ============================================================
   Компактный вид на ПК (от 768px): заголовок и «сейчас» в одну строку,
   меньше отступов, большая карточка тянется по высоте списка.
   ============================================================ */
@media (min-width: 768px) {
    .dsch { margin: 36px auto; margin-top: -36px; padding: 1.25rem 1.5rem 1rem; border-radius: 24px; }

    .dsch__top {
        display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
    }
    .dsch__head { display: flex; align-items: center; gap: .9rem; text-align: left; min-width: 0; }
    .dsch__head-text { min-width: 0; text-align: left; }
    .dsch__clock { flex: 0 0 auto; width: 3rem; height: 3rem; }
    .dsch .dsch__title { display: block; width: auto; margin: 0; text-align: left; }
    .dsch .dsch__subtitle { margin: .2rem 0 0; max-width: 36rem; font-size: .95rem; line-height: 1.4; }
    .dsch__ribbon { margin: 0; flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; border-radius: 14px; padding: .45rem 1rem; box-shadow: 0 8px 18px -14px rgba(58, 58, 94, .55); }
    .dsch__ribbon-time { font-size: 1.05rem; }

    .dsch__card { margin-top: 1rem; gap: 0.7rem; padding: 0.6rem; border-radius: 1.5rem; align-items: stretch; }
    .dsch__panel { min-height: 0; }
    .dsch__step-card, .dsch__scene { min-height: 0; padding: 1.25rem; border-radius: 1.25rem; }
    .dsch__big-icon, .dsch__scene .dsch__big-icon { width: 4.75rem; height: 4.75rem; }
    .dsch__big-time { margin-top: .6rem; font-size: 2.3rem; }
    .dsch__big-title { margin-top: .4rem; font-size: 1.05rem; }
    .dsch__scene-title { margin-top: .6rem; font-size: clamp(1.3rem, 2vw, 1.7rem); }
    .dsch__scene-sub { margin-top: .3rem; font-size: .95rem; }
    .dsch__pill { margin-top: .75rem; padding: .2rem .85rem; font-size: .85rem; }
    .dsch__scene-note { margin-top: .6rem; }
    .dsch__nav { margin-top: .9rem; gap: .5rem; }
    .dsch__nav-btn { width: 2.5rem; height: 2.5rem; }

    .dsch__list { padding: .6rem; border-radius: 1.25rem; }
    .dsch__list-head { margin-bottom: .5rem; }
    .dsch__list-title { font-size: 1rem; }
    .dsch__steps { gap: .3rem; }
    .dsch__row { padding: .3rem .75rem; gap: .65rem; border-width: 2px; border-radius: .85rem; }
    .dsch__row-icon { width: 1.7rem; height: 1.7rem; }
    .dsch__row-time { flex-basis: 3.1rem; font-size: .98rem; }
    .dsch__row-title { font-size: .92rem; line-height: 1.25; }
    .dsch__row.is-active { transform: none; }
    .dsch__note { margin-top: .6rem; padding: .5rem .85rem; font-size: .85rem; }
    .dsch__footer { margin-top: .9rem; font-size: .85rem; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .dsch__top { flex-direction: column; align-items: stretch; gap: .75rem; }
    .dsch__ribbon { align-self: center; }
}

/* Мобильная версия: минимальные поля у карточки */
@media (max-width: 767px) {
    .dsch__card { padding: 0rem; }
	.dsch__row  { padding: 0.45rem .3rem;}
	.dsch__row-title  {font-size: .82rem;}
}
