﻿/*
 * Electroandi theme вЂ” base architecture only.
 *
 * Colours, typography and measurements follow the original Joomla site
 * (yoo_nano3, compiled media/template/theme-*.css). Component styling is
 * deliberately deferred to later stages.
 */

/*
 * Open Sans is bundled locally (SIL Open Font License 1.1, see fonts/OFL.txt).
 * Source: Google Fonts css2 API, Open Sans v44 variable WOFF2 files.
 * No external font requests are made at runtime.
 */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/open-sans-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/open-sans-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/open-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ea-bg: #ffffff;
    --ea-body-bg: #f3f3f3;
    --ea-text: #444444;
    --ea-text-strong: #333333;
    --ea-text-muted: #99958c;
    --ea-link: #0645ad;
    --ea-link-hover: #0074a2;
    --ea-border: #e7e7e7;
    --ea-footer-bottom-bg: #222222;
    --ea-footer-bottom-text: #ffffff;

    --ea-font-body: 'Open Sans', Arial, Helvetica, sans-serif;

    --ea-container-width: 980px;
    --ea-container-gutter: 20px;
    --ea-grid-gutter: 25px;
    --ea-sidebar-ratio: 1fr;
    --ea-main-ratio: 3fr;
    --ea-sidebar-top: 20px;
    /* Sticky sidebar offset: the navbar stays fixed at the top and must not
     * cover the sidebar, so the sidebar starts below it plus the usual gap. */
    --ea-sidebar-sticky-top: calc(var(--ea-navbar-height) + var(--ea-sidebar-top));

    /* Header */
    --ea-header-margin: 25px;
    --ea-button-bg: #0645ad;
    --ea-button-bg-hover: #0140a8;
    --ea-button-shadow: #003ca4;
    --ea-navbar-height: 46px; /* 44px nav row + top/bottom borders */
    --ea-dropdown-width: 220px;

    /* Mobile header and full-screen category menu */
    --ea-mobile-header-height: 60px;
    --ea-mobile-order-bar-height: 44px;
    --ea-mobile-header-bg: #313c45;
    --ea-mobile-header-text: #ffffff;
    --ea-mobile-menu-bg: #313c45;
    --ea-mobile-menu-accent: #31dcff;
}

@media (min-width: 1220px) {
    :root {
        --ea-container-width: 1150px;
        --ea-container-gutter: 45px;
        --ea-grid-gutter: 35px;
        --ea-header-margin: 45px;
    }
}

/* Joomla: .uk-container padding is 25px from 768px to 1219px. */
@media (min-width: 768px) and (max-width: 1219px) {
    :root {
        --ea-container-gutter: 25px;
    }
}

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

/* SEO/accessibility: keep a page-level H1 in the document without adding
 * a visible heading to the original Joomla list layout. */
.ea-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    font: normal 14px/20px var(--ea-font-body);
    -webkit-text-size-adjust: 100%;
    background: var(--ea-bg);
    color: var(--ea-text);
}

body {
    margin: 0;
    min-width: 0;
    background-color: var(--ea-body-bg);
}

img,
video,
table {
    max-width: 100%;
}

img {
    height: auto;
    border: 0;
}

a {
    color: var(--ea-link);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--ea-link-hover);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, blockquote, pre, table {
    margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ea-font-body);
    font-weight: 500;
    color: var(--ea-text);
}

/* Sticky footer: the white container and the content column grow to fill the
 * viewport so the footer sits at the bottom even on short pages. */
.ea-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ea-container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--ea-container-width);
    margin: 0 auto;
    padding: 0 max(var(--ea-container-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--ea-container-gutter), env(safe-area-inset-left, 0px));
    background: var(--ea-bg);
}

/* Joomla: .tm-middle.uk-grid has margin-left:-gutter and each child has
 * padding-left:gutter. The measured columns are 760/335 at 1366px. */
.ea-middle {
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: 69.4% 30.6%;
    width: calc(100% + var(--ea-grid-gutter));
    margin-left: calc(-1 * var(--ea-grid-gutter));
    align-items: start;
}

.ea-main,
.ea-sidebar {
    min-width: 0;
    padding-left: var(--ea-grid-gutter);
}

.ea-middle.ea-middle--no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.ea-content {
    min-width: 0;
}

/* Header ------------------------------------------------------------------ */
.ea-headerbar {
    display: flow-root;
    min-height: 89px;
    margin: var(--ea-header-margin) 0 25px;
}

.ea-logo {
    display: block;
    float: left;
    line-height: 0;
}

.ea-logo img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
}

.ea-headerbar-panel {
    float: right;
    max-width: 300px;
}

