:root {
    --body-color: #1b1b1b;
    --background-color: #2c2c2c;
    --primary-color: #33f7ac;
    --text-color: #535353;
    --ff-montserrat: "Montserrat", sans-serif;
    --fz-150px: 9.375rem;
    --fz-80px: 5rem;
    --fz-50px: 3.125rem;
    --fz-48px: 3rem;
    --fz-40px: 2.5rem;
    --fz-32px: 2rem;
    --fz-30px: 1.875rem;
    --fz-20px: 1.25rem;
    --fz-18px: 1.125rem;
    --fz-16px: 1rem;
    --fz-15px: 0.9375rem;
    --fz-14px: 0.875rem;
    --fz-10px: 0.625rem;
    --fz-5px: 0.3125rem;
}

*:hover {
    transition: 0.2s;
}

html,
body {
    height: 100%;
}

body {
    background: var(--body-color);
    overflow-x: hidden;
    font-family: "Montserrat", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

h1 {
    font-size: var(--fz-48px);
    font-weight: 700;
    font-family: var(--ff-montserrat);
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

button {
    padding: 0;
    background: none;
}

main#main {
    margin-top: var(--fz-50px);
    flex: 1 1 auto;
}

span.primary {
    color: var(--primary-color);
}

.wrapper {
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    margin-top: var(--fz-30px);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: var(--fz-32px);
    font-weight: 700;
    font-family: var(--ff-montserrat);
    color: #fff;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: var(--fz-30px);
}

.menu__link {
    font-size: var(--fz-16px);
    font-weight: 600;
    font-family: var(--ff-montserrat);
    color: #fff;
    transition: 0.2s;
}

.menu__link:hover {
    color: var(--primary-color);
}
.sub-menu {
    display: none;
}

.header__group {
    display: flex;
    align-items: center;
    gap: var(--fz-30px);
}

.search__button {
    background: none;
    padding: none;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--background-color);
    border: 1px solid var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s, border 0.2s;
}

.header__burger:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.burger__line {
    display: block;
    width: 2rem;
    height: 0.14rem;
    margin: 0.18rem 0;
    background: #fff;
    border-radius: 2px;
    transition: background 0.2s;
    transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), opacity 0.2s;
}

.header__burger:active .burger__line {
    background: var(--primary-color);
}

.header__burger.active .burger__line:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
}
.header__burger.active .burger__line:nth-child(2) {
    opacity: 0;
}
.header__burger.active .burger__line:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
}

.header__search {
    position: relative;
}

.search__form {
    position: absolute;
    top: 30px;
    right: 0;
    width: 300px;
    background: var(--background-color);
    border: 1px solid var(--text-color);
    border-radius: 8px;
    padding: var(--fz-10px);
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search__button {
    display: flex;
    justify-content: center;
    align-items: center;
}

#search-form {
    display: flex;
    align-items: center;
}

#search-input {
    flex-grow: 1;
    padding: var(--fz-10px);
    border: 1px solid var(--text-color);
    border-radius: 5px 0 0 5px;
    background: var(--body-color);
    color: #fff;
    font-family: var(--ff-montserrat);
    font-size: var(--fz-16px);
}

.search-submit-btn {
    background: var(--body-color);
    border: 1px solid var(--text-color);
    border-left: none;
    border-radius: 0 5px 5px 0;
    padding: var(--fz-10px);
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit-btn:hover {
    background: var(--primary-color);
}

.search-submit-btn svg {
    display: block;
    width: 17px;
    height: 17px;
}

#search-results {
    margin-top: var(--fz-10px);
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: var(--fz-10px) 0;
    border-bottom: 1px solid var(--text-color);
}

.search-result-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: var(--fz-10px);
}

.search-result-item a {
    color: #fff;
    text-decoration: none;
    font-size: var(--fz-14px);
    font-weight: 600;
    transition: color 0.2s;
}

.search-result-item a:hover {
    color: var(--primary-color);
}

.no-results {
    color: var(--text-color);
    font-size: var(--fz-14px);
    text-align: center;
}

.page__inner {
    display: flex;
    gap: var(--fz-50px);
}

.page__title {
    text-align: center;
    margin-bottom: var(--fz-50px);
}

.sidebar {
    width: 340px;
    top: 30px;
    position: sticky;
    display: flex;
    flex-direction: column;
    gap: var(--fz-30px);
    align-self: flex-start; /* Добавьте это, чтобы sidebar мог "прилипать" в flex-контейнере */
}

