* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f7fb;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.page-title {
    margin: 0 0 28px;
    color: #004b9b;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-title {
    margin: 36px 0 18px;
    color: #1f2937;
    font-size: 24px;
}

.match-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 18px 64px;
    margin: 36px 0 18px;
}

.match-list-toolbar .match-period-switch {
    margin: 0;
}

.calendar-time-toolbar {
    justify-content: flex-end;
    margin-top: 6px;
}

.match-period-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 36px 0 18px;
    font-size: 24px;
    line-height: 1.25;
}

.match-period-label {
    color: #111827;
    font-weight: 900;
}

.match-period-link {
    color: #c4c9d1;
    font-weight: 800;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.match-period-link:hover,
.match-period-link:focus-visible {
    color: #64748b;
    text-decoration: underline;
}

.match-period-link.is-active {
    color: #111827;
    font-weight: 900;
    text-decoration: underline;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 14px;
    color: #94a3b8;
}

.match-pagination a {
    color: #0050aa;
    font-weight: 800;
    text-decoration: none;
}

.match-pagination a:hover,
.match-pagination a:focus-visible {
    text-decoration: underline;
}

.match-pagination a:last-child,
.match-pagination span:last-child {
    text-align: right;
}

@media (max-width: 640px) {
    .match-list-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .calendar-time-toolbar {
        align-items: flex-end;
    }

    .match-period-switch {
        gap: 6px;
        font-size: 22px;
    }

    .match-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .match-pagination strong {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
}

.match-card {
    display: grid;
    grid-template-columns: 210px 1fr 240px;
    align-items: center;
    gap: 24px;
    min-height: 150px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.08);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.match-card.is-win {
    background-color: #f3fbf5;
    border-color: #b9ddc2;
}

.match-card.is-win:hover {
    background-color: #ebf7ee;
    border-color: #8fc79d;
    box-shadow: 0 12px 30px rgba(39, 132, 73, 0.13);
}

.match-card.is-draw {
    background-color: #fffbea;
    border-color: #ead58d;
}

.match-card.is-draw:hover {
    background-color: #fff5d9;
    border-color: #d8bd5f;
    box-shadow: 0 12px 30px rgba(166, 128, 0, 0.14);
}

.match-card.is-loss {
    background-color: #fff4f4;
    border-color: #e8bcbc;
}

.match-card.is-loss:hover {
    background-color: #ffeded;
    border-color: #d99494;
    box-shadow: 0 12px 30px rgba(181, 61, 61, 0.13);
}

.match-date {
    color: #374151;
}

.match-date-main {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.match-time {
    margin-top: 8px;
    font-size: 16px;
    color: #6b7280;
}

.match-stadium {
    margin-top: 10px;
    font-size: 15px;
    color: #374151;
}

.teams {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 42px minmax(260px, 1fr);
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.team {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.team-home {
    justify-content: flex-end;
    text-align: right;
}

.team-away {
    justify-content: flex-start;
    text-align: left;
}

.team-name {
    color: #0050aa;
    max-width: 300px;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: normal;
}

.team-logo,
.competition-logo {
    display: block;
    object-fit: contain;
}

.team-logo {
    width: 68px;
    height: 68px;
}

.logo-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e8eef7;
    color: #004b9b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.vs {
    color: #94a3b8;
    font-weight: 800;
    text-align: center;
}

.match-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    text-align: right;
}

.competition {
    min-width: 0;
}

.competition-name {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
}

.round {
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
}

.competition-logo {
    width: 58px;
    height: 58px;
    margin-left: auto;
    margin-bottom: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #0050aa;
    border-radius: 8px;
    color: #0050aa;
    background: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.15s ease;
}

.button:hover {
    background: #0050aa;
    color: #ffffff;
}

.empty {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 16px;
    color: #6b7280;
}

.detail-hero {
    position: relative;
    min-height: 420px;
    padding: 48px;
    border-radius: 24px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #002f6c, #0050aa);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 40, 92, 0.96), rgba(0, 80, 170, 0.78)),
        var(--stadium-image);
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.detail-content {
    position: relative;
    z-index: 1;
}

.detail-top {
    margin-bottom: 32px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.detail-teams {
    display: grid;
    grid-template-columns: 1fr 220px 1fr;
    align-items: center;
    gap: 28px;
}

.detail-team {
    display: flex;
    align-items: center;
    gap: 18px;
}

.detail-team-left {
    justify-content: flex-end;
    text-align: right;
}

.detail-team-right {
    justify-content: flex-start;
    text-align: left;
}

.detail-team-name {
    max-width: 360px;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    word-break: normal;
}

.detail-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.detail-center {
    text-align: center;
}

.detail-date {
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-place {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.08);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 32px;
}

.detail-item strong {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
}

.detail-item span,
.detail-item a {
    color: #1f2937;
    font-size: 18px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #0050aa;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 980px) {
    .match-card {
        grid-template-columns: 1fr;
    }

    .match-meta {
        justify-content: flex-start;
        text-align: left;
    }

    .competition-logo {
        margin-left: 0;
    }

    .teams {
        grid-template-columns: 1fr;
    }

    .team-home,
    .team-away {
        justify-content: flex-start;
        text-align: left;
    }

    .vs {
        display: none;
    }

    .detail-teams {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .detail-team-left,
    .detail-team-right {
        justify-content: center;
        text-align: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}
.filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
    gap: 14px;
    align-items: start;
    margin: 0 0 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.06);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-mode-field {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    min-width: 0;
}

.filter-mode-panel {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.filter-mode-panel[hidden] {
    display: none;
}

.filter-mode-switch {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 42px;
    padding: 6px;
    border: 1px solid #8db8e8;
    border-radius: 8px;
    background: #edf6ff;
    color: #0050aa;
    cursor: pointer;
}

.filter-mode-switch:hover {
    border-color: #0050aa;
    background: #dcecff;
}

.filter-mode-switch:focus-visible {
    outline: 2px solid rgba(0, 80, 170, 0.35);
    outline-offset: 2px;
}

.filter-mode-switch svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.16s ease;
}

.filter-mode-switch.is-team-mode svg {
    transform: rotate(180deg);
}

.filter-field label {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.filter-field select,
.checkbox-select-trigger {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #c8d7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
}

.filter-field select:focus,
.checkbox-select-trigger:focus-visible,
.checkbox-select.is-open .checkbox-select-trigger {
    outline: none;
    border-color: #0050aa;
    box-shadow: 0 0 0 3px rgba(0, 80, 170, 0.12);
}

.checkbox-select {
    position: relative;
    min-width: 0;
}

.checkbox-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.checkbox-select-trigger [data-checkbox-select-summary] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkbox-select-arrow {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.16s ease;
}

.checkbox-select.is-open .checkbox-select-arrow {
    transform: rotate(225deg) translate(-1px, -1px);
}

.checkbox-select-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 1200;
    width: max(100%, 300px);
    max-width: min(430px, calc(100vw - 40px));
    overflow: hidden;
    border: 1px solid #c8d7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 48, 120, 0.18);
}

.checkbox-select-options {
    max-height: 310px;
    overflow-y: auto;
    padding: 8px;
}

.filter-field .checkbox-select-option {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 7px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    cursor: pointer;
}

.filter-field .checkbox-select-option:hover {
    background: #f0f6ff;
}

.checkbox-select-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 1px 0 0;
    accent-color: #0050aa;
}

.checkbox-select-group-title {
    padding: 10px 9px 5px;
    color: #0050aa;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.checkbox-select-group-title:first-child {
    padding-top: 4px;
}

.checkbox-select-clear {
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0050aa;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.checkbox-select-clear:hover:not(:disabled),
.checkbox-select-clear:focus-visible {
    background: #eaf3ff;
    outline: none;
}

.checkbox-select-clear:disabled {
    color: #94a3b8;
    cursor: default;
}

.checkbox-select-empty {
    display: block;
    padding: 10px 9px;
    color: #64748b;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 25px;
}

.filter-primary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-more-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 29px;
    padding: 4px 8px;
    border: 1px solid #c8d7eb;
    border-radius: 6px;
    background: #f7faff;
    color: #64748b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.filter-more-button:hover,
.filter-more-button:focus-visible,
.filter-more-button.is-open {
    border-color: #8db8e8;
    background: #eaf3ff;
    color: #0050aa;
    outline: none;
}

.filter-more-arrow {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.16s ease;
}

.filter-more-button.is-open .filter-more-arrow {
    transform: rotate(180deg);
}

.advanced-filters {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(220px, 330px));
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.advanced-filters[hidden] {
    display: none;
}

.advanced-filter-hint {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
}

.button-secondary {
    border-color: #c8d7eb;
    color: #374151;
}

.button-secondary:hover {
    border-color: #0050aa;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .filters {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .filter-actions {
        grid-column: 1 / -1;
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .filters {
        grid-template-columns: 1fr;
    }

    .checkbox-select-menu {
        width: 100%;
        max-width: none;
    }

    .checkbox-select-options {
        max-height: 260px;
    }

    .filter-actions,
    .advanced-filters {
        grid-column: 1;
    }

    .advanced-filters {
        grid-template-columns: 1fr;
    }
}
.scroll-top-button {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1000;

    width: 76px;
    height: 76px;
    border: none;
    border-radius: 14px;

    background: #0b56bd;
    color: #ffffff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);

    box-shadow: 0 14px 32px rgba(0, 55, 130, 0.28);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease,
        background 0.16s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover {
    background: #004b9b;
}

.scroll-top-button:active {
    transform: translateY(2px);
}

.scroll-top-icon {
    width: 46px;
    height: 46px;
    border: 3px solid #ffffff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;
    line-height: 1;
    font-weight: 400;
}

@media (max-width: 640px) {
    .scroll-top-button {
        right: 18px;
        bottom: 18px;
        width: 62px;
        height: 62px;
        border-radius: 12px;
    }

    .scroll-top-icon {
        width: 38px;
        height: 38px;
        font-size: 30px;
        border-width: 2px;
    }
}
.view-switch {
    display: inline-flex;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.06);
}

.view-switch + .match-list-toolbar {
    margin-top: 12px;
}

.view-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    color: #0050aa;
    font-weight: 800;
    text-decoration: none;
}

.view-tab.is-active {
    background: #0050aa;
    color: #ffffff;
}

.calendar-page {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 20px;
    color: #53657c;
    font-size: 14px;
    font-weight: 600;
}

.calendar-day-off-star {
    flex: 0 0 auto;
    color: #dc2626;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    outline: none;
}

.calendar-day-off-marker {
    display: inline-flex;
    align-items: baseline;
}

.calendar-day-off-tooltip {
    position: absolute;
    z-index: 30;
    top: 38px;
    left: 8px;
    right: 8px;
    padding: 9px 10px;
    color: #ffffff;
    background: #26364a;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.24);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.calendar-day-off-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 17px;
    width: 10px;
    height: 10px;
    background: #26364a;
    transform: rotate(45deg);
}

.calendar-day-off-marker:hover .calendar-day-off-tooltip,
.calendar-day-off-marker:focus-within .calendar-day-off-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-day-off-star:focus-visible {
    border-radius: 3px;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.calendar-month {
    width: 100%;
}

.calendar-month-title {
    margin: 0 0 20px;
    color: #1f2937;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    color: #7b8797;
    font-size: 22px;
    font-weight: 800;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.calendar-day {
    position: relative;
    min-height: 172px;
    padding: 12px 10px 10px;
    background: #ffffff;
    border: 1px solid #e2eaf5;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 48, 120, 0.04);
    overflow: hidden;
}

.calendar-day-muted {
    opacity: 0.38;
}

.calendar-day-number {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.calendar-event {
    display: block;
    margin-top: 6px;
    padding: 7px 6px 0;
    min-height: 118px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f8fbff;
    color: #1f2937;
    text-decoration: none;
    overflow: hidden;
    transition: 0.15s ease;
}

.calendar-event:hover {
    background: #eef5ff;
    transform: translateY(-1px);
}

.calendar-event.is-win,
.calendar-event.is-win:hover {
    background-color: #f3fbf5;
    border-color: #b9ddc2;
}

.calendar-event.is-draw,
.calendar-event.is-draw:hover {
    background-color: #fffbea;
    border-color: #ead58d;
}

.calendar-event.is-loss,
.calendar-event.is-loss:hover {
    background-color: #fff4f4;
    border-color: #e8bcbc;
}

.calendar-event-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 18px;
    color: #0050aa;
    font-size: 11px;
    font-weight: 800;
}

.calendar-competition-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.calendar-event-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin-top: 4px;
}

.calendar-event-logos img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.calendar-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8eef7;
    color: #0050aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.calendar-event-info {
    margin-top: 4px;
    min-height: 16px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.calendar-event-stadium {
    margin: 6px -6px 0;
    padding: 4px 5px;
    background: #0050aa;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-more {
    margin-top: 6px;
    color: #0050aa;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1100px) {
    .calendar-weekdays {
        gap: 8px;
        font-size: 16px;
    }

    .calendar-grid {
        gap: 8px;
    }

    .calendar-day {
        min-height: 140px;
        padding: 8px;
    }

    .calendar-event {
        min-height: 96px;
    }

    .calendar-event-logos img,
    .calendar-logo-placeholder {
        width: 34px;
        height: 34px;
    }

    .calendar-event-stadium {
        font-size: 9px;
    }
}

@media (max-width: 760px) {
    .calendar-weekdays {
        display: none;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-day-muted {
        display: none;
    }

    .calendar-day {
        min-height: auto;
    }
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 26px;
    padding: 8px;
    width: fit-content;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.06);
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    color: #0050aa;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.16s ease;
}

.site-nav-link:hover {
    background: #eef5ff;
}

.site-nav-link.is-active {
    background: #0050aa;
    color: #ffffff;
}

.text-page {
    max-width: 920px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.06);
}

.text-page h2 {
    margin: 0 0 22px;
    color: #0050aa;
    font-size: 30px;
    font-weight: 900;
}

.text-page p,
.text-page li {
    color: #1f2937;
    font-size: 18px;
    line-height: 1.65;
}

.text-page p {
    margin: 0 0 18px;
}

.text-page ol,
.text-page ul {
    margin: 0 0 22px;
    padding-left: 28px;
}

.text-page a {
    color: #0050aa;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 80, 170, 0.35);
}

.text-page a:hover {
    border-bottom-color: #0050aa;
}

.telegram-bot-page {
    max-width: 1120px;
}

.telegram-bot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: start;
    gap: 42px;
}

.telegram-bot-copy ol {
    columns: 2;
    column-gap: 40px;
}

.telegram-bot-copy li {
    break-inside: avoid;
}

.text-page .telegram-bot-button {
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid #0050aa;
    background: #0050aa;
    color: #ffffff;
    font-size: 17px;
}

.text-page .telegram-bot-button:hover {
    background: #003f8c;
    border-color: #003f8c;
}

.telegram-bot-qr {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.telegram-bot-qr a,
.telegram-bot-qr a:hover {
    display: block;
    border-bottom: 0;
}

.telegram-bot-qr img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.telegram-bot-qr p {
    margin: 12px 4px 2px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

@media (max-width: 640px) {
    .site-nav {
        width: 100%;
    }

    .site-nav-link {
        flex: 1 1 100%;
    }

    .text-page {
        padding: 22px;
    }

    .text-page p,
    .text-page li {
        font-size: 16px;
    }

    .telegram-bot-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .telegram-bot-copy ol {
        columns: 1;
    }

    .telegram-bot-qr {
        width: min(100%, 380px);
        margin: 0 auto;
    }

    .text-page .telegram-bot-button {
        width: 100%;
        text-align: center;
    }
}
.page-title-link {
    color: inherit;
    text-decoration: none;
}

.page-title-link:hover {
    color: #003f8c;
}

.calendar-month-current {
    scroll-margin-top: 24px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    display: grid;
    grid-template-columns: 210px 1fr 180px;
    align-items: center;
    gap: 24px;
    min-height: 130px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.08);
}

.event-card-main {
    min-width: 0;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #0050aa;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-card-title {
    margin: 0;
    color: #0050aa;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
}

.event-card-subtitle {
    margin-top: 8px;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

.event-card-action {
    text-align: right;
}

.calendar-fan-event {
    background: #eef5ff;
    border: 1px solid #c8d7eb;
}

.calendar-fan-event:hover {
    background: #e0edff;
}

.calendar-event-title {
    margin-top: 10px;
    min-height: 44px;
    color: #0050aa;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.event-detail-center {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.event-detail-title {
    margin: 16px 0 0;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .event-card {
        grid-template-columns: 1fr;
    }

    .event-card-action {
        text-align: left;
    }
}
@media (max-width: 760px) {
    .match-card {
        display: grid !important;
        grid-template-columns: 108px minmax(0, 1fr) 88px !important;
        gap: 8px !important;
        align-items: center !important;

        min-height: auto !important;
        padding: 16px 12px !important;
        border-radius: 18px !important;
    }

    .match-date {
        grid-column: 1 !important;
        min-width: 0 !important;
        align-self: center !important;
    }

    .match-date-main {
        font-size: 18px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    .match-time {
        margin-top: 7px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .match-stadium {
        margin-top: 7px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere !important;
    }

    .teams {
        grid-column: 2 !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 10px !important;

        min-width: 0 !important;
        align-self: center !important;
    }

    .vs {
        display: none !important;
    }

    .team {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px !important;

        min-width: 0 !important;
        text-align: left !important;
    }

    .team-home,
    .team-away {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .team-home .team-logo,
    .team-home .logo-placeholder {
        order: -1 !important;
    }

    .team-logo,
    .logo-placeholder {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        object-fit: contain !important;
    }

    .team-name {
        max-width: none !important;
        min-width: 0 !important;

        font-size: 15px !important;
        line-height: 1.05 !important;
        text-align: left !important;

        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .match-meta {
        grid-column: 3 !important;

        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;

        min-width: 0 !important;
        align-self: stretch !important;
        text-align: right !important;
        overflow: hidden !important;
    }

    .competition {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;

        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
    }

    .competition-logo {
        width: 32px !important;
        height: 32px !important;
        margin: 0 0 6px auto !important;
        object-fit: contain !important;
    }

    .competition-name {
        max-width: 100% !important;

        font-size: 11px !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;

        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .round {
        margin-top: 4px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    .match-meta .button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 30px !important;

        margin-top: 7px !important;
        padding: 0 5px !important;
        border-radius: 8px !important;

        font-size: 9px !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 390px) {
    .match-card {
        grid-template-columns: 102px minmax(0, 1fr) 78px !important;
        gap: 7px !important;
        padding: 14px 10px !important;
    }

    .match-date-main {
        font-size: 17px !important;
    }

    .match-time,
    .match-stadium {
        font-size: 11px !important;
    }

    .team-logo,
    .logo-placeholder {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    .team-name {
        font-size: 14px !important;
    }

    .competition-logo {
        width: 28px !important;
        height: 28px !important;
    }

    .competition-name {
        font-size: 10px !important;
    }

    .round {
        font-size: 10px !important;
    }

    .match-meta .button {
        font-size: 8px !important;
        padding: 0 4px !important;
    }
}
.friendly-channels {
    max-width: 920px;
    margin-top: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.06);
}

.friendly-channels-title {
    margin: 0 0 20px;
    color: #1f2937;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.friendly-channel-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid #d6e2f1;
    border-radius: 18px;
}

.friendly-channel-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.friendly-channel-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
}

.friendly-channel-content {
    min-width: 0;
}

.friendly-channel-name {
    margin: 0 0 10px;
    color: #0050aa;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.friendly-channel-text {
    margin: 0 0 16px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.55;
}

.friendly-channel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 8px;
    background: #0050aa;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.15s ease;
}

.friendly-channel-button:hover {
    background: #003f8c;
}

@media (max-width: 640px) {
    .friendly-channels {
        padding: 20px;
    }

    .friendly-channels-title {
        font-size: 20px;
    }

    .friendly-channel-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .friendly-channel-image {
        width: 76px;
        height: 76px;
    }

    .friendly-channel-name {
        font-size: 19px;
    }

    .friendly-channel-text {
        font-size: 14px;
        line-height: 1.45;
    }

    .friendly-channel-button {
        min-height: 38px;
        padding: 0 16px;
        font-size: 12px;
    }
}
.friendly-channels {
    max-width: 920px;
    margin-top: 32px;
}

.friendly-channels-title {
    margin-top: 0;
    margin-bottom: 18px;
}

.friendly-channel-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.friendly-channel-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 24px;
    align-items: center;

    padding: 24px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.06);
}

.friendly-channel-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.friendly-channel-image {
    display: block;
    width: 104px;
    height: 104px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
}

.friendly-channel-content {
    min-width: 0;
}

.friendly-channel-name {
    margin: 0 0 10px;
    color: #0050aa;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.friendly-channel-text {
    margin: 0 0 16px;
    color: #1f2937;
    font-size: 17px;
    line-height: 1.55;
}

.friendly-channel-button {
    width: fit-content;
}

@media (max-width: 640px) {
    .friendly-channels {
        margin-top: 24px;
    }

    .friendly-channel-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .friendly-channel-image {
        width: 72px;
        height: 72px;
    }

    .friendly-channel-name {
        font-size: 20px;
    }

    .friendly-channel-text {
        font-size: 14px;
        line-height: 1.45;
    }

    .friendly-channel-button {
        min-height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }
}
/* Точная доводка карточек матчей на широком экране без растягивания */
@media (min-width: 981px) {
    .teams {
        padding-left: 16px;
    }

    .match-meta .button {
        transform: translateY(6px);
    }
}
.match-weekday-separator {
    margin: 0 6px;
}

.match-weekday {
    letter-spacing: 0.04em;
}
/* Прокрутка матчей внутри дня календаря */
.calendar-day {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day-events {
    min-height: 0;
    overflow-y: visible;
}

.calendar-day-events.is-scrollable {
    max-height: 390px;
    padding-right: 4px;
    overflow-y: hidden;
}

.calendar-day:hover .calendar-day-events.is-scrollable,
.calendar-day:focus-within .calendar-day-events.is-scrollable {
    overflow-y: auto;
}

.calendar-day-events::-webkit-scrollbar {
    width: 6px;
}

.calendar-day-events::-webkit-scrollbar-thumb {
    background: #c8d7eb;
    border-radius: 999px;
}

.calendar-day-events::-webkit-scrollbar-thumb:hover {
    background: #9db8da;
}

.calendar-more {
    flex: 0 0 auto;
    margin-top: 6px;
}

@media (max-width: 1100px) {
    .calendar-day-events.is-scrollable {
        max-height: 320px;
    }
}

@media (max-width: 760px) {
    .calendar-day-events {
        max-height: none;
        overflow-y: visible;
    }

    .calendar-day:hover .calendar-day-events.is-scrollable,
    .calendar-day:focus-within .calendar-day-events.is-scrollable {
        overflow-y: visible;
    }
}
/* Внутренняя прокрутка матчей в календаре на узких экранах */
@media (max-width: 760px) {
    .calendar-day {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        max-height: 560px;
    }

    .calendar-day-events {
        min-height: 0;
        max-height: none;
        overflow-y: visible;
    }

    .calendar-day-events.is-scrollable {
        max-height: 460px;
        overflow-y: auto;
        padding-right: 4px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .calendar-day:hover .calendar-day-events.is-scrollable,
    .calendar-day:focus-within .calendar-day-events.is-scrollable {
        overflow-y: auto;
    }

    .calendar-more {
        flex: 0 0 auto;
        margin-top: 6px;
    }
}
/* День недели в мобильной версии календаря */
.calendar-mobile-weekday-separator,
.calendar-mobile-weekday {
    display: none;
}

@media (max-width: 760px) {
    .calendar-day-number {
        display: flex;
        align-items: baseline;
        gap: 6px;
        color: #53657c;
    }

    .calendar-mobile-weekday-separator,
    .calendar-mobile-weekday {
        display: inline;
        color: #53657c;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

    .calendar-mobile-weekday-separator {
        font-weight: 400;
    }
}

.friendly-channel-card + .friendly-channel-card {
    margin-top: 18px;
}

/* Кнопка добавления матча в Google Calendar */
.detail-actions {
    align-items: center;
}

.detail-calendar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.button-share {
    min-width: 136px;
    font-family: inherit;
    cursor: pointer;
}

.button-google-calendar {
    margin-left: 0;
    background: #0050aa;
    color: #ffffff;
}

.button-google-calendar:hover {
    border-color: #003f8c;
    background: #003f8c;
    color: #ffffff;
}

@media (max-width: 640px) {
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-actions .button {
        width: 100%;
    }

    .detail-calendar-actions {
        width: 100%;
        flex-direction: column;
        margin-left: 0;
    }
}

.detail-comment a {
    color: #0050aa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.detail-comment a:hover {
    color: #003f8c;
}

/* Расширенное форматирование комментариев */

.detail-comment .comment-bold {
    font-weight: 800;
}

.detail-comment .comment-italic {
    font-style: italic;
}

.detail-comment .comment-strikethrough {
    text-decoration: line-through;
}

.detail-comment .comment-color-blue {
    color: #0050aa;
}

.detail-comment .comment-color-red {
    color: #c62828;
}

.detail-comment .comment-color-yellow {
    color: #a66b00;
}

.detail-comment .comment-color-green {
    color: #218838;
}

.detail-comment .comment-color-gray {
    color: #6b7280;
}


/* Копируемый текст */

.detail-comment .comment-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 2px 7px;

    border: 1px solid #b8cce5;
    border-radius: 6px;

    background: #f4f8fd;
    color: #0050aa;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.detail-comment .comment-copy:hover {
    border-color: #0050aa;
    background: #eaf3ff;
}

.detail-comment .comment-copy::after {
    content: "⧉";

    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}

.detail-comment .comment-copy.is-copied {
    border-color: #218838;
    background: #edf8f0;
    color: #176b2b;
}

.detail-comment .comment-copy.is-copied::after {
    content: "✓ Скопировано";

    color: #218838;
}

.detail-comment .comment-copy:focus-visible {
    outline: 2px solid #0050aa;
    outline-offset: 2px;
}

/* Значок промокода в карточке матча */

.match-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.match-promo-badge {
    display: block;
    width: 68px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 auto;
}

/*
 * Ранее кнопка "Подробнее" на большом экране
 * немного сдвигалась вниз. Теперь она находится
 * рядом со значком, поэтому выравниваем их вместе.
 */
.match-card-actions .button {
    margin-top: 0;
    transform: none;
}


/* Телефон */

@media (max-width: 760px) {
    .match-card-actions {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;

        width: 100%;
        margin-top: 6px;
    }

    .match-promo-badge {
        width: 44px;
        height: 30px;
    }

    .match-card-actions .button {
        width: 100% !important;
        margin-top: 0 !important;
    }
}


/* Новости */

.news-index {
    max-width: 1040px;
}

.news-index-header {
    margin-bottom: 24px;
}

.news-index-header h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 34px;
    font-weight: 900;
}

.news-index-header p {
    margin: 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.55;
}

.news-list {
    display: grid;
    gap: 18px;
}

.news-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: #a9c6e8;
    box-shadow: 0 14px 34px rgba(0, 48, 120, 0.11);
}

.news-card-link {
    display: block;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.news-card-title {
    margin: 0 0 16px;
    color: #111827;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.25;
}

.news-card-main {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.news-card-main-no-image {
    grid-template-columns: 1fr;
}

.news-card-image {
    width: 230px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    background: #eef4fb;
}

.news-card-copy {
    display: flex;
    min-width: 0;
    min-height: 150px;
    flex-direction: column;
}

.news-card-copy p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
    line-height: 1.6;
}

.news-card-date,
.news-article-date {
    display: block;
    margin-top: auto;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.4;
    text-align: right;
}

.news-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 14px;
    color: #64748b;
}

.news-pagination a {
    color: #0050aa;
    font-weight: 800;
    text-decoration: none;
}

.news-pagination a:last-child,
.news-pagination span:last-child {
    text-align: right;
}

.news-empty {
    padding: 34px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 18px;
    color: #64748b;
    font-size: 18px;
    text-align: center;
}

.news-back-link {
    display: inline-flex;
    margin-bottom: 18px;
}

.news-article {
    max-width: 920px;
    padding: 34px;
    background: #ffffff;
    border: 1px solid #d6e2f1;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 48, 120, 0.06);
}

.news-article-title {
    margin: 0 0 24px;
    color: #111827;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.18;
}

.news-article-image {
    display: block;
    width: 100%;
    max-height: 660px;
    margin: 0 0 12px;
    border-radius: 14px;
    object-fit: contain;
    background: #f5f8fc;
}

.news-article-date {
    margin: 0 0 28px;
}

.news-article-body {
    color: #1f2937;
    font-size: 19px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.news-inline-photo {
    width: fit-content;
    max-width: 100%;
    margin: 30px auto;
}

.news-inline-photo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 720px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    background: #f5f8fc;
}

.news-inline-photo figcaption {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

@media (max-width: 700px) {
    .news-card-link {
        padding: 18px;
    }

    .news-card-title {
        font-size: 22px;
    }

    .news-card-main {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card-image {
        width: 100%;
        height: min(58vw, 260px);
    }

    .news-card-copy {
        min-height: auto;
    }

    .news-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .news-pagination strong {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .news-article {
        padding: 22px;
    }

    .news-article-title {
        margin-bottom: 20px;
    }

    .news-article-body {
        font-size: 17px;
        line-height: 1.7;
    }

    .news-inline-photo {
        margin: 24px auto;
    }

    .news-inline-photo figcaption {
        font-size: 13px;
    }
}