.ea-author-button {
    display: inline-block;
    margin-top: 17px;
    padding: 0.7em 0.8em calc(0.7em + 2px);
    border-radius: 3px;
    background: var(--ea-button-bg);
    box-shadow: 0 -3px var(--ea-button-shadow) inset;
    color: #ffffff;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
}

.ea-author-button:hover,
.ea-author-button:focus {
    background: var(--ea-button-bg-hover);
    color: #ffffff;
    text-decoration: none;
}

.ea-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.ea-navbar-search {
    display: flex;
    flex: 0 0 180px;
    align-items: center;
    justify-content: flex-end;
    width: 180px;
    height: 44px;
}

.ea-search-field {
    width: 120px;
    max-width: 100%;
    height: 30px;
    padding: 0 0 0 30px;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--ea-text);
    font: 400 16px/30px var(--ea-font-body);
    vertical-align: middle;
    -webkit-appearance: none;
    transition: width 0.2s linear;
}

.ea-search-field::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.ea-search-field::-webkit-search-cancel-button,
.ea-search-field::-webkit-search-decoration {
    -webkit-appearance: none;
}

.ea-search-field::-ms-clear {
    display: none;
}

.ea-search-field:-ms-input-placeholder,
.ea-search-field::-moz-placeholder,
.ea-search-field::-webkit-input-placeholder {
    color: #999999;
}

.ea-search-field:focus {
    outline: 0;
}

/*
 * Joomla: :focus or a non-empty value expands the field to 180px.
 * :not(:placeholder-shown) keeps it expanded after blur while text remains,
 * which is what UIkit's `uk-active` class did. The field is right-aligned in
 * `.ea-navbar-search`, so its right edge stays fixed and it grows to the left.
 */
.ea-search-field:focus,
.ea-search-field:not(:placeholder-shown) {
    width: 180px;
}

.ea-search::before,
.ea-search::after {
    position: absolute;
    content: '';
    background: #999999;
}

.ea-search::before {
    top: 9px;
    left: 9px;
    width: 10px;
    height: 10px;
    border: 1px solid #999999;
    border-radius: 50%;
    background: transparent;
}

.ea-search::after {
    top: 19px;
    left: 17px;
    width: 7px;
    height: 1px;
    transform: rotate(45deg);
}

/* Search results page: the navbar search is hidden on mobile, so the page
 * carries its own search field. */
.ea-search-page {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 640px;
    margin: 0 0 24px;
    padding: 6px;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    background: #ffffff;
}

.ea-search-page::before,
.ea-search-page::after {
    display: none;
}

.ea-search-page .ea-search-field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 36px;
    max-width: none;
    padding-left: 12px;
    font-size: 16px;
    line-height: 36px;
}

.ea-search-page .ea-search-field:focus,
.ea-search-page .ea-search-field:not(:placeholder-shown) {
    width: 100%;
}

.ea-search-submit {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: var(--ea-button-bg);
    color: #ffffff;
    cursor: pointer;
}

.ea-search-submit:hover,
.ea-search-submit:focus-visible {
    background: var(--ea-button-bg-hover);
    color: #ffffff;
}

.ea-search-submit:focus-visible {
    outline: 2px solid var(--ea-link);
    outline-offset: 2px;
}

/* Navigation -------------------------------------------------------------- */
/* The container is a flex column, so the header's bottom margin and the
 * navbar's top margin no longer collapse; keep the original 25px gap. */
/* The navbar is sticky on desktop. Its background must be opaque so the page
 * does not show through while the header scrolls away underneath it. */
.ea-navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    margin: 0 0 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--ea-bg);
}

.ea-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ea-nav-item {
    position: relative;
}

.ea-nav-item > a {
    display: block;
    height: 44px;
    margin-right: 7px;
    padding: 0 5px;
    border-bottom: 2px solid transparent;
    color: var(--ea-text);
    font: 400 15px/44px var(--ea-font-body);
    text-decoration: none;
    text-shadow: 0 1px 0 #ffffff;
}

.ea-nav-item:hover > a,
.ea-nav-item:focus-within > a,
.ea-nav-item.is-open > a,
.ea-nav-item.active > a {
    border-bottom-color: var(--ea-link);
}

.ea-nav .poisk,
.ea-nav .none_menu {
    display: none;
}

.ea-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    width: var(--ea-dropdown-width);
    margin: 0;
    padding: 15px;
    border: 1px solid #cbcbcb;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s;
}

/* UIkit: .uk-open > .uk-dropdown-navbar animates for 0.2s on show. */
@keyframes ea-slide-top {
    from { transform: translateY(-6px); }
    to { transform: translateY(0); }
}

.ea-nav-item.is-open > .ea-dropdown,
.ea-nav-item:focus-within > .ea-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    animation: ea-slide-top 0.2s ease-in-out;
}

