/*
Theme Name: Hueman Child — Росток
Template: hueman
Version: 1.0.0
Author: perezxxx
Description: Дочерняя тема для rostok11.ru: «Наши Новости» на главной — карточки-сетка как в демо (фото сверху, заголовок, дата).
*/

/* === Локальный шрифт Commissioner (без Google) === */
@font-face{font-family:'Commissioner';font-style:normal;font-weight:400 800;font-display:swap;src:url('https://rostok11.ru/wp-content/uploads/2026/09/commissioner-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Commissioner';font-style:normal;font-weight:400 800;font-display:swap;src:url('https://rostok11.ru/wp-content/uploads/2026/09/commissioner-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Commissioner';font-style:normal;font-weight:400 800;font-display:swap;src:url('https://rostok11.ru/wp-content/uploads/2026/09/commissioner-greek.woff2') format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Commissioner';font-style:normal;font-weight:400 800;font-display:swap;src:url('https://rostok11.ru/wp-content/uploads/2026/09/commissioner-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Commissioner';font-style:normal;font-weight:400 800;font-display:swap;src:url('https://rostok11.ru/wp-content/uploads/2026/09/commissioner-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Commissioner';font-style:normal;font-weight:400 800;font-display:swap;src:url('https://rostok11.ru/wp-content/uploads/2026/09/commissioner-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}


/* ============ Главная: блок «Наши Новости» ============ */
body.home #grid-wrapper.post-list-standard{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.home #grid-wrapper.post-list-standard .post-standard{
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .2s ease;
}
body.home #grid-wrapper.post-list-standard .post-standard:hover{
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

body.home #grid-wrapper .post-standard .post-inner{
  padding: 0 !important;
}

/* фото: сверху, во всю ширину карточки */
body.home #grid-wrapper .post-standard .post-thumbnail{
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.home #grid-wrapper .post-standard .post-thumbnail a{
  display: block;
}
body.home #grid-wrapper .post-standard .post-thumbnail img{
  width: 100% !important;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

body.home #grid-wrapper .post-standard .post-content{
  width: auto !important;
  float: none !important;
  padding: 14px 16px 16px !important;
}

/* заголовок */
body.home #grid-wrapper .post-standard .post-title{
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 6px !important;
  letter-spacing: 0;
  text-transform: none;
}
body.home #grid-wrapper .post-standard .post-title a{
  color: #111;
}
body.home #grid-wrapper .post-standard .post-title a:hover{
  color: #16a085;
}

/* дата под заголовком */
body.home #grid-wrapper .post-standard .hu-card-date{
  display: block;
  font-size: 12px;
  color: #8a8a8a;
  margin: 0;
  text-transform: none;
}

/* в демо-карточках выдержки нет — прячем */
body.home #grid-wrapper .post-standard .entry.excerpt,
body.home #grid-wrapper .post-standard .entry-summary{
  display: none;
}

/* мобильные: одна колонка */
@media (max-width: 719px){
  body.home #grid-wrapper.post-list-standard{
    grid-template-columns: 1fr;
  }
  body.home #grid-wrapper .post-standard .post-thumbnail img{
    height: auto;
  }
}

/* === fix: превью занимает всю ширину карточки === */
body.home #grid-wrapper .post-standard .post-inner{ display:block !important; }
body.home #grid-wrapper .post-standard .post-thumbnail{
  width:100% !important;
  min-width:100% !important;
  flex:none !important;
}
body.home #grid-wrapper .post-standard .post-thumbnail img{
  width:100% !important;
  height:200px !important;
  object-fit:cover;
  object-position:center;
}

/* === fix2: убираем max-width 200px у превью === */
body.home #grid-wrapper .post-standard .post-thumbnail{
  max-width:100% !important;
}
body.home #grid-wrapper .post-standard .post-thumbnail img{
  max-width:100% !important;
}

/* === Шрифт как на демо (Commissioner) === */
body,
#wrapper,
.site-title,
.page-title h2,
.post-title,
.entry-title,
.widget-title,
h1, h2, h3, h4, h5, h6,
.nav-menu li a,
.nav li a,
.topbar a,
.comment-title{
  font-family: 'Commissioner', Arial, sans-serif !important;
}
body{
  letter-spacing: 0.01em;
}

