/*
 * LunaInfo — единая визуальная система, версия 4.0
 * Спокойная природная палитра: ночное небо, тёплое золото и зелень.
 */

:root {
    --page-bg: #f3f1eb;
    --page-bg-cool: #edf2f1;
    --surface: #ffffff;
    --surface-soft: #f7f8f5;
    --surface-muted: #f1f4f2;
    --surface-warm: #fbf7eb;
    --surface-blue: #edf3f5;
    --surface-green: #edf5ee;
    --surface-red: #fbefeb;
    --surface-yellow: #fbf5df;
    --text: #183247;
    --text-strong: #102b3e;
    --muted: #5e7079;
    --muted-dark: #75838a;
    --border: #d6dfdb;
    --border-soft: #e4e9e6;
    --primary: #3b5f6c;
    --primary-hover: #2f505c;
    --primary-soft: #e6eef0;
    --accent: #d8aa4e;
    --accent-hover: #c3953d;
    --accent-soft: #f6e9c7;
    --green: #668761;
    --green-dark: #456a4c;
    --green-soft: #e8f2e9;
    --orange: #b86d49;
    --orange-soft: #f7e8e1;
    --red: #aa554c;
    --red-soft: #f7e8e5;
    --blue: #527982;
    --blue-soft: #e7f0f2;
    --shadow-sm: 0 6px 18px rgba(30, 52, 62, 0.055);
    --shadow-md: 0 15px 38px rgba(30, 52, 62, 0.085);
    --shadow-lg: 0 24px 58px rgba(30, 52, 62, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 13px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--page-bg);
    scroll-behavior: smooth;
}

body,
input,
select,
button,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 14px 0 34px;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 4%, rgba(216, 170, 78, 0.11), transparent 28%),
        radial-gradient(circle at 93% 8%, rgba(82, 121, 130, 0.10), transparent 30%),
        linear-gradient(180deg, #f7f5ef 0%, var(--page-bg) 42%, var(--page-bg-cool) 100%);
}

body::before {
    display: none !important;
}

a {
    color: inherit;
}

h1,
h2,
h3,
strong,
b {
    color: var(--text-strong);
}

h1 {
    letter-spacing: -0.025em;
}