.sidebar__categories,
.sidebar__posts {
    width: 340px;
}

.sidebar-group__header {
    display: flex;
    flex-direction: column;
    gap: var(--fz-10px);
}

.sidebar-group__title {
    font-size: var(--fz-20px);
    font-weight: 700;
    font-family: var(--ff-montserrat);
    color: #fff;
}

.sidebar-group__delim {
    width: 100%;
    height: 2px;
    display: block;
    background: var(--text-color);
    border-left: 50px solid var(--primary-color);
    margin-bottom: var(--fz-20px);
}

.sidebar-cats__content {
    display: flex;
    flex-direction: column;
}

.sidebar-cats__item {
    width: 100%;
    display: block;
    padding: var(--fz-15px) 0;
    border-bottom: 1px solid var(--text-color);
}

.sidebar-cats__link {
    font-size: var(--fz-16px);
    font-weight: 400;
    font-family: var(--ff-montserrat);
    color: #fff;
}

.sidebar-cats__count {
    color: var(--text-color);
}

.sidebar-posts__content {
    display: flex;
    flex-direction: column;
}

.sidebar__post {
    display: flex;
    gap: var(--fz-10px);
    padding: var(--fz-15px) 0;
    border-bottom: 1px solid var(--text-color);
}

.sidebar-post__img {
    width: 120px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
}

.sidebar-post__title {
    max-width: 200px;
    display: block;
    font-size: var(--fz-14px);
    font-weight: 700;
    font-family: var(--ff-montserrat);
    color: #fff;
    margin-bottom: var(--fz-10px);
    transition: 0.2s;
}

.sidebar-post__title:hover {
    color: var(--primary-color);
}

.sidebar-post__date {
    font-size: var(--fz-14px);
    color: var(--text-color);
}

.page__content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fz-20px);
}

.article {
    width: 380px;
    height: 400px;
    display: flex;
    flex-direction: column;
    background: var(--background-color);
    border-radius: 10px;
}

.article__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.article__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--fz-20px);
}

.article__categories {
    display: flex;
    gap: var(--fz-10px);
    margin-bottom: var(--fz-10px);
}

.article__category a {
    font-size: var(--fz-14px);
    font-weight: 400;
    font-family: var(--ff-montserrat);
    color: var(--primary-color);
}

.article__title {
    display: block;
    font-size: var(--fz-16px);
    font-weight: 700;
    font-family: var(--ff-montserrat);
    color: #fff;
    margin-bottom: var(--fz-10px);
    transition: 0.2s;
}

.article__title:hover {
    color: var(--primary-color);
}

.article__date {
    font-size: var(--fz-14px);
    font-weight: 400;
    font-family: var(--ff-montserrat);
    color: #fff;
}

.article__desc {
    font-size: var(--fz-16px);
    font-weight: 400;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fz-10px);
    font-family: var(--ff-montserrat);
    font-size: var(--fz-16px);
    color: var(--text-color);
    margin-top: var(--fz-20px);
    margin-bottom: var(--fz-20px);
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--fz-5px) var(--fz-10px);
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--body-color);
}

.page-numbers.current {
    background-color: var(--primary-color);
    color: var(--body-color);
    font-weight: bold;
    pointer-events: none;
}

.page-numbers.dots {
    border: none;
    background: none;
    pointer-events: none;
}

.next.page-numbers {
    background-color: var(--primary-color);
    color: var(--body-color);
    font-weight: bold;
}

.screen-reader-text {
    display: none;
}

.footer {
    border-top: 1px solid var(--text-color);
    margin-top: var(--fz-150px);
}

.footer__inner {
    display: flex;
    flex-direction: column;
}

.footer__row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--fz-30px) 0;
}

.footer__row:first-child {
    border-bottom: 1px solid var(--text-color);
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: var(--fz-30px);
    margin-bottom: var(--fz-50px);
}

.socials__link {
    display: flex;
    align-items: center;
    gap: var(--fz-5px);
    color: var(--text-color);
    text-transform: uppercase;
    font-size: var(--fz-16px);
    font-weight: 600;
    font-family: var(--ff-montserrat);
    transition: 0.2s;
}

.socials__link svg path {
    transition: 0.2s;
}

.socials__link:hover {
    color: var(--primary-color);
}

.socials__link:hover svg path {
    fill: var(--primary-color);
}

.footer__text {
    font-size: var(--fz-16px);
    font-weight: 400;
    font-family: var(--ff-montserrat);
    color: var(--text-color);
    margin-bottom: var(--fz-20px);
}