/* === fix3: картинка строго на всю ширину карточки === */
body.home #grid-wrapper .post-standard .post-thumbnail a{
  display:block !important;
  line-height:0;
}
body.home #grid-wrapper .post-standard .post-thumbnail img{
  display:block !important;
  width:100% !important;
  height:200px !important;
  object-fit:cover;
  object-position:center;
}

/* календарь/плагины: не используем шрифт Cairo — не тянем Google */
[class*="monthly"]:not(svg):not([class*="monthly-cal"]),
[class*="TotalSoftCalendar"] *,
[class*="totalsoft"] *{
  font-family: 'Commissioner', Arial, sans-serif !important;
}

/* === Страница новости === */
/* убрать надпись категории «Новости на главной» */
.single .page-title .meta-single,
.single .page-title .category{
  display: none !important;
}
.single .page-title{
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
}
/* заголовок новости: компактнее и жирнее */
.single .post-title.entry-title{
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #111;
}

/* === fix: убираем float и сжатие post-inner === */
body.home #grid-wrapper .post-standard{
  width:100% !important;
  max-width:100% !important;
}
body.home #grid-wrapper .post-standard .post-inner{
  float:none !important;
  width:100% !important;
}

/* === Липкое меню === */
#nav-header.hu-nav-fixed{
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
@media (max-width: 719px){
  #nav-header.hu-nav-fixed{
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
  }
}

/* === Анимация прилипания меню === */
#nav-header{
  transition: box-shadow .35s ease;
}
#nav-header.hu-nav-fixed{
  animation: hu-nav-slide-in .45s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes hu-nav-slide-in{
  0%{ transform: translateX(-50%) translateY(-120%); opacity: 0; }
  100%{ transform: translateX(-50%) translateY(0); opacity: 1; }
}
@media (max-width: 719px){
  #nav-header.hu-nav-fixed{
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce){
  #nav-header.hu-nav-fixed{
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ============================================================
   GS Team: карточки сотрудников — современное оформление v5
   (07.09.2026) — страницы /sveden/managers/, /sveden/employees/
   Перебивает стили темы GS "grid-style-four"
   ============================================================ */

/* ---------- Сетка: 3 в ряд на ПК, 2 на планшете, 1 на телефоне ---------- */
.gs_team_area .gs-roow.gs_team,
.gs_team_area .gs-containeer .gs-roow {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 -12px !important;
}

/* Перебиваем колонки GS (lg-3, md-2, sm-2, xs-1) */
.gs_team_area .gs-grid-style-four .single-member-div,
.gs_team_area .gs-grid-style-five .single-member-div,
.gs_team_area .single-member-div {
  width: 33.3333% !important;
  padding: 12px !important;
  margin: 0 0 10px 0 !important;
  float: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  position: relative !important;
}

/* ---------- Карточка ---------- */
.gs_team_area .gs-grid-style-four .single-member,
.gs_team_area .single-member {
  background: #ffffff !important;
  border: 1px solid #e3e9f1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  width: 100% !important;
  box-shadow: 0 2px 12px rgba(16, 42, 84, 0.07) !important;
  transition: box-shadow .3s ease, transform .3s ease !important;
  display: block !important;
  position: relative !important;
  height: auto !important;
}
.gs_team_area .single-member:hover {
  box-shadow: 0 16px 36px rgba(16, 42, 84, 0.14) !important;
  transform: translateY(-5px) !important;
}

/* ---------- Фото: видно целиком, прямоугольное ---------- */
/* Отменяем квадратный формат grid-style-four */
.gs_team_area .gs-grid-style-four .single-member-div .gs_team_image__wrapper,
.gs_team_area .gs_team_image__wrapper {
  position: relative !important;
  overflow: hidden !important;
  background: #eef2f7 !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  border-radius: 16px 16px 0 0 !important;
  height: auto !important;
  display: block !important;
}
/* убираем псевдо-квадрат (и :before и :after) */
.gs_team_area .gs-grid-style-four .single-member-div .gs_team_image__wrapper:before,
.gs_team_area .gs-grid-style-four .single-member-div .gs_team_image__wrapper:after,
.gs_team_area .gs_team_image__wrapper:before,
.gs_team_area .gs_team_image__wrapper:after {
  display: none !important;
  content: none !important;
  padding-bottom: 0 !important;
}
/* картинка — статичная, на всю ширину, фикс. высота */
.gs_team_area .gs-grid-style-four .single-member-div .gs_team_image__wrapper img,
.gs_team_area .gs_team_image__wrapper img,
.gs_team_area .gs_team_member--image {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: center top !important;
  left: auto !important;
  top: auto !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* ---------- Текстовая часть: НЕ поверх фото ---------- */
.gs_team_area .gs-grid-style-four .single-member-div .gs_member_info,
.gs_team_area .gs_member_info {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: #ffffff !important;
  border-radius: 0 0 16px 16px !important;
  padding: 18px 20px 22px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  flex: none !important;
}

/* ФИО — 15px, НЕ ЗАГЛАВНЫМИ */
.gs_team_area .gs-grid-style-four .single-member-div .gs_member_info .gs-member-name,
.gs_team_area .gs_member_info .gs-member-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #16283c !important;
  line-height: 1.4 !important;
  font-family: inherit !important;
  text-transform: none !important;
  text-align: center !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: normal !important;
}
.gs_team_area .gs_member_info .gs-member-name a {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #16283c !important;
  text-decoration: none !important;
  text-transform: none !important;
  font-family: inherit !important;
}
.gs_team_area .gs_member_info .gs-member-name a:hover {
  color: #1a73c8 !important;
}

/* Должность — 13px */
.gs_team_area .gs-grid-style-four .single-member-div .gs_member_info .gs-member-desig,
.gs_team_area .gs_member_info .gs-member-desig {
  font-size: 13px !important;
  color: #5f7186 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  font-family: inherit !important;
  text-transform: none !important;
}

/* скрыть пустые соц-блоки */
.gs_team_area .single-mem-desc-social:empty,
.gs_team_area .single-mem-desc-social {
  display: none !important;
}

/* оверлей на фото — лёгкий, не мешает */
.gs_team_area .gs-grid-style-four .single-member-div .gs_team_image__overlay,
.gs_team_area .gs_team_image__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(20,50,100,0) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  border-radius: 0 !important;
}
.gs_team_area .single-member:hover .gs_team_image__overlay {
  background: rgba(20,50,100,.08) !important;
}

