* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Segoe UI, Arial, sans-serif;
    color: #1f2933;
    background: #f4f7fb;
    line-height: 1.5;
}

a {
    color: #0b6efd;
}

.top-menu {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 14px 20px;
    background: #102a43;
    color: #fff;
}

.top-menu a {
    color: #fff;
    text-decoration: none;
}

.top-menu .brand {
    font-weight: 700;
    margin-right: 12px;
}

.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.content--with-sidebar {
    max-width: 1180px;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.page-main {
    min-width: 0;
}

.live-panel {
    position: sticky;
    top: 16px;
}

.live-panel__inner {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08);
    border: 1px solid #d9e2ec;
}

.live-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.live-panel__title {
    margin: 0;
    font-size: 1rem;
}

.unit-toggle {
    display: inline-flex;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    overflow: hidden;
}

.unit-toggle__btn {
    border: 0;
    background: #f0f4f8;
    color: #334e68;
    padding: 4px 8px;
    font-size: 0.78rem;
    cursor: pointer;
}

.unit-toggle__btn.is-active {
    background: #0b6efd;
    color: #fff;
}

.live-panel__now {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.live-panel__label {
    display: block;
    font-size: 0.82rem;
    color: #627d98;
    margin-bottom: 4px;
}

.live-panel__price {
    display: block;
    font-size: 1.55rem;
    line-height: 1.2;
    color: #102a43;
}

.live-panel__time {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #627d98;
}

.live-panel__section-label {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #627d98;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.live-panel__hours {
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-panel__hours li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e4e7eb;
    font-size: 0.92rem;
}

.live-panel__hours li:last-child {
    border-bottom: 0;
}

.live-panel__hours strong {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.live-panel__hint,
.live-panel__footnote {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: #627d98;
}

.live-panel__archive {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 10px;
    padding: 14px;
    margin-top: 20px;
}

.live-panel__archive .live-panel__price {
    font-size: 1.35rem;
}

.live-panel__link {
    margin: 10px 0 0;
    font-size: 0.92rem;
}

.unit-toggle-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

.unit-toggle-bar__label {
    font-size: 0.9rem;
    color: #627d98;
}

.site-footer--wide {
    max-width: 1180px;
}

h1 {
    margin-top: 0;
}

.lead {
    color: #52606d;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08);
}

.stat-label {
    display: block;
    color: #829ab1;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08);
}

.notice {
    padding: 14px 16px;
    border-radius: 10px;
    margin: 20px 0;
}

.notice-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

.notice-warn {
    background: #fff3cd;
    border: 1px solid #ffeeba;
}

.prose h2 {
    margin-top: 1.4em;
    font-size: 1.15rem;
}

.prose p {
    color: #334e68;
}

.slot-list {
    padding-left: 20px;
}

.meta-list {
    list-style: none;
    padding: 0;
}

.meta-list li {
    margin-bottom: 8px;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d9e2ec;
    text-align: left;
}

.hour-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.hour-cell {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.hour-cell__time {
    display: block;
    color: #627d98;
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.hour-cell__price {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
}

.hour-cell__unit {
    font-size: 0.72rem;
    font-weight: 600;
    color: #627d98;
}

.hour-cell__eur {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: #829ab1;
}

.panel-hint {
    margin: -4px 0 12px;
    color: #627d98;
    font-size: 0.92rem;
}

.panel-link {
    margin-top: 12px;
    margin-bottom: 0;
}

.period-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.period-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d9e2ec;
    color: #102a43;
    text-decoration: none;
}

.period-nav a.is-active {
    background: #0b6efd;
    border-color: #0b6efd;
    color: #fff;
}

.day-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0;
}

.day-nav a {
    color: #0b6efd;
    text-decoration: none;
}

.breadcrumbs {
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: #627d98;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 6px;
    color: #9fb3c8;
}

.breadcrumbs a {
    color: #0b6efd;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.period-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.period-form-row input[type="date"] {
    padding: 8px 10px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
}

.period-form-row button {
    padding: 8px 14px;
    background: #0b6efd;
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.period-form h2 {
    margin: 16px 0 8px;
    font-size: 1rem;
}

.data-table small {
    color: #627d98;
    font-weight: normal;
}

.site-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 32px;
    color: #627d98;
    font-size: 0.92rem;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: #0b6efd;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.article-meta {
    color: #627d98;
    font-size: 0.82rem;
    margin: 0 0 6px;
}

.articles-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.articles-head h2 {
    margin: 0;
}

.articles-all-link {
    font-size: 0.92rem;
    color: #0b6efd;
    text-decoration: none;
    white-space: nowrap;
}

.articles-all-link:hover {
    text-decoration: underline;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
    border-color: #9ec7ea;
    box-shadow: 0 8px 22px rgba(11, 110, 253, 0.12);
}

.article-card__thumb {
    display: block;
    height: 160px;
    background: #eef3f8;
}

.article-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 18px;
}

.article-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.article-card__title a {
    color: #102a43;
    text-decoration: none;
}

.article-card__title a:hover {
    color: #0b6efd;
}

.article-card__excerpt {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #486581;
}

.article-read-more {
    margin-top: auto;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0b6efd;
    text-decoration: none;
}

.article-read-more:hover {
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .top-menu {
        flex-wrap: wrap;
    }

    .hour-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .live-panel {
        position: static;
        order: -1;
    }
}
