

/* Start:/bitrix/templates/floor/components/bitrix/news/blog/style.css?17707306179730*/
/* =========================
   BLOG (Bitrix) — full width grid fix
   Put this file into:
   /bitrix/templates/floor/components/bitrix/news/blog/style.css
   ========================= */

/* Scope */
.hd-blog{
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#ffffff;
  --shadow:0 10px 30px rgba(17,24,39,.08);
  --radius:16px;

  color: var(--text);
  width: 100% !important;
  max-width: 100% !important;
}

/* Force any theme containers around the component to allow stretching */
.hd-blog,
.hd-blog > .container,
.hd-blog > .container_rp,
.hd-blog .main_content,
.hd-blog .content,
.hd-blog .bx-content,
.hd-blog .bx-content-section{
  width: 100% !important;
  max-width: 100% !important;
}

/* Optional: set inner content width (centered) so it doesn't look too wide on huge screens */
.hd-blog__inner{
  width: 100%;
  max-width: 1240px;      /* change if needed */
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography / header */
.hd-blog__title{
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hd-blog__subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Chips */
.hd-blog__chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.hd-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.hd-chip:hover{
  border-color:#cbd5e1;
  box-shadow: 0 6px 18px rgba(17,24,39,.06);
}
.hd-chip.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

/* Grid — THIS is the main fix:
   Make it full width of the inner container and center it */
.hd-cards{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  justify-items: stretch;
  justify-content: center; /* prevents left “packing” if something weird happens */
}

@media (max-width: 1024px){
  .hd-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .hd-cards{ grid-template-columns: 1fr; }
}

/* Card */
.hd-card{
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: 1px solid #eef2f7;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* Make the whole card layout stable and immune to theme overrides */
.hd-card, .hd-card *{ box-sizing: border-box; }
.hd-card__link{
  display:flex !important;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

/* Image */
.hd-card__img{
  width: 100%;
  aspect-ratio: 16 / 10;
  background:#f3f4f6;
  overflow:hidden;
}
.hd-card__img img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display:block;
}

/* Body */
.hd-card__body{
  display:flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.hd-card__meta{
  display:flex !important;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.hd-card__title{
  margin: 0 !important;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
  min-width: 0;

  /* clamp title */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hd-card__text{
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  min-width: 0;

  /* clamp excerpt */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover */
@media (hover:hover){
  .hd-card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #e5e7eb;
  }
}

/* Pager */
.hd-blog__pager{
  margin-top: 22px;
}

/* ===== IMPORTANT note for your template =====
   To make the centered "inner" width work, wrap your blog template
   content into <div class="hd-blog__inner"> ... </div>
   If you don't have that wrapper, the grid will still stretch,
   just without max-width centering.
*/

/* =========================
   BLOG (Bitrix) — full width grid fix
   Put this file into:
   /bitrix/templates/floor/components/bitrix/news/blog/style.css
   ========================= */

/* Scope */
.hd-blog{
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#ffffff;
  --shadow:0 10px 30px rgba(17,24,39,.08);
  --radius:16px;

  color: var(--text);
  width: 100% !important;
  max-width: 100% !important;
}

/* Force any theme containers around the component to allow stretching */
.hd-blog,
.hd-blog > .container,
.hd-blog > .container_rp,
.hd-blog .main_content,
.hd-blog .content,
.hd-blog .bx-content,
.hd-blog .bx-content-section{
  width: 100% !important;
  max-width: 100% !important;
}

/* Optional: set inner content width (centered) so it doesn't look too wide on huge screens */
.hd-blog__inner{
  width: 100%;
  max-width: 1240px;      /* change if needed */
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography / header */
.hd-blog__title{
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hd-blog__subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Chips */
.hd-blog__chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.hd-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.hd-chip:hover{
  border-color:#cbd5e1;
  box-shadow: 0 6px 18px rgba(17,24,39,.06);
}
.hd-chip.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

/* Grid — THIS is the main fix:
   Make it full width of the inner container and center it */
.hd-cards{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  justify-items: stretch;
  justify-content: center; /* prevents left “packing” if something weird happens */
}

@media (max-width: 1024px){
  .hd-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .hd-cards{ grid-template-columns: 1fr; }
}

/* Card */
.hd-card{
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: 1px solid #eef2f7;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* Make the whole card layout stable and immune to theme overrides */
.hd-card, .hd-card *{ box-sizing: border-box; }
.hd-card__link{
  display:flex !important;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

/* Image */
.hd-card__img{
  width: 100%;
  aspect-ratio: 16 / 10;
  background:#f3f4f6;
  overflow:hidden;
}
.hd-card__img img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display:block;
}

/* Body */
.hd-card__body{
  display:flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.hd-card__meta{
  display:flex !important;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.hd-card__title{
  margin: 0 !important;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
  min-width: 0;

  /* clamp title */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hd-card__text{
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  min-width: 0;

  /* clamp excerpt */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover */
@media (hover:hover){
  .hd-card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #e5e7eb;
  }
}

/* Pager */
.hd-blog__pager{
  margin-top: 22px;
}

/* ===== IMPORTANT note for your template =====
   To make the centered "inner" width work, wrap your blog template
   content into <div class="hd-blog__inner"> ... </div>
   If you don't have that wrapper, the grid will still stretch,
   just without max-width centering.
*/

/* Featured block */
.hd-featured{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 14px 0 18px;
}

.hd-card--featured .hd-card__img{
  aspect-ratio: 16 / 9;
}

.hd-card--featured .hd-card__title{
  font-size: 18px;
}

.hd-card--featured .hd-card__text{
  -webkit-line-clamp: 3;
}

@media (max-width: 1024px){
  .hd-featured{ grid-template-columns: 1fr; }
}
/* End */


/* Start:/bitrix/templates/floor/components/bitrix/system.pagenavigation/arrows/style.css?169278122547*/
.navigation.pagination{
    display: block;
}
/* End */
/* /bitrix/templates/floor/components/bitrix/news/blog/style.css?17707306179730 */
/* /bitrix/templates/floor/components/bitrix/system.pagenavigation/arrows/style.css?169278122547 */
