/* Лунный комплекс v2 (единый шаблон index_new) */
.container.section-calendar {
    max-width: 100%;
}

/* --- Иконки --- */
.lunar-ico {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    display: inline-block;
}

/* --- Главная плашка страницы дня --- */
.lunar-hero {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #337ab7;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    padding: 16px 10px 14px;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: 100%;
}

.lunar-hero__item {
    flex: 1 1 0px;
    min-width: 0;
    padding: 4px 16px;
    text-align: center;
}

.lunar-hero__ico {
    font-size: 44px;
    line-height: 1;
    color: #337ab7;
    display: block;
    margin: 0 auto 8px;
}

.lunar-hero__label {
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #777;
    margin: 0 0 3px;
}

.lunar-hero__value {
    font-size: 20px;
    line-height: 1.25;
    color: #333;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.lunar-hero__sub {
    font-size: 13px;
    color: #777;
    margin-top: 3px;
}

.lunar-hero__marks {
    flex: 0 0 100%;
    margin: 12px 6px 0;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #777;
    text-align: center;
}

/* --- Индикатор благоприятности и отметки --- */
.lunar-rating {
    display: inline-block;
    padding: 3px 11px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

.lunar-rating .lunar-ico {
    margin-right: 5px;
}

.lunar-rating--good {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.lunar-rating--neutral {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.lunar-rating--bad {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.lunar-mark {
    display: inline-block;
    margin: 2px 4px 0;
    padding: 2px 9px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f5f5f5;
    color: #777;
    font-size: 12px;
}

/* --- Навигация по дням и подвал раздела --- */
.lunar-side {
    margin-bottom: 22px;
}

.lunar-side .day-info .phase {
    color: #337ab7;
    font-size: 40px;
    line-height: 1;
}

.lunar-side__rating {
    margin: 8px 0 0;
}

.lunar-side__illum {
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

.lunar-nextphases {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 13px;
}

.lunar-nextphases li {
    padding: 3px 0;
    color: #333;
}

.lunar-nextphases .lunar-ico {
    font-size: 18px;
    color: #337ab7;
    margin-right: 6px;
}

.lunar-daynav {
    display: flex;
    margin: 0 0 18px;
    max-width: 100%;
}

.lunar-daynav a,
.lunar-daynav span {
    flex: 1 1 50%;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 13px;
    text-align: center;
}

.lunar-daynav a:first-child,
.lunar-daynav span:first-child {
    border-radius: 4px 0 0 4px;
}

.lunar-daynav a:last-child,
.lunar-daynav span:last-child {
    border-radius: 0 4px 4px 0;
    border-left: 0;
}

.lunar-daynav span {
    color: #999;
}

.unpublished {
    color: #999;
}

.lunar-bottom-nav {
    margin: 24px 0 12px;
    padding: 16px 18px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: #f8fafc;
}

.lunar-bottom-nav__title {
    font-size: 15px;
    font-weight: 700;
    color: #23527c;
    margin: 0 0 10px;
}

.lunar-bottom-nav__section + .lunar-bottom-nav__section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

/* --- Таблицы фаз (.calendar-frame) в правой колонке index_new --- */
.lc-grid-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    margin: 14px 0 22px;
}

.lc-grid-wrap .calendar-frame {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.lc-grid-wrap .calendar-frame th,
.lc-grid-wrap .calendar-frame td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    font-size: 13px;
    color: #334155;
}

.lc-grid-wrap .calendar-frame th {
    background: #f1f5f9;
    font-weight: 700;
    text-align: left;
}

.lc-grid-wrap .calendar-frame td a {
    float: none;
    width: auto;
    height: auto;
    padding: 0;
    display: inline;
    color: #23527c;
}

.lc-grid-wrap .calendar-frame td a:hover {
    text-decoration: underline;
}

/* --- Блоки v2 (.lc-*) --- */
.lc-op-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px;
}

.lc-pill {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 4px;
    border: 1px solid #d5e0ec;
    background: #f7fafd;
    color: #23527c;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    max-width: 100%;
}

.lc-pill:hover,
.lc-pill--active {
    background: #337ab7;
    border-color: #2e6da4;
    color: #fff;
    text-decoration: none;
}

.lc-hero-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid #d8e2ec;
    border-radius: 6px;
    background: #f8fafc;
    margin-bottom: 20px;
    max-width: 100%;
}

.lc-hero-v2__disc {
    flex: 0 0 132px;
    text-align: center;
}

.lc-hero-v2__disc img {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: #0e1522;
    padding: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}

.lc-hero-v2__meta {
    flex: 1 1 240px;
    min-width: 0;
}

.lc-hero-v2__kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #66788a;
    margin-bottom: 4px;
}

.lc-hero-v2__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1f2d3d;
}