/* Joomla: .uk-dropdown .uk-nav { margin: 0 -15px } cancels the dropdown
 * horizontal padding so a hovered item is highlighted edge to edge. */
.ea-dropdown > li {
    margin: 0 -15px;
}

.ea-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--ea-text);
    font: 15px/20px var(--ea-font-body);
    text-decoration: none;
}

.ea-dropdown a:hover,
.ea-dropdown a:focus {
    background: var(--ea-link);
    box-shadow: inset 0 2px 4px rgba(0, 69, 109, 0.25);
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.ea-mobile-header,
.ea-mobile-order-bar {
    display: none;
}

/* Narrower desktop nav: keep the search field compact so it never wraps. */
@media (max-width: 900px) {
    .ea-navbar-search {
        flex-basis: 120px;
        width: 120px;
    }

    .ea-navbar-search .ea-search-field {
        max-width: 120px;
    }
}

@media (min-width: 1220px) {
    .ea-headerbar {
        min-height: 89px;
        margin-bottom: 35px;
    }

    .ea-navbar {
        margin: 0 0 35px;
    }
}

@media (max-width: 1219px) {
    .ea-nav .none_menu2 {
        display: none;
    }
}

/* Full-screen mobile category menu ---------------------------------------- */
.ea-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background: var(--ea-mobile-menu-bg);
    color: var(--ea-mobile-header-text);
    visibility: hidden;
    opacity: 0;
}

.ea-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.ea-mobile-menu-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: calc(var(--ea-mobile-header-height) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    background: var(--ea-mobile-header-bg);
}

.ea-mobile-menu-logo {
    display: flex;
    align-items: center;
    min-width: 0;
    line-height: 0;
}

.ea-mobile-menu-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 29px;
}

.ea-mobile-menu-close {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 12px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--ea-mobile-header-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ea-mobile-menu-close:hover,
.ea-mobile-menu-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.ea-mobile-menu-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(24px + var(--ea-mobile-order-bar-height) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.ea-mobile-menu-list,
.ea-mobile-menu-sublist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ea-mobile-menu-item > a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--ea-mobile-header-text);
    font: 600 17px/1.3 var(--ea-font-body);
    text-decoration: none;
}

.ea-mobile-menu-item > a:hover,
.ea-mobile-menu-item > a:focus-visible,
.ea-mobile-menu-item.active > a {
    color: var(--ea-mobile-menu-accent);
    text-decoration: none;
}

.ea-mobile-menu-sublist {
    margin: 0 0 6px;
    padding: 2px 0 4px 10px;
}

.ea-mobile-menu-sublist a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    color: #d7e0e7;
    font: 400 15px/1.4 var(--ea-font-body);
    text-decoration: none;
}

.ea-mobile-menu-sublist a:hover,
.ea-mobile-menu-sublist a:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.ea-mobile-menu a:focus-visible,
.ea-mobile-menu button:focus-visible {
    outline: 2px solid var(--ea-mobile-menu-accent);
    outline-offset: 2px;
}

/* Lock the page while the full-screen menu is open. The JS also freezes the
 * body at its current scroll position for iOS Safari. */
html.ea-menu-open,
body.ea-menu-open {
    overflow: hidden;
}

body.ea-menu-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

/* The page is frozen at `top: -scrollY` while the menu is open. Keep the
 * sticky header visually at the top instead of letting it scroll away with
 * the frozen body. */
body.ea-menu-open .ea-mobile-header {
    transform: translateY(var(--ea-mobile-scroll-lock, 0px));
}

body.ea-menu-open .ea-mobile-order-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Joomla: below 1220px the sidebar is pushed under the article. */
@media (max-width: 1220px) {
    .ea-middle {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 25px;
    }
}

@media (min-width: 768px) {
    .ea-mobile-menu {
        display: none;
    }
}

