.theme-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 16px;
    border: 1px solid #777;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font: 26px/1 'Ubuntu', sans-serif;
    cursor: pointer;
}
.theme-toggle:focus-visible {
    outline: 3px solid #f18433 !important;
    outline-offset: 3px;
}
.bl_2_1 ul { flex-wrap: wrap; gap: 16px 0; }
.bl_2_1 [aria-current="page"], .menu_up ul [aria-current="page"] { color: inherit; opacity: .78; }
.header-spacer { flex: 1; }
.catalog-sections { display: flex; justify-content: center; align-items: stretch; gap: 64px; padding: 8px 20px 24px; }
.catalog-sections .catalog-tab { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 36px; line-height: 1.2; font-weight: 700; text-transform: uppercase; padding: 8px 0; border-bottom: 3px solid transparent; }
.catalog-sections [aria-current="page"] { color: #bb5000; border-color: currentColor; cursor: default; }
html[data-theme="dark"] .catalog-sections [aria-current="page"] { color: #ffb16d; }
.bl_1_1 .logo { flex: 0 0 170px; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; }
.logo-home { font-size: 12px; line-height: 1.3; text-decoration: underline; text-underline-offset: 3px; }
.logo:hover .logo-home { color: #bb5000; }
html[data-theme="dark"] .logo:hover .logo-home { color: #ffb16d; }
.bl_1_1 .pay a.phone { margin-right: 20px; font-size: 15px; white-space: nowrap; }
.category-navigation { display: flex; align-items: center; gap: 10px; }
.category-navigation .bl_3_1 { flex: 1; min-width: 0; cursor: grab; scrollbar-width: none; }
.category-navigation .bl_3_1::-webkit-scrollbar { display: none; }
.category-navigation .bl_3_1 a { flex: 0 0 auto; user-select: none; }
.category-navigation .bl_3_1.is-dragging { cursor: grabbing; }
.category-arrow {
    flex: 0 0 34px; height: 42px; border: 1px solid #ccc; border-radius: 8px;
    background: #fff; color: #333; font-size: 20px; cursor: pointer;
}
.category-arrow:disabled { opacity: .3; cursor: default; }
.catalog-sections a:focus-visible, .category-arrow:focus-visible { outline: 3px solid #f18433 !important; outline-offset: 2px; }
html[data-theme="dark"] .category-arrow { background: #333; color: #f3eee7; border-color: #777; }
@media screen and (max-width: 1100px) and (min-width: 801px) {
    .bl_1_1 .logo { flex-basis: 140px; }
    .bl_1_1 .pay { flex-wrap: wrap; gap: 8px 0; }
    .bl_1_1 .pay a.phone { flex-basis: 100%; text-align: right; margin-right: 0; }
}
@media screen and (max-width: 800px) {
    .header-spacer { display: none; }
    .bl_1_1 .logo { flex: none; }
    .catalog-sections { gap: 24px; padding: 0 10px 20px; }
    .catalog-sections .catalog-tab { font-size: 30px; }
    .catalog-sections .catalog-tab { min-width: 0; }
}
@media screen and (max-width: 420px) {
    .catalog-sections { gap: 16px; }
    .catalog-sections .catalog-tab { font-size: 20px; }
    .category-navigation { gap: 5px; }
    .category-arrow { flex-basis: 28px; }
}
.entertainment-section { margin-bottom: 48px; }
.entertainment-section h2 { font-size: 27px; margin-bottom: 24px; }
.board-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.board-games .board-game { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 10px; background: #fff; }
.board-game img { flex: 0 0 100px; width: 100px; height: 80px; object-fit: contain; border-radius: 6px; }
.board-game-title { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.events-empty { font-size: 18px; line-height: 1.6; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
    background-color: #171717;
    background-image: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), url('fon2.jpg');
    background-size: auto, 1200px auto;
    color: #f3eee7;
}
html[data-theme="dark"] a { color: #f3eee7; }
html[data-theme="dark"] .block_1,
html[data-theme="dark"] .block_0,
html[data-theme="dark"] .block_2,
html[data-theme="dark"] .block_6 { background: rgba(20,20,20,.88); }
html[data-theme="dark"] .block_2 { border-color: #555; }
html[data-theme="dark"] .block_3,
html[data-theme="dark"] .block_13,
html[data-theme="dark"] .bl_4_2 .item,
html[data-theme="dark"] .bl_14_1 .item,
html[data-theme="dark"] .board-games .board-game,
html[data-theme="dark"] .bl_17_1 .item,
html[data-theme="dark"] .bl_17_2,
html[data-theme="dark"] .bl_18_1,
html[data-theme="dark"] .bl_18_4 .right,
html[data-theme="dark"] .menu_up,
html[data-theme="dark"] .zakaz_form { background-color: #252525; color: #f3eee7; }
html[data-theme="dark"] .bl_3_1 a.active { background-color: #514333; }
html[data-theme="dark"] .bl_4_2 .introtext,
html[data-theme="dark"] .bl_14_1 .description { color: #ccc3b8; }
html[data-theme="dark"] .theme-toggle { background: #333; border-color: #aaa; color: #ffce73; }
/* These sections use their own light photographic backgrounds. */
html[data-theme="dark"] .block_5,
html[data-theme="dark"] .block_9,
html[data-theme="dark"] .block_11 { color: #333; }
html[data-theme="dark"] .block_5 a { color: #333; }
html[data-theme="dark"] .block_5 a.bron { color: #fff; }
html[data-theme="dark"] .bl_18_4 .left { color: #333; }
html[data-theme="dark"] .bl_1_1 .burger img,
html[data-theme="dark"] .bl_1_1 .carts img,
html[data-theme="dark"] .menu_up > img { filter: invert(1); }
@media screen and (max-width: 600px) {
    .catalog-sections { gap: 16px; }
    .catalog-sections .catalog-tab { font-size: 20px; }
    .theme-toggle { flex-basis: 34px; width: 34px; height: 34px; margin-left: 10px; font-size: 23px; }
    .entertainment-section h2 { font-size: 23px; }
    .board-games { grid-template-columns: 1fr; }
}
@media screen and (max-width: 800px) {
    .bl_4_2 .item { margin-right: 0; min-width: 0; }
    .bl_4_1 { font-size: 28px; overflow-wrap: anywhere; }
    .theme-toggle { flex-basis: 44px; width: 44px; height: 44px; }
    .category-arrow { flex-basis: 44px; height: 44px; }
    .category-navigation .bl_3_1 { -webkit-overflow-scrolling: touch; }
    .bl_1_1 .burger { padding: 12px 0 12px 12px; }
    .menu_up { position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
    .menu_up ul a { display: inline-flex; align-items: center; min-height: 44px; }
    .menu_up ul [aria-current="page"] { display: inline-flex; align-items: center; min-height: 44px; }
    .menu_up > img { padding: 12px; box-sizing: content-box; }
    .zakaz_form { max-height: 94vh; max-height: 94dvh; overflow-y: auto; }
}