.lc-kv {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 8px 0 10px;
    padding: 0;
    list-style: none;
}

.lc-kv li {
    font-size: 14px;
    color: #34495e;
}

.lc-kv b {
    color: #111;
}

.lc-cal {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.lc-cal th {
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #e2e8f0;
}

.lc-cal td {
    border: 1px solid #e2e8f0;
    vertical-align: top;
    padding: 6px 4px;
    height: 98px;
    font-size: 12px;
    background: #fff;
}

.lc-cal td.lc-empty {
    background: #f8fafc;
}

.lc-cal td.lc-cell--good {
    background: #f4fbf4;
}

.lc-cal td.lc-cell--bad {
    background: #fdf6f6;
}

.lc-cal td.lc-cell--today {
    box-shadow: inset 0 0 0 2px #337ab7;
}

.lc-cell-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.lc-cell-link:hover {
    text-decoration: none;
}

.lc-cell-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    color: #1e293b;
}

.lc-cell-disc {
    display: block;
    margin: 2px auto 4px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0e1522;
}

.lc-cell-tithi {
    display: block;
    text-align: center;
    color: #475569;
    font-size: 11px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.lc-cell-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lc-dot--good { background: #3c763d; }
.lc-dot--neutral { background: #31708f; }
.lc-dot--bad { background: #a94442; }

.lc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 14px 0 22px;
}

.lc-card {
    display: block;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    transition: border-color .15s;
    min-width: 0;
}

.lc-card:hover {
    border-color: #337ab7;
    text-decoration: none;
}

.lc-card__title {
    font-weight: 700;
    font-size: 15px;
    color: #23527c;
    margin-bottom: 4px;
}

.lc-card__desc {
    font-size: 13px;
    color: #556575;
    line-height: 1.35;
}

.lc-sphere-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 12px 0 22px;
}

.lc-sphere-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    min-width: 0;
}

.lc-sphere-item__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.lc-sphere-item__head a {
    font-weight: 700;
    color: #23527c;
}

.lc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.lc-badge--good { background: #dff0d8; color: #3c763d; }
.lc-badge--neutral { background: #d9edf7; color: #31708f; }
.lc-badge--bad { background: #f2dede; color: #a94442; }

.lc-dream-box {
    padding: 16px 18px;
    border-left: 4px solid #337ab7;
    background: #f4f8fc;
    border-radius: 4px;
    margin: 16px 0 22px;
}

.lc-dream-box h2,
.lc-dream-box h3 {
    margin-top: 0;
}

.lc-tithi-strip {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin: 12px 0 20px;
}

.lc-tithi-btn {
    display: block;
    text-align: center;
    padding: 6px 4px;
    border: 1px solid #dbe4ee;
    border-radius: 4px;
    background: #fff;
    font-weight: 600;
    color: #23527c;
    text-decoration: none;
    font-size: 13px;
}

.lc-tithi-btn:hover,
.lc-tithi-btn--active {
    background: #337ab7;
    color: #fff;
    border-color: #2e6da4;
    text-decoration: none;
}

/* --- Адаптив (360px / 768px / 1280px внутри .right-bar index_new) --- */
@media (max-width: 767px) {
    .lc-hero-v2 {
        padding: 14px;
        gap: 14px;
    }

    .lc-hero-v2__disc {
        flex: 0 0 100%;
    }

    .lc-cal {
        min-width: 460px;
    }

    .lc-cal td {
        height: 76px;
        padding: 4px 2px;
    }

    .lc-cell-disc {
        width: 30px;
        height: 30px;
    }

    .lc-tithi-strip {
        grid-template-columns: repeat(5, 1fr);
    }

    .lunar-hero {
        display: block;
        padding: 14px 12px 12px;
    }

    .lunar-hero__item {
        padding: 10px 4px;
    }

    .lunar-hero__item + .lunar-hero__item {
        border-top: 1px solid #f5f5f5;
    }

    .lunar-hero__ico {
        font-size: 38px;
        margin-bottom: 6px;
    }

    .lunar-hero__value {
        font-size: 18px;
    }

    .lunar-hero__marks {
        margin-left: 0;
        margin-right: 0;
    }

    .lunar-rating {
        white-space: normal;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .lc-hero-v2 {
        padding: 14px;
        gap: 14px;
    }

    .lc-cal td {
        height: 86px;
        padding: 4px 2px;
    }

    .lc-cell-disc {
        width: 34px;
        height: 34px;
    }

    .lc-cell-tithi {
        font-size: 10px;
    }

    .lc-tithi-strip {
        grid-template-columns: repeat(6, 1fr);
    }

    .lunar-hero__item {
        padding: 4px 8px;
    }

    .lunar-hero__ico {
        font-size: 38px;
    }

    .lunar-hero__value {
        font-size: 17px;
    }
}
