/* Общие стили */
body {
    padding: 0px;
    margin: 0px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    width: calc(100vw - var(--scrollbar-width));
    background: #ffffff;
    font-size: 18px;
}

/* Стили для скроллбара */
html {
    scroll-padding-top: 0 !important;
    --wp-admin--admin-bar--height: 0 !important;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Стили контейнеров */
.container {
    max-width: 1715px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3 {
    margin-block-start: 10px!important;
    margin-block-end: 10px!important;
}

/* Стили сайта */

/* Стили шапки сайта */
.top_polosa {
    width: 100%;
    background: #040202;
    height: 40px;
    position: relative;
    z-index: 100;
    overflow: visible;
}

.block_header {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-left { display:flex; align-items:center; }
.logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo { width: 28px; height: 28px; border-radius: 6px; display: block; }
.site-title { color: #fff; font-size: 20px; font-weight: 600; line-height: 1; }

.header-right {
    display:flex; align-items:center; gap: 12px;
}

.header-categories { height: 40px; display:flex; align-items:center; }
.header-menu-list { display:flex; gap: 0px; margin:0; padding:0; list-style:none; }
.header-menu-list > li > a {
    display:inline-flex; align-items:center; height:40px; padding:0 12px;
    color:#fff; text-decoration:none; font-weight:500;
}
.header-menu-list > li > a:hover { opacity:.85; }

.bordered-sides {
    border-left: 2px solid #968B8B;
    border-right: 2px solid #968B8B;
}

.auth-link { display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:#fff; font-weight:500; height:40px; padding:0 12px; }
.auth-link:hover { opacity:.85; }
.auth-icon { width:18px; height:18px; display:block; border-radius: 50px; }

.header-user { display:flex; align-items:center; }

.user-panel {
    position: relative;
    height:30px; display:flex; align-items:center;
    padding:0 12px;
}

.user-trigger {
    display:flex; align-items:center; gap:8px;
    background: transparent; border: 0; color:#fff; cursor: pointer; padding:0;
    height: 40px;
}
.user-avatar { width:24px; height:24px; border-radius:50%; display:block; background:#222; object-fit:cover; }
.user-name { color:#fff; font-weight:600; font-size:14px; white-space:nowrap; }
.user-panel .chevron { opacity:.8; }

.user-dropdown {
    position:absolute; right:0; top:100%;
    min-width:180px; background:#121212; border:1px solid #333; border-radius:10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    padding:8px; display:none; z-index:1000;
    transform: none;
    margin-top: 0;
}
.user-dropdown__item {
    display:block; padding:10px 12px; color:#fff; text-decoration:none; border-radius:8px;
}
.user-dropdown__item:hover { background:#1f1f1f; }

.user-panel:hover .user-dropdown,
.user-panel:focus-within .user-dropdown,
.user-panel.is-open .user-dropdown { display:block; }

.auth-modal { position: fixed; inset: 0; z-index: 1500; pointer-events: none; }
.auth-modal.is-open { pointer-events: auto; }

.auth-overlay {
    position:absolute; inset:0; background: rgba(0,0,0,.0);
    opacity:0; transition: opacity .25s ease;
}
.auth-modal.is-open .auth-overlay { background: rgba(0,0,0,.5); opacity:1; }

.auth-dialog {
    position: absolute; inset: 0; margin: auto;
    width: min(920px, 94vw);
    max-height: 500px;
    background: #fff; color: #0a0a0a; border-radius: 14px;
    transform: translateY(10px) scale(.98); opacity:.0;
    transition: transform .25s ease, opacity .25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    display:flex; flex-direction:column; overflow:hidden;
}
.auth-modal.is-open .auth-dialog { transform: translateY(0) scale(1); opacity:1; }

.auth-close {
    position:absolute; top:10px; right:10px;
    background: transparent; border:0; cursor:pointer; color:#333;
}

.auth-grid {
    display:grid; grid-template-columns: 0.8fr 1fr; gap:0;
    height:100%;
}


.auth-image { height:100%; overflow:hidden; }
.auth-image img {
    width:100%; height:100%;
    object-fit: cover; object-position: center center;
    border-radius:14px 0 0 14px;
    display:block;
}


.auth-forms { padding:22px 22px 26px; overflow-y:auto; }

.auth-title {
    text-align:center; font-size:30px; color:#447dc5; margin:0 0 14px;
}

.auth-tabs { display:flex; justify-content:center; gap:26px; }
.auth-tab {
    background: transparent; border:0; padding:8px 6px; cursor:pointer;
    color:#333; font-weight:600;
}
.auth-tab.is-active { color:#000; }

.auth-tab-borders {
    display:flex; justify-content:center; gap:0; margin-bottom:16px;
}
.auth-border {
    width:120px; height:0; border-bottom:2px solid #cfcfcf;
    margin:0; transition: border-color .2s ease;
}
.auth-border--login { border-right:none; }
.auth-border--register { border-left:none; }
.auth-border.is-active { border-bottom-color:#666; }

.auth-alert {
    background:#fff3cd; color:#664d03; border:1px solid #ffecb5;
    border-radius:10px; padding:10px 12px; margin-bottom:12px; font-size:14px;
}

.auth-form { display:flex; flex-direction:column; gap:12px; }

.auth-form[hidden] { display:none !important; }

.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }


.form-field { display:flex; flex-direction:column; gap:6px; }
.form-label { font-weight:600; font-size:14px; color:#202020; }
.form-field input, .form-field select {
    height:42px; padding:8px 12px; border:1px solid #d7d7d7; border-radius:10px; font-size:14px;
    width:100%; box-sizing:border-box;
}

.password-wrap { position:relative; width:100%; }
.password-wrap input { width:100%; padding-right:36px; }
.password-wrap .toggle-password {
    position:absolute; right:8px; top:50%; transform:translateY(-50%);
    border:0; background:transparent; color:#555; cursor:pointer; padding:6px; line-height:0;
}

.form-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.checkbox { display:inline-flex; align-items:center; gap:8px; user-select:none; color:#333; }
.forgot-link { color:#447dc5; text-decoration:none; }
.forgot-link[aria-disabled="true"] { opacity:.55; cursor:not-allowed; }

.btn { display:inline-flex; align-items:center; justify-content:center; height:42px; padding:0 18px; border-radius:10px; border:0; cursor:pointer; font-weight:700; }
.btn-primary { background:#971616; color:#fff; }
.btn-primary:hover { filter: brightness(1.05); }

.input-error { border-color: #e03131 !important; box-shadow: 0 0 0 3px rgba(224,49,49,.12); }

/* ====== Главный баннер (hero) на главной ====== */
.glavnaya-hero{
  position:relative;
  height:600px;
  width:100%;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.glavnaya-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.20);
}
.glavnaya-hero__inner{
  position:relative;
  z-index:1;
  text-align:center;
  padding:0 16px;
}
.glavnaya-hero__title{
  color:#fff;
  margin:0;
  line-height:1.2;
  font-size:clamp(28px,4vw,48px);
  font-weight:700;
}


/* ===== Стили блока «Статьи под баннером» ===== */
.pod-bannerom-section { padding: 0px 0; }
.pod-bannerom-title { font-size: 28px; margin: 0 0 20px; text-align: center; color: #6B1323;}

.pod-bannerom-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 0px 0px 15px 0px;
}
.pb-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.pb-card__image-wrap { position: relative; width: 100%; }
.pb-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.pb-card__image--placeholder {
  background: #f2f2f2;
  height: 180px;
}

.pb-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 0 14px;
  font-size: 13px;
  color: #666;
  gap: 10px;
}
.pb-card__cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.pb-card__date { opacity: 0.8; white-space: nowrap; }

.pb-card__title {
  padding: 10px 14px 0 14px;
  font-size: 16px;
  line-height: 1.35;
  color: #111;
}

.pb-card__desc {
  padding: 8px 14px 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  min-height: 56px;
}
.pb-card__more {
  display: inline-block;
  padding: 12px 14px 16px 14px;
  font-size: 14px;
  color: #0073aa;
  text-decoration: underline;
}
.pb-empty { color: #888; }




/* Стили для других разрешений */
@media (max-width: 1420px) {
  .pod-bannerom-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1030px) {
    .header-categories { display: none !important; }
    .site-title { font-size: 18px; }
    .top_polosa { height: 43px; }
    .container { padding: 0 10px; }
    .pod-bannerom-grid { grid-template-columns: repeat(2, 1fr); }
    .pod-bannerom-title {font-size: 24px;}
}

@media (max-width: 768px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-image img { border-radius:14px 14px 0 0; max-height: 220px; }
    .pod-bannerom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) { 
    .grid-2 { grid-template-columns:1fr; } 
}