.okha65-off-page,
.okha65-off-page * {
    box-sizing: border-box;
}

.okha65-controller:has(.okha65-off-page) {
    max-width: none;
}

.okha65-off-page {
    --off-line: #e8eef7;
    --off-muted: #6b7893;
    --off-text: #111827;
    --off-blue: #2f6be6;
    --off-blue-soft: #eaf1ff;
    color: var(--off-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.okha65-off-page__day-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 4px;
    border: 1px solid var(--off-line);
    border-radius: 999px;
    background: #fff;
}

.okha65-off-page__day-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--off-muted) !important;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1 !important;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .18s ease, color .18s ease;
}

.okha65-off-page__day-filter:hover {
    color: var(--off-text) !important;
    background: #f8fbff !important;
}

.okha65-off-page__day-filter.is-active {
    background: var(--off-blue-soft) !important;
    color: var(--off-blue) !important;
}

.okha65-off-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.okha65-off-page__filter,
.okha65-off-page__section-more {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.okha65-off-page__filter {
    gap: 8px;
    min-height: 40px !important;
    padding: 0 16px !important;
    border: 1px solid var(--off-line) !important;
    border-radius: 999px;
    background: #fff !important;
    color: var(--off-text) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.okha65-off-page__filter img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.okha65-off-page__filter svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.okha65-off-page__filter:hover {
    border-color: #c8d7f3 !important;
    background: #f8fbff !important;
    color: var(--off-text) !important;
}

.okha65-off-page__filter.is-active {
    border-color: #bfd3fb !important;
    background: var(--off-blue-soft) !important;
    color: var(--off-blue) !important;
    box-shadow: none;
}

.okha65-off-page__filter.is-active img {
    filter: none;
}

.okha65-off-page__section {
    margin-bottom: 28px;
}

.okha65-off-page__section.is-hidden {
    display: none;
}

.okha65-off-page__section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.okha65-off-page__section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.okha65-off-page__section-icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.okha65-off-page__section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.okha65-off-page__section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--off-blue-soft);
    color: var(--off-blue);
    font-size: 12px;
    font-weight: 700;
}

.okha65-off-page__section-more {
    gap: 4px;
    margin-left: auto;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--off-blue) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, opacity .18s ease;
}

.okha65-off-page__section-more svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
}

.okha65-off-page__section-more:hover,
.okha65-off-page__section-more:focus-visible {
    color: #1f58c8 !important;
    background: transparent !important;
    border-color: transparent !important;
}

.okha65-off-page__section-more[hidden] {
    display: none;
}

.okha65-off-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.okha65-off-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    min-height: 100%;
    padding: 16px;
    border: 1px solid var(--off-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(37, 67, 112, 0.05);
}

.okha65-off-card.is-hidden {
    display: none;
}

.okha65-off-card__icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.okha65-off-card__body {
    min-width: 0;
}

.okha65-off-card__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.okha65-off-card__title a {
    color: inherit;
    text-decoration: none;
}

.okha65-off-card__title a:hover {
    color: var(--off-blue);
    text-decoration: none;
}

.okha65-off-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin-bottom: 12px;
}

.okha65-off-card__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--off-muted);
    font-size: 13px;
    line-height: 1.3;
}

.okha65-off-card__meta-item svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.okha65-off-card__meta-value {
    min-width: 0;
    color: var(--off-text);
    font-weight: 600;
}

.okha65-off-card__reason {
    margin-bottom: 12px;
    color: var(--off-muted);
    font-size: 13px;
    line-height: 1.45;
}

.okha65-off-card__reason p {
    margin: 0;
}

.okha65-off-card__reason p + p {
    margin-top: 4px;
}

.okha65-off-card__address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--off-line);
    color: var(--off-text);
    font-size: 13px;
    line-height: 1.45;
}

.okha65-off-card__address > svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--off-muted);
}

.okha65-off-card__address-content {
    min-width: 0;
}

.okha65-off-card__address-content p,
.okha65-off-card__address-content ul,
.okha65-off-card__address-content ol {
    margin: 0;
}

.okha65-off-card__address-content ul,
.okha65-off-card__address-content ol {
    padding-left: 18px;
}

.okha65-off-card__address-content li + li {
    margin-top: 4px;
}

.okha65-off-page__empty {
    padding: 28px 20px;
    border: 1px dashed var(--off-line);
    border-radius: 14px;
    background: #fff;
    color: var(--off-muted);
    text-align: center;
}

.okha65-off-page__empty[hidden] {
    display: none;
}

.okha65-off-page__pagination {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .okha65-off-page__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .okha65-off-page__day-filters {
        display: flex;
        width: 100%;
    }

    .okha65-off-page__day-filter {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 10px !important;
    }

    .okha65-off-page__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-right: -4px;
        margin-left: -4px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .okha65-off-page__filter {
        flex: 0 0 auto;
    }

    .okha65-off-page__section-head {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .okha65-off-page__section-more {
        margin-left: auto;
    }

    .okha65-off-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .okha65-off-card__icon img {
        width: 36px;
        height: 36px;
    }

    .okha65-off-card__meta {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}