p,
li {
    text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Общий каркас
   -------------------------------------------------------------------------- */

.moon-wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.moon-widget,
.landing-widget {
    padding: clamp(20px, 3vw, 30px);
    overflow: hidden;
    color: var(--text);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.section-block,
.seo-content,
.faq-section,
.generated-forecast,
.month-overview,
.moon-section,
.moon-content {
    margin-top: 22px;
    padding: clamp(19px, 2.5vw, 24px);
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.section-head {
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.section-head h2,
.seo-content h2,
.faq-section h2,
.moon-section h2,
.moon-content h2,
.generated-content h2 {
    color: var(--text-strong);
    letter-spacing: -0.018em;
}

.section-kicker {
    margin-bottom: 7px;
    color: #8a651e;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.subtitle,
.section-head-note,
.generated-content,
.generated-content p,
.generated-content li,
.moon-label,
.month-switch-note,
.day-excerpt,
.day-facts,
.rating-label,
.today-landing-main p,
.calendar-card p,
.info-grid p,
.month-insight-card p {
    color: var(--muted);
}

.seo-content {
    line-height: 1.72;
}

.seo-content-accent {
    background: linear-gradient(135deg, #fbf7eb 0%, #f4f7f4 100%);
    border-color: #e4d8b7;
}

.seo-tip {
    margin-top: 17px;
    padding: 14px 16px;
    color: var(--text);
    background: #fffaf0;
    border: 1px solid #ead9ab;
    border-left: 4px solid var(--accent);
    border-radius: 12px;
}

.empty-notice,
.city-notice {
    color: var(--text);
    background: var(--surface-yellow);
    border: 1px solid #e7cf8b;
    border-radius: 14px;
}

/* --------------------------------------------------------------------------
   Шапка, логотип, меню и хлебные крошки
   -------------------------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 200;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    overflow: visible;
    color: #fff;
    background: #355766;
    border: 1px solid #2e4e5b;
    border-radius: 17px;
    box-shadow: 0 11px 30px rgba(25, 48, 59, 0.17);
    backdrop-filter: none;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 78px;
    padding: 10px 18px 10px 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: auto;
    height: 56px;
    max-width: min(250px, 34vw);
    object-fit: contain;
    filter: none;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2px;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 13px;
    color: rgba(255, 255, 255, 0.91);
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
    box-shadow: none;
    transition: color .18s ease, background-color .18s ease;
}

.site-nav a::after {
    position: absolute;
    right: 13px;
    bottom: 5px;
    left: 13px;
    height: 2px;
    content: "";
    background: #e5bd65;
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .18s ease, transform .18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
}

.site-menu-toggle,
.site-header .site-menu-toggle {
    display: none;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin-left: auto;
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    border-radius: 10px;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.site-header .site-menu-toggle:hover,
.site-header .site-menu-toggle:active,
.site-header .site-menu-toggle[aria-expanded="true"] {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.46) !important;
    box-shadow: none !important;
}

.site-header .site-menu-toggle:focus {
    outline: none;
}

.site-header .site-menu-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.site-menu-toggle-icon {
    display: flex;
    flex-direction: column;
    width: 22px;
    gap: 5px;
}

.site-menu-toggle-icon i {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform .18s ease, opacity .18s ease;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-icon i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-icon i:nth-child(2) {
    opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-icon i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-breadcrumbs {
    width: min(1120px, calc(100% - 36px));
    margin: 13px auto 16px;
}

.site-breadcrumbs ol {
    gap: 6px;
}

.site-breadcrumbs li {
    gap: 6px;
    color: var(--muted-dark);
    font-size: 13px;
}

.site-breadcrumbs li:not(:last-child)::after {
    color: #aab6b1;
}

.site-breadcrumbs a {
    color: #536b74;
}

.site-breadcrumbs a:hover,
.site-breadcrumbs a:focus-visible {
    color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   Унифицированные кнопки и формы
   -------------------------------------------------------------------------- */

.page-action-link,
.pill-button,
.year-nav-button,
.seo-day-link,
.month-date-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    color: var(--primary-hover);
    text-decoration: none;
    background: #eef3f2;
    border: 1px solid #cfdbd7;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
    box-shadow: none;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.page-action-link:hover,
.pill-button:hover,
.year-nav-button:hover,
.seo-day-link:hover,
.month-date-link:hover {
    color: #254651;
    background: #e4ece9;
    border-color: #afc1bb;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.pill-button-accent,
button[type="submit"] {
    color: #2f260f;
    background: #e4b85e;
    border-color: #d2a348;
    box-shadow: 0 7px 16px rgba(178, 129, 38, 0.15);
}

.pill-button-accent:hover,
button[type="submit"]:hover {
    color: #251d0a;
    background: #d8a94a;
    border-color: #c79439;
}

.pill-button-disabled,
.is-disabled {
    opacity: .46;
    pointer-events: none;
}

input,
select,
textarea {
    min-height: 48px;
    color: var(--text);
    background: #fff;
    border: 1px solid #bac9c5;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(31, 54, 63, 0.03);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #6d8e96;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(70, 111, 121, 0.14);
}

button {
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Герои, общие карточки и иконки
   -------------------------------------------------------------------------- */

.moon-header {
    gap: 19px;
}

.moon-icon,
.quick-link-icon,
.calendar-card-icon,
.current-day-icon,
.calendar-card-sub-icon,
.today-landing-icon {
    color: var(--text);
    background: linear-gradient(145deg, #fff8e8, #eaf1ef);
    border: 1px solid #d8e0dc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.quick-link,
.calendar-card,
.current-day-card,
.month-tab,
.month-switch-card,
.info-grid article,
.today-facts-grid article,
.local-list li,
.moon-rating-card,
.day-navigation-card,
.seo-day-card,
.faq-list details {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
    box-shadow: none;
}

.quick-link:hover,
.calendar-card:hover,
.month-tab:hover,
.month-switch-card[href]:hover,
.info-grid article:hover {
    background: #fbfcfa;
    border-color: #b9c8c2;
    box-shadow: var(--shadow-sm);
}

/* Главная страница */
.calendar-card {
    border-radius: 18px;
}

.calendar-card::before {
    width: 4px;
    background: linear-gradient(180deg, var(--accent), #799578);
}

.calendar-card-arrow {
    color: #fff;
    background: var(--primary);
}

.calendar-card-sub-link {
    color: var(--text);
    background: #f7f9f7;
    border-color: var(--border-soft);
}

.calendar-card-sub-link:hover {
    background: #eef4f1;
    border-color: #bccac5;
}

.calendar-card-sub-arrow {
    color: var(--primary);
}

.current-day-card {
    background: linear-gradient(135deg, #fbf7ea, #eef5ef);
    border-color: #dfd3af;
}

.current-day-kicker,
.today-badge {
    color: #765718;
}

/* --------------------------------------------------------------------------
   Навигация по годам и сетка месяцев
   -------------------------------------------------------------------------- */

.year-navigation {
    grid-template-columns: minmax(150px, 1fr) minmax(160px, 210px) minmax(150px, 1fr);
    gap: 10px;
}

.year-nav-button {
    min-height: 56px;
    border-radius: 14px;
}

.year-navigation-title {
    background: #f7f1df;
    border: 1px solid #e5d3a2;
    border-radius: 14px;
}

.year-navigation-title span {
    color: #7f7256;
}

.month-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.month-tab {
    min-height: 145px;
    padding: 15px;
    background: #f8faf8;
    border-color: var(--border);
    border-radius: 16px;
}

.month-tab::after {
    background: rgba(82, 121, 130, 0.055);
}

.month-tab:hover {
    background: #f1f6f3;
    border-color: #b7c8c1;
}

.month-tab.is-active {
    background: #fbf4df;
    border-color: #d9b85f;
    box-shadow: inset 0 0 0 1px rgba(216, 170, 78, .18);
}

.month-season-icon {
    font-size: 26px;
}

.current-month-badge {
    color: #fff;
    background: var(--green-dark);
}

/* --------------------------------------------------------------------------
   Информационные карточки: одинаковая сетка на годе и месяце
   -------------------------------------------------------------------------- */

.info-grid {
    gap: 12px;
}

.info-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid article {
    position: relative;
    min-height: 178px;
    padding: 17px 17px 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.info-grid article::after {
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 92px;
    height: 92px;
    content: "";
    background: currentColor;
    border-radius: 50%;
    opacity: .045;
    pointer-events: none;
}

.info-grid article:hover {
    transform: translateY(-2px);
}

.info-card-icon,
.info-grid article > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    color: var(--primary-hover);
    background: var(--primary-soft);
    border: 1px solid #d3deda;
    border-radius: 12px;
    font-size: 22px;
    line-height: 1;
}

.info-card h3,
.info-grid h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.info-card p,
.info-grid p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.info-card-phase .info-card-icon { background: #f5edd9; border-color: #e5d2a4; }
.info-card-lunar .info-card-icon { background: #e8f0f2; border-color: #cbdde1; }
.info-card-zodiac .info-card-icon { background: #efeaf4; border-color: #d9cee2; }
.info-card-light .info-card-icon { background: #fbf2d9; border-color: #ead59a; }
.info-card-rating .info-card-icon { background: #e9f3e9; border-color: #cbdcc9; color: var(--green-dark); }
.info-card-location .info-card-icon,
.info-card-forecast .info-card-icon { background: #e8f0ef; border-color: #c9dad6; color: var(--primary); }

/* --------------------------------------------------------------------------
   Верх страницы месяца и статистика
   -------------------------------------------------------------------------- */

.month-overview {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
    align-items: stretch;
    gap: 24px;
    margin-top: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(82, 121, 130, .10), transparent 36%),
        linear-gradient(135deg, #fbf9f2 0%, #f3f6f2 100%);
    border-color: #d8dfda;
}

.month-overview::before {
    position: absolute;
    top: -65px;
    left: -55px;
    width: 155px;
    height: 155px;
    content: "";
    border: 1px solid rgba(216, 170, 78, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(216, 170, 78, .035);
    pointer-events: none;
}

.month-overview-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 4px 8px 0;
}

.month-overview h1 {
    max-width: 650px;
    margin-bottom: 10px;
    color: var(--text-strong);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
}

.month-overview p {
    max-width: 670px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.62;
}

.month-overview p:last-child {
    margin-bottom: 0;
}

.month-overview-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.month-overview-stats span {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 112px;
    padding: 15px;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 5px 14px rgba(31, 53, 62, .035);
}

.month-overview-stats span::after {
    right: -15px;
    bottom: -28px;
    width: 72px;
    height: 72px;
    opacity: .075;
}

.month-overview-stats em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 0 8px;
    font-style: normal;
    font-size: 19px;
    line-height: 1;
    background: rgba(255, 255, 255, .65);
    border: 1px solid currentColor;
    border-radius: 10px;
}

.month-overview-stats strong {
    margin-bottom: 3px;
    color: currentColor;
    font-size: 25px;
    line-height: 1;
}

.month-overview-stats small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.month-stat-good {
    color: #3f7850;
    background: #edf6ee !important;
    border-color: #b6d2ba !important;
}

.month-stat-bad {
    color: #a6553d;
    background: #faeee8 !important;
    border-color: #dfb09e !important;
}

.month-stat-phase {
    color: #8c671b;
    background: #fbf5df !important;
    border-color: #dfc77f !important;
}

.month-stat-event {
    color: #456f7a;
    background: #edf4f5 !important;
    border-color: #bdd1d5 !important;
}

.month-stat-good em { animation: lunaStatPulse 2.8s ease-in-out infinite; }
.month-stat-bad em { animation: lunaStatAttention 3.6s ease-in-out infinite; }
.month-stat-phase em { animation: lunaStatOrbit 7s linear infinite; }
.month-stat-event em { animation: lunaStatFloat 3.2s ease-in-out infinite; }

@keyframes lunaStatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.09); }
}

@keyframes lunaStatAttention {
    0%, 78%, 100% { transform: rotate(0); }
    83% { transform: rotate(-6deg); }
    89% { transform: rotate(6deg); }
    94% { transform: rotate(-3deg); }
}

@keyframes lunaStatOrbit {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

@keyframes lunaStatFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Переключатель месяцев */
.month-switcher {
    gap: 9px;
}

.month-switch-card {
    min-height: 112px;
    padding: 14px;
    color: var(--text);
    background: #f8faf8;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.month-switch-card[href]:hover {
    background: #eef4f1;
    border-color: #b5c7c0;
    box-shadow: var(--shadow-sm);
}

.month-switch-card.is-active {
    background: #fbf5df;
    border-color: #d8b95e;
    box-shadow: inset 0 0 0 1px rgba(216, 170, 78, .16);
}

.month-switch-label {
    color: #7a6f59;
}

.month-switch-name {
    color: var(--text-strong);
}

/* Сводка месяца */
.month-insights {
    background: #f7f8f5;
}

.month-insights-grid {
    gap: 12px;
}

.month-insight-card {
    position: relative;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
}

.month-insight-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: var(--primary);
}

.month-insight-card.is-good {
    background: #f1f7f1;
    border-color: #bfd5c1;
}

.month-insight-card.is-good::before { background: #5f8b65; }

.month-insight-card.is-bad {
    background: #fbf1ed;
    border-color: #e1b9a9;
}

.month-insight-card.is-bad::before { background: #b9674b; }

.month-insight-card.is-phase {
    background: #f3f7f8;
    border-color: #bfd2d6;
}

.month-insight-card.is-phase::before { background: #527a84; }

.month-insight-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.month-insight-heading h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 17px;
}

.month-insight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--primary-hover);
    background: rgba(255, 255, 255, .72);
    border: 1px solid currentColor;
    border-radius: 11px;
    font-size: 18px;
    font-weight: 900;
}

.month-insight-card.is-good .month-insight-icon { color: #477653; }
.month-insight-card.is-bad .month-insight-icon { color: #a44e37; }
.month-insight-card.is-phase .month-insight-icon { color: #406b75; }

.month-insight-card p {
    margin-bottom: 14px;
}

.month-date-link {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.month-insight-card.is-good .month-date-link {
    color: #355e3e;
    background: #e4f0e5;
    border-color: #bdd3bf;
}

.month-insight-card.is-bad .month-date-link {
    color: #8d432f;
    background: #f7e6df;
    border-color: #dfb5a5;
}

.month-insight-card.is-phase .month-date-link {
    color: #365e68;
    background: #e5eff1;
    border-color: #bdd0d4;
}

/* --------------------------------------------------------------------------
   Карточки дней месяца и рейтинги
   -------------------------------------------------------------------------- */

.month-day-row {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(31, 53, 62, .035);
}

.month-day-row:hover {
    background: #fbfcfa;
    border-color: #b7c6c0;
    box-shadow: 0 9px 22px rgba(31, 53, 62, .07);
}

.month-day-row.is-today {
    box-shadow: inset 4px 0 0 var(--accent), 0 9px 22px rgba(31, 53, 62, .07);
}

.day-date-box,
.day-rating-box {
    background: rgba(255, 255, 255, .66);
    border: 1px solid rgba(70, 93, 101, .10);
}

.day-number,
.day-title {
    color: var(--text-strong);
}

.day-month-short {
    color: #8b681f;
}

.day-arrow {
    color: #657880;
}

.rating-stars,
.day-nav-stars,
.moon-rating-stars {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: none;
}

.rating-best,
.day-nav-link.rating-best {
    background-color: #eaf5eb;
    border-color: #a8cbaa;
}

.rating-best .rating-stars,
.day-nav-link.rating-best .day-nav-stars,
.rating-best .moon-rating-stars { color: #33724a; }

.rating-good,
.day-nav-link.rating-good {
    background-color: #f0f5e8;
    border-color: #bfd09d;
}

.rating-good .rating-stars,
.day-nav-link.rating-good .day-nav-stars,
.rating-good .moon-rating-stars { color: #5e7a32; }

.rating-neutral,
.day-nav-link.rating-neutral {
    background-color: #fbf5df;
    border-color: #dcc271;
}

.rating-neutral .rating-stars,
.day-nav-link.rating-neutral .day-nav-stars,
.rating-neutral .moon-rating-stars { color: #936b17; }

.rating-warn,
.day-nav-link.rating-warn {
    background-color: #faeee5;
    border-color: #dda274;
}

.rating-warn .rating-stars,
.day-nav-link.rating-warn .day-nav-stars,
.rating-warn .moon-rating-stars { color: #a75a29; }

.rating-bad,
.day-nav-link.rating-bad {
    background-color: #f8e9e6;
    border-color: #d18c83;
}

.rating-bad .rating-stars,
.day-nav-link.rating-bad .day-nav-stars,
.rating-bad .moon-rating-stars { color: #a84740; }

/* --------------------------------------------------------------------------
   Страница конкретного дня
   -------------------------------------------------------------------------- */

.moon-form {
    gap: 11px;
}

.moon-form button {
    width: auto;
    min-width: 112px;
    padding: 12px 17px;
}

.day-nav {
    gap: 10px;
}

.day-nav-link {
    color: var(--text);
    background: #f8faf8;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: none;
}

.day-nav-link:hover {
    background: #eef4f1;
    border-color: #b4c5bf;
    box-shadow: var(--shadow-sm);
}

.day-nav-link.is-active {
    border: 2px solid #72916f !important;
    box-shadow: 0 0 0 3px rgba(102, 135, 97, .13), 0 10px 24px rgba(45, 67, 54, .09);
}

.day-nav-label {
    color: #61726e;
}

.day-nav-link.is-active .day-nav-label {
    color: #496c4d;
}

.day-nav-link.is-disabled {
    color: #869198;
    background: #f4f5f2;
    border-color: #e1e4e1;
}

.moon-grid {
    gap: 12px;
    padding: 15px;
    background: #eef3f0;
    border: 1px solid #cdd8d2;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.moon-grid .moon-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d5ddd8;
    border-left: 4px solid #708f87;
    border-radius: 15px;
    box-shadow: 0 4px 13px rgba(42, 61, 67, .065);
}

.moon-grid .moon-card::after {
    position: absolute;
    right: -24px;
    bottom: -30px;
    width: 76px;
    height: 76px;
    content: "";
    background: rgba(112, 143, 135, .075);
    border-radius: 50%;
    pointer-events: none;
}

.moon-grid .moon-label {
    position: relative;
    z-index: 1;
    margin-bottom: 7px;
    color: #5c706b;
    font-weight: 700;
}

.moon-grid .moon-value {
    position: relative;
    z-index: 1;
    color: var(--text-strong);
}

.local-list li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.moon-rating-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.moon-rating-bar {
    background: #e7ece9;
}

/* --------------------------------------------------------------------------
   Страницы «сегодня»
   -------------------------------------------------------------------------- */

.today-landing-hero,
.lunar-day-landing-hero,
.phase-landing-hero {
    background: linear-gradient(135deg, #f8f5e9, #edf4f1);
    border: 1px solid #d7dfd9;
    border-radius: 20px;
}

.today-landing-rating {
    background: #fff;
    border-color: var(--border);
}

.today-facts-grid article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.generated-forecast {
    background: #f7f8f5;
}

.generated-content .moon-rating {
    background: #fff;
    border-color: var(--border);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
    gap: 9px;
}

.faq-list details {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: none;
}

.faq-list details[open] {
    background: #fffaf0;
    border-color: #d8c18a;
}

.faq-list summary {
    position: relative;
    padding: 15px 16px 15px 42px;
    color: var(--text-strong);
    list-style: none;
    font-weight: 750;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::before {
    position: absolute;
    top: 50%;
    left: 17px;
    content: "▶";
    color: #607b72;
    font-size: 10px;
    line-height: 1;
    transform: translateY(-50%);
}

.faq-list details[open] summary::before {
    content: "▼";
}

.faq-list p {
    color: var(--muted);
}

.seo-content a,
.faq-list a {
    color: #3e6872;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.seo-content a:hover,
.faq-list a:hover {
    color: #284d56;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
    background: #fff;
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

.error-page::before {
    background: rgba(216, 170, 78, .14);
}

.error-page::after {
    background: rgba(82, 121, 130, .11);
}

.error-page-orbit {
    color: var(--primary);
    border-color: rgba(82, 121, 130, .25);
}

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */

.site-footer {
    width: min(1120px, calc(100% - 36px));
    margin: 26px auto 0;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 19px 21px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: var(--shadow-sm);
}

.site-footer-brand {
    color: var(--text-strong);
}

.site-footer-brand img {
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Адаптивность
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .site-header-inner {
        gap: 16px;
    }

    .site-nav a {
        padding-inline: 10px;
        font-size: 13px;
    }

    .month-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .month-overview {
        grid-template-columns: 1fr;
    }

    .month-overview-copy {
        padding-right: 0;
    }

    .month-overview-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .month-overview-stats span {
        min-height: 104px;
    }
}

@media (max-width: 820px) {
    .info-grid-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .month-insights-grid {
        grid-template-columns: 1fr;
    }

    .month-insight-card {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    body {
        padding-top: 10px;
    }

    .site-header {
        width: min(100% - 20px, 1180px);
        border-radius: 14px;
    }

    .site-header-inner {
        position: relative;
        min-height: 64px;
        padding: 8px 9px 8px 14px;
    }

    .site-logo img {
        height: 46px;
        max-width: 208px;
    }

    .site-menu-toggle,
    .site-header .site-menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        z-index: 100;
        top: calc(100% + 7px);
        right: 0;
        left: auto;
        display: none;
        width: min(330px, calc(100vw - 20px));
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 7px;
        background: #fff;
        border: 1px solid #cfd8d4;
        border-radius: 12px;
        box-shadow: 0 16px 38px rgba(31, 49, 58, .18);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 12px;
        color: var(--text);
        text-align: left;
        background: transparent;
        border: 0;
        border-radius: 8px;
        font-size: 13px;
    }

    .site-nav a::after {
        top: 9px;
        right: auto;
        bottom: 9px;
        left: 4px;
        width: 3px;
        height: auto;
        transform: scaleY(.45);
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        color: var(--text);
        background: #eef3f1;
    }

    .site-nav a:hover::after,
    .site-nav a:focus-visible::after,
    .site-nav a.is-active::after {
        transform: scaleY(1);
    }

    .site-nav a.is-active {
        color: var(--text);
        background: #f7f3e8;
    }

    .site-breadcrumbs,
    .site-footer {
        width: min(100% - 24px, 1120px);
    }

    .moon-wrap {
        width: min(100% - 20px, 1080px);
    }

    .moon-widget,
    .landing-widget {
        padding: 18px;
        border-radius: 20px;
    }

    .moon-header {
        align-items: flex-start;
    }

    .moon-icon {
        width: 82px;
        height: 82px;
        font-size: 50px;
    }

    .year-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .year-navigation-title {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 62px;
    }

    .month-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .month-overview-stats span {
        min-height: 100px;
    }

    .month-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .month-tab {
        min-height: 138px;
    }

    .day-nav-link.is-active {
        transform: none;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 11px;
    }
}

@media (max-width: 600px) {
    .info-grid,
    .info-grid-two,
    .info-grid-six {
        grid-template-columns: 1fr;
    }

    .info-grid article {
        min-height: 0;
    }

    .month-overview {
        padding: 18px;
    }

    .month-overview h1 {
        font-size: 30px;
    }

    .moon-form {
        grid-template-columns: 1fr;
    }

    .moon-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        height: 42px;
        max-width: 190px;
    }

    .site-menu-toggle,
    .site-header .site-menu-toggle {
        width: 42px !important;
        min-width: 42px;
        flex-basis: 42px;
        height: 42px;
        min-height: 42px;
    }

    .moon-header {
        flex-direction: column;
    }

    .month-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .month-tab {
        min-height: 126px;
        padding: 13px;
    }

    .month-tab strong {
        font-size: 15px;
    }

    .month-overview-stats span {
        padding: 12px;
    }

    .month-overview-stats strong {
        font-size: 22px;
    }

    .site-footer p {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ========================================================================== 
   Engine v5: normalized ratings, mixed days and precise day summary
   ========================================================================== */
.month-stat-mixed {
    color: #59678f;
    background: #eef0f8 !important;
    border-color: #bcc3dc !important;
}

.month-stat-mixed em {
    animation: lunaStatBalance 3.4s ease-in-out infinite;
}

@keyframes lunaStatBalance {
    0%, 100% { transform: translateY(0) rotate(0); }
    35% { transform: translateY(-2px) rotate(-4deg); }
    70% { transform: translateY(1px) rotate(4deg); }
}

.rating-mixed,
.day-nav-link.rating-mixed {
    background-color: #eef0f8;
    border-color: #b8bfd9;
}

.rating-mixed .rating-stars,
.day-nav-link.rating-mixed .day-nav-stars,
.rating-mixed .moon-rating-stars {
    color: #59678f;
}

.moon-day-type {
    display: grid;
    grid-template-columns: minmax(150px, auto) 1fr;
    gap: 8px 18px;
    align-items: center;
    margin: 0 0 16px;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #f7f8f6;
}

.moon-day-type strong {
    color: var(--text-strong);
    font-size: 17px;
    line-height: 1.2;
}

.moon-day-type span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.moon-day-type-favorable {
    background: #edf6ee;
    border-color: #b6d2ba;
}

.moon-day-type-neutral {
    background: #fbf5df;
    border-color: #dfc77f;
}

.moon-day-type-difficult {
    background: #faeee8;
    border-color: #dfb09e;
}

.moon-day-type-mixed {
    background: #eef0f8;
    border-color: #bcc3dc;
}

@media (max-width: 600px) {
    .moon-day-type {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 13px 14px;
    }
}