@media (max-width: 767px) {
    :root {
        /* Same width limit as the header logo: 3 buttons × 38px, the logo's
         * right margin and the header's safe-area paddings. */
        --ea-mobile-logo-max-width: calc(100vw - max(12px, env(safe-area-inset-left, 0px)) - max(8px, env(safe-area-inset-right, 0px)) - 114px - 8px);
    }

    .ea-headerbar,
    .ea-navbar {
        display: none;
    }

    .ea-mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 50;
        align-items: center;
        justify-content: space-between;
        width: calc(100% + 2 * var(--ea-container-gutter));
        min-height: calc(var(--ea-mobile-header-height) + env(safe-area-inset-top, 0px));
        margin: 0 calc(-1 * var(--ea-container-gutter)) 30px;
        padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
        background: var(--ea-mobile-header-bg);
        color: var(--ea-mobile-header-text);
    }

    .ea-mobile-logo {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        min-width: 0;
        margin-right: 8px;
        line-height: 0;
    }

    .ea-mobile-logo img {
        display: block;
        width: auto;
        height: auto;
        max-width: var(--ea-mobile-logo-max-width);
        max-height: 29px;
    }

    .ea-mobile-menu-logo img {
        max-width: var(--ea-mobile-logo-max-width);
    }

    .ea-mobile-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 0;
    }

    .ea-mobile-action {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: var(--ea-mobile-header-text);
        font: inherit;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .ea-mobile-action:hover,
    .ea-mobile-action:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        text-decoration: none;
    }

    .ea-mobile-action:focus-visible {
        outline: 2px solid var(--ea-mobile-menu-accent);
        outline-offset: -2px;
    }

    .ea-mobile-icon {
        display: block;
    }

    .ea-mobile-order-bar {
        display: flex;
        position: sticky;
        bottom: 0;
        z-index: 1100;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: calc(var(--ea-mobile-order-bar-height) + env(safe-area-inset-bottom, 0px));
        padding: 0 16px env(safe-area-inset-bottom, 0px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
        background: var(--ea-mobile-header-bg);
        color: #ffffff;
        font: 600 15px/1.2 var(--ea-font-body);
        text-align: center;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .ea-mobile-order-bar:hover,
    .ea-mobile-order-bar:focus-visible {
        background: #3a4650;
        color: #ffffff;
        text-decoration: none;
    }

    .ea-mobile-order-bar:focus-visible {
        outline: 2px solid var(--ea-mobile-menu-accent);
        outline-offset: -3px;
    }
}

/* Article typography ------------------------------------------------------ */
/*
 * Reproduced from templates/yoo_nano3/css/theme.css (compiled Joomla CSS):
 * base typography, .uk-grid p, .uk-article-title, lists, blockquote, pre,
 * inline code, hr and .uk-table. Inline styles authored in the articles are
 * intentionally left untouched.
 */
.ea-article {
    font-family: var(--ea-font-body);
    font-size: 14px;
    line-height: 20px;
    color: var(--ea-text);
}

.ea-article > * {
    margin-bottom: 20px;
}

.ea-article > * + * {
    margin-top: 20px;
}

.ea-article > :last-child {
    margin-bottom: 0;
}

.ea-article h1,
.ea-article h2,
.ea-article h3,
.ea-article h4,
.ea-article h5,
.ea-article h6 {
    margin: 0 0 20px;
    font-family: var(--ea-font-body);
    font-weight: 500;
    color: var(--ea-text);
    text-transform: none;
}

.ea-article * + h1,
.ea-article * + h2,
.ea-article * + h3,
.ea-article * + h4,
.ea-article * + h5,
.ea-article * + h6 {
    margin-top: 30px;
}

.ea-article h1 {
    font-size: 32px;
    line-height: 42px;
    font-weight: 600;
    margin: 0 0 3px !important;
}

.ea-article h2 {
    font-size: 28px !important;
    line-height: 40px;
}

.ea-article h3 { font-size: 24px; line-height: 30px; }
.ea-article h4 { font-size: 18px; line-height: 24px; }
.ea-article h5 { font-size: 14px; line-height: 20px; }
.ea-article h6 { font-size: 12px; line-height: 18px; }

.ea-article p {
    margin: 0 0 20px;
    font-size: 16px !important;
    line-height: 1.56 !important;
    font-style: normal !important;
    font-family: var(--ea-font-body) !important;
    color: var(--ea-text-strong);
}

/*
 * Migrated Joomla articles contain inline `font-family: verdana/tahoma`
 * declarations on paragraphs and spans, so they render in a different font
 * from the theme articles. Force the theme font for the whole article body;
 * code keeps its monospace font.
 */
.ea-article :not(pre):not(code):not(kbd):not(samp) {
    font-family: var(--ea-font-body) !important;
}

/*
 * The same inline styles set 14px/1.3em on text spans, which makes the body
 * text smaller and denser than the reference article. Match the regular
 * paragraph size; sub/superscripts keep their relative size.
 */
.ea-article p :not(sub):not(sup):not(code):not(kbd):not(samp) {
    font-size: 16px !important;
    line-height: 1.56 !important;
}

.ea-article * + p {
    margin-top: 20px;
}

.ea-article a {
    color: var(--ea-link);
    text-decoration: none;
}

.ea-article a:hover,
.ea-article a:focus {
    color: var(--ea-link-hover);
    text-decoration: underline;
}

.ea-article ul,
.ea-article ol {
    padding-left: 30px;
    margin: 0 0 20px;
}

.ea-article ul > li > ul,
.ea-article ul > li > ol,
.ea-article ol > li > ol,
.ea-article ol > li > ul {
    margin: 0;
}

.ea-article li,
.ea-article dt,
.ea-article dd {
    font-size: 15px;
}

.ea-article dt {
    font-weight: bold;
}

.ea-article dd {
    margin-left: 0;
}

.ea-article blockquote {
    margin: 0 0 20px;
    padding-left: 15px;
    border-left: 5px solid #dddddd;
    font-size: 16px;
    line-height: 22px;
    font-style: italic;
}

.ea-article pre {
    margin: 0 0 20px;
    padding: 10px;
    background: #fafafa;
    font: 12px/18px Consolas, monospace, serif;
    color: var(--ea-text);
    tab-size: 4;
    overflow: auto;
    border: 1px solid #dddddd;
    border-radius: 3px;
}

.ea-article :not(pre) > code,
.ea-article :not(pre) > kbd,
.ea-article :not(pre) > samp {
    font-size: 12px;
    font-family: Consolas, monospace, serif;
    color: #dd0055;
    white-space: nowrap;
    padding: 0 4px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    background: #fafafa;
}

.ea-article hr {
    box-sizing: content-box;
    height: 0;
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #dddddd;
}

.ea-article table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 20px;
}

