/*!
Theme Name: Amereco
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: amereco
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Amereco is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
    - Normalize
    - Box sizing
# Base
    - Typography
    - Elements
    - Links
    - Forms
## Layouts
# Components
    - Navigation
    - Posts and pages
    - Comments
    - Widgets
    - Media
    - Captions
    - Galleries
# plugins
    - Jetpack infinite scroll
# Utilities
    - Accessibility
    - Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

@font-face {
  font-family: 'Public Pixel';
  src: url('./fonts/PublicPixel.ttf')  format('truetype');
}

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
     ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

/* Sections
     ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Text-level semantics
     ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
     ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
}

/* Forms
     ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *        `fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Interactive
     ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
     ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    color: #404040;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
}

p {
    margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

blockquote {
    margin: 0 1.5em;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", courier, monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code,
kbd,
tt,
var {
    font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;    
    min-height: 100vh;
    background-color: #0b0b0e;
    background: url("./images/bg3.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li > ul,
li > ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

img {
    height: auto;
    max-width: 100%;
}

figure {
    margin: 1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/* Links
--------------------------------------------- */
a {
    color: #4169e1;
}

a:visited {
    color: #800080;
}

a:hover,
a:focus,
a:active {
    color: #191970;
}

a:focus {
    outline: thin dotted;
}

a:hover,
a:active {
    outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #111;
}

select {
    border: 1px solid #ccc;
}

textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

.site-main {
    margin-top: 10px;
    padding-left: 12px;
    padding-right: 12px;
}

