* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Roboto', sans-serif;
    background: #111111;
    color: #444444;
    font-size: 16px;
}
.container {
    margin: 0 auto;
    width: 1380px;
}
.reg_form {
    margin: 0 auto;
    width: 550px;
}
.top_line > .container {
    display: flex;
    justify-content: space-between;
}

.top_line {
    background: #111111;
    color: #aaaaaa;
    height: 40px;
    line-height: 40px;
    font-size: 13px;
}
.top_line a {
    color: #aaaaaa;
    text-decoration: none;
}
.top_line a.active {
    color: #35A0DA;
}
.top_line a:hover {
    color: #ffffff;
}
.top_line .l a {
    margin-right: 20px;
}
.top_line .r a {
    margin-left: 20px;
}

.logo {
    height: 120px;
    text-align: center;
    background-color: #0277bd;
    background-image: url('../img/logo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
}

.nav {
    background: #0288d1;
    color: #ffffff;
    height: 50px;
    font-family: 'Open sans', sans-serif;
    font-weight: bold;
}
.nav ul {
    list-style: none;
    display: flex;
}
.nav a {
    text-decoration: none;
    color: #ffffff;
    display: block;
    line-height: 50px;
    padding: 0 20px;
}
.nav ul li a.active {
    background-color: rgba(255,255,255,0.2);
}
.nav ul li a:hover {
    background-color: #ffffff;
    color: #424242;
}

.footer {
    background: #222222;
    color: #dddddd;
}
.copyright {
    background: #111111;
    color: #dddddd;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
}

.copyright a {
    color: #dddddd;
    text-decoration: none;
}
.copyright a:hover {
    text-decoration: underline;
    color: #eeeeee;
}
.social_link_footer {
    display: block;
    height: 50px;
    overflow-y: hidden;
}
.social_link_footer a {
    margin: 13px 5px 0 5px;
    padding: 0;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
}
.social_link_footer a.youtube_d {
    background-image: url('../img/youtube_d.png');
}
.social_link_footer a.vk_d {
    background-image: url('../img/vk_d.png');
}
.social_link_footer a.vkvideo_d {
    background-image: url('../img/vkvideo_d.png');
}
.social_link_footer a.rutube_d {
    background-image: url('../img/rutube_d.png');
}
.social_link_footer a.discord_d {
    background-image: url('../img/discord_d.png');
}
.social_link_footer a.youtube_d:hover,
.social_link_footer a.discord_d:hover,
.social_link_footer a.rutube_d:hover,
.social_link_footer a.vkvideo_d:hover,
.social_link_footer a.vk_d:hover {
    background-position: bottom;
}

.footer .tab {
    width: 25%;
    padding: 20px;
}
.footer .tab .tab_title {
    font-weight: bold;
    font-size: 18px;
    font-family: 'Open sans', sans-serif;
    margin-bottom: 20px;
}
.tab_content_row {
    margin: 20px 0;
    text-decoration: none;
    color: #aaaaaa;
}
.tab_content_row_img {
    width: 25%;
}
.tab_content_row_a {
    width: 75%;
    padding-left: 20px;
}
.tab_content_row_img img {
    display: block;
    width: 100%;
    border: 1px solid #111111;
}
.tab_content_row_a a  {
    color: #aaaaaa;
    text-decoration: none;
}
.tab_content_row_a a:hover {
    text-decoration: underline;
    color: #ffffff;
}
.tab_content_row:hover {
    color: #ffffff;
}

.links_cloud a {
    display: inline-block;
    color: #ffffff;
    background: rgba(221,221,221,0.1);
    padding: 6px 8px 7px;
    border: none;
    margin-bottom: 4px;
    border-radius: 3px;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 14px;
}
.links_cloud a:hover {
    background-color: rgb(2, 136, 209);
    color: #ffffff;
}
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.bg_content {
    background: #eeeeee;
}
.content_line {
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(68,68,68,0.1);
    padding: 40px;
}
.content_flex {
    display: flex;
}
.content_left {
    width: 100%;
    padding-right: 20px;
}
.content_right {
    width: 300px;
    flex-shrink: 0;
    padding-left: 20px;
}
.widget {
    margin-bottom: 20px;
}
.widget-title {
    border-bottom: 3px solid #222222;
    box-sizing: border-box;
}
.widget-title span {
    display: inline-block;
    background: #222222;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: #eeeeee;
    padding: 4px 16px;
    font-weight: bold;
    font-family: 'Open sans', sans-serif;;
}
.widget-content img {
    max-width: 100%;
    display: block;
    margin: 20px auto;
}
.widget-content  .yt_recommend {
    display: flex;
    flex-wrap: wrap;
}
.widget-content .yt_recommend .yt_recommend_block {
    width: 50%;
    flex-basis: 50%;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    text-align: center;
}
.widget-content .yt_recommend a {
    color: #111111;
    text-decoration: none;
}
.widget-content .yt_recommend a:hover {
    color: #0288d1;
    text-decoration: none;
}
.widget-content .yt_recommend a img {
    width: 100px;
    border-radius: 50%;
    margin-bottom: 0;
}
.widget-content .yt_recommend a span {
    display: block;
    padding-top: 10px;
}

.sidebar_nav {
    margin-top: 20px;
}
.sidebar_nav_item {
    padding: 5px 0;
}
.sidebar_nav_item .active {
    font-weight: bold;
}
.sidebar_nav_item_count {
    display: inline-block;
    background: #ccc;
    height: 24px;
    min-width: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 2px;
    color: #fff;
    font-size: 13px;
}
.sidebar_nav_item a {
    text-decoration: none;
    padding-left: 20px;
    color: #111;
}
.sidebar_nav_item a:hover {
    padding-left: 30px;
}
.sidebar_nav_item_count_cat1 {
    background: #009688;
}
.sidebar_nav_item_count_cat2 {
    background: #8bc34a;
}
.sidebar_nav_item_count_cat3 {
    background: #78909c;
}
.sidebar_nav_item_count_cat4 {
    background: #ffa726;
}
.sidebar_nav_item_count_cat5 {
    background: #8d6e63;
}
.sidebar_nav_item_count_cat6 {
    background: #0288d1;
}
.sidebar_nav_item_count_cat7 {
    background: #ba68c8;
}
.sidebar_nav_item_count_cat8 {
    background: #f44336;
}
.sidebar_nav_item_count_cat9 {
    background: #2f2f2f;
}

.article_cat_1 {
    color: #009688;
}
.article_cat_2 {
    color: #8bc34a;
}
.article_cat_3 {
    color: #78909c;
}
.article_cat_4 {
    color: #ffa726;
}
.article_cat_5 {
    color: #8d6e63;
}
.article_cat_6 {
    color: #0288d1;
}
.article_cat_7 {
    color: #ba68c8;
}
.article_cat_8 {
    color: #f44336;
}
.article_cat_9 {
    color: #2f2f2f;
}

.home_previews {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -20px;
}
.home_preview {
    display: block;
    margin: 20px 0;
    width: 50%;
    padding: 0 20px;
    text-decoration: none;
    color: #111111;
    font-size: 24px;
}
.home_preview:hover {
    color: #0288d1;
}
.home_preview img {
    width: 100%;
    border: 1px solid silver;
}

.home_wiki {
    display: block;
    margin: 20px 0;
    width: 33%;
    padding: 0 20px;
}
.home_wiki_title {
    display: block;
    text-decoration: none;
    color: #111111;
    font-size: 16px;
}
.home_wiki_title:hover {
    color: #0288d1;
}
.home_wiki_meta {
    display: block;
    padding-top: 8px;
    color: #999999;
    font-size: 12px;
}
a.wiki_cat_1:hover, a.wiki_cat_2:hover, a.wiki_cat_3:hover, a.wiki_cat_4:hover, a.wiki_cat_5:hover {
    text-decoration: underline;
}
a.wiki_cat_1 {
    color: #8bc34a;
    text-decoration: none;
    padding-bottom: 8px;
    display: block;
}
a.wiki_cat_2 {
    color: #ffa726;
    text-decoration: none;
    padding-bottom: 8px;
    display: block;
}
a.wiki_cat_3 {
    color: #f44336;
    text-decoration: none;
    padding-bottom: 8px;
    display: block;
}

/* Базовый стиль для input */
.form-control {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Фокус */
.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Базовый стиль для label */
.form-label {
    display: inline-block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #212529;
    line-height: 1.5;
}

.form-check {
    display: flex;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 6px;
    cursor: pointer;
}

.form-check-input {
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
}

.form-check-input:hover {
    border-color: #6c757d;
}

.form-check-input:checked {
    background-color: #0288d1;
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-radius: 0;
}

.form-check-label {
    margin-left: 6px;
    line-height: 1.5;
}
.form-button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #0288d1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.text_block {
    text-align: justify;
}
.text_block a {
    text-decoration: none;
    color: #0288d1;
}
.text_block a:hover {
    text-decoration: underline;
}
.text_block p {
    margin: 10px 0;
    line-height: 1.8;
}
.text_block p:first-child {
    margin-top: 0;
}
.text_block p:last-child {
    margin-bottom: 0;
}
.text_block .text_previe img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}
.text_block p.img_title {
    text-align: center;
    color: #aaaaaa;
    font-size: 14px;
}
.text_block h1, .text_block h2, .text_block h3, .text_block h4, .text_block h5, .text_block h6 {
    font-family: 'Open sans', sans-serif;
    text-align: left;
}
.text_block h1 {
    font-size: 32px;
}
.text_block h2 {
    font-size: 28px;
}
.text_block h3 {
    font-size: 24px;
}
.text_block h4 {
    font-size: 20px;
}
.text_block h5 {
    font-size: 18px;
}
.text_block h6 {
    font-size: 16px;
}