.ea-article th,
.ea-article td {
    padding: 8px;
    border-bottom: 1px solid #dddddd;
}

.ea-article th {
    text-align: left;
}

.ea-article td {
    vertical-align: top;
}

.ea-article caption {
    font-size: 12px;
    font-style: italic;
    text-align: left;
    color: #999999;
}

/*
 * Images in the article body are centred regardless of their size. Some
 * migrated images keep inline `float: left/right` and side margins from
 * Joomla, so those declarations have to be overridden with `!important`.
 * Natural dimensions and aspect ratio are preserved; only the width is
 * capped by the content column.
 */
.ea-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: auto !important;
    margin-left: auto !important;
    float: none !important;
    vertical-align: middle;
}

.ea-article table,
.ea-article pre,
.ea-article .border-image {
    display: block;
    overflow-x: auto;
}

/* Ensure no horizontal scroll from long lines/formulas in article */
.ea-article {
    -webkit-overflow-scrolling: touch;
    overscroll-x: contain;
}

/* Sidebar ------------------------------------------------------------------ */
.ea-sidebar .ea-panel {
    margin-bottom: 25px;
}

/* Sidebar "Р—РђР“Р›РЇРќРРўР• РўРђРљР–Р•": a muted heading and a plain link list. */
.ea-sidebar-related {
    padding: 0;
    border: 0;
    background: none;
}

.ea-sidebar-related-title {
    margin: 0 0 0 20px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid #eaeeef;
    border-radius: 0;
    background: none;
    color: #777777;
    font: 700 14px/20px var(--ea-font-body);
}

.ea-sidebar-related-list {
    margin: 0;
    padding: 4px 0 0 20px;
    list-style: none;
}

.ea-sidebar-related-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eaeeef;
}

.ea-sidebar-related-list a {
    display: block;
    padding: 10px 0;
    color: var(--ea-text-strong);
    font: 600 15px/21px var(--ea-font-body);
    text-decoration: none;
    transition: color 220ms ease;
}

.ea-sidebar-related-list a:hover,
.ea-sidebar-related-list a:focus-visible {
    color: var(--ea-link-hover);
    text-decoration: none;
}

.ea-sidebar-related-list a:focus-visible {
    outline: 2px solid var(--ea-link);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ea-sidebar-related-list a {
        transition: none;
    }
}

/* Below 1220px the sidebar sits under the article, so its visible block
 * should use the full width of the article text column. */
@media (max-width: 1220px) {
    .ea-sidebar-related-title {
        margin-right: 0;
        margin-left: 0;
    }

    .ea-sidebar-related-list {
        padding-right: 0;
        padding-left: 0;
    }
}

/* The sidebar is a grid item. `align-self: start` keeps its height at the
 * content height, so it can move with `position: sticky` inside `.ea-middle`
 * and stops at that container's bottom edge, before the footer. No ancestor
 * sets `overflow`, so the sticky box is not clipped. The navbar is sticky at
 * the top, so the sidebar offset includes its height to stay below it. Below
 * 1220px the sidebar moves under the article and sticky is disabled. */
@media (min-width: 1221px) {
    .ea-sidebar {
        position: sticky;
        top: var(--ea-sidebar-sticky-top);
        align-self: start;
    }
}

/* Phones and tablets: the related block is shown only on article pages.
 * Desktop keeps the sidebar on every page where it is rendered. */
@media (max-width: 1220px) {
    .ea-sidebar {
        display: none;
    }

    .ea-sidebar--article {
        display: block;
    }
}

