html {font-family: "PT Sans", Helvetica, Arial, sans-serif;}

@media (min-width: 48em) {
  html {font-size: .9rem;}
}

@media (min-width: 58em) {
  html {font-size: 1.1rem;}
}

h2 {margin-top: 2.5rem; margin-bottom:1.5rem;}


/***** CONTENT *****/
.content {
  padding-top:1.58rem;
  padding-bottom: 3rem;
}

@media (min-width: 48em) {
  .content {max-width: 38rem; margin-left: 20rem; margin-right: 2rem;}
}

@media (min-width: 64em) {
  .content {margin-left: 22rem; margin-right: 4rem;}
}

/*@media (min-width: 1200px){ .content { max-width: 56rem; } }*/

.desc {margin-bottom:2.5rem; line-height:1.3;}
@media (max-width: 52em) {
	.desc {margin-bottom:1.5rem;}
}



/**** SIDEBAR *****/

.sidebar {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255,255,255,.5);
  background-color: #33333a;
}
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
  }
}

.sidebar a {color: #fff;}


/***** Sidebar nav ****/
.sidebar-nav {
  padding-left: 0;
  list-style: none;
}

ul.sidebar-nav li {margin-top:.7rem;}

.sidebar-nav-item {display: block;}

a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {font-weight: bold;}


/**** siteSidebar   базовое ****/
#siteSidebar .brand { display:inline-block; line-height:0; }
#siteSidebar .brand-logo { height:auto; max-width:100%; display:block; }
#siteSidebar .sidebar-top{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; }


/* десктоп: бургер скрыт, меню всегда видно */
@media (min-width: 900px){
  #siteSidebar .menu-toggle{ display:none; }
  #siteSidebar #sidebarNav,
  #siteSidebar #sidebarNav[hidden]{ display:block !important; }
}

/* мобилка: логотип слева, бургер справа; меню скрыто до клика */
@media (max-width: 899.98px){
  #siteSidebar .menu-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:42px; height:36px; border:1px solid rgba(255,255,255,.35);
    border-radius:8px; background:transparent; color:#fff; cursor:pointer;
  }
  #siteSidebar #sidebarNav{ display:none !important; }
  #siteSidebar #sidebarNav[hidden]{ display:none !important; }
  html.menu-open #siteSidebar #sidebarNav{ display:block !important; }

  /* описание можно поджать или скрыть на очень узких экранах */
  @media (max-width: 480px){ 
  #siteSidebar .desc{ display:none; } 
  }
}


/***** FOOTER *****/
.site-footer{
  margin-top:2rem; padding:1.25rem 0;
  border-top:1px solid rgba(0,0,0,.12);
  font-size:.95rem;
}
.site-footer .container{ max-width:860px; max-width:38rem; margin:0 auto; padding:0 1rem;}
.site-footer .footer-nav{ display:flex; flex-wrap:wrap; gap:.75rem; }
.site-footer .footer-nav a{ opacity:.9; }
@media (max-width:700px){
  .site-footer .footer-nav{ flex-direction:column; gap:.4rem; }
}

/**** ARTICLES-ANONS *****/
  .article-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .article-preview-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .article-preview-title {margin-top:.8rem;  margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
  }

  .article-preview-content {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
  }

  .article-preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
  }

  @media (max-width: 768px) {
    .article-preview {
      grid-template-columns: 1fr;
    }

    .article-preview-image {
      height: 200px;
    }
  }




/*****RATING*****/
/* Карточка (рамка + фон) */
.firm-card{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 16px 16px 20px;
  margin-bottom:1.5rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 0 rgba(0,0,0,0);  /* сброс */
}

/**** Реальный бейдж ****/
.firm-card .rank-badge{
  position: absolute;
  top: 8px; left: 8px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: #111; color: #fff;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  pointer-events: none;
  z-index: 10;
}
.firm-title {margin-top:.1rem;}

/* Медали (по желанию) */
/*.firm-card[data-rank="1"] .rank-badge{ background: linear-gradient(#f9d423,#ffcc00); color:#333; }
.firm-card[data-rank="2"] .rank-badge{ background: linear-gradient(#e8e8e8,#cfcfcf); color:#333; }
*/
.firm-card[data-rank="1"] .rank-badge{ background: linear-gradient(#d8a36a,#c07a2b); }

.catalog-grid {margin-top:2rem;}

/****LIST*****/
/*
    .postlist{list-style:none;margin:0;padding:0}
    .postlist li{margin:.5rem 0;padding:.25rem 0;border-bottom:1px dotted rgba(0,0,0,.15)}
    .postlist .date{opacity:.7;margin-left:.5rem}
*/





	