.page-content,
.entry-content,
.entry-summary {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

@media screen and (min-width: 37.5em) {
    .site-main {
        padding-left: 24px;
        padding-right: 24px;
    }

    .page-content,
    .entry-content,
    .entry-summary {
        max-width: 90%;
    }
}

@media screen and (min-width: 48em) {
    .site-main {
        padding-left: 40px;
        padding-right: 40px;
    }

    .page-content,
    .entry-content,
    .entry-summary {
        max-width: 80%;
    }
}

@media screen and (min-width: 64em) {
    .site-main {
        padding-left: 60px;
        padding-right: 60px;
    }

    .page-content,
    .entry-content,
    .entry-summary {
        max-width: 760px;
    }
}

@media screen and (min-width: 80em) {
    .site-main {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */

body {
    --header-bg-color: #131414;
}

.site-header-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-bg-color);
    padding: 15px 25px;
    position: relative;
    z-index: 100;
}

.site-header-head {
    height: 90px;
}

.site-branding {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.custom-logo {
    width: 50px;
    height: 50px;
    max-width: none;
}

.site-title, .site-title a {
    font-family: 'Public Pixel', cursive;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    text-decoration: none;
}

@media screen and (max-width: 500px) {
    .site-title, .site-title a {
        font-size: 12px;
    }
}

/* Header user info */
.header-user-info {
    display: flex;
    align-items: center;
}

.header-user-info a {
    text-decoration: none;
}

/* User dropdown in header bar */
.header-user-dropdown {
    position: relative;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.header-user-trigger:hover,
.header-user-trigger:focus {
    background-color: rgba(255, 199, 51, 0.08);
    outline: none;
}

.header-user-dropdown:hover .header-user-name {
    color: #ffc733;
}

.header-user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.header-user-name {
    font-family: 'Public Pixel', cursive;
    font-size: 12px;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
    white-space: nowrap;
}

.header-user-group {
    font-family: 'Public Pixel', cursive;
    font-size: 9px;
    color: #a7a7a7;
    text-shadow: 1px 1px 0 #000;
    white-space: nowrap;
}

.header-user-info .avatar {
    border: 2px solid #ffc733;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Login button in header bar */
.header-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    margin-right: 10px;
    font-family: 'Public Pixel', cursive;
    font-size: 11px;
    color: #131414;
    background-color: #ffc733;
    border: 2px solid #8b6508;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.header-login-button:hover,
.header-login-button:focus {
    background-color: #ffe066;
    color: #000;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 199, 51, 0.4);
}

.header-login-button:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3);
}

/* Header user dropdown menu */
.header-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 220px;
    background-color: #131414;
    border: 2px solid #2c2c2c;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    z-index: 200;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    padding: 4px 0;
}

.header-user-dropdown:hover .header-user-menu,
.header-user-dropdown:focus-within .header-user-menu {
    display: block;
}

.header-user-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-user-menu-list .menu-item {
    position: relative;
}

.header-user-menu-list .menu-item a {
    display: block;
    padding: 8px 16px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.header-user-menu-list .menu-item a:hover,
.header-user-menu-list .menu-item a:focus {
    background-color: #2c2c2c;
    color: #ffc733;
}

.header-user-menu-list .menu-item.logout-item {
    border-top: 1px solid #2c2c2c;
}

/* Submenus in user dropdown */
.header-user-menu-list .sub-menu {
    display: none;
    position: absolute;
    top: -4px;
    right: 100%;
    margin-right: 2px;
    width: 200px;
    background-color: #131414;
    border: 2px solid #2c2c2c;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.header-user-menu-list .menu-item-has-children:hover > .sub-menu,
.header-user-menu-list .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.header-user-menu-list .sub-menu a {
    font-size: 12px;
}

/* Footer
--------------------------------------------- */

.site-footer .site-info {
    display: inline;
    float: right;
    margin-right: 10px;
}

.site-footer .site-info,
.site-footer .site-info a {
    color: rgb(153, 153, 153);
}

/* Navigation
--------------------------------------------- */
.main-navigation {
    display: flex;
    position: relative;
    z-index: 2;
    width: 100%;
    font-family: 'Public Pixel', cursive; /* Пиксельный шрифт */
}

.main-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: -999em;
    float: left;
    z-index: 99999;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}

.main-navigation ul ul ul {
    top: 0;
    left: -999em;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul,
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    display: block;
    left: auto;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
    left: calc(100%);
    margin-left: 15px;
    margin-right: 15px;
}

/* Third level flies out to the right of parent */
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
    left: 100%;
}

/* Flip to left when no room on the right (JS adds .sub-menu-flip) */
.main-navigation .sub-menu-flip:hover > ul,
.main-navigation .sub-menu-flip.focus > ul {
    left: auto;
    right: 100%;
}

.main-navigation ul > li:has(> ul):hover a,
.main-navigation ul ul > li a {
    border-radius: 0px;
}

.main-navigation ul ul > li:last-child a {
    border-radius: 0px 0px 15px 0px;
}

.main-navigation a {
    width: 200px;
    text-align: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation li:nth-child(1) {z-index: 10;}
.main-navigation li:nth-child(2) {z-index: 9;}
.main-navigation li:nth-child(3) {z-index: 8;}
.main-navigation li:nth-child(4) {z-index: 7;}
.main-navigation li:nth-child(5) {z-index: 6;}
.main-navigation li:nth-child(6) {z-index: 5;}
.main-navigation li:nth-child(7) {z-index: 4;}
.main-navigation li:nth-child(8) {z-index: 3;}
.main-navigation li:nth-child(9) {z-index: 2;}
.main-navigation li:nth-child(10) {z-index: 1;}

.main-navigation a {
    display: block;

    padding: 10px 25px;

    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    padding-left: 30px;
    margin-left: -15px;

    background-color: #2c2c2c;

    border-radius: 0 0 15px 0;

    box-shadow: 2px 2px 10px rgba(0,0,0,0.6);

    transition: background 0.2s;
    height: 40px;
}

.main-navigation a:hover {
    background-color: #2c2c2c;
    background-color: #131414;
    background-color: #202020;
    background-color: #1c1c1c;
}

.main-navigation .current-menu-item > a,
.current-page-ancestor > a,
.main-navigation .current-menu-item > a:hover,
.current-page-ancestor > a:hover {
    background-color: var(--header-bg-color);
}

.drawer-user-menu {
    display: none;
}

/* Mobile drawer menu
   --------------------------------------------- */

/* Desktop: hide all drawer chrome */
.menu-toggle,
.menu-drawer-overlay,
.menu-drawer-header,
.menu-drawer-close {
    display: none;
}

/* Desktop: drawer wrapper is transparent passthrough */
.menu-drawer-wrapper {
    position: static;
    width: auto;
    height: auto;
}

.menu-drawer-panel {
    background: none;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.menu-drawer-content {
    padding: 0;
    overflow: visible;
}

.menu-drawer-content ul {
    display: flex;
}

/* ==============================================
   Mobile: max-width 37.4375em (~599px)
   ============================================== */
@media screen and (max-width: 900px) {

    .main-navigation {
        z-index: 1000;
    }

    /* Show mobile chrome */
    .menu-toggle {
        display: flex;
    }

    /* -------- Hamburger button -------- */
    .menu-toggle {
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1001;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 3px 10px 3px auto;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 20px;
    }

    .menu-toggle-bar {
        display: block;
        width: 26px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.2s ease;
        transform-origin: center;
    }

    .menu-toggle:hover .menu-toggle-bar {
        background: #ffc733;
    }

    /* Hamburger -> X */
    .toggled .menu-toggle .menu-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .toggled .menu-toggle .menu-toggle-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .toggled .menu-toggle .menu-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* -------- Overlay backdrop -------- */
    .menu-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .toggled .menu-drawer-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* -------- Drawer wrapper -------- */
    .menu-drawer-wrapper {
        position: fixed;
        /* top: calc(90px + var(--wp-admin--admin-bar--height, 0px)); */
        top: var(--wp-admin--admin-bar--height, 0px);
        right: -300px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        z-index: 999;
        transition: right 0.3s ease;
    }

    .toggled .menu-drawer-wrapper {
        right: 0;
    }

    /* -------- Drawer panel -------- */
    .menu-drawer-panel {
        display: flex;
        flex-direction: column;
        height: 100%;
        background-color: #131414;
        border-left: 2px solid #2c2c2c;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.9);
        overflow: hidden;
    }

    /* -------- Drawer header -------- */
    .menu-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid #2c2c2c;
        background-color: #0e0f0f;
        flex-shrink: 0;
    }

    .menu-drawer-title {
        font-family: 'Public Pixel', cursive;
        font-size: 13px;
        color: #ffc733;
        text-shadow: 1px 1px 0 #000;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .menu-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        border-radius: 4px;
        transition: background 0.2s, color 0.2s;
        line-height: 1;
        padding: 0;
    }

    .menu-drawer-close:hover {
        background: #2c2c2c;
        color: #ffc733;
    }

    /* -------- Drawer scrollable content -------- */
    .menu-drawer-content {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
    }

    .menu-drawer-content ul {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
        position: static;
        width: 100%;
    }

    /* -------- Menu items -------- */
    .menu-drawer-content li {
        position: relative;
        z-index: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .menu-drawer-content a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        text-align: left;
        padding: 14px 20px;
        margin: 0;
        font-size: 13px;
        color: #ccc;
        text-decoration: none;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        transition: color 0.2s, background 0.2s;
    }

    .menu-drawer-content a:hover,
    .menu-drawer-content a:focus {
        color: #ffc733;
        background: rgba(255, 199, 51, 0.05);
    }

    /* Current menu item */
    .menu-drawer-content .current-menu-item > a,
    .menu-drawer-content .current-page-ancestor > a {
        color: #ffc733;
        background: rgba(255, 199, 51, 0.08);
        border-left: 3px solid #ffc733;
        padding-left: 17px;
    }

    /* -------- Submenus -------- */
    .menu-drawer-content ul ul {
        display: none;
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.02);
        padding: 0;
    }

    .menu-drawer-content ul ul a {
        padding-left: 36px;
        font-size: 12px;
        color: #999;
    }

    .menu-drawer-content ul ul ul a {
        padding-left: 52px;
        font-size: 11px;
    }

    /* Expanded submenu (toggled by JS) */
    .menu-drawer-content .submenu-open > .sub-menu {
        display: block;
    }

    /* Submenu toggle chevron */
    .menu-drawer-content .menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid #666;
        border-bottom: 2px solid #666;
        transform: rotate(45deg);
        transition: transform 0.2s ease, border-color 0.2s ease;
        margin-left: auto;
        flex-shrink: 0;
    }

    .menu-drawer-content .submenu-open > a::after {
        transform: rotate(-135deg);
        border-color: #ffc733;
    }

    /* Body scroll lock */
    body.menu-open {
        overflow: hidden;
    }

    /* Hide header-bar user elements on mobile */
    .header-user-dropdown,
    .header-login-button {
        display: none;
    }

    /* Drawer user section (visible only on mobile) */
    .drawer-user-section {
        padding: 0;
    }

    .drawer-user-widget {
        padding: 16px 20px 12px;
        border-bottom: 1px solid #2c2c2c;
        margin-bottom: 8px;
    }

    .drawer-user-link {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: inherit;
    }

    .drawer-user-link .avatar {
        border: 2px solid #ffc733;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .drawer-user-text {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }

    .drawer-user-name {
        font-family: 'Public Pixel', cursive;
        font-size: 11px;
        color: #fff;
        text-shadow: 1px 1px 0 #000;
    }

    .drawer-user-group {
        font-family: 'Public Pixel', cursive;
        font-size: 8px;
        color: #a7a7a7;
        text-shadow: 1px 1px 0 #000;
    }

    /* Drawer login button */
    .drawer-login-button {
        display: block;
        margin: 16px 20px 12px;
        padding: 10px 0;
        font-family: 'Public Pixel', cursive;
        font-size: 11px;
        color: #131414;
        background-color: #ffc733;
        border: 2px solid #8b6508;
        border-radius: 4px;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    }

    .drawer-login-button:hover,
    .drawer-login-button:focus {
        background-color: #ffe066;
        color: #000;
    }

    /* Drawer user menu list (merged with primary, no visual break) */
    .drawer-user-menu {
        display: block;
    }

    .drawer-user-menu-list {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .drawer-user-menu-list .menu-item a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
        color: #ccc;
        text-decoration: none;
        transition: color 0.2s, background 0.2s;
    }

    .drawer-user-menu-list .menu-item a:hover,
    .drawer-user-menu-list .menu-item a:focus {
        color: #ffc733;
        background: rgba(255, 199, 51, 0.05);
    }

    .drawer-user-menu-list .current-menu-item > a {
        color: #ffc733;
        background: rgba(255, 199, 51, 0.08);
        border-left: 3px solid #ffc733;
        padding-left: 17px;
    }

    .drawer-user-menu-list .sub-menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        background-color: rgba(255, 255, 255, 0.02);
    }

    .drawer-user-menu-list .sub-menu a {
        padding-left: 36px;
        font-size: 12px;
        color: #999;
    }

    .drawer-user-menu-list .submenu-open > .sub-menu {
        display: block;
    }

    .drawer-user-menu-list .menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid #666;
        border-bottom: 2px solid #666;
        transform: rotate(45deg);
        transition: transform 0.2s ease, border-color 0.2s ease;
        margin-left: auto;
        flex-shrink: 0;
    }

    .drawer-user-menu-list .submenu-open > a::after {
        transform: rotate(-135deg);
        border-color: #ffc733;
    }
}

