.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.forecast-table-scroll-wrap {
    position: relative;
    --forecast-table-fish-col-width: 10rem;
    --forecast-table-mobile-max-width: 500px;
    --forecast-table-sticky-top: 4rem;
}

.forecast-table-date-head {
    position: sticky;
    top: var(--forecast-table-sticky-top);
    z-index: 120;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 32, 69, 0.08);
}

.forecast-table-date-head-track {
    overflow: hidden;
}

.forecast-table-date-head .forecast-detail-table--date-head thead th {
    background-color: #ffffff;
}

.forecast-table-date-head .forecast-detail-table--date-head thead th.bg-slate-100 {
    background-color: #f1f5f9;
}

.forecast-table-date-head .forecast-detail-table--date-head thead th:first-child {
    z-index: 130;
}

@media (min-width: 501px) {
    .forecast-table-scroll {
        overflow-x: auto;
    }
}

.forecast-table-scroll-wrap:not(.forecast-table-scroll-wrap--scrollable):not(.forecast-table-scroll-wrap--mobile-day) .forecast-table-scroll-nav {
    display: none;
}

.forecast-table-scroll-nav {
    position: absolute;
    top: 50%;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid #c4c6cf;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1a365d;
    box-shadow: 0 4px 12px rgba(0, 32, 69, 0.12);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

@media (min-width: 501px) {
    .forecast-table-scroll-wrap--scrollable .forecast-table-scroll-nav {
        display: flex;
    }
}

@media (min-width: 501px) {
    .forecast-table-date-row--mobile {
        display: none;
    }
}

@media (max-width: 500px) {
    .forecast-table-date-head {
        display: none;
    }

    .forecast-table-scroll-wrap--mobile-day.forecast-table-scroll-wrap--nav-visible .forecast-table-scroll-nav {
        display: flex;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        z-index: 70;
    }

    .forecast-table-scroll-wrap--mobile-day .forecast-table-scroll-nav--prev {
        left: max(0.25rem, env(safe-area-inset-left, 0px));
    }

    .forecast-table-scroll-wrap--mobile-day .forecast-table-scroll-nav--next {
        right: max(0.25rem, env(safe-area-inset-right, 0px));
    }

    .forecast-table-scroll-wrap--mobile-layout {
        --forecast-table-fish-col-width: 7.5rem;
    }

    .forecast-table-scroll-wrap--mobile-layout .forecast-table-scroll,
    .forecast-table-scroll-wrap--mobile-layout .forecast-table-scroll > div {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .forecast-detail-table.forecast-detail-table--mobile-layout {
        width: 100% !important;
        max-width: 100%;
    }

    .forecast-detail-table.forecast-detail-table--mobile-single-day {
        --forecast-table-days-count: 1;
    }

    .forecast-detail-table.forecast-detail-table--mobile-layout col.forecast-table-col-fish {
        width: var(--forecast-table-fish-col-width);
    }

    .forecast-detail-table.forecast-detail-table--mobile-layout col.forecast-table-col-slot:not(.forecast-table-col-hidden) {
        width: calc(100% - var(--forecast-table-fish-col-width));
    }

    .forecast-detail-table--body .forecast-table-date-row--mobile th {
        position: sticky;
        top: var(--forecast-table-sticky-top);
        z-index: 120;
        background-color: #ffffff;
        box-shadow: 0 2px 6px rgba(0, 32, 69, 0.08);
    }

    .forecast-detail-table--body .forecast-table-date-row--mobile th.bg-slate-100 {
        background-color: #f1f5f9;
    }

    .forecast-detail-table--body .forecast-table-date-row--mobile th:first-child {
        z-index: 130;
    }

    .forecast-detail-table--body thead tr:not(.forecast-table-date-row--mobile) th,
    .forecast-detail-table--body tbody td:first-child {
        position: static;
        z-index: auto;
        box-shadow: none;
    }

    .forecast-detail-table th.forecast-table-col-hidden,
    .forecast-detail-table td.forecast-table-col-hidden,
    .forecast-detail-table col.forecast-table-col-hidden {
        display: none;
    }
}

.forecast-table-scroll-nav:hover:not(:disabled) {
    background: #ffffff;
}

.forecast-table-scroll-nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.forecast-table-scroll-nav--prev {
    left: calc(var(--forecast-table-fish-col-width) + 0.25rem);
}

.forecast-table-scroll-nav--next {
    right: 0.5rem;
}

.forecast-table-scroll-nav .material-symbols-outlined {
    font-size: 1.75rem !important;
    line-height: 1;
}

.dark .forecast-table-scroll-nav {
    background: rgba(15, 23, 42, 0.95);
    border-color: #334155;
    color: #f1f5f9;
}

.forecast-detail-table {
    --forecast-table-fish-col-width: 10rem;
  /* (1200px − w-40) / 28 слотов — как в макете на 7 дней */
    --forecast-table-slot-col-width: 37px;
    table-layout: fixed;
    width: calc(
        var(--forecast-table-fish-col-width)
        + var(--forecast-table-days-count, 7) * 4 * var(--forecast-table-slot-col-width)
    );
    font-size: 16px;
    line-height: 1.5rem;
}

.forecast-detail-table col.forecast-table-col-fish {
    width: var(--forecast-table-fish-col-width);
}

.forecast-detail-table col.forecast-table-col-slot {
    width: var(--forecast-table-slot-col-width);
}

/*
 * Safari/WebKit: position:sticky на первой колонке ломается, если ячейка стала flex/grid
 * (см. utility flex на td). Контент вынесен во внутренний div, здесь явно табличная ячейка.
 */
.forecast-detail-table thead th:first-child,
.forecast-detail-table tbody td:first-child {
    display: table-cell;
    vertical-align: middle;
}

.forecast-detail-table thead th,
.forecast-detail-table tbody td {
    font-size: 16px;
    overflow: visible;
}

.forecast-detail-table tbody tr[data-catch-fish] td:not(:first-child) {
    overflow-x: visible;
}

.forecast-detail-table .catch-score-trigger-clip {
    overflow-x: clip;
}

.forecast-detail-table .material-symbols-outlined {
    font-size: 1.5rem !important;
    line-height: 1.5rem;
}

.forecast-detail-table .catch-score-cell {
    z-index: 0;
    overflow: visible;
}

.forecast-detail-table .catch-score-cell:hover,
.forecast-detail-table .catch-score-cell:focus-visible,
.forecast-detail-table .catch-score-cell.catch-score-cell--tip-open {
    z-index: 100;
}

.forecast-detail-table .catch-score-cell > .catch-score-trigger-clip {
    transform-origin: center;
    transition: transform 0.18s ease;
}

.forecast-detail-table .catch-score-cell:hover > .catch-score-trigger-clip,
.forecast-detail-table .catch-score-cell:focus-visible > .catch-score-trigger-clip,
.forecast-detail-table .catch-score-cell.catch-score-cell--tip-open > .catch-score-trigger-clip {
    transform: scale(1.1);
}

.forecast-detail-table .catch-score-cell--no-data {
    cursor: default;
}

.forecast-detail-table .catch-score-cell--no-data:hover > .catch-score-trigger-clip,
.forecast-detail-table .catch-score-cell--no-data:focus-visible > .catch-score-trigger-clip,
.forecast-detail-table .catch-score-cell--no-data.catch-score-cell--tip-open > .catch-score-trigger-clip {
    transform: none;
}

/* Узел может быть в document.body (обход overflow + баги iOS с transform + fixed) */
.catch-score-tip {
    position: fixed;
    left: -10000px;
    top: 0;
    box-sizing: border-box;
    width: min(17.5rem, calc(100vw - 2rem));
    max-width: min(17.5rem, calc(100vw - 2rem));
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    margin: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid #c4c6cf;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #181c1e;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 32, 69, 0.12);
    z-index: 2147483647;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: none;
    -webkit-overflow-scrolling: auto;
    transform: translateZ(0);
}

.catch-score-tip.catch-score-tip--visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

@media (hover: none), (pointer: coarse) {
    .catch-score-tip {
        max-height: min(22rem, 70vh);
        max-height: min(22rem, 70dvh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Тултип по иконке погоды (слот таблицы) */
.forecast-detail-table tbody > tr:first-of-type td:not(:first-child) .forecast-weather-icon-hit {
    cursor: help;
    -webkit-tap-highlight-color: transparent;
}

.forecast-weather-tip {
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    max-width: min(14rem, calc(100vw - 2rem));
    padding: 0.4rem 0.55rem;
    border-radius: 0.375rem;
    border: 1px solid #c4c6cf;
    background: #ffffff;
    color: #181c1e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 32, 69, 0.14);
    z-index: 2147483646;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0);
}

.forecast-weather-tip.forecast-weather-tip--visible {
    visibility: visible;
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .forecast-weather-tip {
        transition: none;
    }
}

.error-page-hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, #e2e8f0 1px, transparent 0);
    background-size: 40px 40px;
}

.error-page-code {
    font-size: clamp(4.5rem, 16vw, 7.5rem);
    letter-spacing: -0.04em;
}

.blog-articles-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .blog-articles-grid {
        gap: 1.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blog-article-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
}

.blog-article-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-back-link {
    text-decoration: none;
}

.blog-back-link:hover {
    box-shadow: inset 0 -1px 0 0 #ed8936;
}

.blog-article-page-image {
    aspect-ratio: 1 / 1;
    width: min(100%, 28rem);
    margin: 0 0 2rem;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    background-color: #f1f5f9;
}

.blog-article-page-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forecast-page-summary--desktop {
    display: none;
}

.forecast-page-summary--mobile {
    display: block;
}

@media (min-width: 1024px) {
    .forecast-page-summary--desktop {
        display: block;
    }

    .forecast-page-summary--mobile {
        display: none;
    }
}