/* Blog list ---------------------------------------------------------------- */
.ea-subcategories {
    margin-top: 30px;
}

.ea-subcategories h3 {
    margin: 0 0 15px;
    font: 500 18px/24px var(--ea-font-body);
}

.ea-subcategories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ea-subcategories li {
    margin: 0 0 12px;
}

.ea-subcategories li a {
    color: var(--ea-link-hover);
    font-size: 18px;
    line-height: 24px;
    text-decoration: none;
}

.ea-subcategories li a:hover,
.ea-subcategories li a:focus {
    color: var(--ea-link);
    text-decoration: underline;
}

.ea-blog {
    display: flex;
    flex-direction: column;
}

.ea-blog .ea-blog-item {
    padding-bottom: 28px;
    border-bottom: 1px solid #dddddd;
}

.ea-blog .ea-blog-item + .ea-blog-item {
    margin-top: 28px;
}

/* Scoped under .ea-blog so the list keeps its typography inside .ea-article
 * (search and tag archives) where the article h2/p rules would otherwise win. */
.ea-blog .ea-blog-title {
    margin: 0 0 6px;
    font: 600 32px/42px var(--ea-font-body);
}

.ea-blog .ea-blog-title a {
    color: var(--ea-text);
    text-decoration: none;
    transition: color 220ms ease;
}

.ea-blog .ea-blog-title a:hover,
.ea-blog .ea-blog-title a:focus-visible {
    color: var(--ea-link-hover);
    text-decoration: none;
}

.ea-blog .ea-blog-title a:focus-visible,
.ea-blog .ea-blog-category a:focus-visible {
    outline: 2px solid var(--ea-link);
    outline-offset: 3px;
    border-radius: 2px;
}

.ea-blog .ea-blog-meta {
    margin: 0 0 16px;
    color: #222222;
    font-size: 14px;
    line-height: 22px;
}

.ea-blog .ea-blog-category {
    color: #222222;
}

.ea-blog .ea-blog-category a {
    color: inherit;
    text-decoration: none;
    transition: color 220ms ease;
}

.ea-blog .ea-blog-category a:hover,
.ea-blog .ea-blog-category a:focus-visible {
    color: var(--ea-link-hover);
    text-decoration: none;
}

.ea-blog .ea-blog-meta-sep {
    margin: 0 8px;
    color: #999999;
    font-size: 10px;
    line-height: 1;
    vertical-align: middle;
}

.ea-blog .ea-blog-taxonomy {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    vertical-align: middle;
}

.ea-blog .ea-blog-date {
    color: #777777;
}

.ea-blog .ea-blog-date:not(:first-child)::before {
    content: "В·";
    margin: 0 6px;
    color: #bbbbbb;
}

.ea-blog .ea-blog-body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.ea-blog .ea-blog-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ea-blog .ea-blog-intro {
    margin: 0 0 18px;
    color: var(--ea-text-strong);
    font-size: 16px;
    line-height: 1.65;
}

/* Search and tag archives render the list inside .ea-article, whose body
 * typography targets every paragraph descendant. Restore the list UI sizes
 * that those `!important` body rules would otherwise inflate. */
.ea-article .ea-blog .ea-blog-meta,
.ea-article .ea-blog .ea-blog-meta * {
    font-size: 14px !important;
    line-height: 22px !important;
}

.ea-article .ea-blog .ea-blog-meta .ea-blog-meta-sep {
    font-size: 10px !important;
    line-height: 1 !important;
}

.ea-article .ea-blog .ea-blog-meta .tags,
.ea-article .ea-blog .ea-blog-meta .tags a {
    font-size: 12px !important;
    line-height: 18px !important;
}

.ea-article .ea-blog .ea-blog-intro {
    line-height: 1.65 !important;
}

/* РџР°РіРёРЅР°С†РёСЏ Р°СЂС…РёРІР° С‚РµРіРѕРІ. РћРЅР° РЅРµ РІС‹РІРѕРґРёС‚СЃСЏ РЅР° РіР»Р°РІРЅРѕР№ Рё РІ СЃРїРёСЃРєР°С… РєР°С‚РµРіРѕСЂРёР№. */
.ea-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 28px;
    font-size: 15px;
    line-height: 1;
}

.ea-pagination a,
.ea-pagination-current,
.ea-pagination-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    background: #ffffff;
    color: var(--ea-link-hover);
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ea-pagination a:hover,
.ea-pagination a:focus-visible {
    border-color: var(--ea-link-hover);
    background: #e2f0f9;
    color: var(--ea-link-hover);
    text-decoration: none;
}

.ea-pagination a:focus-visible {
    outline: 2px solid var(--ea-link);
    outline-offset: 2px;
}

