@font-face {
    font-family: "Lato";
    src:
            local("Lato"),
            url("./fonts/Lato-Regular.woff2") format("woff");
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "Lato";
    src:
            local("Lato"),
            url("./fonts/Lato-Medium.woff2") format("woff");
    font-display: swap;
    font-weight: 500;
}

@font-face {
    font-family: "Lato";
    src:
            local("Lato"),
            url("./fonts/Lato-Semibold.woff2") format("woff");
    font-display: swap;
    font-weight: 600;
}

@font-face {
    font-family: "Lato";
    src:
            local("Lato"),
            url("./fonts/Lato-Bold.woff2") format("woff");
    font-display: swap;
    font-weight: 700;
}

@font-face {
    font-family: "Lato";
    src:
            local("Lato"),
            url("./fonts/Lato-Black.woff2") format("woff");
    font-display: swap;
    font-weight: 900;
}

@font-face {
    font-family: "NunitoSans";
    src:
            local("NunitoSans"),
            url("./fonts/NunitoSans-Bold.woff2") format("woff");
    font-display: swap;
    font-weight: 700;
}

:root {
    --color-primary: #002a7a;
    --color-blue-dark: #0048b5;
    --color-blue: #0058dc;
    --color-blue-2: #0b6dff;
    --color-blue-3: #408cff;
    --color-blue-4: #6ea8ff;
    --color-blue-5: #9cc3ff;
    --color-blue-6: #2196f3;
    --color-red: #e90004;
    --color-grey: #dfe3e8;
    --color-grey-2: #4a5a77;
    --color-grey-3: #93b1cc;
    --color-grey-4: #bdc0cc;
    --color-grey-dark: #6c879f;
    --color-background: #f7fbfc;
    --color-white: #f5f7fa;
    --color-white-2: #e7eff3;
    --base-font-sise: 14px;
    --base-factor: 13;

}

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

html,
body,
h1,
h2,
h3,
p {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lato", sans-serif;
    font-size: 1rem;
    line-height: 150%;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body main {
    flex-grow: 999;
    flex-shrink: 0;
}

a {
    text-decoration: none;
}

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

ol {
    margin: 0;
    padding-left: 1.5rem;
}

.container {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.block-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-blue-3);
}

.block-title {
    font-size: 1.625rem;
    line-height: 120%;
    font-weight: 700;
    color: var(--color-primary);
}

.block-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 120%;
    color: var(--color-primary);
    font-weight: 700;
    transition: all 0.8s ease;
}

.block-link:hover {
    color: var(--color-blue);
}

.block-link svg {
    width: 1rem;
    height: 1rem;
}

.block-margin {
    margin-bottom: 2.5rem;
}

.page-title {
    margin-bottom: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-blue-3);
}