.post {
    font-family: 'Open Sans', sans-serif;
}

.post_title h3 {
    font-weight: bold;
    font-size: 30px;
    margin: 0;
}
.post_meta {
    color: silver;
    padding: 15px 0;
    font-size: 14px;
}
.post_meta span {
    margin-left: 15px;
}
.post_text {
    font-family: 'Open Sans', sans-serif;
    text-align: justify;
    font-size: 18px;
}
.post_text img {
    max-width: 100%;
    border: 1px solid silver;
}

.post_text li {
    margin: 20px;
    padding-left: 10px;
}

.blog_category_post {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}
.home_wiki_meta {
    display: block;
    padding-top: 8px;
    color: #999999;
    font-size: 12px;
}

.blog_category_post_img {
    width: 35%;
}
.blog_category_post img {
    width: 100%;
    border: 1px solid silver;
}
.blog_category_post_text {
    width: 65%;
    padding-left: 20px;
}
.blog_category_post_title {
    font-size: 24px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #111111;
}
.blog_category_post_title:hover {
    color: #0288d1;
}
.blog_category_post_meta {
    margin-top: 7px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
    display: flex;
}
.blog_category_post_meta a {
    text-decoration: none;
}
.blog_category_post_meta i {
    font-size: 12px;
}
.blog_category_post_meta ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-left: 20px;
    grid-gap: 0 20px;
}