/* ==============================================
   Desktop reset: min-width 37.5em (600px)
   ============================================== */
@media screen and (min-width: 900px) {

    .menu-toggle {
        display: none;
    }

    .menu-drawer-overlay {
        display: none !important;
    }

    .menu-drawer-wrapper {
        position: static;
        width: auto;
        height: auto;
    }

    .menu-drawer-panel {
        background: none;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .menu-drawer-header {
        display: none;
    }

    .menu-drawer-close {
        display: none;
    }

    .menu-drawer-content {
        padding: 0;
        overflow: visible;
    }

    .menu-drawer-content ul {
        display: flex;
    }

    /* Hide drawer user section on desktop */
    .drawer-user-section {
        display: none;
    }
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

/* Main Page Hero Content
------------------------------------------- */
.home-page {
    /* backdrop-filter: blur(10px); */
    background-image: url('images/bg2.png');
}

.hero-content {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main-text {
    font-family: 'Public Pixel', cursive; /* Пиксельный шрифт */
    font-size: 2.5em;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #fff;
}

@media screen and (max-width: 900px) {
    .main-text {
        font-size: 1.7em;
    }
}

.author-text {
    align-self: flex-end;
    font-family: 'Public Pixel', cursive;
    font-size: 16px;
    color: #888;
    margin-top: 5px;
    margin-right: 15px;
    text-shadow: 2px 2px 0 #000;
}

.download-btn {
    margin-top: 40px;
    border-radius: 8px;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffc733;
    border: 2px solid #8b6508;
    box-shadow: inset 0 -4px 0 #cc8800, 0 4px 8px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.download-btn:active {
    transform: translateY(4px);
    box-shadow: inset 0 -1px 0 #cc8800, 0 1px 4px rgba(0,0,0,0.6);
}

.download-btn {
    border: 10px solid transparent; /* You MUST set a border-width for it to appear */
    border-image-source: url("./images/button_def.png");
    border-image-slice: 3 fill; /* The distance from the edge in pixels or % */
    border-image-repeat: round; /* How the image fills the space: stretch, repeat, or round */
    image-rendering: pixelated; /* Modern browsers */
      image-rendering: crisp-edges; /* Firefox and older Safari */
    background-clip: padding-box;
}

.download-btn:hover {
    border-image-source: url("./images/button_hover.png");
}

.download-btn:active {
    border-image-source: url("./images/button_pressed.png");
}

.download-btn-text {
    font-family: 'Public Pixel', cursive; /* Пиксельный шрифт */
    font-weight: 800;
    font-size: 25px;
    color: white;
    filter: drop-shadow(3px 3px 0px black);
    letter-spacing: 1px;
}

.download-icon {
    width: 40px;
    height: 40px;
    fill: white;
    filter: drop-shadow(3px 3px 0px black);
}

/* Posts and pages
--------------------------------------------- */
.sticky {
    display: block;
}

article.post,
article.page {
    background: rgba(19, 20, 20, 0.85);
    border: 1px solid #2a2a2a;
    border-left: 3px solid #ffc733;
    border-radius: 0 8px 8px 0;
    /* padding: 20px 24px; */
    margin-bottom: 1.5em;
    transition: border-color 0.2s;
}

article.post:hover {
    border-left-color: #ffe066;
}

.entry-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
}

.entry-title a {
    color: #ffc733;
    text-decoration: none;
}

.entry-title a:hover {
    color: #ffe066;
}

.entry-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.entry-meta a {
    color: #bbb;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #ffc733;
}

.entry-meta .posted-on,
.entry-meta .byline {
    margin-right: 10px;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em auto 0;
}

.page-content p,
.entry-content p,
.entry-summary p {
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.page-content a,
.entry-content a,
.entry-summary a {
    color: #ffc733;
}

.entry-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
    font-size: 12px;
    color: #888;
}

.entry-footer a {
    color: #bbb;
    text-decoration: none;
}

.entry-footer a:hover {
    color: #ffc733;
}

.entry-footer .cat-links,
.entry-footer .tags-links,
.entry-footer .comments-link,
.entry-footer .edit-link {
    margin-right: 12px;
}

/* Post thumbnail */
.post-thumbnail {
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

/* Single post/page */
.single article.post,
.single article.page,
.page article.page {
    background: rgba(19, 20, 20, 0.85);
    border: 1px solid #2a2a2a;
    border-left: none;
    border-radius: 8px;
    /* padding: 24px 28px; */
}

/* Archive / search page header */
.page-header {
    margin-bottom: 25px;
}

.page-title {
    font-family: 'Public Pixel', cursive;
    font-size: 18px;
    color: #ffc733;
    text-shadow: 2px 2px 0 #000;
    margin: 0 0 10px 0;
}

.archive-description {
    color: #bbb;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.archive-description p {
    color: #bbb;
}

/* Posts navigation */
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a,
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    font-family: 'Public Pixel', cursive;
    font-size: 11px;
    color: #ffc733;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(19, 20, 20, 0.85);
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.posts-navigation .nav-previous a:hover,
.posts-navigation .nav-next a:hover,
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    background: #1a1d1c;
    color: #ffe066;
}

.page-links {
    clear: both;
    margin: 1em 0;
}

.page-links a,
.page-links .current {
    font-family: 'Public Pixel', cursive;
    font-size: 11px;
    padding: 5px 10px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    background: #131615;
    color: #fff;
}

.page-links .current {
    background: #ffc733;
    color: #000;
    border-color: #8b6508;
}

.page-links a:hover {
    background: #1a1d1c;
    color: #ffc733;
}

/* Comments
--------------------------------------------- */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
    margin: 0 0 1.5em;
}

.widget select {
    max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: inline-block;
    display: flex;
    align-items: center;
}

/* Captions
--------------------------------------------- */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

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

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {

    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}