.footer__mail {
    font-size: var(--fz-16px);
    font-weight: 400;
    font-family: var(--ff-montserrat);
    color: var(--primary-color);
}

.footer__logo {
    font-size: var(--fz-32px);
    font-weight: 700;
    color: #fff;
}

.footer__row:last-child {
    gap: var(--fz-30px);
}

.footer__menu {
    display: flex;
	justify-content: center;
	flex-wrap: wrap;
    gap: var(--fz-30px);
}

.footer-menu__link,
.footer__copyright,
.footer__policy,
.footer__menu a {
    font-size: var(--fz-16px);
    font-weight: 400;
    color: var(--text-color);
    transition: 0.2s;
}

.footer-menu__link:hover {
    color: var(--primary-color);
}

.footer__info {
    display: flex;
    gap: var(--fz-30px);
}

.footer__policy:hover {
    color: var(--primary-color);
}

@media screen and (max-width: 1210px) {
    .article {
        width: 340px;
        height: 400px;
    }
}

@media screen and (max-width: 1130px) {
    .article {
        width: 300px;
        height: 380px;
    }

    .article__img {
        height: 150px;
    }
}

@media screen and (max-width: 1050px) {
    html {
        font-size: 90%;
    }

    .article {
        width: 270px;
        height: 340px;
    }

    .article__img {
        height: 130px;
    }
}

@media screen and (max-width: 991px) {
    html {
        font-size: 85%;
    }

    .sidebar,
    .sidebar__categories,
    .sidebar__posts {
        width: 280px;
    }

    .article {
        height: 320px;
    }
}

@media screen and (max-width: 920px) {
    .article {
        width: 230px;
        height: 320px;
    }
}

@media screen and (max-width: 840px) {
    html {
        font-size: 80%;
    }

    .header__menu {
        display: none;
    }

    .header__menu.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--fz-30px);
        background: var(--background-color);
    }

    .menu__link {
        font-size: var(--fz-32px);
    }

    .header__burger {
        display: flex;
    }

    .page__inner {
        flex-direction: column;
    }

    .page__content {
        justify-content: center;
    }

    .article {
        width: 45%;
        height: 320px;
    }

    .sidebar,
    .sidebar__categories,
    .sidebar__posts {
        width: 100%;
    }

    .sidebar-post__title {
        max-width: 100%;
        font-size: var(--fz-16px);
    }

    .sidebar-post__img {
        width: 150px;
        height: 90px;
    }
}

@media screen and (max-width: 540px) {
    .article {
        height: 330px;
    }

    .download__wrapper {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 500px) {
    .article {
        width: 90%;
    }

    .article__img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }
}

.download__wrapper {
    display: flex;
    align-items: center;
    gap: var(--fz-20px);
    margin-bottom: var(--fz-30px);
}

.download__wrapper p {
    font-size: var(--fz-16px);
    color: #fff;
}

.single__download {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--fz-10px);
    font-size: var(--fz-18px);
    font-weight: 600;
    font-family: var(--ff-montserrat);
    color: var(--background-color);
    background: var(--primary-color);
    border-radius: 10px;
    /* margin-bottom: var(--fz-10px); */
}

.single__download svg path {
    fill: var(--background-color);
}

#ez-toc-container {
    padding: var(--fz-30px);
}

#ez-toc-container ul {
    border: none;
}

.single__thumbnail {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    /* margin-bottom: var(--fz-30px); */
}

.article__text h2 {
    font-size: var(--fz-40px);
    margin-bottom: var(--fz-20px);
    margin-top: var(--fz-50px);
    color: #fff;
}

.article__text h3 {
    font-size: var(--fz-32px);
    font-weight: 700;
    margin-bottom: var(--fz-20px);
    margin-top: var(--fz-30px);
    color: #fff;
}

.article__text p {
    font-size: var(--fz-16px);
    font-weight: 400;
    font-family: var(--montserrat);
    letter-spacing: 0.02em;
    line-height: 2em;
    color: var(--secondary-color);
    margin-bottom: var(--fz-20px);
    color: #fff;
}

.article__text ul {
    display: flex;
    flex-direction: column;
    gap: var(--fz-10px);
    margin-bottom: var(--fz-20px);
    padding: var(--fz-20px) var(--fz-30px);
    background: var(--background-color);
    border: 1px solid var(--text-color);
    border-radius: 10px;
}

.article__text li {
    list-style-type: unset;
    font-size: var(--fz-18px);
    color: #fff;
}