.text_meta {
    margin-top: 7px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
    display: flex;
}
.text_meta a {
    text-decoration: none;
}
.text_meta i {
    font-size: 12px;
}
.text_meta ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-left: 20px;
    grid-gap: 0 20px;
}

a.tag {
    display: inline-block;
    color: #111111;
    background: #e5e5e5;
    padding: 6px 8px 7px;
    border: none;
    margin-bottom: 4px;
    border-radius: 3px;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 14px;
}
a.tag:hover {
    background-color: rgb(2, 136, 209);
    color: #ffffff;
    text-decoration: none;
}

.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}
.pagination li {
    padding: 0;
    margin: 0;
}
.pagination li a, .pagination li span {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid silver;
    text-decoration: none;
    margin: 0 5px;
    color: #111111;
}
.pagination li span {
    background: #eeeeee;
}
.pagination li.active span {
    background: #0288d1;
    color: #ffffff;
}

.home_wiki {
    display: block;
    margin: 20px 0;
    width: 33%;
    padding: 0 20px;
}
.home_wiki_title {
    display: block;
    text-decoration: none;
    color: #111111;
    font-size: 16px;
}
.home_wiki_title:hover {
    color: #0288d1;
}
a.wiki_cat_1:hover, a.wiki_cat_2:hover, a.wiki_cat_3:hover, a.wiki_cat_4:hover, a.wiki_cat_5:hover {
    text-decoration: underline;
}
a.wiki_cat_1 {
    color: #8bc34a;
    text-decoration: none;
    padding-bottom: 8px;
    display: block;
}
a.wiki_cat_2 {
    color: #ffa726;
    text-decoration: none;
    padding-bottom: 8px;
    display: block;
}
a.wiki_cat_3 {
    color: #f44336;
    text-decoration: none;
    padding-bottom: 8px;
    display: block;
}
.wiki_home {
    display: block;
    margin: 20px 0;
    width: 50%;
    padding: 0 20px;
}
.wiki_home_title {
    display: block;
    text-decoration: none;
    color: #111111;
    font-size: 18px;
}
.wiki_home_title:hover {
    color: #0288d1;
}
.tabs-wrapper {
    margin: 10px 0;
}

