@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@100..900&family=Jost:ital,wght@0,100..900;1,100..900&display=swap");

/* Основные стили блога */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post h2 a {
    color: #1d1e20;
    text-decoration: none;
    transition: color 0.3s;
    font-family: "Bebas Neue", sans-serif;
    font-size: 30px;
}

.post h2 a:hover {
    color: #0234c7;
}

.post img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.post .content {
    margin: 20px 0;
    line-height: 1.6;
    font-family: "Inter", sans-serif;
}

.post .meta {
    color: #aab1b7;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: "Inter", sans-serif;
}

/* Реакции */
.reactions {
    margin-top: 20px;
}

.reaction-form {
    display: flex;
    gap: 15px;
}

.reaction-form button {
    background: none;
    border: 1px solid #aab1b7;
    padding: 8px 15px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: "Inter", sans-serif;
}

.reaction-form button:hover {
    background-color: #0234c7;
    color: #ffffff;
    border-color: #0234c7;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a {
    padding: 10px 15px;
    border: 1px solid #aab1b7;
    border-radius: 7px;
    text-decoration: none;
    color: #42494f;
    transition: all 0.3s;
    font-family: "Inter", sans-serif;
}

.pagination a.active, .pagination a:hover {
    background-color: #2452cc;
    color: #ffffff;
    border-color: #2452cc;
}

/* Формы */
form {
    margin: 20px 0;
}

form div {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
}

form input[type="text"],
form input[type="password"],
form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #aab1b7;
    border-radius: 7px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
}

form textarea {
    min-height: 200px;
    resize: vertical;
}

/* Сообщения */
.success {
    color: #155724;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 7px;
    background-color: #d4edda;
}

.error {
    color: #721c24;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 7px;
    background-color: #f8d7da;
}

/* Админ-панель */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: "Bebas Neue", sans-serif;
}

/* Адаптивность */
@media (max-width: 768px) {
    .post {
        padding: 20px;
    }
    
    .blog-container {
        padding: 0 15px;
    }
}
/* Исправление для карточек статей */
.catalog__item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog__image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Соотношение 16:9 */
    overflow: hidden;
}

.catalog__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.catalog__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
/* Добавить в существующие стили */
.catalog__type {
    font-size: 12px;
    line-height: 1.2;
    margin: 2px 0;
}

.catalog__top > div {
    margin-bottom: 8px; /* Уменьшаем отступ */
}
/* Исправление для подвала */
.footer__logo {
    max-width: 158px;
    margin-bottom: 20px;
}

.footer__logo img {
    width: 100%;
    height: auto;
}

/* Адаптивность для карточек */
@media (min-width: 1361px) {
    .catalog__body {
        gap: 20px;
    }
    
    .catalog__item {
        flex: 0 1 calc(33.333% - 14px);
    }
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a {
    padding: 10px 15px;
    border: 1px solid #aab1b7;
    border-radius: 7px;
    text-decoration: none;
    color: #42494f;
    transition: all 0.3s;
    font-family: "Inter", sans-serif;
}

.pagination a.active, .pagination a:hover {
    background-color: #2452cc;
    color: #ffffff;
    border-color: #2452cc;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
    border-radius: 8px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    table-layout: fixed;
    word-wrap: break-word;
}

.post-content th,
.post-content td {
    border: 1px solid #e3e6ea;
    padding: 10px 12px;
    vertical-align: top;
}

.post-content th {
    font-weight: 600;
    background: #f7f9fc;
}

.post-content p {
    line-height: 1.65;
    margin: 14px 0;
}

.post .content.imported p {
    margin-bottom: 1em;
    line-height: 1.6;
    font-family: "Inter", sans-serif;
}

.post .content.imported h1,
.post .content.imported h2,
.post .content.imported h3 {
    font-family: "Bebas Neue", sans-serif;
    color: #0234c7;
    margin: 20px 0 10px;
}

.post .content.imported table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.post .content.imported table, 
.post .content.imported td, 
.post .content.imported th {
    border: 1px solid #aab1b7;
    padding: 8px;
}

.post .content.imported img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 7px;
}

/* Контент, импортированный из Word */
.post-content.imported {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #1d1e20;
}

.post-content.imported h1,
.post-content.imported h2,
.post-content.imported h3 {
    font-family: "Bebas Neue", sans-serif;
    color: #0234c7;
    margin: 20px 0 10px;
}

.post-content.imported p {
    margin: 12px 0;
}

.post-content.imported ul,
.post-content.imported ol {
    padding-left: 20px;
    margin: 15px 0;
}

.post-content.imported li {
    margin-bottom: 6px;
}

.post-content.imported img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.post-content.imported table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content.imported th,
.post-content.imported td {
    border: 1px solid #ccc;
    padding: 10px;
}

.post-content.imported th {
    background: #f0f4fa;
    font-weight: 600;
}

/* Скрыть блок с контактами по умолчанию */
.contacts-popup {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  padding: 10px;
  border-radius: 8px;
  z-index: 1000;
}

/* Когда активен */
.contacts-popup.active {
  display: block;
}

/* На десктопе всегда скрываем (только бургер-логика) */
@media (min-width: 992px) {
  .contacts-popup {
    display: none !important;
  }
}

/* === Contacts popup (кнопка "трубка") — вертикальное меню === */
.contacts-popup a {
  display: block;               /* по одному пункту в колонку */
  padding: 10px 16px;
  text-decoration: none;
  color: #000;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}
.contacts-popup a:last-child { border-bottom: none; }
.contacts-popup a:hover { background: #f5f5f5; color: #2452cc; }
/* === /Contacts popup === */

/* Слоган всегда над мобильным меню */
.top-header__text { position: relative; z-index: 20; }

/* Закрытое меню не перехватывает клики и не «прикрывает» слои */
.mob-menu__body { pointer-events: none; }         /* закрыто: не ловит клики */
.mob-menu__body.active { pointer-events: auto; }  /* открыто: клики включены */

/* Заголовок статьи на странице поста */
.post h1 {
  font-weight: 600;   /* можно 700, если 800 слишком жирно */
  line-height: 1.15;
  margin-bottom: 18px;
}

//lобавь поверх блока статьи полупрозрачный слой (не мешает кликам)
.article-wrap { position: relative; }
.article-wrap::after {
  content: "© GlobalTechTrade";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: .08; font-size: 6rem; font-weight: 700;
  pointer-events: none;
  transform: rotate(-20deg);
}


