body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #DFDBE5;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.site-nav__brand {
    font-weight: 700;
    color: #333;
    text-decoration: none;
    margin-right: auto;
}

.site-nav__link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

.site-nav__link:hover {
    background: rgba(156, 146, 172, 0.2);
    color: #222;
}

.site-nav__link--active {
    font-weight: 600;
    color: #222;
    background: rgba(156, 146, 172, 0.25);
}

.page-home main {
    padding-top: 48px;
}

#time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    font-weight: bold;
    color: #333;
    z-index: 2;
    font-family: inherit;
}

canvas {
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 1;
}

#data-container {
    position: absolute;
    top: 68px;
    left: 20px;
    z-index: 2;
    font-size: 1.5em;
    color: #333;
    font-family: inherit;
    text-align: left;
}

#data-container div {
    margin-bottom: 10px;
}

/* Страница отпуска */
.page-vacation {
    overflow: auto;
    background: #f4f2f7;
    color: #2a2a2a;
    line-height: 1.55;
}

.vacation-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 5.5rem 1.25rem 3rem;
}

.vacation-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.vacation-lead {
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
}

.vacation-meta {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 2rem;
}

.vacation-block {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.vacation-block h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.vacation-block h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    color: #444;
}

.vacation-block h3:first-of-type {
    margin-top: 0;
}

.vacation-top-note {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: #555;
}

.vacation-top-summary {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    background: #f0edf4;
    border-radius: 8px;
    font-size: 0.92rem;
}

.vacation-block ul {
    margin: 0;
    padding-left: 1.25rem;
}

.vacation-block li {
    margin-bottom: 0.45rem;
}

.vacation-block p {
    margin: 0 0 0.5rem;
}

.route-table-wrap {
    overflow-x: auto;
    margin: 0 -0.25rem;
}

.route-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.route-table th,
.route-table td {
    padding: 0.5rem 0.45rem;
    border-bottom: 1px solid #ece9f0;
    text-align: left;
    vertical-align: top;
}

.route-table thead th {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.route-table .num {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.route-table .route-dir {
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
}

.route-table tr.route-section td {
    background: #f0edf4;
    font-weight: 600;
    color: #444;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.route-table--compact th {
    font-weight: 500;
    width: 55%;
}

.route-footnote {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: #666;
}

.vacation-download {
    margin: 0 0 1rem;
}

.vacation-download a {
    display: inline-block;
    padding: 0.55rem 1rem;
    background: #5c4d72;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.vacation-download a:hover {
    background: #4a3d5c;
}

.vacation-block a:not(.vacation-download a) {
    color: #5c4d72;
}

@media (max-width: 600px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .site-nav__brand {
        width: 100%;
    }

    #time {
        font-size: 2.2em;
    }
}