.tabs-content {
    margin-top: 10px;
}

.wiki-tab-titles {
    display: inline-block;
}

.wiki-tab-titles .tab {
    display: inline-block;
    background: #eee;
    padding: 3px 5px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
}

.wiki-tab-titles .tab.active {
    background-color: #0288d1;
    color: #fff;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px 20px;
}

.resume_table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}
.resume_table td {
    padding: 10px 20px;
    margin: 0;
    border-bottom: 1px solid silver;
}
.resume_table td:first-child {
    font-weight: bold;
}

.models_section {
    height: 178px;
    color: #fff;
    text-align: center;
    line-height: 178px;
    font-size: 50px;
}
.models_section h3 {
    background: rgba(0, 0, 0, 0.3);
    text-shadow: 3px 3px 5px black;
}
.models_section_1 {
    background: url('../img/models_1.png');
}
.models_section_2 {
    background: url('../img/models_2.png');
}
.models_section_3 {
    background: url('../img/models_3.png');
}
.models_section_4 {
    background: url('../img/models_4.png');
}
.models_section_5 {
    background: url('../img/models_5.png');
}

.models_table {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    border-collapse: collapse;
}
.models_table td {
    padding: 10px 20px;
    margin: 0;
    border-bottom: 1px solid silver;
}
.models_table td:last-child {
    width: 160px;
    font-size: 14px;
}
.models_table a {
    text-decoration: none;
    color: #444444;
}
.models_table a:hover {
    text-decoration: underline;
}

.alert {
    width: 100%;
    flex: none;
    margin-bottom: 40px;
    padding: 20px;
    text-align: center;
}

.alert-success {
background-color: #d4edda;
color: #155724;
}

