@media (max-width: 980px) {
    .site-header__inner {
        gap: 12px;
    }

    .brand {
        margin-right: auto;
    }

    .header-actions {
        margin-left: auto;
    }

    .primary-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .layout__sidebar {
        order: 2;
    }
}

@media (max-width: 760px) {
    .site-header__inner,
    .site-footer__inner {
        width: min(calc(100% - 20px), 1180px);
    }

    .page-shell {
        width: 100%;
    }

    .mobile-menu {
        width: 100%;
    }

    .site-header__inner {
        min-height: 64px;
        gap: 8px;
    }

    .brand__name {
        font-size: 20px;
    }

    .brand__tagline {
        display: none;
    }

    .search-toggle {
        display: inline-grid;
        width: 38px;
        min-width: 38px;
        place-items: center;
    }

    .search-toggle span {
        display: none;
    }

    .header-search {
        display: none;
        position: absolute;
        left: 10px;
        right: 10px;
        top: 70px;
        z-index: 10;
        width: auto;
        padding: 10px;
        background: var(--header);
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 8px;
    }

    .header-search.is-open {
        display: flex;
    }

    .broadcasts h1 {
        font-size: 24px;
    }

    .broadcasts__header,
    .broadcast-panels,
    .full-story,
    .static-page,
    .form-page,
    .message-box,
    .search-page,
    .profile-page,
    .pm-page,
    .comments-area,
    .add-comment {
        padding: 14px;
    }

    .match-row {
        grid-template-columns: 66px minmax(0, 1fr);
        min-height: 54px;
    }

    .match-row__time,
    .match-row__title {
        min-height: 54px;
    }

    .match-row__title {
        padding: 0 12px;
        font-size: 15px;
    }

    .match-row__watch {
        display: none;
    }

    .broadcast-tabs {
        grid-template-columns: repeat(5, minmax(118px, 1fr));
        margin-bottom: 22px;
    }

    .broadcast-tabs .nav-link {
        min-height: 58px;
        font-size: 14px;
    }

    .sport-group__title {
        margin-left: 0;
        font-size: 19px;
    }

    .tournament-group__title {
        min-height: 44px;
        padding: 0 12px;
    }

    .story-card {
        grid-template-columns: 1fr 34px;
        padding: 18px 16px;
    }

    .story-card__meta {
        grid-column: 1 / -1;
        grid-row: auto;
        display: flex;
    }

    .story-card h2,
    .story-card__summary {
        grid-column: 1;
    }

    .story-card__arrow {
        grid-column: 2;
        grid-row: 2 / span 2;
        font-size: 26px;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }
}

@media (max-width: 420px) {
    .header-actions {
        gap: 5px;
    }

    .icon-button {
        width: 38px;
        min-width: 38px;
    }

    .theme-toggle {
        width: 52px;
        min-width: 52px;
    }

    .broadcast-tabs {
        gap: 0;
    }

    .story-card {
        padding: 13px;
    }

    .comment {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .comment__avatar img {
        width: 38px;
        height: 38px;
    }
}