.template-title {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-detail {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 150%;
    color: var(--color-grey-2);
}

.content-detail a {
    color: var(--color-blue);
    font-size: 0.875rem;
    line-height: 150%;
}

.content-detail picture{
    width: 100%;
    text-align: center;
}

.content-detail-image {
    /*width: 100%;*/
    width: auto;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    object-fit: cover;
    overflow: hidden;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

.content-text {
    font-size: 0.875rem;
    line-height: 150%;
    color: var(--color-grey-2);
}

.content-subtitle {
    font-size: 1.375rem;
    line-height: 120%;
    color: var(--color-primary);
    font-weight: 700;
}

.page-date {
    display: inline-block;
    font-size: 0.75rem;
    line-height: 150%;
    color: var(--color-grey-dark);
}

.file-download {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    color: var(--color-grey-2);
}

.file-download-link {
    grid-row: 1/3;
}

.file-download-link svg {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    color: var(--color-blue);
}

.file-download-title {
    font-size: 1.25rem;
    line-height: 130%;
    font-weight: 500;
    color: var(--color-grey-2) !important;
    transition: all 0.4s ease;
}

.file-download-title:hover {
    color: var(--color-blue) !important;
}

.file-download-description {
    font-size: 0.875rem;
    line-height: 150%;
}

.slider-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.slider-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: none;
    background-color: #ffffff;
    color: var(--color-primary);
    transition: all 0.8s ease;
    cursor: pointer;
}

.slider-button:hover {
    color: var(--color-blue);
}

.slider-button.button-shadow {
    box-shadow: -2px 5px 15px 0 #09095c0a;
}

.slider-button svg {
    width: 1rem;
    height: 1rem;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
}

.hidden-scroll {
    overflow: hidden;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    border: none;
    background-color: #ffffff;
    color: var(--color-primary);
    transition: all 0.8s ease;
    cursor: pointer;
    box-shadow: -2px 5px 15px 0 #09095c0a;
}

.pagination-button:hover {
    color: var(--color-blue);
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
    line-height: 140%;
    color: var(--color-primary);
    font-weight: 700;
    border-radius: 0.25rem;
    border: 1px solid var(--color-grey);
    cursor: pointer;
}

.pagination-item:not(.first) {
    display: none;
}

.pagination-item.active {
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.tags-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: auto;
}

.tags-item {
    font-weight: 500;
    padding: 0.5rem 0.625rem;
    transition: all 0.8s ease;
    border-radius: 0.5rem;
    color: var(--color-blue);
    border: 1px solid var(--color-blue);
    cursor: pointer;
    white-space: nowrap;
}

.tags-item.dark {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.tags-item.light {
    color: var(--color-blue-3);
    border: 1px solid var(--color-blue-3);
}

.tags-item.light2 {
    color: var(--color-blue-4);
    border: 1px solid var(--color-blue-4);
}

.tags-item.red {
    color: var(--color-red);
    border: 1px solid var(--color-red);
}

.tags-item:hover,
.tags-item.active {
    color: #ffffff;
    background-color: var(--color-blue);
}

.tags-item.dark:hover,
.tags-item.dark.active {
    background-color: var(--color-primary);
}

.tags-item.light:hover,
.tags-item.light.active {
    background-color: var(--color-blue-3);
}

.tags-item.light2:hover,
.tags-item.light2.active {
    background-color: var(--color-blue-4);
}

.tags-item.red:hover,
.tags-item.red.active {
    background-color: var(--color-red);
}

.tags-item.badge {
    position: absolute;
    top: 1rem;
    right: 0;
    padding: 0.25rem 0.625rem;
    font-size: 0.875rem;
    line-height: 140%;
    border-radius: 0.375rem 0 0 0.375rem;
}

.hidden-scrollbar::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none;
}

.hidden-scrollbar {
    scrollbar-width: none;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.link-list {
    display: grid;
    gap: 1.5rem;
}

.link-card {
    position: relative;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    padding: 2rem 1rem;
    border-radius: 1rem;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(93.85deg, #0058DC 0%, #1DA0FF 100%);
}

.link-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./images/pattern-link.png");
    background-position: right;
    background-size: cover;
    opacity: 0.2;
    transition: all 0.4s ease;
}

.link-card:hover.link-card::before {
    opacity: 0.4;
}

.link-card-title {
    font-size: 1.375rem;
    line-height: 120%;
    font-weight: 700;
    position: relative;
}

.link-card svg {
    flex-shrink: 0;
    position: relative;
}

.not-found {
    font-size: 1.375rem;
    line-height: 120%;
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
}

textarea {
    height: auto;
    min-height: 4.3125rem;
    max-height: 11.25rem;
    word-break: break-all;
    resize: none;
}

textarea, input[type="text"] {
    font-family: "Lato", sans-serif;
    font-weight: 400;
}

.search-error {
    padding: 0.5rem 0.75rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: white;
    box-shadow: -2px 5px 15.11px 0 #09095C0A;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3125rem;
    z-index: 20;
    color: var(--color-red);
}

@media screen and (min-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .block-container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .block-header {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .block-title {
        font-size: 2rem;
    }

    .block-link {
        font-size: 1.375rem;
    }

    .block-link svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .header-detail {
        padding-bottom: 2rem;
    }

    .content-detail {
        gap: 2rem;
        padding-bottom: 2rem;
        font-size: 1.125rem;
    }

    .content-detail a {
        font-size: 1.125rem;
    }

    .content {
        gap: 2rem;
        padding-bottom: 2.5rem;
    }

    .content-text {
        font-size: 1.125rem;
    }

    .content-subtitle {
        font-size: 2rem;
    }

    .page-title {
        margin-bottom: 3rem;
        padding: 1.5rem;
    }

    .template-title {
        margin-bottom: 2rem;
    }

    .page-date {
        font-size: 1.125rem;
    }

    .content-detail-image {
        border-radius: 1.5rem;
    }

    .file-download-link svg {
        width: 3rem;
        height: 3rem;
    }

    .file-download-title {
        font-size: 1.5rem;
    }

    .file-download-description {
        font-size: 1.125rem;
    }

    .slider-buttons {
        gap: 2.5rem;
    }

    .slider-button {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.625rem;
    }

    .slider-button svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .pagination {
        gap: 0.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .pagination-item:not(.first) {
        display: flex;
    }

    .link-list.two-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-card {
        padding-right: 2.5rem;
        padding-left: 2.5rem;
        min-height: 10rem;
    }

    .link-card-title {
        font-size: 1.625rem;
    }

    .not-found {
        font-size: 1.625rem;
    }

    textarea {
        min-height: 5.1875rem;
        max-height: 13.4375rem;
    }
}

@media screen and (min-width: 1280px) {
    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .block-container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .block-header {
        margin-bottom: 4rem;
    }

    .block-title {
        font-size: 3rem;
    }

    .header-detail {
        padding-bottom: 2.5rem;
    }

    .content-detail {
        gap: 2.5rem;
        padding-bottom: 2.5rem;
        font-size: 1.375rem;
    }

    .content-detail a {
        font-size: 1.375rem;
    }

    .content {
        gap: 2.5rem;
    }

    .content-text {
        font-size: 1.375rem;
    }

    .page-title {
        margin-bottom: 4rem;
    }

    .template-title {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .file-download-link svg {
        width: 4rem;
        height: 4rem;
    }

    .file-download-title {
        font-size: 2rem;
    }

    .file-download-description {
        font-size: 1.375rem;
    }

    .pagination {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .tags-item {
        font-weight: 600;
        font-size: 1.125rem;
    }

    .link-list {
        gap: 2rem;
    }

    .link-list.three-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .link-card {
        min-height: 10rem;
    }

    .tags-item.badge {
        font-size: 1.125rem;
    }

    .not-found {
        font-size: 2rem;
    }

    .search-error {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media screen and (min-width: 1440px) {
    .container {
        max-width: calc(110rem * (var(--base-factor) / 16));
    }

    .content-container {
        max-width: calc(85rem * (var(--base-factor) / 16))
    }
}

@media screen and (min-width: 1920px) {
    .container {
        max-width: 110rem;
    }

    .content-container {
        max-width: 85rem;
    }
}

blockquote.bxhtmled-quote {
    display: block;
    margin: 0 !important;
    padding-left: 1rem;
    text-align: left !important;
    border-left: 3px solid var(--color-blue-5) !important;
    font-style: italic;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: inherit !important;
    background-color: inherit !important;
}

.mini-scrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    /* FOR FIREFOX, BUT HAVE BUG */
    /*
    scrollbar-width: thin;
    scrollbar-color: #007bff #dfe3e8;
    */
}

.mini-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.mini-scrollbar::-webkit-scrollbar-track {
    background: inherit;
    border-radius: 10px;
}

.mini-scrollbar::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
    border: 2px solid #f7fbfc;
}


/* вставка меню в сайдбар в старницы*/

 
	.content_with_sidebar{
   display:flex;
   flex-direction:row; 
	}
  /* Стили для мобильной версии */
    @media (orientation: portrait),
    (max-width: 1020px) {

	.content_with_sidebar{
    flex-wrap:wrap;
	}
		.content_with_sidebar .b_menu{
			width:100%;
		}
}
 