.contact-textarea {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 20px;
}
.contact_soc_links {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.contact_soc_links a {
    margin: 20px;
}
.contact_soc_links img {
    width: 96px;
    height: 96px;
}
.contact_soc_links a:hover img {
    border: 5px solid #fff;
    border-radius: 50%;  
}
.contact_text {
    text-align: center;
    margin-top: 12px;
}
.contact_support_link {
    text-align: center;
    margin: 20px auto;
}
.contact_support_link a {
    background: #0288d1;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 7px 20px;
    text-decoration: none;
}
.contact_support_link a:hover {
    background: #0277bd;
}
.reg_form_label {
    color: silver;
    text-align: center;
    font-size: 13px;    
}
.reg_form img {
    display: block;
    margin: 0 auto;
}


/* Сброс */
.article,
.article * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  text-decoration: inherit;
  background: transparent;
  border: none;
}

/* Основной стиль статьи */
.typography {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.125rem); /* 16–18px, адаптивно */
  line-height: 1.6;
  color: #111;
  margin: 20px 0;
}

/* Заголовки */
.typography h1,
.typography h2,
.typography h3,
.typography h4,
.typography h5,
.typography h6 {
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.2;
}

.typography h1 { font-size: 2.25rem; }   /* 36px */
.typography h2 { font-size: 1.875rem; } /* 30px */
.typography h3 { font-size: 1.5rem; }   /* 24px */
.typography h4 { font-size: 1.25rem; }  /* 20px */
.typography h5 { font-size: 1.125rem; } /* 18px */
.typography h6 { font-size: 1rem; }     /* 16px */

/* Параграфы и блоки текста */
.typography p,
.typography ol,
.typography dl,
.typography pre,
.typography blockquote {
  margin-bottom: 1.25em;
}

.typography ul {
  margin-bottom: 1.25em;
}

.typography ul ul,
.typography ul ol,
.typography ol ul,
.typography ol ol {
  margin: 0;
}

/* Списки */
.typography ul,
.typography ol {
  padding-left: 1.5em;
}

.typography li {
  margin-top: 0.375em;
  margin-bottom: 0.375em;
}

/* Таблицы */
.typography table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25em;
  font-size: 0.9em;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* Возвращаем перенос слов внутри ячеек, если нужно */
.typography table td {
  white-space: normal;
}

.typography th,
.typography td {
  border: 1px solid #d0d7de;
  padding: 0.75em;
  text-align: left;
}

.typography th {
  background-color: #f3f4f6;
  font-weight: 600;
}

.typography tr:nth-child(even) {
  background-color: #fafbfc;
}

/* Цитаты */
.typography blockquote {
  padding-left: 1.25em;
  border-left: 3px solid #ccc;
  color: #555;
  font-style: italic;
}

/* Код */
.typography code {
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.9em;
  background-color: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.typography pre {
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 1em;
  background-color: #f6f8fa;
  border-radius: 6px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.typography pre code {
  background: none;
  padding: 0;
  border: none;
}

/* Ссылки */
.typography a {
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.typography a:hover {
  color: #004c99;
}

/* Горизонтальный разделитель */
.typography hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 2em auto;
}

/* Полужирный текст */
.typography strong,
.typography b {
  font-weight: 700;
}

.typography .image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 1.25em;
}

.typography .image-item {
  width: 250px;
  flex: 0 0 auto;
  text-align: center;
}

.typography .image-item a {
  display: block;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.typography .image-item img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.typography .image-caption {
  display: block;
  margin-top: 0.375em;
  font-size: 0.75em;
  color: #888;
}

.typography div.quote {
    padding: 10px;
    border: 1px solid #0277bd;
    background: #E4F2FB;
    border-radius: 2px;
}
.typography div.quote span {
    font-weight: bold;
    text-align: right;
    display: block;
    font-style: italic;
    font-size: 14px;
}
.typography div.warning {
    padding: 10px;
    border: 1px solid #f44336;
    background: #fad9d7;
    border-radius: 2px;
}
.typography div.warning span {
    font-weight: bold;
    text-align: right;
    display: block;
    font-style: italic;
    font-size: 14px;
}

.video-switcher {
  width: 980px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.video-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.video-btn {
  flex: 1;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.video-btn:hover {
  background: #e9ecef;
}
.video-btn.active {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}