.ea-pagination-current {
    border-color: var(--ea-link-hover);
    background: var(--ea-link-hover);
    color: #ffffff;
    font-weight: 600;
}

.ea-pagination-disabled {
    border-color: #eeeeee;
    background: #fafafa;
    color: #aaaaaa;
}

.ea-pagination-pages {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .ea-blog .ea-blog-title a,
    .ea-blog .ea-blog-category a,
    .ea-pagination a,
    .ea-pagination-current,
    .ea-pagination-disabled {
        transition: none;
    }
}

@media (max-width: 767px) {
    /* Mobile: the meta row stays on one line; tag pills that do not fit are
     * clipped instead of moving under the category. */
    .ea-blog .ea-blog-meta {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        overflow: hidden;
        white-space: nowrap;
    }

    .ea-blog .ea-blog-taxonomy {
        flex: 0 1 auto;
        flex-wrap: nowrap;
        min-width: 0;
        overflow: hidden;
    }

    .ea-blog .ea-blog-taxonomy .tags {
        flex-wrap: nowrap;
    }
}

@media (max-width: 600px) {
    .ea-blog .ea-blog-title {
        font-size: 24px;
        line-height: 32px;
    }

    /* Archive lists sit inside .ea-article h2 { font-size: 28px !important }. */
    .ea-article .ea-blog .ea-blog-title {
        font-size: 24px !important;
    }

    .ea-blog .ea-blog-item {
        padding-bottom: 24px;
    }

    .ea-blog .ea-blog-item + .ea-blog-item {
        margin-top: 24px;
    }

    /* Narrow screens: hide the tag block in all lists except the home
     * page, leaving the category visible. */
    .ea-blog:not(.ea-blog--home) .ea-blog-taxonomy {
        display: none;
    }

    .ea-pagination {
        gap: 4px;
        margin-top: 24px;
        font-size: 14px;
    }

    .ea-pagination a,
    .ea-pagination-current,
    .ea-pagination-disabled {
        min-width: 34px;
        min-height: 34px;
        padding: 0 9px;
    }

    .ea-pagination-pages {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    /* Narrow mobile: compress sidebars, tighten gutters */
    .ea-container {
        padding-left: max(15px, env(safe-area-inset-left, 0px));
        padding-right: max(15px, env(safe-area-inset-right, 0px));
    }
    .ea-mobile-header {
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
    }
    .ea-search-field {
        font-size: 14px;
        line-height: 28px;
    }
}

/* Footer ------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.ea-footer {
    position: relative;
    margin-top: 55px;
    padding: 30px 0 0;
    text-align: center;
}

/* Joomla: .tm-footer p вЂ” muted colour, 25/10 padding. The disclaimer stays
 * small and muted so it does not distract from the content. */
.ea-footer p {
    margin: 0;
    padding: 18px 0 10px;
    color: #a9a59d;
    font: 400 12px/1.5 var(--ea-font-body);
}

.ea-footer p a {
    color: inherit;
}

.ea-footer p a:hover,
.ea-footer p a:focus {
    color: var(--ea-link-hover);
}

/* Joomla: .live-counter — the LiveInternet visitor counter in the footer. */
.live-counter {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    line-height: 0;
}

.live-counter a,
.live-counter img {
    display: block;
}

.live-counter img {
    width: 88px;
    height: 15px;
}

@media (max-width: 767px) {
    .live-counter {
        display: none;
    }
}

/* At the full 1150px container width the disclaimer needs a slightly smaller
 * font to stay on one line, including 2K/2560px screens. */
@media (min-width: 1220px) {
    .ea-footer p {
        font-size: 11.5px;
    }
}

/* Joomla: .tm-totop-scroller вЂ” 32px circle with a semi-transparent blue
 * background. FontAwesome is not connected, so the chevron is drawn with CSS. */
.ea-totop {
    position: absolute;
    top: -32px;
    right: 0;
    z-index: 1000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 115, 163, 0.4);
    color: #ffffff;
    transition: background-color 0.05s linear;
}

.ea-totop::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translate(-50%, -35%) rotate(45deg);
}

.ea-totop:hover,
.ea-totop:focus {
    background: rgba(0, 115, 163, 0.7);
    color: #ffffff;
    outline: 0;
    text-decoration: none;
}

/* The full-screen mobile menu is an overlay; the back-to-top button belongs
 * to the page underneath and must not show through it. */
body.ea-menu-open .ea-totop {
    display: none;
}

/* Joomla: .text_footer_bottom p вЂ” dark strip outside the white container,
 * as wide as the container (980px, 1150px at >= 1220px). */
.ea-footer-bottom p {
    position: relative;
    max-width: var(--ea-container-width);
    margin: 0 auto;
    padding: 9px 0;
    background: var(--ea-footer-bottom-bg);
    color: var(--ea-footer-bottom-text);
    font: 400 14px/20px var(--ea-font-body);
    text-align: center;
}