.article__text a {
    color: var(--primary-color);
}

.article__text hr {
    margin: var(--fz-80px) 0;
}

.article__text table {
    margin-bottom: var(--fz-20px);
    margin-top: var(--fz-30px);
    border-color: var(--text-color);
}

.article__text thead {
    border-bottom: 1px;
    border-color: var(--text-color);
}

.article__text th,
.article__text td {
    color: #fff;
    padding: var(--fz-15px);
    border-color: var(--text-color);
}

.article__text th {
    font-size: var(--fz-20px);
    font-weight: 700;
    font-family: var(--ubuntu);
}

.article__text td {
    font-size: var(--fz-18px);
    font-weight: 400;
    font-family: var(--montserrat);
    letter-spacing: 0.02em;
}

.article__text img {
    max-width: 100%;
    object-fit: cover;
}

.article__text code {
    word-break: break-all;
}



figure.size-large img,
figure.size-full img {
    width: inherit;
    height: inherit;
}

.wp-block-kevinbatdorf-code-block-pro {
    width: 100%;
}

.schema-faq strong {
    display: block;
    font-size: var(--fz-20px);
    font-weight: 700;
    font-family: var(--ff-montserrat);
    color: #fff;
    margin-bottom: var(--fz-10px);
}

.ez-toc-title {
    display: block !important;
    font-size: var(--fz-20px) !important;
    margin-bottom: var(--fz-20px) !important;
}

.ez-toc-title-toggle {
    display: none !important;
}

#comments {
    max-width: 100%;
}

#wpdcom {
    max-width: 90%;
}

.ya-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ya-mobile {
    display: none;
}

.download__ad {
    width: 300px;
    /* height: 600px; */
}

.download__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--f50px);
    text-align: center;
}

.download-page .page__inner {
    align-items: center;
}

.download__content h1 {
    margin-bottom: var(--fz-30px);
}

.download__content p {
    font-size: var(--fz-16px);
    color: #fff;
    margin-bottom: var(--fz-20px);
    margin-top: var(--fz-20px);
}

.download-button {
    width: 350px;
    height: 45px;
    justify-content: center;
    align-items: center;
    font-size: var(--fz-16px);
    font-weight: 600;
    font-family: var(--ff-montserrat);
    color: var(--background-color);
    background: var(--primary-color);
    border-radius: 10px;
}


@media screen and (max-width: 700px) {
    .ya-pc {
        display: none;
    }

    .ya-mobile {
        max-width: 80%;
        display: block;
    }
}

/* Force responsive fixes for Code Block Pro with fixed widths via media queries */
.wp-block-kevinbatdorf-code-block-pro {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 auto !important; /* Center if needed */
}

.wp-block-kevinbatdorf-code-block-pro pre.shiki {
    overflow-x: auto !important;
    white-space: pre !important;
    word-wrap: normal !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Default for large screens (desktop >1200px): fixed width 800px */
@media (min-width: 1201px) {
    .wp-block-kevinbatdorf-code-block-pro {
        width: 800px !important; /* Fixed width for desktop */
    }
}

/* For tablets (768-1200px): fixed width 600px */
@media (min-width: 769px) and (max-width: 1200px) {
    .wp-block-kevinbatdorf-code-block-pro {
        width: 600px !important; /* Fixed for tablets */
    }
}

/* For mobile (<768px): 100% viewport width with forced wrapping and smaller font */
@media (max-width: 768px) {
    .wp-block-kevinbatdorf-code-block-pro {
        width: 100vw !important; /* Fixed to full viewport width */
        font-size: 0.75rem !important; /* Smaller font to fit more */
        line-height: 1.1rem !important;
    }
    
    .wp-block-kevinbatdorf-code-block-pro pre.shiki {
        overflow-x: hidden !important; /* Hide horizontal overflow if wrapping */
    }
    
    /* Force wrapping long lines on mobile (uncomment if you want to break code readability for no overflow) */
    .wp-block-kevinbatdorf-code-block-pro pre.shiki code,
    .wp-block-kevinbatdorf-code-block-pro pre.shiki .line {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important; /* Auto hyphenation for long words */
    }
}

@media screen and (max-width: 991px) {
    .article__text .wp-block-kevinbatdorf-code-block-pro {
        max-width: 530px!important;
    }
}

@media screen and (max-width: 540px) {
    .article__text .wp-block-kevinbatdorf-code-block-pro {
        max-width: 320px!important;
    }
}