/* ---------- Popup (сведения о работнике) ---------- */
.gs_team_popup {
  border-radius: 18px !important;
  padding: 0 !important;
  max-width: 660px !important;
  width: 92% !important;
  background: #fff !important;
  overflow: hidden;
}
.gs_team_popup .gs_team_popup_img {
  line-height: 0;
}
.gs_team_popup .gs_team_popup_img img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center top;
}
.gs_team_popup .gs_team_popup_details {
  padding: 24px 28px 28px !important;
  box-sizing: border-box;
  text-align: left;
}
.gs_team_popup .gs_team_popup_details .gs-member-name,
.gs_team_popup .gs_team_popup_details .gs-member-name a {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #16283c !important;
  text-align: left !important;
  text-transform: none !important;
  margin-bottom: 4px;
}
.gs_team_popup .gs-member-desig {
  font-size: 15px !important;
  color: #5a6b80 !important;
  line-height: 1.4 !important;
  margin-bottom: 10px !important;
}
.gs_team_popup .gs-member-desc .btn {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}

/* ============ Адаптив ============ */
@media (max-width: 991px) {
  .gs_team_area .single-member-div {
    width: 50% !important;
  }
  .gs_team_area .gs_team_image__wrapper img {
    height: 250px !important;
  }
}
@media (max-width: 600px) {
  .gs_team_area .single-member-div {
    width: 100% !important;
  }
  .gs_team_area .gs_team_image__wrapper img {
    height: 230px !important;
  }
}

/* ---------- ССЫЛКА-ОБЁРТКА вокруг фото: вернуть в поток ---------- */
.gs_team_area .gs_team_image__wrapper a.gs_team_pop,
.gs_team_area .gs_team_image__wrapper a.open-popup-link,
.gs_team_area .gs_team_image__wrapper > a,
.gs_team_area .gs-grid-style-four .single-member-div .gs_team_image__wrapper a {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  right: auto !important;
  line-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* картинка внутри ссылки */
.gs_team_area .gs_team_image__wrapper a img {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: center top !important;
}
@media (max-width: 991px) {
  .gs_team_area .gs_team_image__wrapper a img { height: 250px !important; }
}
@media (max-width: 600px) {
  .gs_team_area .gs_team_image__wrapper a img { height: 230px !important; }
}