/* --- Tags ---------------------------------------------------------------- */
/* Р•РґРёРЅС‹Р№ РІРёРґ С‚РµРіРѕРІ РґР»СЏ РІСЃРµС… СЃС‚СЂР°РЅРёС†: РѕС‚РєСЂС‹С‚Р°СЏ СЃС‚Р°С‚СЊСЏ, СЃРїРёСЃРєРё Рё `/tags`.
 * РџРёР»СЋР»Рё СЃРІРµС‚Р»С‹Рµ, СЃСЃС‹Р»РєРё РІРµРґСѓС‚ РЅР° `/tags/tag:<С‚РµРі>`. */
.tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    vertical-align: middle;
}

.tags a {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e2f0f9;
    color: #333333;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    text-decoration: none;
}

.tags a:hover,
.tags a:focus {
    background: #d7e9f6;
    color: #333333;
    text-decoration: none;
}

/* Set by theme.js: a tag pill that does not fit on the mobile meta line is
 * hidden completely instead of being cut off at the edge. The separator goes
 * with it when no tag is left. */
.tags a.ea-tag-hidden,
.ea-blog-meta-sep.ea-tag-hidden {
    display: none;
}

.tags a:focus-visible {
    outline: 2px solid var(--ea-link);
    outline-offset: 2px;
}

/* РћС‚РєСЂС‹С‚Р°СЏ СЃС‚Р°С‚СЊСЏ Рё СЃС‚СЂР°РЅРёС†Р° `/tags`: РїРёР»СЋР»Рё РёРґСѓС‚ РѕС‚РґРµР»СЊРЅРѕР№ СЃС‚СЂРѕРєРѕР№ РїРѕРґ H1. */
.ea-article > .tags {
    margin-top: 8px;
}

/* --- Related posts ------------------------------------------------------- */
/* Joomla: #tm-main-bottom > .uk-panel.uk-panel-box.related_materials.
 * `.related_materials` drops the UIkit panel border and left padding, so the
 * block is flush with the article text: 20px normal-weight title, 16px items
 * separated by #eaeeef borders with 10px padding top/bottom.
 * The font follows the article body (Open Sans). */
.ea-article > .ea-related {
    margin: 25px 0 0;
}

.ea-related {
    padding: 10px 20px 20px 0;
    border: 0;
    background: none;
    color: var(--ea-text);
}

.ea-related h2 {
    margin: 0 0 20px;
    color: var(--ea-text);
    font-size: 20px !important;
    line-height: 24px;
    font-weight: 400;
}

.ea-article .ea-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ea-article .ea-related-list li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #eaeeef;
    font-size: 16px;
    line-height: 20px;
}

/* Below 1220px the sidebar moves under the article. Hide the article footer's
 * related list there so the same links are not repeated twice in a row. */
@media (max-width: 1220px) {
    .ea-article > .ea-related {
        display: none;
    }
}

/* 404 ---------------------------------------------------------------------- */
/* The illustration is transparent line art, so it stays legible on both light
 * and dark backgrounds. The block is centred inside the article column and
 * keeps the same Open Sans typography and blue button as the rest of the site. */
.ea-error {
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 0 30px;
    text-align: center;
}

.ea-article .ea-error-image {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 6px !important;
}

.ea-article.ea-error h1 {
    margin: 0 0 14px !important;
    color: var(--ea-text);
    font-size: 32px;
    line-height: 42px;
}

.ea-article.ea-error .ea-error-text {
    max-width: 460px;
    margin: 0 auto 26px !important;
    color: var(--ea-text);
    font-size: 16px !important;
    line-height: 1.56 !important;
}

.ea-error-action {
    margin: 0 !important;
}

.ea-article .ea-error-link {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 3px;
    background: var(--ea-button-bg);
    box-shadow: 0 -3px var(--ea-button-shadow) inset;
    color: #ffffff;
    font: 700 14px/20px var(--ea-font-body);
    text-decoration: none;
    transition: background-color 220ms ease;
}

.ea-article .ea-error-link:hover,
.ea-article .ea-error-link:focus {
    background: var(--ea-button-bg-hover);
    color: #ffffff;
    text-decoration: none;
}

.ea-article .ea-error-link:focus-visible {
    outline: 2px solid var(--ea-link);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .ea-article .ea-error-link {
        transition: none;
    }
}

@media (max-width: 600px) {
    .ea-error {
        padding: 0 0 20px;
    }

    .ea-article .ea-error-image {
        max-width: 250px;
    }

    .ea-article.ea-error h1 {
        font-size: 26px;
        line-height: 34px;
    }
}
