/*
Theme Name: Maxibasket
Theme URI: https://maxibasket.lv/
Author: Maxibasket.lv
Description: Viegla, responsīva Latvijas Maksibasketbola tēma.
Version: 1.1.0
Text Domain: maxibasket
Requires at least: 6.5
Requires PHP: 8.1
*/

:root {
    --maroon: #7a0f25;
    --maroon-dark: #4b0917;
    --orange: #f15a2a;
    --orange-dark: #d9491d;
    --ink: #161922;
    --muted: #626776;
    --line: #e2e4e9;
    --paper: #ffffff;
    --surface: #f5f6f8;
    --cream: #f7f2ec;
    --success: #0e7a53;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 8px 24px rgba(17, 20, 29, 0.07);
    --shadow: 0 20px 55px rgba(17, 20, 29, 0.12);
    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--maroon);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.17em;
}

a:hover {
    color: var(--orange-dark);
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.6em;
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.35rem, 6vw, 5.35rem);
}

h2 {
    font-size: clamp(1.85rem, 3.2vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
    margin: 0 0 1.2em;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #fff;
    background: var(--maroon);
    border-radius: 8px;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: none;
}

.topbar {
    color: #fff;
    background: var(--maroon-dark);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--line);
    backdrop-filter: blur(14px);
}

.admin-bar .site-header {
    top: 32px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 94px;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 13px;
    color: var(--ink);
    text-decoration: none;
}

.brand img,
.brand .custom-logo {
    width: 66px;
    height: 70px;
    object-fit: contain;
}

.brand__text {
    display: grid;
    line-height: 1;
}

.brand__text strong {
    font-size: 1.12rem;
    letter-spacing: 0.08em;
}

.brand__text small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.primary-nav .menu,
.footer-grid .menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: clamp(14px, 1.6vw, 25px);
    list-style: none;
}

.primary-nav a {
    position: relative;
    display: block;
    padding-block: 35px;
    color: var(--ink);
    font-size: clamp(0.77rem, 1vw, 0.9rem);
    font-weight: 780;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: 24px;
    left: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 999px;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after,
.primary-nav .current_page_item a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    align-items: center;
    min-height: 48px;
    padding: 8px 12px;
    gap: 10px;
    color: var(--ink);
    background: var(--surface);
    border: 0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
}

.menu-toggle__icon {
    display: grid;
    width: 24px;
    gap: 5px;
}

.menu-toggle__icon i {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 3px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: min(700px, calc(100svh - 130px));
    color: #fff;
    background: #211018 center / cover no-repeat;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(27, 5, 12, 0.94) 0%, rgba(54, 9, 21, 0.78) 42%, rgba(24, 17, 20, 0.28) 75%),
        linear-gradient(0deg, rgba(12, 12, 15, 0.45), transparent 48%);
    content: "";
}

.hero__inner {
    display: flex;
    align-items: center;
    min-height: inherit;
    padding-block: clamp(70px, 9vw, 130px);
}

.hero__content {
    max-width: 800px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 32px;
    height: 3px;
    background: currentColor;
    content: "";
}

.hero h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero p {
    max-width: 620px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    gap: 8px;
    color: #fff;
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    color: #fff;
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-1px);
}

.button--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.42);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}

.button--dark {
    background: var(--ink);
    border-color: var(--ink);
}

.button--small {
    min-height: 40px;
    padding: 9px 15px;
    font-size: 0.8rem;
}

.quick-links {
    position: relative;
    z-index: 5;
    margin-top: -42px;
}

.quick-links__grid {
    display: grid;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quick-link {
    display: grid;
    min-height: 116px;
    padding: 24px 30px;
    color: var(--ink);
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.quick-link + .quick-link {
    border-left: 1px solid var(--line);
}

.quick-link__icon {
    display: grid;
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--maroon);
    border-radius: 50%;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 900;
}

.quick-link strong,
.quick-link span {
    display: block;
}

.quick-link small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.quick-link__arrow {
    color: var(--orange);
    font-size: 1.25rem;
    transition: transform 160ms ease;
}

.quick-link:hover .quick-link__arrow {
    transform: translateX(4px);
}

.section {
    padding-block: clamp(72px, 9vw, 120px);
}

.section--surface {
    background: var(--surface);
}

.section--dark {
    color: #fff;
    background: var(--ink);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: clamp(28px, 5vw, 48px);
    gap: 24px;
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    max-width: 600px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section--dark .section-head p {
    color: rgba(255, 255, 255, 0.68);
}

.section-link {
    flex: 0 0 auto;
    color: var(--maroon);
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
}

.section--dark .section-link {
    color: #fff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 24px;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.game-card__top,
.game-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.game-card__group {
    padding: 5px 9px;
    color: var(--maroon);
    background: #f6e9ec;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 900;
}

.game-card__date,
.game-card__meta {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.game-card__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
}

.game-card__team {
    min-width: 0;
    font-size: clamp(0.9rem, 1.25vw, 1.05rem);
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.game-card__team:last-child {
    text-align: right;
}

.game-card__score {
    min-width: 65px;
    padding: 10px 8px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
    font-size: 1.03rem;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.game-card__meta {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.news-grid,
.gallery-grid,
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card,
.gallery-card,
.tournament-card {
    min-width: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.news-card__image,
.gallery-card__image,
.tournament-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #dcdfe5;
    overflow: hidden;
}

.news-card__image img,
.gallery-card__image img,
.tournament-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.news-card:hover .news-card__image img,
.gallery-card:hover .gallery-card__image img,
.tournament-card:hover .tournament-card__image img {
    transform: scale(1.035);
}

.news-card__body,
.gallery-card__body,
.tournament-card__body {
    padding: 24px;
}

.news-card__date,
.gallery-card__date,
.tournament-card__date,
.article-meta {
    display: block;
    margin-bottom: 12px;
    color: var(--orange-dark);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-card h3,
.gallery-card h3,
.tournament-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.15rem, 1.55vw, 1.35rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.news-card h3 a,
.gallery-card h3 a,
.tournament-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.news-card p,
.gallery-card p,
.tournament-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.text-link {
    color: var(--maroon);
    font-size: 0.83rem;
    font-weight: 850;
    text-decoration: none;
}

.welcome-sponsors {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: stretch;
    gap: 24px;
}

.welcome-card {
    position: relative;
    display: grid;
    min-height: 320px;
    padding: clamp(28px, 5vw, 50px);
    color: #fff;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    background:
        radial-gradient(circle at 90% 15%, rgba(241, 90, 42, 0.7), transparent 30%),
        linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.welcome-card::after {
    position: absolute;
    right: -40px;
    bottom: -85px;
    width: 240px;
    height: 240px;
    border: 32px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.welcome-card__label {
    color: #ffc4b1;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.welcome-card h3 {
    margin: 12px 0 6px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.welcome-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.welcome-card__avatar {
    display: grid;
    position: relative;
    z-index: 1;
    width: 94px;
    height: 94px;
    color: var(--maroon);
    background: #fff;
    border: 6px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    place-items: center;
    font-size: 2.1rem;
    font-weight: 900;
}

.sponsors-panel {
    display: grid;
    padding: clamp(26px, 4vw, 42px);
    align-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.sponsors-panel h3 {
    margin-bottom: 22px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
}

.sponsor-logo {
    display: grid;
    min-height: 124px;
    padding: 18px;
    place-items: center;
    background: var(--surface);
    border-radius: 13px;
}

.sponsor-logo img {
    max-width: 130px;
    max-height: 86px;
    object-fit: contain;
}

.tournament-card__image img {
    object-fit: contain;
    padding: 18px;
    background: #fff;
}

.page-hero {
    padding-block: clamp(70px, 9vw, 110px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 0%, rgba(241, 90, 42, 0.45), transparent 30%),
        linear-gradient(130deg, var(--maroon-dark), var(--maroon));
}

.page-hero .eyebrow {
    color: #ffc3ae;
}

.page-hero h1 {
    max-width: 950px;
    font-size: clamp(2.45rem, 5vw, 4.25rem);
}

.page-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.content-wrap {
    padding-block: clamp(58px, 8vw, 100px);
}

.entry-content {
    font-size: 1.05rem;
}

.entry-content > * {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

.entry-content > .alignwide {
    max-width: var(--container);
}

.entry-content > .alignfull {
    max-width: none;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.8em;
}

.entry-content img {
    border-radius: var(--radius);
}

.article-shell {
    width: min(calc(100% - 40px), 920px);
    margin-inline: auto;
    padding-block: clamp(60px, 8vw, 100px);
}

.article-header {
    margin-bottom: 36px;
}

.article-header h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.article-featured {
    margin: 0 0 42px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-featured img {
    width: 100%;
}

.post-navigation {
    display: grid;
    margin-top: 60px;
    padding-top: 32px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--line);
}

.post-navigation a {
    display: block;
    padding: 18px;
    color: var(--ink);
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-decoration: none;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 34px;
    padding: 20px;
    align-items: end;
    gap: 14px;
    background: var(--surface);
    border-radius: var(--radius);
}

.field {
    flex: 1 1 180px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid #cfd2d9;
    border-radius: 8px;
}

.field textarea,
.contact-form textarea {
    min-height: 155px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    outline: 3px solid rgba(241, 90, 42, 0.16);
}

.standings-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.91rem;
}

.standings-table th,
.standings-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.standings-table th {
    color: #fff;
    background: var(--ink);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    text-align: left;
}

.standings-table tbody tr:last-child td {
    border-bottom: 0;
}

.standings-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.standing-position {
    color: var(--orange-dark);
    font-weight: 900;
}

.documents-list {
    display: grid;
    gap: 14px;
}

.document-card {
    display: grid;
    padding: 22px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.document-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--maroon);
    border-radius: 9px;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 900;
}

.document-card h3 {
    margin: 0 0 3px;
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.document-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 6vw, 80px);
}

.contact-info {
    padding: clamp(26px, 4vw, 42px);
    color: #fff;
    background: var(--ink);
    border-radius: var(--radius-lg);
}

.contact-info h2 {
    color: #fff;
}

.contact-info a {
    color: #fff;
}

.contact-person {
    padding-block: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.contact-person strong,
.contact-person span {
    display: block;
}

.contact-person span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
}

.contact-form {
    display: grid;
    gap: 17px;
}

.contact-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.82rem;
    font-weight: 820;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .website-field {
    position: absolute;
    left: -9999px;
}

.notice {
    margin-bottom: 22px;
    padding: 14px 16px;
    color: #fff;
    background: var(--success);
    border-radius: 9px;
    font-weight: 750;
}

.notice--error {
    background: #a52a2a;
}

.empty-state {
    padding: 35px;
    color: var(--muted);
    background: var(--surface);
    border-radius: var(--radius);
    text-align: center;
}

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 45px;
    gap: 8px;
}

.page-numbers {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    padding: 8px;
    color: var(--ink);
    background: var(--surface);
    border-radius: 8px;
    place-items: center;
    font-weight: 800;
    text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
    color: #fff;
    background: var(--maroon);
}

.site-footer {
    padding-top: clamp(62px, 8vw, 90px);
    color: rgba(255, 255, 255, 0.72);
    background: #101218;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.15fr 0.7fr;
    gap: clamp(28px, 5vw, 65px);
}

.footer-brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.footer-grid h2 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-grid .menu {
    display: grid;
    gap: 7px;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-grid address {
    font-style: normal;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 58px;
    padding-block: 24px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
}

dialog.lightbox {
    max-width: min(92vw, 1100px);
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
}

dialog.lightbox::backdrop {
    background: rgba(5, 6, 8, 0.92);
}

.lightbox img {
    max-height: 86vh;
    border-radius: 8px;
}

.lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    display: grid;
    width: 38px;
    height: 38px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    place-items: center;
    font-size: 1.3rem;
}

.not-found {
    display: grid;
    min-height: 65vh;
    padding-block: 80px;
    place-items: center;
    text-align: center;
}

.not-found__code {
    color: var(--orange);
    font-size: clamp(5rem, 18vw, 12rem);
    font-weight: 950;
    line-height: 0.8;
}

@media (max-width: 1080px) {
    .header-main {
        gap: 16px;
    }

    .brand__text {
        display: none;
    }

    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-sponsors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .header-main {
        min-height: 78px;
    }

    .brand img,
    .brand .custom-logo {
        width: 53px;
        height: 56px;
    }

    .brand__text {
        display: grid;
    }

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

    .primary-nav {
        position: fixed;
        top: 114px;
        right: 0;
        left: 0;
        max-height: calc(100svh - 114px);
        padding: 12px 20px 28px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 22px 35px rgba(15, 16, 20, 0.14);
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .admin-bar .primary-nav {
        top: 160px;
        max-height: calc(100svh - 160px);
    }

    .primary-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .primary-nav .menu {
        display: grid;
        align-items: stretch;
        gap: 0;
    }

    .primary-nav a {
        padding: 15px 2px;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }

    .primary-nav a::after {
        display: none;
    }

    .quick-links__grid {
        grid-template-columns: 1fr;
    }

    .quick-link + .quick-link {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .quick-link {
        min-height: 92px;
        padding: 19px 24px;
    }

    .news-grid,
    .gallery-grid,
    .tournament-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .topbar {
        display: none;
    }

    .primary-nav {
        top: 78px;
        max-height: calc(100svh - 78px);
    }

    .admin-bar .primary-nav {
        top: 124px;
        max-height: calc(100svh - 124px);
    }

    .container,
    .article-shell {
        width: min(calc(100% - 28px), var(--container));
    }

    .topbar__inner {
        justify-content: flex-end;
    }

    .topbar__inner span {
        display: none;
    }

    .brand__text small {
        display: none;
    }

    .hero {
        min-height: 620px;
        background-position: 64% center;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(27, 5, 12, 0.94), rgba(54, 9, 21, 0.74)), linear-gradient(0deg, rgba(12, 12, 15, 0.45), transparent 48%);
    }

    .hero__inner {
        align-items: flex-end;
        padding-bottom: 90px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.1rem);
        line-height: 1.05;
    }

    .button-row .button {
        flex: 1 1 150px;
    }

    .quick-links {
        margin-top: -28px;
    }

    .quick-link {
        grid-template-columns: 42px 1fr auto;
        gap: 12px;
    }

    .quick-link__icon {
        width: 42px;
        height: 42px;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 18px;
    }

    .games-grid,
    .news-grid,
    .gallery-grid,
    .tournament-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card {
        min-height: 290px;
        grid-template-columns: 1fr;
    }

    .welcome-card__avatar {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .standings-wrap {
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .standings-table,
    .standings-table tbody,
    .standings-table tr,
    .standings-table td {
        display: block;
        width: 100%;
    }

    .standings-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        clip: rect(0 0 0 0);
        overflow: hidden;
    }

    .standings-table tr {
        margin-bottom: 14px;
        padding: 16px;
        background: #fff !important;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
    }

    .standings-table td,
    .standings-table td:nth-child(2) {
        display: flex;
        justify-content: space-between;
        padding: 7px 0;
        gap: 18px;
        border: 0;
        text-align: right;
    }

    .standings-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
    }

    .standings-table td:nth-child(1),
    .standings-table td:nth-child(2) {
        display: inline-block;
        width: auto;
        padding-top: 0;
        font-weight: 900;
        text-align: left;
    }

    .standings-table td:nth-child(1)::before,
    .standings-table td:nth-child(2)::before {
        display: none;
    }

    .document-card {
        grid-template-columns: auto 1fr;
    }

    .document-card .button {
        grid-column: 1 / -1;
    }

    .contact-grid,
    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        display: grid;
    }
}

@media (max-width: 480px) {
    .hero .button-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero .button-row .button {
        width: 100%;
        min-height: 52px;
    }
}

@media (max-width: 420px) {
    .menu-toggle__label {
        display: none;
    }

    .brand__text strong {
        font-size: 0.95rem;
    }

    .game-card {
        padding: 19px;
    }

    .game-card__teams {
        gap: 8px;
    }

    .game-card__score {
        min-width: 56px;
        font-size: 0.9rem;
    }

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

    .sponsor-logo {
        min-height: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
