body {
    font-size: 16px;
}

/* Небокрай: кнопка Главная только на мобильном */
li.nk-mobile-header-home {
    display: none !important;
}
.nk-create-pages {
    padding: 15px 128px 20px;
}

@media (max-width: 468px) {
    
    .nk-create-pages {
    padding: 15px 28px 20px;
}
    li.nk-mobile-header-home {
        display: block !important;
    }

    li.nk-mobile-header-home .btn-main {
        width: 33px;
        min-width: 33px;
        height: 33px;
        padding: 0 !important;
        margin: 6px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    li.nk-mobile-header-home .btn-main span {
        display: none !important;
    }

    li.nk-mobile-header-home .btn-main img {
        width: 20px;
        height: 20px;
        margin: 0;
    }
    .nk-header-create-label {
    display: none !important;
}
    #wo_home_btns {
    padding: 0 !important;
    display: flex;
    height: 40px;
    width: 40px;
    }
    .btn-create img {
    margin: 0;
}
}
@media (min-width: 469px) {
    .nk-header-create-btn {
        width: auto !important;
        height: 40px;
        padding: 0 14px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nk-header-create-label {
        display: inline !important;
    }
}
.list-page-left {
    width: 74%;
}
.list-page-right {
    width: 26%;
}
.new-page-btn a img {
    width: 20px;
    display: block;
}
.empty_state img {
    width: 34px;
    display: block;
    margin: 0 auto 10px;
    opacity: 0.6;
}
.nk_content {
    background: #f0f2f5;
    padding: 15px;
    border-radius: 16px;
}
.new-page-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translatey(-50%);
}
.nk-memorial-last-name, .nk-memorial-first-name {
    font-weight: 600;
    font-size: 18px;
    color: #000;
    line-height: 20px;
    margin: 0;
}
.nk-death {
    font-size: 17px;
    font-weight: 500;
    color: #797979;
    margin: 2px 0;
}
.nk-page-name {
    padding: 10px;
    position: relative;
}
.nk-filter-pages {
    background: #f0f2f5;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.nk-filter-pages img {
    width: 20px;
}
.nk-filter-pages span {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}
.nk-navigation-filter {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.memorial-page-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}
.nk-memorial-person-avatar-wrap {
    display: block;
    width: 40px;
    height: 40px;
}
.nk-memorial-person-avatar {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50px;
}
.nk-memorial-person-name {
    font-size: 13px;
    line-height: 1.2;
    color: #111;
    word-break: break-word;
}
.nk-cool-style-page {
    width: 25%;
    padding: 7px;
}

.nk-cool-style-page.empty {
    width: 100%;
}

.nk-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
}

    .nk-page-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: #444;
    font-weight: 600;
    }
    .nk-page-title a {
    font-size: 20px;
    line-height: 1.25;
    color: #444;
    font-weight: 600;
    text-decoration: none;
    }
    .nk-page-title a:hover, .nk-page-title a:focus {
    text-decoration: none;
    color: #e8b777;
    transition: transform 0.3s ease;
    }

    .nk-sort-wrapper {
  position: relative;
  display: inline-block;
}

    .nk-sort-select {
  padding: 6px 36px 6px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: white;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 200px;
  background-image: none;
  font-size: 14px;
}

.nk-sort-wrapper::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("/upload/photos/down.png") no-repeat center;
  background-size: 18px auto;
  opacity: 0.45;
  pointer-events: none;
}
    .nk-sort-select:focus {
      outline: none;
      border-color: #e8b777;
      box-shadow: 0 0 0 2px rgba(223, 179, 98, 0.25);
    }

    /* Кастомный дропдаун (опционально) */
    .nk-custom-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: white;
      border: 1px solid #ddd;
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      z-index: 10;
      display: none;
      min-width: 180px;
    }

    .nk-custom-dropdown.nk-show {
      display: block;
    }

    .nk-dropdown-item {
      padding: 8px 12px;
      cursor: pointer;
      font-size: 0.9em;
    }

    .nk-dropdown-item:hover,
    .nk-dropdown-item.nk-active {
      background-color: #e7f1ff;
      color: #007bff;
    }
    
.nk-pages-container .nk-cool-style-page:nth-child(4n) {
    margin-right: 0;
}
.nk-cool-style-page .album_parent .avatar {
    position: relative;
}
.nk-cool-style-page .album_parent .avatar a {
    display: block;
    position: relative;
    padding-bottom: 110%;
}
.nk-cool-style-page .album_parent .avatar a img {
    width: 100%;
    height: 100%;
    border-radius: 14px 14px 0 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    object-fit: cover;
}
.stat-page-bt {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    object-fit: contain;  /* Чтобы картинка не искажалась */
    display: block;
}

.min-h {
    width: 16px;
    height: 16px;
}
.stat-page-cont {
    display: flex;
    align-items: center;
    gap: 7px;
}
.stat-page-cont span {
    display: inline-flex;
    align-items: center;  
    font-size: 14px;
    color: #777;
    line-height: 1;
}

/* 1. Базовые стили карточки */
.page_list .wow_content {
    background: #fff;
    border: 1px solid #f0f2f5;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative; 
    box-shadow: 0 2px 20px 0 #00000008 !important;
}

/* 2. Состояние при наведении на карточку */
.page_list .wow_content:hover {
    box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.12);
    background: #fff7ed;
    border: 1px solid #f3dcbd;
    z-index: 10;
}

/* Аватар */
.wow_content .avatar img {
    transition: filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.page_list .wow_content:hover .avatar img {
    filter: brightness(0.9);
}

/* Ссылки (чтобы цвет текста менялся синхронно с фоном) */
.page_list .wow_content a {
    text-decoration: none !important;
    color: inherit; 
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.dates-white-hover a {
    text-decoration: none !important;
    color: inherit;
}

.bottom-page-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding: 7px 10px;
    border-radius: 0 0 16px 16px;
}

.nk-dropbtn {
    background-color: #000;
    color: white;
    padding: 4px 16px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    border-radius: 20px;
}

  .nk-dropdown {
    position: relative;
    display: inline-block;
  }

  .nk-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 170px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    right: 0;
    border-radius: 10px;
  }

  .nk-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  .nk-dropdown-content a:hover {color: #e8b777}

  .nk-dropdown:hover .nk-dropdown-content {
    display: block;
  }

  .nk-dropdown:hover .nk-dropbtn {
    background-color: #e8b777;
  }
.menu-dots-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    position: absolute;
    top: 10px;
    right: 0;
}

.menu-dots-btn:hover svg circle {
    fill: #e8b777; 
}

.nk-cool-style-page .album_parent .avatar {
	position: relative;
}

.nk-page-card-badges {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	pointer-events: auto;
}

.nk-page-card-badge {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.nk-page-card-badge:hover {
	transform: translateY(-1px);
	background: #fff;
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.nk-page-card-badge svg {
	width: 18px;
	height: 18px;
	display: block;
}


.wo_new_left_side {
    border-radius: 15px;
}
.left-sidebar .profile {
    text-align: center;
    padding: 0;
}
.left-sidebar .profile a {
    line-height: 22px;
}
.left-sidebar .profile a:hover {
    background: none !important;
}
.left-sidebar .profile .name {
    font-size: 16px;
    font-weight: 400;
}
.left-sidebar .profile .profile-avatar-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 8px;
}

.left-sidebar .profile .profile-avatar-wrap img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: block;
    margin: 0;
}

.left-sidebar .profile .profile-avatar-wrap .profile-avatar-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 20px;
    height: 20px;
    z-index: 2;
    border-radius: 50%;
    box-sizing: border-box;
}
.left-sidebar .profile .account {
    text-align: center;
    font-size: 13px;
    color: #777777;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 120px;
    margin: 0 auto;
}
.left-sidebar .borderline {
    width: 100%;
    height: 0;
    border-bottom: 1px solid #efefef;
    padding: 0;
    margin: 10px 0
}
.left-sidebar.custom .link a {
    font-weight: 400; 
    font-size: 15px; 
    line-height: 28px;
}
.left-sidebar.custom .link img {
    display: inline-block;
    height: 20px;
    width: 20px;
    margin-right: 10px;
}
.left-sidebar.custom .desc {
    font-size: 12px; 
    color: #a5a5a5; 
    line-height: 1.2; 
    margin-top: -2px; 
    margin-left: 35px;
}
.left-sidebar.custom .tech a {
    font-size: 12px; 
    color: #777; text-align: left;
    padding: 0 10px;
    line-height: 14px;
}
.left-sidebar.custom > ul > li > a:hover/*, .left-sidebar.custom > ul > li.active > a*/ {
    background: #f0f2f5;
}
.left-sidebar.custom > ul > li.grey a {
     color: #777;
}
.left-sidebar.custom > ul > li.grey {
     color: #777;
}
.left-sidebar.custom .tech a:hover {
    background: none;
}

ul.page-left.page-margin {
    margin-top: 0 !important;
    margin-right: -15px;
}
.nady {
   margin-right: 0;
   padding-left: 0;
}
.header-brand img {
    max-height: 37px;
    height: 37px;
}
.login_left_combo h1 {
   text-transform: none;
}
.login_left_combo p {
  text-transform: none;
}

.head-hints {
	font-weight: 500;
	margin: 36px 0 44px;
  	color: #e8b777 !important;
  	text-align: center;
}
.req-star {
	color: #e8b777 !important;
	font-weight: bold;
}
.wow_form_fields input, .wow_form_fields select {
	height: 50px !important;
}
.remove-fiveteen-padding {
	padding-left: 15px;
}
.wow_fcov_image {
	min-height: 332px;
	background-color: #fff;
    border: 1px solid #ddd;
}


.custom-toggle-setting {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 20px 0;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 0.5em 0.5em;
}
.custom-toggle-setting-gender {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 20px 0 0;
	background-color: #f0f2f5;
    border-radius: 10px;
    padding: 0 15px;
    height: 50px;
}

.custom-toggle-setting label {
	font-weight: 500;
	display: inline-block;
	margin-bottom: 6px;
	font-size: 15px;
}

.toggle-options {
	display: flex;
	gap: 20px;
  	margin-left: auto;
}
.custom-toggle-setting-gender label {
	font-size: 15px;
}
.wow_form_fields input, .wow_form_fields textarea, .wow_form_fields select, .wow_form_fields > .bootstrap-select.btn-group > .dropdown-toggle {
	padding: 8px 12px;
}

.toggle-btn {
	background: #f8f8f8;
	border-radius: 30px;
	padding: 6px 14px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: 0.2s ease-in-out;
	display: flex;
	align-items: center;
}

.toggle-btn input {
	display: none;
}

.toggle-btn input:checked + span {
	color: #fff;
	background: #f5a623;
	border-radius: 20px;
	padding: 4px 12px;
}

.toggle-btn span {
	color: #333;
	transition: 0.2s;
	font-weight: 500;
}

.tooltip-icon {
	position: relative;
	display: inline-block;
	width: 15px;
	height: 15px;
	font-size: 13px;
	line-height: 15px;
	text-align: center;
	background: #ccc;
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	margin-left: 6px;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #fff;
    color: #333;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: normal;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.25s ease, transform 0.25s ease;

    z-index: 1000;
    width: 260px;
    max-width: calc(100vw - 32px);

    text-align: left;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    pointer-events: none;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
    .tooltip-text {
        left: auto;
        right: 0;
        top: calc(100% + 8px);

        width: 260px;
        max-width: calc(100vw - 32px);

        transform: translateY(-4px);
    }

    .tooltip-icon:hover .tooltip-text {
        transform: translateY(0);
    }
    .wow_form_fields input, .wow_form_fields textarea, .wow_form_fields select, .wow_form_fields > .bootstrap-select.btn-group > .dropdown-toggle {
    line-height: inherit; 
}
}
.d-flex.gap-2 > * + * {
	margin-left: 0.5rem;
}
.date-select {
	padding-right: 8px;
}
.header-text-block {
    display: flex;
    flex-direction: column; 
    gap: 4px;              
}

.header-text-block h2 {
    font-size: 20px;      
    margin: 0;            
}
.show-post3 {
    color: #ffffff;
    font-size: 14px;
    padding: 15px;
    background-color: #e8b777;
    border-radius: 8px 8px 0 0;
    margin: -10px -8px 10px -8px;
    text-align: center;
}
.show-post3-1 {
    color: #666;
    font-size: 14px;
    padding: 8px 20px;
    margin-bottom: 5px;
}
.empty-state-icon {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}
.subtitle-memorial-page {
    padding: 0;
    font-size: 16px;
    color: #777;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.3;
}
/* ============= Чат-FAQ ============= */
.legal-chat {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
}
.legal-chat br {
  display: none !important;
}
.chat-message {
  display: flex;
  margin-bottom: 24px;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.assistant {
  justify-content: flex-start;
}

.chat-bubble {
  padding: 16px 22px;
  border-radius: 30px;
  word-wrap: break-word;
  max-width: 80%;
}

.user-bubble {
  background-color: #f0f2f5;
  color: #000;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 30px;
}

.assistant-content {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.avatar-chat {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.assistant-bubble {
  background-color: #fbeddc;
  color: #222;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 30px;
}

.assistant-bubble p {
  margin: 0 0 12px 0;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  transition: color 0.2s;
  line-height: 1.2;
}

.attachment:hover {
  color: #e8b777;
  text-decoration: none;
}

.attachment-icon {
  font-size: 16px;
  line-height: 1;
}
.attachment-icon-img {
  width: 16px;
  height: 16px;
  }
.updating-documents {
    color: #777;
    margin-top: 60px;
    font-size: 13px;
}

@media (max-width: 768px) {
 .setting-well {
    padding: 0;
}
.legal-chat {
    max-width: none;
    margin: 0 auto;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #1a1a1a;
}
.chat-bubble {
    padding: 11px 15px;
    border-radius: 22px;
    max-width: 90%;
}
.user-bubble {
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 6px;
}
.assistant-bubble {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 22px;
}
.avatar-chat {
    display: none;
}
.chat-message {
    margin-bottom: 15px;
}
.attachment {
    align-items: flex-start;
}
.updating-documents {
    margin-top: 26px;

}
}

.fag-neb-ttl {
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #f0f2f5;
    padding: 0 0 20px;
    margin-bottom: 30px;
}
.faq-section * {
  box-sizing: border-box;
}

.faq-section .container {
  max-width: 950px;
  margin-top: 30px;
  padding: 0 16px;
}

.faq-section .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 32px;
}

.faq-section .card {
  background: #f0f2f5;
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-section .card:hover {
  background: #ffffff;
  border-color: #e8b777;
}

.faq-section .card-icon {
  width: auto;
  height: 30px;
  margin: 0 auto 12px;
  display: block;
  object-fit: contain;
}

.faq-section .card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #222;
}

.faq-section .card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
}

.faq-section #questions-view {
  display: none;
}

.faq-section #questions-view.active {
  display: block;
}

.faq-section .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a367a;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 16px;
  cursor: pointer;
}

.faq-section .back-link:hover {
  text-decoration: underline;
}

.faq-section #current-topic-title {
  text-align: center;
  margin: 0 0 24px;
  font-size: 24px;
  color: #1a367a;
}

.faq-section .accordion {
  max-width: 700px;
  margin: 0 auto;
}

.faq-section .accordion-item {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.faq-section .accordion-header {
  padding: 16px 20px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a367a;
}

.faq-section .accordion-header::after {
  content: "+";
  font-weight: bold;
  color: #E8B777;
}

.faq-section .accordion-content {
  display: none;
  background: #fafcff;
  padding: 0 20px;
}

.faq-section .accordion-item.active .accordion-header::after {
  content: "\2212";
}

.faq-section .accordion-item.active .accordion-content {
  display: block;
  padding: 20px;
}

.faq-section .accordion-content p {
  margin: 0;
  color: #444;
}
/* Обёртка для изоляции */
.faq-layout * {
  box-sizing: border-box;
}

.faq-layout .container-fluid {
  padding: 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Левая колонка — категории */
.faq-layout .faq-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-layout .faq-categories li {
  margin-bottom: 12px;
}

.faq-layout .faq-categories a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #444;
  background-color: #f0f2f5;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #eee;
}

.faq-layout .faq-categories a:hover,
.faq-layout .faq-categories a.active {
  background-color: #E8B777;
  color: #fff;
  border-color: #E8B777;
}

/* Правая колонка — контент */
.faq-layout .faq-content {
  display: none;
}

.faq-layout .faq-content.active {
  display: block;
}

.faq-layout .faq-content .accordion-title {
  font-size: 16px;
  font-weight: 600;
    color: #E8B777;
    margin-bottom: 20px;
}

/* Аккордеон */
.faq-layout .accordion-item {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  
}

.faq-layout .accordion-header {
  padding: 16px 20px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-layout .accordion-header::after {
  content: "+";
  font-weight: bold;
  color: #E8B777;
  font-size: 18px;
}

.faq-layout .accordion-content {
  display: none;
  background: #fff;
  padding: 0 20px;
  border-top: 1px solid #f0f2f5;
}

.faq-layout .accordion-item.active .accordion-header {
  background: #f0f2f5;
  border-bottom: 2px solid #e8b777;
}

.faq-layout .accordion-item.active .accordion-header::after {
  content: "−";
}

.faq-layout .accordion-item.active .accordion-content {
  display: block;
  padding: 20px;
}

.faq-layout .accordion-content p,
.faq-layout .accordion-content ul {
  margin: 0;
  color: #444;
  line-height: 1.6;
}

.faq-layout .accordion-content ul {
  padding-left: 24px;
}


.firefly-help {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 60px auto;
}

.firefly-help__text {
  flex: 1;
  min-width: 280px;
}

.firefly-help__title {
  font-size: 20px;
  margin: 0 0 20px;
  font-weight: 600;
  line-height: 1.4;
}

.firefly-help__description {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.firefly-help__button {
  display: inline-block;
  background-color: #e8b777;
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 50px;
  margin-top: 15px;
  transition: background-color 0.2s ease;
}

.firefly-help__button:hover {
  background-color: #d9a55f;
  text-decoration: none;
  color: white;
}

.firefly-help__icon img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

/* Адаптив: на мобильных — категории сверху */
@media (max-width: 768px) {
  .faq-layout .faq-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}
.faq-layout .faq-categories::-webkit-scrollbar {
        display: none;
    }
.faq-layout .container-fluid {
    padding: 0;
    margin: 0 auto;
}
.fag-neb-ttl {
    font-size: 18px;
    padding: 0 0 10px;
    margin-bottom: 17px;
}
  .faq-layout .faq-categories li {
    flex: 1 1 calc(50% - 8px);
    margin-bottom: 0;
  }

  .faq-layout .faq-categories a {
    padding: 6px 10px;
    border-radius: 30px;
  }
  .faq-layout .accordion-header {
    padding: 8px 15px;
}
.faq-section .container {
    margin-top: 20px;
    padding: 0;
}
.faq-section .cards-grid {
    gap: 15px;
    margin-bottom: 0;
}
.firefly-help {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 600px;
    margin: 20px 0 0;
    flex-direction: column;
    align-items: center;
}
.firefly-help__text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.firefly-help__description {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}
.firefly-help__title {
    font-size: 18px;
    margin: 0 0 8px;
}
.firefly-help__icon img {
    width: 130px;
    height: 130px;
}
}

/* Стили для hero-секции "О Небокрае" */

.wo_about_wrapper, .wo_about_wrapper .full-width-picture {
    background-position: center bottom;
    
}
.wo_about_page_margin {
    margin-top: 640px;
    padding: 0 0 75px;
}
.wow_content2 {
    background-color: #f0f2f5;
    border-radius: 0;
}
.setting-well2 {
  background-color: #f0f2f5;
  padding: 0;
}
.hero-overlay {
    background: #ffffff3d;
}
.hero-row {
    display: flex;
    align-items: flex-start; /* выравнивание по верху, если текст короче картинки */
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 24px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 50px;
    text-align: left;
    line-height: 1.2;
    color: #000;
    max-width: 690px;
}

.hero-desc {
    display: block;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    color: #3e1414;
    max-width: 610px;
}

.hero-image img {
    height: 300px;
    width: auto;
    display: block;
    object-fit: contain;
}

.tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    padding-bottom: 70px;
}

.tag {
    background: #ffffff;
    color: #d7a65a;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
    cursor: default;
    height: 42px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

        /* Раздел "Для кого Небокрай?" */
        .section {
            padding: 75px 0;
        }

        .section-title {
            font-size: 36px;
            line-height: 36px;
            text-align: left;
            font-weight: 700;
            margin-bottom: 75px;
            margin-top: 0;
        }

        .cards-about {
            display: flex;
            gap: 20px;
            justify-content: center;
            align-items: flex-end;
        }

        .card-about {
            overflow: hidden;
            min-width: 400px;
        }
        
.card-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 0 30px;
    background-color: #f9f9f9;
    border-radius: 15px 15px 0 0;
}
.card-header-text { 
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #e8b777;
    margin-bottom: 10px;
}
    
.card-header-image img { 
    height: 150px; width: auto;
    
}
   

       .card-body {
        padding: 20px 30px;
        background-color: #31353b;
        color: #fff;
        font-weight: 500;
        font-size: 15px;
        border-radius: 0 0 15px 15px;
        }

        /* Что делает Небокрай? */
        .features {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 40px;
        }

        .feature-list {
            flex: 1;
            min-width: 300px;
        }

        .feature {
            display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-direction: row;
    gap: 26px;
        }

       .feature-text h3 {
            margin: 0 0 10px;
            font-size: 24px;
        }
.support-title-with-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.feature-ttl {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.support-title-text {
    display: inline-block;
    font-size: 24px;
    font-weight: 500;
}

        .feature-text p {
            color: #888;
            font-size: 16px;
        }

        .feature-image {
            flex: 1;
            min-width: 300px;
        }

        .feature-image img {
            width: 100%;
            border-radius: 12px;
        }

.feature-icon img {
    height: 36px;
    width: auto;
}

        /* FAQ */
        
       .faq-cards {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }

       .faq-card {
    background: linear-gradient(#e8b777, #f3d9a9);
    color: white;
    border-radius: 15px;
    padding: 30px;
    flex: 1 1 300px;
}

 .faq-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
}
.button-container {
    text-align: center;
    margin-top: 30px;
}
      .faq-card p {
    font-size: 16px;
    margin-bottom: 0;
    color: black;
    font-weight: 500;
}

        .view-all-btn {
            display: inline-block;
            margin-top: 40px;
            padding: 10px 20px;
            background: #31353b;
            color: #fff;
            border-radius: 50px;
            text-decoration: none;
            font-size: 16px;
        }

        .view-all-btn:hover {
            text-decoration: none;
            color: #e8b777;
        }


        /* Адаптивность */
        @media (max-width: 768px) {
            .hero {
                font-size: 2rem;
            }
            .section-title,
            .faq-title {
                font-size: 20px;
                margin-bottom: 22px;
            }
            .feature {
                flex-direction: column;
            }
            .cards,
            .faq-cards {
                flex-direction: column;
            }
   
    .hero-title {
        font-size: 38px;
    }
    .hero-desc {
     font-size: 18px;   
    }
 .tags {
     display: inline-block;
     margin: 0;
     padding: 0;
 }
 .tag {
     padding: 7px 13px;
     height: auto;
     font-size: 14px;
     margin: 0 10px 10px 0;
 }
 .wo_about_wrapper, .wo_about_wrapper .full-width-picture {
     height: 640px;
 }
 .wo_about_page_margin {
     margin-top: 600px;
 }
    .hero-row {
        flex-direction: column;
        align-items: center;
    }
.cards-about {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-direction: column;
        }
.card-about {
     min-width: auto;       
        }
    .hero-image img {
        height: auto;
        max-height: 250px;
        width: auto;
    }
}
      
        
.memory-promo-block {
  background-color: #e8b777;
  border-radius: 15px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: black;
  margin-bottom: 60px;
}

.memory-promo-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.promo-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 60px;
}

.promo-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.promo-label {
  font-size: 20px;
  color: black;
  font-weight: 600;
  margin: 0;
}

.promo-title {
  font-size: 40px;
  font-weight: 700;
  color: black;
  margin: 0;
}

.promo-description {
  border: 2px dashed #f6cc94;
  padding: 20px;
  flex: 1;
  max-width: 600px;
  font-weight: 500;
    font-size: 18px;
    border-radius: 15px;
}

.memory-promo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-left {
  font-weight: 700;
  font-size: 28px;
  color: white;
  white-space: nowrap;
  line-height: 1.2;
}

.footer-center {
  text-align: center;
}

.price-main {
  font-size: 50px;
  font-weight: 700;
  color: #fff;
}

.price-note {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.footer-right .promo-button {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 28px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
}

/* Адаптивность (опционально) */
@media (max-width: 768px) {
  .memory-promo-block {
    padding: 20px 20px 20px 25px;
  }

  .memory-promo-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-description {
    max-width: none;
    width: 100%;
  }

  .memory-promo-footer {
    flex-wrap: wrap;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: 1 1 100%;
  }
}
.pro1-block {
  background-color: #f0f2f5;
  border-radius: 15px;
  padding: 35px;
  color: black;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.pro1-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.pro1-text {
  flex: 1;
  max-width: 600px;
}

.pro1-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pro1-icon {
  width: 36px;
  height: 36px;
}

.pro1-title {
  font-weight: 700;
  font-size: 16px;
  color: black;
  line-height: 1.2;
}

.pro1-subtitle {
  font-weight: 700;
  font-size: 28px;
  color: black;
  margin-bottom: 16px;
  line-height: 1.3;
}

.pro1-description {
  font-size: 15px;
  color: black;
  line-height: 1.5;
}

.pro1-image img {
  width: 500px;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .pro1-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pro1-text {
    max-width: 100%;
  }

  .pro1-header {
    justify-content: center;
  }

  .pro1-image img {
    width: 100%;
    max-width: 500px;
  }
}
.more-opportunities {
    font-weight: 600;
  font-size: 32px;
  color: black;
  margin-bottom: 30px;
  text-align: center;
  
}


.pro-rows {
  margin-bottom: 60px;
}

.pro-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.pro-row:last-child {
  margin-bottom: 0;
}

.pro-card {
  background-color: #f0f2f5;
  border-radius: 15px;
  padding: 25px;
  flex: 1; /* чтобы оба блока в строке были одинаковой ширины */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: black;
  box-sizing: border-box;
  min-width: 0; /* предотвращает overflow при длинных словах */
}

.pro-card-icon {
  width: 36px;
  height: 36px;
}

.pro-card-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}

.pro-card-text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}


 .comparison-grid-container {
    display: flex;
    gap: 24px;
    color: #000;
    font-weight: 500;
    padding: 0 50px;
    margin-bottom: 80px;
  }

  .comparison-title-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .comparison-title-column.no-glass {
  }

  .glass.comparison-column {
    background-color: #F0F2F5;
    border: 1px solid #e8b777;
    border-radius: 15px;
    padding: 0; 
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }

  .comparison-heading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    font-weight: bold;
    text-align: center;
    font-size: 20px;
    
  }

  .comparison-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .comparison-row3 {
   display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 10px 0 20px;
  }

  .comparison-row.no-glass {
    align-items: flex-start;
  }

  .comparison-heading,
  .comparison-column-title {
    margin: 0;
    text-align: left;
  }
.comparison-heading2 {
font-size: 13px;
  color: #777;
}
  .comparison-heading-container .comparison-column-title {
    text-align: center;
  }

  .left-align {
    text-align: left !important;
    color: #444;
  }
.comparison-title-column hr {
      border-top: 1px solid #d9d9d9;
  }
.free-button {
  background-color: #e8b777;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: auto;
  min-width: 100px;
  text-align: center;
}

.free-button:hover {
  background-color: #000;
}


.action-buttons-row {
  display: flex;
  flex-direction: row;      
  flex-wrap: nowrap;       
  gap: 15px;
  margin-top: 32px;
  min-width: max-content;
}

.action-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 200px;
  height: 100px;
  background-color: black;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  padding: 8px 20px;
  box-sizing: border-box;
  white-space: normal;
}

.action-button:hover {
  color: #e8b777;
  text-decoration: none;
}

.button-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.button-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}


.assistant-title2 {
    margin: 100px 0 80px;
    padding: 0 60px;
}

/* --- Основная строка с двумя колонками --- */
.assistant-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 60px;
}

.assistant-left {
  flex: 0 0 160px;
}

.assistant-right {
  flex: 1;
}
.assistant-right p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* --- Анимация Светлячка (ваш код, адаптированный) --- */
.firefly-container {
  text-align: center;
  position: relative;
  width: 100%;
  height: 218px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.firefly {
  width: 150px;
  height: auto;
  margin: 0 auto;
  display: block;
  animation: float 6s ease-in-out infinite, glow 3s ease-in-out infinite;
}

.spark {
  position: absolute;
  background: #FFD700;
  border-radius: 50%;
  width: 4px;
  height: 4px;
  opacity: 0.8;
  animation: sparkle 2s ease-in-out infinite;
}

.spark-1 { top: 30%; left: 20%; animation-delay: 0s; }
.spark-2 { top: 20%; right: 25%; animation-delay: 1s; }
.spark-3 { bottom: 20%; left: 20%; animation-delay: 2s; }
.spark-4 { top: 50%; right: 20%; animation-delay: 3s; }

@keyframes float {
  0% { transform: translate(0, 0); }
  50% { transform: translate(5px, -5px); }
  100% { transform: translate(0, 0); }
}

@keyframes glow {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes sparkle {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.5; transform: scale(1); }
}

/* --- Поле ввода и кнопка --- */
.assistant-input-row {
  width: 100%;
}

.input-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px; /* можно убрать, если нужно на всю ширину */
  margin: 0 auto;
}

.assistant-input {
  width: 100%;
  padding: 14px 60px 14px 20px;
  font-size: 16px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 20px !important;
  box-sizing: border-box;
  height: 80px !important;
}

.assistant-send-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #e8b777;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.assistant-send-button:hover {
  background-color: black;
}
.create_later {
    color: #999;
    font-size: 13px !important;
}
.support-form {
    padding: 0 60px;
}

@media (max-width: 767px) {
   .assistant-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    flex-direction: column;
    margin-bottom: 20px;
}
.assistant-left {
    flex: 0 0 150px;
}
.firefly-container {
    height: 150px;
}
.firefly {
    width: 100px;
}
.support-form {
    padding: 0;
}
.assistant-title2 {
    margin: 46px 0 0;
    padding: 0;
}
}


/* Стили для кнопок выбора типа связи */
.relation-buttons {
    display: flex;
    gap: 12px; /* расстояние между кнопками */
    width: 100%;
}
.relation-buttons .relation-choice-btn {
    flex: 1;
    min-width: 0; /* предотвращает переполнение на узких экранах */
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
	height: 50px;
}
.relation-buttons .relation-choice-btn:hover {
    background-color: #e8b777;
    color: #fff;
}

.relation-buttons .relation-choice-btn.active {
    background-color: #e8b777;
    color: #fff;
}

.relation-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.relation-choice-btn {
    height: 50px;
    background: #fff;
    color: #000;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 0 26px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.relation-choice-btn:hover {
    background-color: #e8b777;
    color: #fff;
}

.relation-choice-btn.active {
    background-color: #e8b777;
    color: #fff;
}

/* Скрытие блоков по умолчанию */
.relation-block {
    display: none;
}
/* Согласие + кнопки в футере формы */
.consent-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.consent-footer .consent-text {
    font-size: 13px;
    color: #999999;
    line-height: 1.4;
    max-width: 400px;
}

.consent-footer .consent-text a {
    color: #e8b777;
    text-decoration: none;
}

.consent-footer .consent-text a:hover {
    text-decoration: underline;
}

.consent-footer .btnss {
    display: flex;
    gap: 10px;
}
.conditions {
   padding: 100px 0 30px; 
}
.wow_form_fields2 {
    position: relative;
    margin: 15px 0 25px;
}
.wow_form_fields2 > label {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    display: block;
}

.suggestions-suggestions strong {
    font-weight: 500 !important;
    color: #e8b777 !important;
}
select::placeholder,
input::placeholder,
textarea::placeholder {
    color: #b1b1b1;
    opacity: 1;
}
.wow_form_fields input,
.wow_form_fields textarea,
.wow_form_fields select {
    box-shadow: none;
}
.wow_form_fields input:focus,
.wow_form_fields input:not(:placeholder-shown),
.wow_form_fields textarea:focus,
.wow_form_fields textarea:not(:placeholder-shown),
.wow_form_fields select:focus,
.wow_form_fields select.filled {
    box-shadow: 0 0 0 1px #e8b777 !important;
    background-color: #fff !important;
    border-color: #e8b777 !important;
}
.wow_form_fields input:-webkit-autofill,
.wow_form_fields input:-webkit-autofill:hover,
.wow_form_fields input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    box-shadow: 0 0 0 1px #e8b777 !important;
}
/* Основной блок */

.financial-support-note,
.accept-matsup-note {
    color: #8c8d9b;
    font-size: 13px;
    margin: 0;
}
.financial-support-note2 {
    color: #777 !important;
    font-size: 15px !important;
    margin: 5px 0 0;
    text-align: left;
}
.financial-support-note2 b {
    color: #b3701a !important;
}

/* Настройка переключателя */
.material-support-setting {
    background-color: #f0f2f5;
    border-radius: 10px;
    padding: 20px;
    margin-top: 12px;
}

.material-support-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.material-support-main .toggle-label-text {
    flex: 1;
    margin: 0;
    font-weight: normal;
    font-size: 15px;
}

.financial-support .toggle-label-text2 {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 15px;
}

/* Переключатель */
.custom-toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    margin: 0;
}

.toggle-input:checked + .toggle-label {
    background-color: #e8b777;
}

.toggle-input:checked + .toggle-label:before {
    transform: translateX(26px);
}

/* Блок информации о карте */
.material-support-info {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.card-not-linked {
    color: #e8b777;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.info-icon {
    width: 16px;
    height: 16px;
}

.btn-link-card {
    display: inline-block;
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #e8b777;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-link-card:hover {
    background-color: #f9f9f9;
    text-decoration: none;
    color: #e8b777;
}
.badge2 {
    display: inline-block;
    font-size: 14px;
    color: #969696;
    margin-left: 5px;
}
.badge3 {
    display: inline-block;
    font-size: 18px;
    color: #969696;
    margin-left: 5px;
}
.badge2, .label {
    font-weight: 500;
    white-space: nowrap;
    vertical-align: baseline;
    text-align: center;
}
.small-last-seen span {
    font-size: 13px !important;
    color: #777;
}
.number-friends {
    font-weight: 500;
    font-size: 14px;
    color: #969696;
    margin-left: 5px;
}
.friends-online-count {
    color: #4caf50;
    font-weight: 400;
    margin-left: 10px;
    font-size: 13px;
}
.tag-online {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border: 2px solid #fff;
    border-radius: 50%;
}
.name-avatar {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    margin: 5px auto 0; 
}
.close-people {
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    padding: 6px 26px;
    color: #000;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    text-align: center;
}
.close-people a {
    text-decoration: none !important;
    color: #333;
}
.close-people a:hover {
    color: #cd964e;
}
.close-people svg {
    margin: -3px 8px 0 0;
}
.split-link1, .split-link2, .split-link3 {
    display: flex;
    align-items: center;
    justify-content: center;
}
.split-link1 img {
    width: 26px;
    height: 26px;
    margin-right: 10px;
}
.split-link2 img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}
.split-link3 img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}
.split-link4 img {
   width: 26px;
    height: 26px;
    margin-right: 7px;
}

/* 1. Контейнер-сетка */

.memory-block {
    border: 2px solid #e8b777;
}
.pages-memory {
    display: flex;
    flex-wrap: nowrap; 
    gap: 10px;     
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px 15px;
}

/* 2. Сама карточка  */
.page-list-item {
    flex: 0 0 calc((100% - 20px) / 3); 
    box-sizing: border-box;
    max-width: none;
}
.album-name {
    padding: 0 5px;
}

/* 3. Стили содержимого карточки */
.page-list-item .wow_content {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.pages-memory-grid .page-list-item .wow_content {
    padding: 10px;
}
.page-list-item .album-name h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    text-decoration: none;
    display: block;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.2;
}



/* Изображение */
/* Контейнер аватара должен быть относительным, чтобы плашка позиционировалась внутри него */
.page-list-item .avatar {
    position: relative;
    display: block;
    margin-bottom: 8px; 
}

/* Стили изображения */
.page-list-item .avatar img {
    width: 100%;
    aspect-ratio: 1 / 1.3; 
    object-fit: cover;
    border-radius: 16px 16px 20px 20px;
    display: block;
  
}

/* Стили плашки с родством */
.page-list-item .relation-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e8b677; 
    color: #ffffff;            
    font-size: 12px;           
    font-weight: 400;        
    text-align: center;
    padding: 1px 0 2px;           
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Текст дат */
.page-list-item .album-name p {
    font-size: 13px;
    color: #999;
    margin: 0;
    font-weight: 500;
    line-height: 1;
}

/* Цвет имени при наведении на карточку */
.page-list-item .wow_content:hover .name-white-hover h4 {
    color: #cd964e;
}
/* Цвет дат при наведении на карточку */
.page-list-item .wow_content:hover .dates-white-hover p {
    color: #000;
}

/* Убираем подчеркивание ссылок */
.page-list-item .album-name a {
    text-decoration: none;
}
.wo_page_hdng_innr2 {
    display: flex;
    align-items: center;
    font-weight: 600;
    line-height: 15px;
    justify-content: space-between;
}
.wo_page_hdng_innr2 a {
    line-height: 24px;
}
.wo_page_hdng_innr2 a:hover {
    text-decoration: none;
}
.wo_page_hdng_innr2 .create-page-btn {
    color: #e8b777;       /* Ваш теплый оранжевый цвет */
    font-size: 24px;      /* Размер иконки */
    line-height: 1;       /* Убирает лишние отступы строк */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.wo_page_hdng_innr2 .create-page-btn:hover {
    color: #d49f5e;       /* Чуть темнее при наведении для контраста */
    transform: scale(1.1);/* Легкое увеличение */
}
.post.publisher-box .sun_pub_mid_foot{
    display:none;
}

.pub-focus .post.publisher-box .sun_pub_mid_foot{
    display:flex;
    justify-content: flex-start;
}
.chat-container {
    display: none;
}

.latest-memorial-pages-block {
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 15px;
}

.latest-memorial-pages-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 0 6px;
}

.latest-memorial-pages-list::-webkit-scrollbar {
    display: none;
}

.latest-memorial-card {
    position: relative;
    flex: 0 0 108px;
    width: 110px;
    text-align: center;
}

.latest-memorial-card__photo {
    display: block;
    width: 110px;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f4f4;
    text-decoration: none;
}

.latest-memorial-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-memorial-card__author {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -18px;
    z-index: 5;
    text-decoration: none;
    line-height: 0;
}

.latest-memorial-card__author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #fff;
    box-shadow: 0 0 0 2px #fff;
}

.latest-memorial-card__info {
    margin-top: 8px;
}

.latest-memorial-card__name {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    min-height: 30px;
}

.latest-memorial-card__name span {
    display: block;
}

.latest-memorial-card__years {
    margin-top: 6px;
    font-size: 14px;
    color: #6f6f6f;
    line-height: 1.2;
}
.memorial-card{
    display: flex;
    align-items: flex-start;
    align-items: stretch;
    gap: 25px;
    padding: 20px;
    background: linear-gradient(58deg, #ffe8c9 0%, #e0f6ff 100%);
    margin-top: 12px;
    border-radius: 16px;
    position: relative;
}
.memorial-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 100%;
}
.memorial-actions {
    margin-top: auto;
    padding-top: 16px;
}
.memorial-card-icon {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 64px;
    height: 64px;
    z-index: 3;
    pointer-events: none;
}

.memorial-card-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
    border-radius: 0 !important;
}

.memorial-photo img{
    width:230px;
    height:300px;
    object-fit:cover;
    border-radius:15px;
}

.memorial-info {
    display: flex;
    flex-direction: column;
}

.memorial-name a {
    font-size:20px;
    font-weight:600;
    color:#000;
}
.memorial-name a:hover {
    color:#e8b777;
    text-decoration:none;
    transition: all .2s ease;
}

.memorial-years{
    font-size:18px;
    color:#777;
    margin-top:2px;
    font-weight: 600;
}

.memorial-stats{
    margin-top: 6px;
    font-size: 15px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 6px;
}

.memorial-button {
    display: inline-flex;
    margin-top: 10px;
    padding: 0 18px;
    background: #000;
    color: #e8b777;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    min-height: 42px;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.memorial-button:hover, .memorial-button:focus {
    color:#ffffff;
    text-decoration: none;
    transition: all .2s ease;
}
.custom-toggle-setting-user-post {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0 0;
    background-color: #f0f2f5;
    border-radius: 10px;
    padding: 0 15px;
    height: 50px;
}
.custom-toggle-setting-user-post label {
    font-size: 15px;
}
.setting-user-post-text {
    padding: 10px;
}
.setting-user-post-text p {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}
.memorial-bio{
    margin: 15px 0;
    font-size: 15px;
    color: #000;
    line-height: 1.5;
    background: #fffbfa;
    border: 1px solid #ecddd4;
    border-radius: 12px;
}
.comment-author-title .fas {
    font-size: 20px;
    color: #e8b777;
}
.comment-author-title {
    background: #fff;
    color: #777;
    padding: 7px 10px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #ecddd4;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-author {
    padding: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #000;
}
.friends-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 !important;
}
.friends-grid:has(.empty_state) {
    display: block;
}

.friends-grid > .user_list {
    width: calc(50% - 8px);
    max-width: calc(50% - 8px);
    float: none;
    padding: 0;
}

@media (min-width: 1200px) {
    .friends-grid > .user_list {
        width: calc(33.333333% - 10.666px);
        max-width: calc(33.333333% - 10.666px);
    }
}

.relatives-list {
    background-color: #f0f2f5;
}
.relatives-list .cool-style-album {
    margin: 0;
}
.popular_posts_hdr > h2 img {
    width: 45px;
    height: 45px;
    background: #f6f6f6;
    border-radius: 60px;
    padding: 9px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}



.memorial-top-tabs {
    border-radius: 18px;
    padding: 18px 20px 16px;
    margin-bottom: 15px;
    margin-top: 0;
}

.memorial-tabs-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    border-bottom: 0;
}

.memorial-tab-btn {
    background: #fff;
    border: none;
    padding: 4px 12px;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
    border-radius: 20px;
}
.memorial-tab-btn:hover {
    background: #f0f2f5;
    color: #111;
}

.memorial-tab-btn.active {
    background: #f0f2f5;
    color: #111;
}
.memorial-tab-btn.active:hover {
    background: #f0f2f5;
    color: #111;
}

.memorial-tab-panel {
    display: none;
}

.memorial-tab-panel.active {
    display: block;
}

.memorial-info-line {
    margin-bottom: 6px;
    color: #222;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .memorial-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 6px;
        margin-bottom: 18px;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .memorial-tabs-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .memorial-tabs-nav .memorial-tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}


.memorial-show-reason-btn-cause {
    color: #0066cc;
    font-size: 15px;
    background: none;
    border: 0;
    text-decoration: underline;
}

.memorial-more-btn,
.memorial-show-reason-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    border: none;
    border-radius: 999px;
    background: #eef0f2;
    color: #777;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: .2s ease;
}

.memorial-more-btn:hover,
.memorial-show-reason-btn:hover {
    background: #e3e6e8;
    color: #444;
}

.memorial-tooltip-box {
    display: inline-block;
    margin-left: 8px;
    color: #555;
    font-size: 14px;
}

.memorial-hidden-reason {
    display: inline-block;
    margin-left: 4px;
    color: #cd964e;
    font-size: 15px;
}

.memorial-tab-text {
    color: #444;
    font-size: 16px;
    line-height: 1.7;
    white-space: normal;
}

.memorial-tab-empty {
    color: #999;
    font-size: 15px;
}


.memorial-info-card{
background:#fff;
padding:20px;
border-radius:10px;
margin-bottom:20px;
}

.memorial-info-row{
display:flex;
padding:10px 0;
}

.memorial-info-row:last-child{
border-bottom:none;
}

.memorial-info-label{
width:230px;
font-weight:600;
color:#666;
}

.memorial-info-value{
flex:1;
color:#222;
}
.memorial-info-header{
display:flex;
align-items:center;
justify-content:space-between;
margin-bottom:18px;
padding-bottom:12px;
border-bottom:1px solid #eee;
}

.memorial-info-title{
font-size:18px;
font-weight:600;
color:#222;
}

.memorial-info-close{
display:inline-flex;
align-items:center;
gap:10px;
font-size:14px;
color:#777;
background:#f5f5f5;
padding:6px 12px;
border-radius: 20px;
text-decoration:none;
transition:all .15s ease;
}

.memorial-info-close:hover{
background:#ececec;
color:#333;
text-decoration: none;
}

.memorial-page-name{
    font-size:20px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:6px;
}

.memorial-badge{
    color:#d4a017;
}

.memorial-dates{
    font-size: 18px;
    color: #777;
    margin: 2px 0;
    font-weight: 500;
}

.page-profile-container {
    padding: 0;
    border-radius: 16px;
    margin-bottom: 25px;
}
.page-profile-container .card{border-radius:16px; box-sizing:border-box;}
.page-profile-container .card.hovercard{position:relative;padding-top:0;overflow:hidden}
.wo_user_profile .page-profile-container .card.hovercard {overflow: visible;}
.page-profile-container .card.hovercard .cardheader{background: #fff;
    background-size: cover;
    max-height: 100px;
    min-height: 100px;
    position: relative;
    height: 100px;}

.wo_user_profile .page-profile-container .card.hovercard .cardheader {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.wo_event_profile .page-profile-container .card.hovercard {box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);border-radius: 15px;margin-bottom: 25px;}
.wo_event_profile .page-profile-container .card.hovercard .cardheader {position: relative;max-height: inherit;}
.wo_page_profile .page-profile-container .card{margin-bottom:0;border-radius: 16px;}
.wo_page_profile .page-profile-container .card.hovercard .cardheader{max-height:313.3px;min-height:313.3px}
.wo_group_profile .page-profile-container .card {
    border-radius: 15px;
}
@media (max-width: 480px) {
.wo_page_profile .page-profile-container .card.hovercard .cardheader {
    min-height: 120px;
}
}
.wo_page_profile .page-info-cont {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.modal .modal-footer .btn.btn-mat {
    box-shadow: none !important;
    border-radius: 30px;
    line-height: 39px;
    font-style: normal;
    font-weight: 500;
    padding: 0 20px;
    height: 40px;
    margin-top: 20px;
}

.cardheader.user-cover {
    position: relative;
}

.memorial-cover-favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
}

.memorial-cover-favorite-btn .page-like-btn {
    display: inline-block;
}

/* === Блок кнопки письма и tooltip === */
.memorial-message-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    background-color: #e8b777;
    border-radius: 50px;
    height: 40px;
    padding: 0 10px 0 0;
}

.memorial-message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    box-shadow: none !important;
    transition: all 0.22s ease;
}

.memorial-message-btn:hover {
    transform: translateY(-1px);
}

.memorial-message-btn .fa-dove {
    font-size: 22px;
    opacity: 0.9;
}

.memorial-help-btn {
    color: #f7d5a9;
    font-size: 20px !important;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: 0;
    margin: 2px 0 0 !important;
    padding: 0 10px !important;
}
.wo_page_profile .memorial-message-btn:hover {
    background-color: transparent;
}

.memorial-help-btn:hover,
.memorial-help-btn.active {
    transform: translateY(-1px);
}

.memorial-help-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 30px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(28, 39, 60, 0.14);
    padding: 18px 18px 16px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
    
.memorial-help-tooltip:before {
    content: "";
    position: absolute;
    top: -9px;
    left: 132px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    transform: rotate(45deg);
}
.memorial-help-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); }

.memorial-help-tooltip-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #1f2430;
    text-align: left;
}

.memorial-help-tooltip-text {
    font-size: 14px;
    line-height: 1.6;
    color: #59606b;
    text-align: left;
}

/* === Модалка письма === */
.memorial-letter-modal {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
}

.memorial-letter-modal .modal-header {
    position: relative;
    padding: 0 24px 20px;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(to bottom, #ffffff, #fcfcfd);
}

.memorial-letter-modal .modal-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2430;
}

.memorial-letter-modal .modal-header .close {
    position: absolute;
    top: 0;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f6f8fa;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    font-size: 14px;
}

.memorial-letter-modal .modal-header .close:hover {
    background: #eef2f6;
    color: #1f2937;
}
.memorial-message-warning {
    font-size: 12px;
    color: #7a828f;
    font-weight: 300;
}
.memorial-letter-modal .modal-header .close svg {
    width: 18px;
    height: 18px;
}

.memorial-letter-modal .modal-body {
    padding: 20px 24px 14px;
    background: #ffffff;
}

.memorial-letter-textarea {
    resize: none;
    min-height: 240px;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 18px 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #2b2f38;
    background: #fcfdff;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.memorial-letter-textarea::placeholder {
    color: #98a1ad;
    line-height: 1.65;
}

.memorial-letter-textarea:focus {
    border-color: #cfd8e3;
    background: #ffffff;
}

.memorial-message-note {
    min-height: 22px;
    font-size: 13px;
    line-height: 1.5;
    color: #7a828f;
}

.memorial-letter-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px 24px;
    border-top: none;
    background: #ffffff;
}

.memorial-send-btn {
    min-width: 180px;
    height: 46px !important;
    line-height: 46px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    transition: all 0.22s ease;
    background-color: #e8b777;
}
.alert {
    margin-bottom: 10px !important;
}
.home-announcement .alert {
    margin-bottom: 15px !important;
}
.home-announcement .wow_content {
    background-color: #fbf4e4;
    border: 1px solid #dbcbb8;
}
.wow_mat_mdl .modal-footer {
    padding: 0 !important;
}

.memorial-send-btn:hover,
.memorial-send-btn:focus {
    background-color: #daab6d !important;
}

/* === Общие кнопки профиля === */
.wo_page_profile .options-buttons .btn {
    box-shadow: none !important;
    border: none;
    min-width: 64px;
    line-height: 40px;
    padding: 0 !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    transition: background .4s cubic-bezier(.25, .8, .25, 1), box-shadow 280ms cubic-bezier(.4, 0, .2, 1), transform .2s ease;
    font-weight: 500;
    margin: 0 !important;
}

.wo_page_profile .options-buttons .btn:hover {
    transform: translateY(-1px);
}
.memorial-letter-starters {
    margin-top: 16px;
}

.memorial-letter-starters-title {
    font-size: 13px;
    color: #7a828f;
    margin-bottom: 8px;
}

.memorial-letter-starter:hover {
    background: #eef2f7;
}
.memorial-letter-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0;
}

.memorial-letter-tool-btn {
	height: 36px;
	padding: 0 14px;
	border: 1px solid #e3e7ee;
	border-radius: 999px;
	background: #f8fafc;
	color: #4f5b67;
	font-size: 14px;
	font-weight: 500;
	line-height: 34px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.memorial-letter-tool-btn .fa-regular {
    margin-right: 5px;
}

.memorial-letter-tool-btn:hover,
.memorial-letter-tool-btn.active {
	background: #eef3f8;
	border-color: #d5dde7;
	color: #253040;
}

.memorial-letter-panel {
	display: none;
	flex-direction: column;
	margin-top: 14px;
	padding: 16px;
	border: 1px solid #e8edf3;
	border-radius: 16px;
	background: #fbfcfe;
	margin-bottom: 10px;
}

.memorial-letter-panel.active {
	display: flex;
}

.memorial-letter-panel-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #1f2430;
}

.memorial-letter-panel-text {
	font-size: 14px;
	line-height: 1.7;
	color: #5b6470;
}

.memorial-letter-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.memorial-letter-panel-close {
    border: 0;
    background: transparent;
    color: #5b6470;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-end;
    opacity: 0.6;
}
.memorial-letter-panel-close svg {
    width: 30px;
    height: 30px;
}

.memorial-letter-panel-close:hover {
	opacity: 1;
}

.memorial-letter-starters-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}


.memorial-letter-starter {
	display: block;
	width: 100%;
	text-align: left;
	padding: 11px 13px;
	border: 1px solid #e3e8ef;
	border-radius: 12px;
	background: #ffffff;
	color: #3e4753;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	transition: all 0.18s ease;
}

.memorial-letter-starter:hover {
	background: #f6f9fc;
	border-color: #d7dee8;
}

@media (max-width: 767px) {
	.memorial-letter-tools {
		flex-direction: column;
	}

	.memorial-letter-tool-btn,
	.memorial-letter-panel-close {
		text-align: center;
	}
}

/* === Адаптив === */
@media (max-width: 767px) {
    .memorial-message-action {
        width: 100%;
        justify-content: flex-start;
    }

    .memorial-help-tooltip {
        right: auto;
        left: 0;
        width: 100%;
        min-width: 260px;
    }

    .memorial-help-tooltip:before {
        right: auto;
        left: 16px;
    }

    .memorial-letter-modal .modal-title {
        font-size: 19px;
        text-align: left;
    }

    .memorial-letter-modal .modal-body,
    .memorial-letter-footer,
    .memorial-letter-modal .modal-header {
        padding-left: 0;
        padding-right: 0;
    }

    .memorial-letter-textarea {
        min-height: 220px;
        font-size: 14px;
    }

    .memorial-send-btn {
        width: 100%;
        min-width: 100%;
    }
}

.memorial-done-dialog {
	width: min(calc(100vw - 32px), 468px);
	max-width: 468px;
	margin: 60px auto;
}

.memorial-done-content {
	position: relative;
	overflow: hidden;
	border: none;
	border-radius: 50%;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	background: url("/upload/photos/dove.webp") no-repeat center center;
	background-size: cover;
	box-shadow: 0 24px 70px rgba(33, 37, 41, 0.18);
}

/* Мягкое затемнение/подложка снизу, чтобы текст читался */
.memorial-done-content::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	border-radius: 50%;
	background: radial-gradient(
		circle at 50% 86%,
		rgba(255, 255, 255, 0.56) 0%,
		rgba(255, 255, 255, 0.34) 18%,
		rgba(255, 255, 255, 0) 42%
	);
}

.memorial-done-inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 62px;
	z-index: 3;
	text-align: center;
	padding: 0 46px;
}

.memorial-done-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 600;
	color: #6f9fc4;
	text-shadow: 0 1px 8px rgba(255, 255, 255, 0.75);
}

/* Контейнер частиц — теперь занимает всю модалку */
.memorial-done-burst {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
	border-radius: 50%;
}

/* Точки вместо прямоугольников */
.memorial-burst-dot {
	position: absolute;
	left: var(--left);
	top: var(--top);
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	background: var(--color);
	opacity: 0;
	box-shadow: 0 0 var(--glow) var(--color);
	transform: translate(-50%, -50%) scale(0.45);
	animation: memorialDust 1.9s ease-out forwards;
	animation-delay: var(--delay);
}

/* Частицы распределены по всей модалке, а не стартуют из одной точки */
.memorial-burst-dot.dot-1  { --left: 50%; --top: 22%; --size: 5px;  --glow: 12px; --color: rgba(255, 235, 176, 0.70); --dx: -18px; --dy: -42px; --delay: .08s; }
.memorial-burst-dot.dot-2  { --left: 58%; --top: 28%; --size: 3px;  --glow: 10px; --color: rgba(255, 255, 255, 0.78); --dx: 26px;  --dy: -36px; --delay: .16s; }
.memorial-burst-dot.dot-3  { --left: 42%; --top: 31%; --size: 4px;  --glow: 11px; --color: rgba(255, 226, 151, 0.58); --dx: -32px; --dy: -24px; --delay: .20s; }
.memorial-burst-dot.dot-4  { --left: 66%; --top: 38%; --size: 6px;  --glow: 13px; --color: rgba(255, 255, 255, 0.58); --dx: 34px;  --dy: -8px;  --delay: .11s; }

.memorial-burst-dot.dot-5  { --left: 34%; --top: 42%; --size: 3px;  --glow: 9px;  --color: rgba(255, 241, 202, 0.60); --dx: -38px; --dy: -6px;  --delay: .26s; }
.memorial-burst-dot.dot-6  { --left: 49%; --top: 45%; --size: 7px;  --glow: 15px; --color: rgba(255, 225, 145, 0.52); --dx: -6px;  --dy: -26px; --delay: .14s; }
.memorial-burst-dot.dot-7  { --left: 57%; --top: 48%; --size: 4px;  --glow: 11px; --color: rgba(255, 255, 255, 0.68); --dx: 18px;  --dy: -22px; --delay: .30s; }
.memorial-burst-dot.dot-8  { --left: 70%; --top: 52%; --size: 3px;  --glow: 9px;  --color: rgba(201, 224, 239, 0.62); --dx: 36px;  --dy: 12px;  --delay: .22s; }

.memorial-burst-dot.dot-9  { --left: 30%; --top: 56%; --size: 5px;  --glow: 12px; --color: rgba(255, 255, 255, 0.56); --dx: -42px; --dy: 14px;  --delay: .18s; }
.memorial-burst-dot.dot-10 { --left: 45%; --top: 61%; --size: 3px;  --glow: 9px;  --color: rgba(255, 231, 168, 0.54); --dx: -18px; --dy: 30px;  --delay: .34s; }
.memorial-burst-dot.dot-11 { --left: 55%; --top: 63%; --size: 5px;  --glow: 12px; --color: rgba(255, 255, 255, 0.64); --dx: 18px;  --dy: 34px;  --delay: .27s; }
.memorial-burst-dot.dot-12 { --left: 64%; --top: 67%; --size: 4px;  --glow: 10px; --color: rgba(255, 220, 139, 0.48); --dx: 38px;  --dy: 30px;  --delay: .38s; }

.memorial-burst-dot.dot-13 { --left: 39%; --top: 72%; --size: 4px;  --glow: 10px; --color: rgba(255, 255, 255, 0.46); --dx: -28px; --dy: 38px;  --delay: .24s; }
.memorial-burst-dot.dot-14 { --left: 51%; --top: 75%; --size: 6px;  --glow: 14px; --color: rgba(255, 235, 176, 0.44); --dx: 0px;   --dy: 44px;  --delay: .32s; }
.memorial-burst-dot.dot-15 { --left: 60%; --top: 78%; --size: 3px;  --glow: 8px;  --color: rgba(201, 224, 239, 0.48); --dx: 26px;  --dy: 42px;  --delay: .41s; }

.memorial-burst-dot.dot-16 { --left: 25%; --top: 47%; --size: 2px;  --glow: 7px;  --color: rgba(255, 255, 255, 0.48); --dx: -34px; --dy: -18px; --delay: .45s; }
.memorial-burst-dot.dot-17 { --left: 75%; --top: 43%; --size: 2px;  --glow: 7px;  --color: rgba(255, 240, 198, 0.46); --dx: 34px;  --dy: -20px; --delay: .48s; }
.memorial-burst-dot.dot-18 { --left: 50%; --top: 53%; --size: 3px;  --glow: 9px;  --color: rgba(255, 255, 255, 0.58); --dx: 0px;   --dy: -40px; --delay: .52s; }

#memorial_message_done.is-animating .memorial-burst-dot {
	animation-name: memorialDust;
}

@keyframes memorialDust {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.45);
	}

	14% {
		opacity: 1;
	}

	70% {
		opacity: 0.75;
	}

	100% {
		opacity: 0;
		transform: translate(
			calc(-50% + var(--dx)),
			calc(-50% + var(--dy))
		) scale(1.25);
	}
}

@media (max-width: 767px) {
	.memorial-done-dialog {
		width: min(calc(100vw - 24px), 468px);
		margin: 56px auto;
	}

	.memorial-done-inner {
		bottom: 25px;
		padding: 0 86px;
	}

	.memorial-done-title {
		font-size: 15px;
	}
}

.memorial-cover-favorite-btn .page-like-btn .btn-active {
    background: #fff;
    border: none !important;
    height: 38px;
}
.memorial-cover-favorite-btn .page-like-btn .btn {
    background: #fff;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
}

.memorial-cover-favorite-btn .save-heart {
    color: #666;
    font-weight: 600;
    padding-right: 5px;
    line-height: 38px;
    font-size: 14px;
}


@media (max-width: 767px) {
    .card.hovercard .cardheader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
    .wo_page_profile .page-info-cont {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px 10px;
        margin: -35px 0 0;
    }

    .wo_page_profile .page-info-cont .first_row {
        display: flex;
        align-items: flex-end;
        width: 100%;
        padding: 0;
        float: none;
    }

     .wo_page_profile .page-info-cont .first_row > .user-avatar {
        flex: 0 0 150px;
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        height: 185px !important;
        margin: -54px 12px 0 0;
        float: none;
    }

    .wo_page_profile .page-info-cont .first_row .user-avatar img,
    .wo_page_profile .page-info-cont .first_row .memorial-avatar-frame-inner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .wo_page_profile .page-info-cont .info {
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
    }
.wo_page_profile .first_row .title {
    margin: 0;
}
    .wo_page_profile .page-info-cont .memorial-page-name {
        text-align: left;
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .wo_page_profile .page-info-cont .memorial-page-name a {
        display: block;
        font-size: 16px;
        line-height: 1.25;
        font-weight: 700;
        word-break: break-word;
    }
.memorial-cover-favorite-btn .nk-heart-text, .neb-heart-locked-btn-profile span {
    display: none;
}
    .wo_page_profile .page-info-cont .memorial-dates {
        margin-top: 6px;
        font-size: 15px;
        line-height: 1.3;
        text-align: left;
    }

    .wo_page_profile .page-info-cont .last_row {
        width: 100%;
        margin: 14px 0 0;
        padding: 0;
        text-align: center;
        order: 2;
    }

    .wo_page_profile .page-info-cont .options-buttons,
    .wo_page_profile .page-info-cont .memorial-options-buttons {
        width: 100%;
    }

    .wo_page_profile .page-info-cont .memorial-message-action {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .wo_page_profile .page-info-cont .memorial-message-btn {
        width: 100%;
        max-width: 320px;
        min-height: 40px;
        justify-content: center;
    }

    .wo_page_profile .page-info-cont > .col-md-12 {
        width: 100%;
        padding: 0;
        margin: 14px 0 0;
        order: 3;
        position: static !important;
    }

    .wo_page_profile .page_navbar {
        position: static !important;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .wo_page_profile .page_navbar ul {
        display: flex;
        align-items: center;
        gap: 8px;
        width: max-content;
        min-width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .wo_page_profile .page_navbar ul li {
        flex: 0 0 auto;
        margin: 0;
    }

    .wo_page_profile .page_navbar ul li a,
    .wo_page_profile .page_navbar ul li .dropdown > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        background: #fff;
        color: #333 !important;
        font-size: 14px;
        line-height: 1;
        text-decoration: none !important;
        white-space: nowrap;
    }

    .wo_page_profile .page_navbar ul li .dropdown > a svg {
        width: 18px;
        height: 18px;
        margin-right: 4px;
    }

}



.memorial-candles-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(145deg, #321f07 2%, #8f5509 63%, #e8b777 115%);
    border-radius: 18px;
    padding: 8px 20px;
    margin-bottom: 15px;
    overflow: hidden;
}
.candles-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.memorial-candles-left {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 150px;
    min-height: 58px;
    padding: 6px 14px;
}

.memorial-candles-left::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    transform: translateX(-50%);
    width: 146px;
    height: 9px;
    background: linear-gradient(180deg, #a35c00 0%, #ffb75a 100%);
    border-radius: 2px;
    pointer-events: none;
    box-shadow: inset 0 -2px 0 rgb(235 194 134);
}

.memorial-candles-left-empty::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 47px;
    height: 70px;
    background-image: url('/upload/photos/candle.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(-2px -31px 16px rgba(245, 206, 12, 0.7)) saturate(75%);
}

.memorial-candles-left-empty .memorial-candle-flame,
.memorial-candles-left-empty .memorial-candle-body,
.memorial-candles-left-empty::before {
    opacity: 0;
    animation: none;
    filter: none;
}

.memorial-candle {
    --candle-height: 30px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 14px;
    height: 46px;
    flex: 0 0 14px;
}


.memorial-candle-body {
    position: relative;
    display: block;
    width: 11px;
    height: var(--candle-height);
    background: radial-gradient(circle at 45% 25%, #f9cf70 17%, #9d6220 86%);
    border-radius: 3px 3px 2px 2px;
    box-shadow: 3px -1px 3px rgb(88 51 4 / 67%), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.memorial-candle-body::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 1px;
    height: 5px;
    background: #95723e;
    transform: translateX(-50%);
    border-radius: 2px;
}

.memorial-candle-flame {
    position: absolute;
    left: 50%;
    bottom: calc(var(--candle-height) - 1px);
    width: 6px;
    height: 17px;
    transform: translateX(-50%);
    transform-origin: center bottom;
    background: radial-gradient(circle at 50% 35%, #fff7bf 0%, #ffd86a 35%, #ff9f1a 70%, rgba(255,159,26,0) 100%);
    border-radius: 50%;
    animation: memorialFlameFlicker 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 184, 62, 0.55))
        drop-shadow(0 0 8px rgba(255, 184, 62, 0.35))
        drop-shadow(0 0 14px rgba(255, 140, 0, 0.18));
}

.memorial-candle:nth-child(2) .memorial-candle-flame {
    animation-delay: .2s;
}

.memorial-candle:nth-child(3) .memorial-candle-flame {
    animation-delay: .45s;
}

.memorial-candle:nth-child(4) .memorial-candle-flame {
    animation-delay: .15s;
}

.memorial-candle:nth-child(5) .memorial-candle-flame {
    animation-delay: .35s;
}

.memorial-candle:nth-child(6) .memorial-candle-flame {
    animation-delay: .55s;
}

.memorial-candle-new {
    animation: place-candle-down 0.6s ease-in-out 0.1s both !important;
}

.memorial-candle-new .memorial-candle-flame {
    opacity: 0;
    animation: 
        memorialFlameAppear 0.4s ease-out 0.7s forwards, 
        memorialFlameFlicker 1.8s ease-in-out 1.1s infinite !important;
}

.memorial-candles-center {
    flex-shrink: 0;
    min-width: 140px;
}

.memorial-light-candle-btn {
    position: relative;
    overflow: hidden;
    min-width: 140px;
    height: 40px;
    border-radius: 999px !important;
    background: #fff;
    border: 0;
    color: #cd964e;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 0 8px #e8b777 !important;
    transition: all .2s ease;
}
.memorial-light-candle-btn.is-burning {
    background: #9d724c;
    border: 0;
    box-shadow: none !important;
    opacity: 1;
}

.memorial-light-candle-btn.is-burning:hover,
.memorial-light-candle-btn.is-burning:focus {
    background: #b1835a !important;
    border: 0;
    box-shadow: none;
}

.memorial-light-candle-btn.is-burning .memorial-light-candle-btn-text {
    color: #f7d5a9;
}

.memorial-light-candle-btn:hover,
.memorial-light-candle-btn:focus {
    background: #fff8ef !important;
    color: #c67f1a !important;
    border-color: #c98a2a !important;
}

.memorial-light-candle-btn .memorial-light-candle-btn-text {
    display: inline-block;
    min-width: 110px;
    text-align: center;
    white-space: nowrap;
}

.memorial-light-candle-btn.is-warning {
    background: #9d724c !important;
    color: #9c5d08 !important;
}

.memorial-light-candle-btn.is-error {
    background: #fff3f3 !important;
    color: #b94a48 !important;
}

.memorial-candles-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.memorial-candles-right-hidden {
    display: none;
}

.memorial-candles-users-title {
    font-size: 14px;
    color: #f7d5a9;
    white-space: nowrap;
}

.memorial-candles-users-list {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
}

.memorial-candle-user,
.memorial-candle-total {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    overflow: hidden;
    background: #fff;
}

.memorial-candle-user:first-child,
.memorial-candle-total:first-child {
    margin-left: 0;
}

.memorial-candle-user {
    transition: transform .25s ease, opacity .25s ease;
}

.memorial-candle-user img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memorial-candle-total {
    background: #e8b777;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.memorial-candle-user-new {
    animation: memorialCandleUserAppear .7s ease;
}

@keyframes memorialFlameFlicker {
    0% {
        transform: translateX(-50%) scale(1) rotate(-2deg);
        opacity: .95;
    }
    25% {
        transform: translateX(-50%) scale(1.08, 0.96) rotate(2deg);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(0.95, 1.08) rotate(-1deg);
        opacity: .92;
    }
    75% {
        transform: translateX(-50%) scale(1.05, 0.94) rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1) rotate(-2deg);
        opacity: .95;
    }
}

@keyframes place-candle-down {
    0% {
        transform: translateY(-10px); 
        opacity: 0;                   
    }
    50% {
        opacity: 0.8;                 
    }
    100% {
        transform: translateY(0);    
        opacity: 1;                   
    }
}

@keyframes memorialFlameAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.4);
    }
    60% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes memorialCandleUserAppear {
    0% {
        opacity: 0;
        transform: scale(.8);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .memorial-candles-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .memorial-candles-right {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .page-profile-container {
    margin-bottom: 5px;
}
    .memorial-candles-card {
        padding: 10px;
        gap: 10px;
    }
.memorial-candles-center {
    min-width: auto;
}
.memorial-candles-left-empty::after {
    bottom: 8px;
    left: 12px;
    width: 47px;
    height: 50px;
}
    .memorial-light-candle-btn {
        min-width: 100%;
    }

    .memorial-candles-right {
        width: 100%;
        gap: 10px;
    }

    .memorial-candles-users-title {
        width: 100%;
    }
}
.memorial-candle:nth-child(odd) .memorial-candle-flame {
    animation-duration: 1.6s;
}

.memorial-candle:nth-child(even) .memorial-candle-flame {
    animation-duration: 2.1s;
}

.tooltip-inner {
    max-width: 210px;
}

.memorial-sidebar-people {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-right: -15px;
    margin-bottom: 15px;
}

.memorial-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
}

.memorial-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    line-height: 1.2;
}

.memorial-people-list {
    display: flex;
    flex-wrap: wrap;
}


.all-onnections {
    text-align: right;
    font-size: 14px;
    padding: 0 20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.all-onnections i {
    font-size: 12px;
    margin-top: 2px;
    color: #9d9d9d;
}
.memorial-person-card {
    width: 75px;
    text-align: center;
}

.memorial-person-card-author {
    width: 75px;
}

.memorial-person-role {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: #888;
    word-break: break-word;
}

.memorial-person-avatar-wrap {
    display: block;
    width: 58px;
    height: 58px;
    margin: 0 auto 8px;
    border-radius: 50px;
    background: #e8e8eb;
    text-decoration: none !important;
    position: relative;
}

.memorial-person-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.memorial-person-name {
    font-size: 12px;
    line-height: 1.25;
    color: #111;
    word-break: break-word;
}

.memorial-person-name a {
    color: #111;
    text-decoration: none !important;
}

.memorial-person-name a:hover {
    color: #111;
    text-decoration: none !important;
}

.memorial-sidebar-btn-wrap {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-left: -20px;
    margin-right: -20px;
}

.memorial-sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #cd964e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.connection-edit-btn, .connection-del-btn {
    display: inline-flex;
    color: #e8b777;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.memorial-sidebar-btn:hover {
    opacity: 0.92;
    text-decoration: none !important;
}

.memorial-sidebar-btn-disabled {
    cursor: default;
}

.memorial-sidebar-btn-disabled:hover {
    opacity: 1;
}

@media (max-width: 991px) {
    .memorial-sidebar-title {
        font-size: 14px;
    }

    .memorial-sidebar-card {
        border-radius: 10px;
        padding: 10px;
    }
    .memorial-sidebar-people {
      margin-right: 0;
}
}

/* =========================================================
   Модалка "Кем вы приходитесь?"
   ========================================================= */

#addConnectionModal .modal-dialog {
    max-width: 560px;
}

#addConnectionModal .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(20, 28, 45, 0.18);
    background: #ffffff;
}

#addConnectionModal .modal-header {
    position: relative;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #edf0f5;
    background: #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#addConnectionModal .modal-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #1f2a37;
}

#addConnectionModal .close {
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #667085;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    opacity: 1;
    box-shadow: none;
    transition: all 0.2s ease;
}


#addConnectionModal .modal-body {
    padding: 28px;
    background: #ffffff;
}

/* Текст шагов */
#addConnectionModal #step-group > p,
#addConnectionModal #step-select > p {
    margin-bottom: 22px !important;
    font-size: 16px;
    line-height: 1.55;
    color: #667085;
    font-weight: 500;
}

/* Контейнер кнопок выбора типа */
.button-connection {
    display: flex;
    gap: 14px;
    justify-content: center;
}

/* Главные кнопки выбора */
#addConnectionModal .conn-type-btn {
    position: relative;
    min-width: 210px;
    min-height: 154px;
    padding: 24px 18px 20px;
    border: 1px solid #e7ebf3;
    border-radius: 22px;
    background: #ffffff;
    color: #1f2a37;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(31, 42, 55, 0.05);
    transition: all 0.22s ease;
}

#addConnectionModal .conn-type-btn:hover,
#addConnectionModal .conn-type-btn:focus {
    border-color: #cfd7e6;
    background: #fbfcff;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(31, 42, 55, 0.10);
    outline: none;
}

#addConnectionModal .conn-type-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(31, 42, 55, 0.08);
}

/* Иконки в карточках */
#addConnectionModal .conn-type-btn i {
    display: block;
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1;
    color: #e8b777;
    transition: color 0.2s ease, transform 0.2s ease;
}

#addConnectionModal .conn-type-btn:hover i,
#addConnectionModal .conn-type-btn:focus i {
    color: #ffffff;
    transform: scale(1.06);
}

/* Убираем bootstrap-цветастость и делаем единый стиль */
#addConnectionModal .btn-outline-primary.conn-type-btn,
#addConnectionModal .btn-outline-success.conn-type-btn {
    color: #1f2a37;
    background: #ffffff;
    border-color: #e7ebf3;
}

#addConnectionModal .btn-outline-primary.conn-type-btn:hover,
#addConnectionModal .btn-outline-primary.conn-type-btn:focus,
#addConnectionModal .btn-outline-success.conn-type-btn:hover,
#addConnectionModal .btn-outline-success.conn-type-btn:focus {
    color: #111827;
    background: #e8b777;
    border-color: #cfd7e6;
}

/* Второй шаг */
#addConnectionModal #step-select {
    animation: memorialFadeIn 0.22s ease;
}

/* Селект */
#connection-type-select {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 1px solid #d7deea;
    border-radius: 16px;
    background-color: #fff;
    color: #1f2a37;
    font-size: 16px;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.2s ease;
    margin-bottom: 30px;
}

#connection-type-select:hover {
    border-color: #bec8d8;
}

#connection-type-select:focus {
    border-color: #9fb4d9;
    box-shadow: 0 0 0 4px rgba(82, 120, 190, 0.10);
    outline: none;
}

/* Кнопки Назад / Сохранить */
#addConnectionModal #step-select .text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#back-to-group,
#save-connection-btn {
    min-width: 142px;
    height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 46px;
    transition: all 0.2s ease;
    box-shadow: none;
}

/* Назад */
#back-to-group {
    border: 1px solid #d9e0eb;
    background: #f7f9fc;
    color: #475467;
}

#back-to-group:hover,
#back-to-group:focus {
    background: #eef2f7;
    border-color: #cbd5e1;
    color: #344054;
    outline: none;
}

/* Сохранить */
#save-connection-btn {
    border: 1px solid #1f2937;
    background: #1f2937;
    color: #ffffff;
}

#save-connection-btn:hover,
#save-connection-btn:focus {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    outline: none;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

/* Лоадер */
#conn-loader {
    padding: 18px 0 !important;
}

#conn-loader .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.22em;
    color: #98a2b3 !important;
}

/* Сообщение */
#conn-message {
    margin-top: 20px !important;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    box-shadow: none;
}

#conn-message.alert-success {
    background: #ecfdf3;
    border-color: #c7efd8;
    color: #067647;
}

#conn-message.alert-danger {
    background: #fef3f2;
    border-color: #f3c7c2;
    color: #b42318;
}

/* Подложка модалки */
.modal-backdrop.show {
    opacity: 0.55;
    background: rgba(15, 23, 42, 0.75);
}

/* Анимация появления */
#addConnectionModal.fade .modal-dialog {
    transform: translateY(16px) scale(0.98);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

#addConnectionModal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

/* Небольшая анимация появления содержимого */
@keyframes memorialFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 767px) {
    #addConnectionModal .modal-dialog {
        max-width: calc(100% - 20px);
        margin: 10px auto;
    }

    #addConnectionModal .modal-content {
        border-radius: 20px;
    }

    #addConnectionModal .modal-header {
        padding: 20px 20px 16px;
    }

    #addConnectionModal .modal-title {
        font-size: 18px;
        padding-right: 42px;
    }

    #addConnectionModal .modal-header .close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 24px;
    }

    #addConnectionModal .modal-body {
        padding: 20px;
    }

    #addConnectionModal .conn-type-btn {
        width: 100%;
        min-width: 100%;
        min-height: 132px;
        padding: 22px 16px 18px;
        border-radius: 18px;
        font-size: 16px;
    }

    #addConnectionModal .conn-type-btn i {
        font-size: 30px;
        margin-bottom: 12px;
    }

    #connection-type-select {
        height: 52px;
        border-radius: 14px;
        font-size: 15px;
    }

    #back-to-group,
    #save-connection-btn {
        width: 100%;
        min-width: 100%;
    }

    #addConnectionModal #step-select .text-center {
        gap: 10px;
    }
}



.memory-gallery-menu{
    position:relative;
}
.memory-gallery-dropdown{
    position:absolute;
    top:28px;
    right:0;
    min-width:220px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,0.12);
    padding:8px 0;
    display:none;
    z-index:20;
}
.memory-gallery-dropdown.show{
    display:block;
}
.memory-gallery-dropdown-item{
    width:100%;
    border:none;
    background:none;
    text-align:left;
    padding:10px 14px;
    font-size:14px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
}
.memory-gallery-dropdown-item:hover{
    background:#f8f8f8;
}
.memory-gallery-dropdown-item i{
    width:16px;
    text-align:center;
}
.memory-gallery-add-btn,
.memory-gallery-upload-btn{
    background:#f5efe7;
    border:none;
    padding:10px 16px;
    border-radius:10px;
    cursor:pointer;
    font-weight:500;
}
.memory-gallery-card{
    background:#fff;
    border-radius:16px;
    padding:16px;
    margin-right:-15px;
    margin-bottom:15px;
    position:relative;
}
.memory-gallery-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-left: -15px;
    margin-right: -15px;
    padding: 0 15px 10px;
}
.memory-gallery-title{
    font-weight: 500;
    font-size: 16px;
    color: #111;
    text-decoration: none;
}
.memory-gallery-title a:hover,
.memory-gallery-title a:focus {
    color: inherit;
    text-decoration: none;
}

.memory-gallery-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.memory-gallery-menu-btn img {
    width: 32px;
    display: block;
}

.memory-gallery-menu-btn.show img {
    content: url('/themes/sunshine/img/menu_click.png');
}

.memory-gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
}
.memory-gallery-photo{
    position:relative;
    border-radius:10px;
    overflow:hidden;
}
.memory-gallery-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    aspect-ratio:1/1;
    display:block;
}
.memory-gallery-more::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
}
.memory-gallery-count{
    position: absolute;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    white-space: nowrap;
    width: 97px;
    height: 97px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.memory-gallery-count:hover {
    color:#e8b777;
    text-decoration: none;
    
}
.memory-gallery-slideshow{
    text-align:center;
    margin-top:16px;
}
.memory-gallery-empty{
    padding:8px 0 4px;
}
.memory-gallery-empty-text{
    color: #9c9c9c;
    font-size: 14px;
    line-height: 1.5;
    margin: 30px 0;
    text-align: center;
    padding: 0 30px;
}
.memory-gallery-privacy-group{
    padding:6px 0;
    border-top:1px solid #f1f1f1;
    margin-top:4px;
}
.memory-gallery-privacy-option{
    width:100%;
    border:none;
    background:none;
    text-align:left;
    padding:10px 14px;
    font-size:14px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.memory-gallery-privacy-option:hover{
    background:#f8f8f8;
}
.memory-gallery-privacy-option.is-active{
    background:#f5efe7;
    font-weight:600;
}
.memory-gallery-privacy-option-left{
    display:flex;
    align-items:center;
    gap:10px;
}
.memory-gallery-privacy-check{
    opacity:0;
    transition:opacity .15s ease;
    color:#c79352;
}
.memory-gallery-privacy-option.is-active .memory-gallery-privacy-check{
    opacity:1;
}
.memory-gallery-privacy-current{
    color:#888;
    font-size:13px;
    margin-top:2px;
}
.memory-gallery-loading{
    position:absolute;
    inset:0;
    background:rgba(255,255,255,0.82);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:30;
    border-radius:16px;
}
.memory-gallery-loading.show{
    display:flex;
}
.memory-gallery-loading-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}
.memory-gallery-loading-spinner{
    width:34px;
    height:34px;
    border:3px solid #eadfce;
    border-top-color:#c79352;
    border-radius:50%;
    animation:memoryGallerySpin .8s linear infinite;
}
.memory-gallery-loading-text{
    font-size:14px;
    color:#7a6a58;
    font-weight:500;
}
@keyframes memoryGallerySpin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

.memory-gallery-actions{
    display:flex;
    gap:8px;
    margin-top:16px;
}

.memory-gallery-actions .memory-gallery-action-btn{
    flex:1 1 0;
    width:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#f0f2f5;
    border:none;
    padding:10px 14px;
    border-radius:50px;
    cursor:pointer;
    font-weight:500;
    text-align:center;
    font-size: 14px;
    text-decoration: none;
}

.memory-gallery-action-btn:hover,
.memory-gallery-action-btn:focus {
    text-decoration: none;
    background:#ebebeb;
}

.memory-gallery-actions .memory-gallery-slideshow-btn .fa-play,
.memory-gallery-add-btn .fa-image,
.memory-gallery-view-all-btn .fa-images{
    color:#e8b777;
    margin-right:0;
}

.memorial-full-gallery-list .photo-data a,
.memorial-full-gallery-list .photo-data a img {
    border-radius: 10px;
}

.memorial-full-gallery-list .photo-data:nth-child(3) {
    height: auto !important;
}

.memorial-full-gallery-list .photo-data:nth-child(3) a {
    padding-bottom: calc(200% + 16px) !important;
    height: 0 !important;
}

.memorial-full-gallery-list .photo-data:nth-child(3) img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memorial-gallery-full-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
}
.memorial-gallery-full-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: #222;
}
.memorial-gallery-full-header img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.memorial-gallery-back-btn {
display:inline-flex;
align-items:center;
gap:10px;
font-size:14px;
color:#777;
background:#f5f5f5;
padding:6px 12px;
border-radius: 20px;
text-decoration:none;
transition:all .15s ease;
}

.memorial-gallery-back-btn:hover {
background:#ececec;
color:#333;
text-decoration: none;
}

/* Небокрай: мобильная адаптация лайтбокса галереи памяти */
@media (max-width: 767px) {
    .memory-gallery-lightbox.is-open {
        z-index: 999999 !important;
    }
.memory-gallery-lightbox__content {
		padding: 0 !important;
	}
    .memory-gallery-lightbox__overlay {
        z-index: 1 !important;
    }

    .memory-gallery-lightbox__dialog {
        position: relative;
        z-index: 2 !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        height: calc(100vh - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        margin: 12px auto !important;
    }

    .memory-gallery-lightbox__content {
        width: 100% !important;
        height: calc(100% - 56px) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: pan-y;
    }

    .memory-gallery-lightbox__frame {
        width: 100% !important;
        height: 100% !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .memory-gallery-lightbox__image {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .memory-gallery-lightbox__nav {
        display: none !important;
    }

    .memory-gallery-lightbox__close {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    .memory-gallery-lightbox__footer {
        position: absolute !important;
        left: 0;
        right: 0;
        bottom: 16px;
        z-index: 5;
        pointer-events: none;
    }

    .memory-gallery-lightbox__counter {
        pointer-events: none;
    }
}


.nady .list4-group {
    box-shadow: none;
    border-radius: 16px;
    padding: 10px;
    background: #fff;
}
.add-photo-btn-galery {
    display: flex;
    justify-content: center;
}
.memorial-gallery-upload-btn {
    border-radius: 50px;
    height: 36px;
    padding: 0 16px;
}
.btn-end {
    display: flex;
    gap: 10px;
}

.memory-gallery-photo {
    cursor: pointer;
}

.memory-gallery-photo img {
    cursor: pointer;
}


.memory-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .22s ease, visibility .22s ease;
}

.memory-gallery-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.memory-gallery-lightbox__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.26);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.memory-gallery-lightbox__dialog {
	position: relative;
	z-index: 3;
	width: min(1500px, calc(100vw - 56px));
	height: min(750px, calc(100vh - 56px));
	display: flex;
	flex-direction: column;
	transform: scale(.975);
	opacity: 0;
	transition: transform .24s ease, opacity .24s ease;
	border-radius: 18px;
	overflow: hidden;
}

.memory-gallery-lightbox.is-open .memory-gallery-lightbox__dialog {
	transform: scale(1);
	opacity: 1;
}

.memory-gallery-lightbox__content {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	background: #000;
}

.memory-gallery-lightbox__frame {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: #000;
}

.memory-gallery-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

.memory-gallery-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 7;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: #7a7a7a;
	color: #333;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, opacity .18s ease;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.memory-gallery-lightbox__close:hover {
	background: #fff;
	transform: scale(1.04);
}

.memory-gallery-lightbox__close:active {
	transform: scale(.98);
}

.memory-gallery-lightbox__footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.memory-gallery-lightbox__counter {
	min-width: 74px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #333;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	letter-spacing: .02em;
}

.memory-gallery-lightbox__nav {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 5;
	width: 200px;
	border: 0;
	padding: 0;
	background: transparent;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: background .18s ease;
}

.memory-gallery-lightbox__nav--prev {
	left: 0;
	justify-content: flex-start;
	padding-left: 18px;
}

.memory-gallery-lightbox__nav--next {
	right: 0;
	justify-content: flex-end;
	padding-right: 18px;
}

.memory-gallery-lightbox__nav-icon {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	color: #333;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.memory-gallery-lightbox__nav:hover .memory-gallery-lightbox__nav-icon {
	transform: scale(1.06);
	color: #fff;
}

.memory-gallery-lightbox__nav:active .memory-gallery-lightbox__nav-icon {
	transform: scale(.97);
}

.memory-gallery-lightbox__nav.is-disabled {
	pointer-events: none;
	opacity: .28;
}

body.memory-gallery-lightbox-open {
	overflow: hidden;
}

/* Планшеты */
@media (max-width: 1199px) {
	.memory-gallery-lightbox__content {
		padding: 52px 72px 68px;
	}

	.memory-gallery-lightbox__nav {
		width: 96px;
	}

}

@media (max-width: 767px) {
	.memory-gallery-lightbox__dialog {
		width: calc(100vw - 16px);
		height: calc(100vh - 16px);
		border-radius: 14px;
	}

	.memory-gallery-lightbox__nav {
		width: 64px;
	}

	.memory-gallery-lightbox__nav--prev {
		padding-left: 8px;
	}

	.memory-gallery-lightbox__nav--next {
		padding-right: 8px;
	}

	.memory-gallery-lightbox__nav-icon {
		width: 42px;
		height: 42px;
		font-size: 18px;
	}

	.memory-gallery-lightbox__close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.memory-gallery-lightbox__footer {
		bottom: 14px;
	}

	.memory-gallery-lightbox__counter {
		font-size: 13px;
		padding: 8px 12px;
	}
}

.memorial-full-gallery-list .memory-gallery-photo {
    position: relative;
    overflow: hidden;
}

.memory-gallery-item-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
}

.memory-gallery-item-menu-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease, background .18s ease;
}

.memorial-full-gallery-list .memory-gallery-photo:hover .memory-gallery-item-menu-btn,
.memorial-full-gallery-list .memory-gallery-photo.is-menu-open .memory-gallery-item-menu-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.memory-gallery-item-menu-btn:hover {
    background: rgba(20, 20, 20, 0.9);
}

.memory-gallery-item-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    min-width: 140px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.memory-gallery-photo.is-menu-open .memory-gallery-item-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.memory-gallery-item-delete-btn {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b42318;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.memory-gallery-item-delete-btn:hover {
    background: #fff4f2;
}

.memory-gallery-photo.is-deleting {
    opacity: .45;
    pointer-events: none;
}

.p-delete {
    border-top: 1px solid #f0f2f5;
    margin-left: -13px;
    margin-right: -13px;
    padding: 0 13px;
}

.wow_sett_sidebar > ul > li.p-delete.active > a {
    background: none !important;
    color: #cd964e;
}

.wow_sett_sidebar > ul > li.p-delete > a {
    display: block;
    font-size: 14px;
    padding: 7px 5px;
    min-width: 88px;
    text-decoration: none;
    transition: background-color .4s cubic-bezier(.25,.8,.25,1);
    font-weight: 500;
    color: #e8b777;
    border-radius: 6px;
    margin: 5px 0;
}

.back-to-page {
    border-bottom: 1px solid #f0f2f5;
    margin-left: -13px;
    margin-right: -13px;
    padding: 0 13px;
}

.memorial-page-name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
}

.memorial-page-badges {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 2px;
	vertical-align: middle;
}

.memorial-page-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	line-height: 1;
	cursor: pointer;
}

.memorial-page-badge svg {
	display: block;
	width: 24px;
	height: 24px;
}

.wo_page_profile .page-info-cont .user-avatar .profile-avatar-changer,
.wo_page_profile .page-info-cont .user-avatar .wo_profile_pic_hover,
.wo_page_profile .page-info-cont .user-avatar .profile_avatar {
	display: none !important;
}

.memorial-avatar-frame-wrap {
	position: relative;
}

.memorial-avatar-frame-inner {
	position: relative;
	width: 100%;
	height: 100%;
}

.memorial-avatar-frame-inner img {
	position: relative;
	z-index: 1;
	display: block;
	width: 300px;
	height: 370px;
	object-fit: cover;
}

.memorial-avatar-frame-wrap.has-memorial-frame .memorial-avatar-frame-inner img {
	border-radius: 0 !important;
	border: 0 !important;
}

.memorial-avatar-frame-wrap:not(.has-memorial-frame) .memorial-avatar-frame-inner img {
	border-radius: 6%;
	border: 4px solid #f0f2f5;
}

.memorial-avatar-frame-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
}



.wo_profile_pic_hover .profile_avatar {
    border-radius: 50px;
}

.wo_page_profile .page-info-cont .user-avatar.has-memorial-frame img {
	border-radius: 0 !important;
	border: 4px solid #fff !important;
}


.memorial-design-page .memorial-design-tabs {
	display: flex;
    gap: 50px;
    border-bottom: 1px solid #f0f2f5;
    margin: 0 -40px 40px;
    padding: 0 40px 25px;
}
.memorial-design-page .memorial-design-tab {
	background: none;
	border: none;
	font-size: 16px;
	font-weight: 600;
	color: #000;
	padding: 0;
	cursor: pointer;
}
.memorial-design-page .memorial-design-tab.active {
	color: #d7a65a;
}
.memorial-design-tab-panel {
	display: none;
}
.memorial-design-tab-panel.active {
	display: block;
}
.memorial-design-grid {
	display: grid;
	gap: 50px;
	padding: 0;
}
.memorial-design-section h4,
.memorial-frame-list h4,
.memorial-frame-preview h4 {
	margin-bottom: 20px;
	font-size: 15px;
	font-weight: 600;
}
.memorial-design-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.memorial-design-cards-cover {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px 40px;
}
.memorial-design-cards-frame {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
.memorial-design-cards-small {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.memorial-design-card {
	display: block;
	cursor: pointer;
}
.memorial-design-card input {
	display: none;
}
.memorial-design-card.active .memorial-design-thumb {
	outline: 2px solid #d7a65a;
	outline-offset: 4px;
}
.memorial-design-card.active .memorial-frame-thumb {
	outline: 2px solid #d7a65a;
	outline-offset: 4px;
}
.memorial-design-thumb {
	display: block;
	width: 100%;
	height: 130px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #f2f2f2;
}
.memorial-design-thumb-small {
    display: block;
	width: 100%;
	height: 270px;
	background-size: 180%;
	background-position: top left;
	background-repeat: no-repeat;
	background-color: #f2f2f2;
	border-radius: 14px;
}
.memorial-design-title {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.3;
	color: #2d2d2d;
}
.memorial-frame-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 30px;
	padding: 0;
}
.memorial-frame-thumb {
	display: block;
	width: 100%;
	height: 135px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #fff;
	border-radius: 2px;
}

.memorial-frame-preview-box {
	background: #fafafa;
	border-radius: 18px;
	padding: 40px 25px;
	text-align: center;
}
.memorial-frame-preview-frame {
	position: relative;
	width: 240px;
	height: 320px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.memorial-frame-preview-frame img {
	width: 85%;
	height: 85%;
	object-fit: cover;
	border-radius: 8px;
	position: relative;
	z-index: 1;
}

.memorial-frame-preview-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
}

.memorial-frame-no-photo {
	font-size: 14px;
	color: #888;
}
@media (max-width: 1200px) {
	.memorial-design-grid,
	.memorial-frame-layout {
		grid-template-columns: 1fr;
	}
}

.wow_fcov_image img {
    max-height: 332px;
}

.set-label {
    font-size: 15px;
    font-weight: 500;
}
.page-settings {
    padding: 0;
    margin: 0;
}

.basic-information {
    padding: 0;
}
label {
    margin-bottom: 10px;
    margin-top: 0;
}
.wow_sett_sidebar > ul > li > a span i {
    position: relative;
    padding: 0;
    border-radius: 0;
    margin: auto;
    background: transparent;
}
.wow_sett_sidebar ul li.back-to-page a span:before {
    background: #e8b777 !important;
}

.wow_sett_sidebar ul li a span i:before {
    color: #e8b777;
    font-size: 16px;
}
.wow_sett_sidebar ul li.back-to-page a span i:before {
    color: #fff;
}
.wow_sett_sidebar ul li.back-to-page a span i {
    transform: rotate(-90deg);
    margin-top: 7px;
}

.popular_posts_hdr > h2 i {
    width: 45px;
    height: 45px;
    background: #f6f6f6;
    border-radius: 6px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popular_posts_hdr > h2 i:before {
    color: #e8b777;
}
.pd20 {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.page-avatar-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.page-avatar-buttons .btn {
	min-width: 220px;
}

.wow_fcov_image .page-avatar-preview img {
	display: block;
	width: 100%;
	height: auto;
}

.wow_fcov_image {
	cursor: default !important;
}

.memorial-avatar-upload-box {
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    padding: 18px;
    background: #fff;
}

.memorial-avatar-preview {
    width: 210px;
    height: 259px;
    border-radius: 16px;
    background: #f6f6f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.memorial-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memorial-avatar-upload-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.memorial-avatar-upload-note {
    font-size: 13px;
    color: #8c8d9b;
}


.memorial-avatar-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Превью */
.memorial-avatar-preview {
    width: 210px;
    height: 259px;
    border-radius: 16px;
    background: #f6f6f8;
    overflow: hidden;
    flex-shrink: 0;
}

.memorial-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Правая колонка */
.memorial-avatar-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Кнопки одной ширины */
.memorial-avatar-controls .btn {
    width: 130px;
    height: 40px;
    margin-bottom: 15px;
    padding: 0 16px;
    font-size: 14px;
}

/* Текст под кнопками */
.memorial-avatar-upload-note {
    font-size: 13px;
    color: #8c8d9b;
    margin-top: 4px;
    line-height: 1.4;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-border, .rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #e8b777;
    border: 1px solid #000;
    border-radius: 20px;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-top-left {
    top: -6px;
    left: -6px;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-top-right {
    top: -6px;
    right: -6px;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-bottom {
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-bottom-left {
    bottom: -6px;
    left: -6px;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-right {
    right: -6px;
    top: 50%;
    margin-top: -6px;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-left {
    left: -6px;
    top: 50%;
    margin-top: -6px;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-bottom-right {
    bottom: -6px;
    right: -6px;
}
.rcrop-wrapper .rcrop-handler-wrapper .rcrop-handler-top {
    top: -6px;
    left: 50%;
    margin-left: -6px;
}

.popular_posts_hdr > h2 {
    font-size: 22px;
}
.memorial-post-author-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
}

/* Чтобы бейдж на аватарке не обрезался */
.post-heading .image,
.post-heading .image .avatar.wow_post_usr_ava {
    overflow: visible !important;
}

/* Аватарка — контейнер для бейджа */
.post-heading .image .avatar.wow_post_usr_ava {
    position: relative;
}

/* Бейдж автора на аватарке поста */
.post-heading .image .avatar.wow_post_usr_ava .memorial-post-author-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 20;
    margin-left: 0;
    box-shadow: 0 0 0 2px #fff;
}

/* Заголовок "Авторы страницы" */
.memorial-sidebar-title-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Бейдж в заголовке не должен быть абсолютным */
.memorial-sidebar-title-label .memorial-post-author-badge {
    position: static;
    margin-left: 0;
    box-shadow: none;
}

.post-heading .meta .title.h5 {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}



    .gifts-container {
        background-color: transparent;
        border-radius: 16px;
        padding: 0;
        width: 100%;
        margin-bottom: 15px;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        color: #444;
        gap: 12px;
    }

    .header h2 {
        margin: 0;
        font-size: 15px;
        font-weight: 500;
    }

    .view-all {
        cursor: pointer;
        font-size: 14px;
        color: #444;
        text-decoration: none;
        white-space: nowrap;
    }

    .view-all:hover,
    .view-all:focus {
        color: #444;
        text-decoration: underline;
    }

    .gifts-grid {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    }
    .gifts-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

    .gift-card {
        background-color: #fff;
        border-radius: 16px;
        padding: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
        border: 2px solid #e8b777;
        width: 100px;
        min-height: 170px;
        text-decoration: none;
        color: inherit;
        position: relative;
        overflow: hidden;
    }

    .gift-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        text-decoration: none;
        color: inherit;
    }

    .image-wrapper {
        width: 90px;
        height: 90px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    .image-wrapper2 {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .image-wrapper2 img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        opacity: 0.7;
        display: block;
    }

    .gift-title {
        font-size: 12px;
        line-height: 1.25;
        color: #333;
        font-weight: 500;
        margin-bottom: 8px;
        min-height: 30px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .avatar-gift {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        margin-top: 10px;
        flex-shrink: 0;
    }

    .avatar-gift img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .name {
        margin-top: 5px;
        font-size: 13px;
        color: #333;
        font-weight: 400;
        line-height: 1.2;
        max-width: 100%;
        word-break: break-word;
    }

    .add-gift-card {
        background-color: #fff;
        border: 2px dashed #e8b777;
        justify-content: center;
        width: 108px;
        display: flex;
        min-height: 170px;
    }

    .plus-icon {
        font-size: 40px;
        color: #e8b777;
        line-height: 20px;
        margin-bottom: 10px;
    }
    .add-gift-card,
.add-gift-card:hover,
.add-gift-card:focus,
.add-gift-card:active {
    text-decoration: none !important;
}

.add-gift-card .plus-icon,
.add-gift-card .add-text {
    text-decoration: none !important;
}

.add-gift-card:hover .plus-icon,
.add-gift-card:focus .plus-icon,
.add-gift-card:active .plus-icon,
.add-gift-card:hover .add-text,
.add-gift-card:focus .add-text,
.add-gift-card:active .add-text {
    text-decoration: none !important;
}
    .add-text {
        font-size: 13px;
        font-weight: 600;
        color: #000000;
        line-height: 1.2;
    }

    .gifts-empty {
        background: #fff;
        border-radius: 15px;
        border: 1px dashed #d9c29b;
        padding: 18px;
        font-size: 14px;
        line-height: 1.45;
        color: #555;
        text-align: center;
        width: calc(100% - 120px);
        min-height: 178px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    @media (max-width: 767px) {
        .gifts-grid {
            justify-content: flex-start;
            overflow-x: auto;
            overflow-y: hidden;
            gap: 5px;
        }

        .gifts-empty {
            width: 100%;
            min-height: 120px;
            order: 2;
        }
.neb-gift {
    order: 2;
}
        .add-gift-card {
            order: 1;
            width: 108px;
        }
        .gifts-grid .gift-card {
    flex: 0 0 92px;
    width: 92px;
}
    }

.memorial-send-gift-modal-dialog {
    width: 1000px !important;
    max-width: calc(100vw - 32px) !important;
}

.memorial-send-gift-modal-content {
    border-radius: 28px;
    overflow: hidden;
}

.memorial-send-gift-modal-header {
    min-height: 60px !important;
    background: #e8b777;
    align-items: center;
}

.memorial-send-gift-modal-body {
    padding: 0 !important;
}

.memorial-send-gift-layout {
    display: flex;
    align-items: stretch;
    min-width: 1000px;
    min-height: 520px;
}

.memorial-send-gift-layout__left {
    width: 60%;
    min-width: 0;
    background: #f0f2f5;
    padding: 20px 4px 30px 30px;
}

.memorial-send-gift-layout__divider {
    width: 6px;
    border-radius: 999px;
    background: #e8b777;
    flex-shrink: 0;
    align-self: stretch;
    margin: 36px 22px 0;
    opacity: 0.95;
}

.memorial-send-gift-layout__right {
    width: 40%;
    min-width: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.memorial-send-gift-section-title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    color: #2d3643;
    margin-bottom: 14px;
}

.memorial-send-gift__header {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    padding-left: 10px;
}

.memorial-send-gift-grid-wrap {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 12px;
}

.memorial-send-gift-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.memorial-send-gift-card, .memorial-send-sign-card {
    text-align: left;
    padding: 10px !important;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.memorial-send-gift-card.is-selected, .memorial-send-sign-card.is-selected {
    border: 2px solid #e8b777;
}

.memorial-send-gift-card .market-product-card__body--purchased, .memorial-send-sign-card .market-product-card__body--purchased {
    gap: 4px;
    padding: 2px 10px;
    width: 150px;
}

.memorial-send-gift-card .market-product-card__image, .memorial-send-sign-card .market-product-card__image {
    height: 140px;
    background: #fff;
    border-radius: 10px;
    margin-top: 5px;
}

.memorial-send-gift-card .market-product-card__purchased-qty {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.2;
}

.memorial-send-sign-preview-card__title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sign-modal__description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
    word-break: break-word;
}

.memorial-send-gift-preview-card {
    width: 230px;
    border: 1px solid #dddddd;
    border-radius: 22px;
    background: #fff;
    padding: 16px 16px 18px;
    margin-bottom: 22px;
}

.memorial-send-sign-preview-card {
    background: #fff;
    padding: 0;
    margin-bottom: 0;
}

.memorial-send-gift-preview-card__image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.market-product-card__image {
    height: 140px;
    background: linear-gradient(135deg, #fff8f0 0%, #f0f2f5 100%);
}

.memorial-send-gift-preview-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.memorial-send-gift-preview-card__title {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.memorial-send-gift-preview-card__qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #4b5666;
    font-size: 14px;
    line-height: 1.2;
}

.memorial-send-gift-preview-card__qty span {
    font-weight: 700;
    color: #222b38;
}

.memorial-send-gift-form {
    width: 100%;
    max-width: 430px;
}

.memorial-send-gift-form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #2d3643;
}

.memorial-send-gift-form__optional {
    font-weight: 400;
    color: #8b95a7;
}

.memorial-send-gift-form__textarea {
    min-height: 86px;
    resize: vertical;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: none;
}

.memorial-send-gift-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.memorial-send-gift-form__submit {
    min-width: 160px;
    border-radius: 12px;
    font-weight: 600;
    height: 40px;
    line-height: 40px;
}

.memorial-send-gift-empty {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 10px 36px;
}

.memorial-send-gift-empty__title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2937;
    margin: 20px 0 0;
}

.memorial-send-gift-empty__text {
    font-size: 16px;
    line-height: 1.6;
    color: #667085;
    margin: 38px 0 60px;
}

.memorial-send-gift-empty__btn {
    min-width: 220px;
    border-radius: 50px;
    font-size: 16px;
    min-height: 40px;
    line-height: 40px;
    padding: 0 22px;
}

@media (max-width: 991px) {
    .memorial-send-gift-modal-dialog {
        width: auto;
        max-width: calc(100vw - 20px);
    }

    .memorial-send-gift-modal-body {
        padding: 18px 18px 22px;
    }

    .memorial-send-gift-layout {
        flex-direction: column;
        min-height: 0;
    }

    .memorial-send-gift-layout__left,
    .memorial-send-gift-layout__right {
        padding: 0;
    }

    .memorial-send-gift-layout__divider {
        width: 100%;
        height: 4px;
        margin: 16px 0 18px;
    }

    .memorial-send-gift-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .memorial-send-gift-preview-card {
        width: 100%;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    .memorial-send-gift-form {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .memorial-send-gift-grid {
        display: flex;
        gap: 10px;
    }

    .memorial-send-gift-card .market-product-card__title--purchased {
        font-size: 11px;
    }

    .memorial-send-gift-card .market-product-card__purchased-qty {
        font-size: 11px;
        padding: 5px 8px;
    }

    .memorial-send-gift-empty__title {
        font-size: 23px;
    }

    .memorial-send-gift-empty__text {
        font-size: 15px;
    }
}

.memorial-gifts-all-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.memorial-gifts-all-page .gift-card {
    width: 100%;
}

.memorial-gifts-all-page .gift-card .image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    width: 170px;
    height: 170px;
}

.memorial-gifts-all-page .gift-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .memorial-gifts-all-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .memorial-gifts-all-grid {
        grid-template-columns: 1fr;
    }
}

.profile-empty-state1 {
    margin: 60px 0 25px;
    color: #888;
    font-size: 14px;
}
.profile-empty-state2, .profile-empty-state0 {
    color: #888;
    font-size: 14px;
}
.profile-empty-state__icon {
    opacity: 0.9;
    margin-bottom: 10px;
}


.memorial-post-type-switcher{
	display:flex;
	gap:8px;
	flex-wrap:wrap;
	padding:14px 15px 0;
}
.memorial-post-type-btn{
	border:1px solid #d8d8d8;
	background:#fff;
	color:#444;
	border-radius:30px;
	padding: 8px 10px;
	font-size:14px;
	font-weight: 500;
	cursor:pointer;
	transition:all .15s ease;
	display: flex;
    align-items: center;
    gap: 8px;
}
.btn-icon-default, .btn-icon-condolence, .btn-icon-memory {
    width: 20px;
    height: 20px;
}
.memorial-post-type-btn:hover{
	background:#f7f7f7;
}
.memorial-post-type-btn.is-active{
	background:#f0f2f5;
	border-color:#cfcfcf;
	color:#111;
	font-weight:500;
}



.memorial-selected-sign{
	margin:12px 15px 0;
}
.memorial-selected-sign__inner{
	display:flex;
	align-items:center;
	gap:12px;
	padding:10px 12px;
	border:1px solid #e3e7ee;
	border-radius:14px;
	background:#fff;
}
.memorial-selected-sign__image{
	width:52px;
	height:52px;
	border-radius:12px;
	object-fit:cover;
	flex-shrink:0;
}
.memorial-selected-sign__content{
	min-width:0;
	flex:1;
}
.memorial-selected-sign__label{
	font-size:12px;
	line-height:1.3;
	color:#7b8694;
	margin-bottom:4px;
}
.memorial-selected-sign__title{
	font-size:14px;
	line-height:1.35;
	font-weight:600;
	color:#2d3643;
}
.memorial-selected-sign__remove{
	width:34px;
	height:34px;
	border:none;
	border-radius:50%;
	background:#f3f4f6;
	color:#4b5563;
	cursor:pointer;
	flex-shrink:0;
}
.memorial-selected-sign__remove:hover{
	background:#e5e7eb;
}
.post-support-sign {
    margin: 0 -15px;
}

.post-support-sign__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
   /* background: radial-gradient(at 50% 50%, #ffffff 55%, #d1f0fb 100%);*/
    margin-bottom: 20px;
}

.post-support-sign__image-wrap {
    width: 50%;
}

.post-support-sign__note {
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

@media (max-width: 600px) {
    .post-support-sign-hdr {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-support-sign__note {
        text-align: left;
        white-space: normal;
    }
}
.post-support-sign__image {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    box-shadow: 4px 4px 12px rgb(80 146 153 / 22%);
}

.neb-post-support-sign__content {
    display: flex;
    gap: 20px;
    margin: 0 20px;
    border-radius: 16px;
    background: linear-gradient(58deg, #e3f3db 0%, #ffffff 50%, #e0f6ff 100%);
    overflow: hidden;
    padding: 20px;
}
.post-support-sign-content-right {
    width: 50%;
}

.post-support-sign__description {
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

/* =========================
   Небокрай: переливающаяся градиентная обводка
   ========================= */

.nk-gradient-border {
    position: relative;
    border-radius: 16px;
    isolation: isolate;
}

.nk-gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(
        -45deg,
        #fde6bb,
        #fed9ec,
        #fff496,
        #ffbe71
    );
    background-size: 500% 100%;
    animation: nk-gradient-border-flow 5s ease infinite;
    pointer-events: none;
    z-index: 2;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes nk-gradient-border-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@media (max-width: 768px) {
    .neb-post-support-sign__content, .memorial-card {
        flex-direction: column;
    }
    .post-support-sign__image-wrap {
    width: 100%;
}
.post-support-sign__description {
    width: 100%;
}
.post-support-sign-content-right {
    width: 100%;
}
}

.post-support-sign__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #000;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.btn-icon-sign {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 2px 12px #423b3d0f;
}

.btn-icon-sign img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.post-support-sign__title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    color: #2d3643;
    margin: 10px 0 6px;
}
.nebokray-default-reaction {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nebokray-default-reaction p {
   margin: 0;
}

.nebokray-default-reaction-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
}


.right_stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    height: 40px;
}
.count-foot {
    margin-left: 6px;
    color: #7f7f7f;
}




/* --- Общие стили для ссылки --- */
.sub-link {
    text-decoration: none;
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
}

/* Изображения внутри блоков */
.my-memory-sub img,
.no-my-memory-sub img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
}

/* --- СЦЕНАРИЙ 1: Активная подписка (Колонка) --- */
.sub-active {
    flex-direction: column;
    align-items: flex-start;
}

/* 1. Заголовок "Подписка Моя Память" - ЧЕРНЫЙ */
.sub-active .my-memory-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333333; 
    font-weight: 500;
}

/* 2. Дата "Активна до..." - СЕРЫЙ */
.sub-active p {
    font-size: 14px;
    color: #999999;
    padding-left: 32px;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

/* 3. Кнопка "Управлять подпиской" - СИНИЙ */
.sub-active .manage-sub {
    color: #1259ba;
    padding-left: 32px;
    display: block;
    transition: color 0.2s ease;
}

/* --- СЦЕНАРИЙ 2: Нет подписки (Строка) --- */
.sub-inactive {
    flex-direction: row;
    justify-content: space-between; 
    align-items: center;
}

/* Левая часть: Иконка + "Без подписки" */
.sub-inactive .no-my-memory-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333333; /* Темно-серый/Черный */
}

/* Правая часть: Кнопка "Оформить" - СИНИЙ */
.sub-inactive .manage-sub {
    color: #1259ba;
    font-weight: 500;
    transition: color 0.2s ease;
    /* Если хотите, чтобы кнопка выглядела как кнопка, раскомментируйте ниже: */
    /* background: #fff; border: 1px solid #ddd; padding: 6px 12px; border-radius: 6px; */
}

/* --- Эффекты наведения --- */
/* При наведении на всю ссылку, меняем цвет действия на оранжевый */
.sub-link:hover .manage-sub {
    color: #e8b777 !important;
}

.wow_cset_cover h5 {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 0;
    display: block;
}

.cover-options-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Скрываем стандартный радио-баттон */
.cover-option input[type="radio"] {
    display: none;
}

/* Карточка обложки */
.cover-option {
    width: 158px;
    height: 90px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
    margin: 0;
}


/* Миниатюра внутри карточки */
.cover-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: block;
    border-radius: 8px;
}

/* Эффект при наведении */
.cover-option:hover {
    transform: scale(1.05);
}

/* АКТИВНОЕ СОСТОЯНИЕ (когда radio:checked) */
.cover-option input[type="radio"]:checked + .cover-thumb {
 
}

/* Так как мы добавляем класс .active через PHP, используем его */
.cover-option.active {
    outline: 2px solid #e8b777;
}

/* Галочка для активного элемента */
.cover-option.active::after {
    content: '\2713';
    position: absolute;
    bottom: -7px;
    right: -7px;
    background: #e8b777;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}
.nk-profile-header {
    margin: 0 -10px 30px;
}

.wow_cset_avtr_photo {
    display: flex;
    flex-direction: row;
}

.wow_cset_avtr_info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.wow_cset_avtr_meta h5 {
    margin: 0 0 6px;
}

.wow_cset_avtr_meta p {
    margin: 0 0 8px;
}

.wow_cset_avtr_actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 74px;
}
.nk-btn {
    border-radius: 60px;
    background-color: #e1e1e1 !important;
    color: #444 !important;
    border-color: #cbcbcb !important;
    height: 34px;
}
.nk-filters-container {
  padding: 0 10px;
}

.nk-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
  margin-bottom: 6px;
}

.nk-filter-header:hover {
  background-color: #f9f9f9;
}

.nk-arrow {
  font-size: 0.8em;
  color: #999;
  transition: transform 0.3s ease;
}

.nk-filter-header.active .nk-arrow {
  transform: rotate(180deg);
}

.nk-filter-body {
  display: none;
}

.nk-filter-body[style*="display: block"] {
  display: block !important;
  margin-bottom: 10px;
}

.nk-checkbox-label {
  display: flex;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  margin: 0;
}

.nk-checkbox-label input[type="checkbox"],
.nk-checkbox-label input[type="radio"] {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  accent-color: #e8b777;
}

.nk-checkbox-label:hover {
  color: #e8b777;
}

.nk-select-wrapper {
  margin-bottom: 12px;
}

.nk-select-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.nk-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: white;
  font-size: 14px;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("/upload/photos/down.png");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px auto;
}

.nk-select-loc {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: white;
  font-size: 14px;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
}

.nk-select:focus {
  outline: none;
  border-color: #e8b777;
}
.nk-select-loc:focus {
  outline: none;
  border-color: #e8b777;
}

#nk-pages-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

b, strong {
    margin-right: 0 !important;
}

/* =========================
   ОБЩИЕ НАСТРОЙКИ ИКОНКИ
   ========================= */

.nk-heart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nk-heart-icon img {
    margin: 0 !important;
    object-fit: contain !important;
}
.nk-heart-img {
    width: 20px !important;
    height: auto;
    object-fit: contain;
    display: block;
}

/* скрываем hover-иконку по умолчанию */
.nk-heart-hover {
    display: none;
}


/* =========================
   КНОПКА В КАРТОЧКАХ
   ========================= */

.nk-memorial-heart-btn {
    display: flex;
    justify-content: flex-end;
}

.nk-memorial-heart-btn .nk-heart-btn-inner {
    padding: 0 !important;
    margin: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* убираем текст */
.nk-memorial-heart-btn .nk-heart-text {
    display: none;
}

/* убираем системные эффекты кнопки */
.nk-memorial-heart-btn #wo_useract_btn,
.nk-memorial-heart-btn #wo_useract_btn:hover,
.nk-memorial-heart-btn #wo_useract_btn:focus,
.nk-memorial-heart-btn #wo_useract_btn:active {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    background: transparent !important;
}

/* hover в карточках */
.nk-memorial-heart-btn .nk-heart-btn-inner:hover .nk-heart-default {
    display: none;
}

.nk-memorial-heart-btn .nk-heart-btn-inner:hover .nk-heart-hover {
    display: block;
}


/* =========================
   КНОПКА НА СТРАНИЦЕ
   ========================= */

.memorial-cover-favorite-btn .nk-heart-btn-inner {
    margin: 0;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* тот же размер иконки */
.memorial-cover-favorite-btn .nk-heart-img {
    width: 24px !important;
    height: auto;
}

/* убираем системные эффекты */
.memorial-cover-favorite-btn #wo_useract_btn,
.memorial-cover-favorite-btn #wo_useract_btn:hover,
.memorial-cover-favorite-btn #wo_useract_btn:focus,
.memorial-cover-favorite-btn #wo_useract_btn:active {
    outline: none !important;
    border: none !important;
}

/* hover на странице (включается через класс!) */
.nk-heart-hover-enabled .nk-heart-btn-inner .nk-heart-default {
    display: none;
}

.nk-heart-hover-enabled .nk-heart-btn-inner .nk-heart-hover {
    display: block;
}

.nk-page-stat .fa-eye {
    font-size: 15px;
    color: #bfbfbf;
    margin-right: 5px;
}

.nk-page-stat .fa-heart {
    font-size: 15px;
    color: #bfbfbf;
    margin-right: 5px;
}

.nk-sticky-pages-header {
    position: sticky;
    top: 70px;
    z-index: 20;
    background: #fff;
}

.nk-sticky-pages-header .nk-page-title,
.nk-sticky-pages-header .nk-sort-wrapper,
.nk-sticky-pages-header .btn {
    position: relative;
    z-index: 2;
}

.badge-pro {
    background: #e8b777;
    padding: 0 14px 0 12px;
    border-radius: 20px;
    margin-left: 4px;
    position: relative;
}
.badge-pro a {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    margin-right: 3px;
}
.badge-pro::before,
.badge-pro::after {
    content: "";
    position: absolute;
    background: #ffffff;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    width: 10px;
    height: 10px;
    right: 5px;
    top: 2px;
}

.badge-pro::before {
    transform: scaleX(0.38);
}

.badge-pro::after {
    transform: scaleY(0.38);
}

.bg-sub-left-menu {
    display: flex;
    justify-content: flex-end;
}

.container .wo_user_profile .pic-info-cont .user-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    bottom: 0;
    margin: 0 20px 10px;
}

.container .wo_user_profile .pic-info-cont .user-avatar img {
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    border-radius: 50%;
}

.container .wo_user_profile .pic-info-cont .user-avatar .profile-avatar-verified {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 22px;
    height: 22px;
    z-index: 6;
    border-radius: 50%;
    box-sizing: border-box;
}
.mes-alert {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}
.messages-recipients-list.active {
    background: #f0f2f5;
    color: inherit;
}

.emo-message-container {
    width: 500px;
}

.wo_settings_page .avatar-holder p.nk-not-desc {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}
.block-users-desc {
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 20px 20px 10px;
    font-size: 15px;
    margin-bottom: 20px;
}
.nk-block-btn {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f0f2f5;
    padding: 4px 10px;
    border-radius: 10px;
}
.nk-block-btn:hover {
    text-decoration: none;
}
@media (max-width: 767px) {
    .container .wo_user_profile .pic-info-cont .user-avatar {
        margin: -65px auto 0;
        display: inline-block;
        top: -15px;
    }
}

.pages-memory-grid {
	display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
	background-color: #fff;
    border-radius: 16px;
    padding: 20px;
}
.pages-memory-grid .name-white-hover h4 {
    font-size: 16px;
}
.pages-memory-grid .dates-white-hover p {
   font-size: 16px; 
}

.pages-memory-grid .page-list-item .relation-badge {
    font-size: 14px;
    padding: 6px 0;
}
.nk-page-like {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    text-decoration: none;
    display: block;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.2;
}
.pages-memory-grid .nearby_user_wrapper {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}
.pages-memory-grid .nk-heart-text {
    display: none;
}
.avatar {
    position: relative;
}

.heart-button {
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 2;
}

.sup-btn {
    font-size: 18px;
    font-weight: 600;
    padding: 4px 32px;
}
.ft-btn-txt {
    margin: 0;
    font-size: 14px !important;
}


/* ============================================================
   Небокрай: блок подписки Svet в выпадающем меню настроек
   ============================================================ */

.sub-link.neb-sub-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    box-sizing: border-box;
    text-decoration: none;
}

/* Верхняя строка: статус + действие */
.sub-link.neb-sub-link .neb-sub-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

/* Заголовок: иконка + Без подписки / Подписка Svet */
.sub-link.neb-sub-link .neb-sub-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777;
    font-weight: 500;
    min-width: 0;
}

.sub-link.neb-sub-link .neb-sub-title img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    flex: 0 0 20px;
}

/* Ссылка-действие */
.sub-link.neb-sub-link .manage-sub {
    color: #1259ba;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    padding-left: 0;
}

.sub-link.neb-sub-link:hover .manage-sub {
    color: #e8b777 !important;
}

/* Дата активной подписки */
.sub-link.neb-sub-link .neb-sub-active-date {
    margin: 8px 0 4px 0;
    padding-left: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #999999;
}

/* Блок бесплатного лимита */
.neb-free-limit-box {
    margin-top: 0px;
    padding: 10px 0 5px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Подпись "В бесплатном доступе" */
.neb-free-limit-caption {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #3f4354;
}

/* Строка "Памятные страницы 5 / 6" */
.neb-free-limit-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.neb-free-limit-label {
    font-size: 14px;
    color: #3f4354;
    line-height: 1.3;
}

.neb-free-limit-count {
    font-size: 14px;
    font-weight: 600;
    color: #8c8d9b;
    white-space: nowrap;
}

/* Иконки лимита */
.neb-page-slots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: nowrap;
}

.neb-page-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.neb-page-slot i {
    display: block;
    font-size: 20px;
}

.neb-page-slot.is-used {
    color: #d3d5dc;
}

.neb-page-slot.is-free {
    color: #e8b777;
}

/* Нижняя подсказка */
.neb-free-limit-note {
    font-size: 13px;
    line-height: 1.35;
    color: #8c8d9b;
}

.neb-svet-expire-push {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	width: min(420px, calc(100vw - 32px));
	display: none;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 18px 16px;
	background: #ffffff;
	border: 1px solid rgba(226, 178, 109, 0.45);
	border-radius: 22px;
	box-shadow: 0 18px 48px rgba(31, 34, 47, 0.18);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.neb-svet-expire-push.is-visible {
	display: flex;
	opacity: 1;
	transform: translateY(0);
}

.neb-svet-expire-push__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: #f7f2ed;
	color: #8c6a3f;
	font-size: 20px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
}

.neb-svet-expire-push__close:hover {
	background: #efdcc3;
	color: #5e4120;
}

.neb-svet-expire-push__icon {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 50%;
	background: #fff4e6;
	display: flex;
	align-items: center;
	justify-content: center;
}

.neb-svet-expire-push__icon img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.neb-svet-expire-push__content {
	padding-right: 18px;
}

.neb-svet-expire-push__title {
	font-size: 16px;
	font-weight: 700;
	color: #222;
	margin-bottom: 7px;
}

.neb-svet-expire-push__text {
	font-size: 14px;
	line-height: 1.5;
	color: #4c5160;
}

.neb-svet-expire-push__text b {
	color: #222;
}

.neb-svet-expire-push__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 14px;
}

.neb-svet-expire-push__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #e2b26d;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}

.neb-svet-expire-push__btn:hover {
	background: #d49d50;
	color: #fff !important;
}

.neb-svet-expire-push__later {
	border: 0;
	background: transparent;
	color: #777d8d;
	font-size: 13px;
	cursor: pointer;
	padding: 8px 4px;
}

.neb-svet-expire-push__later:hover {
	color: #333;
}

@media (max-width: 600px) {
	.neb-svet-expire-push {
		left: 16px;
		right: 16px;
		bottom: 16px;
		width: auto;
	}
}


.memorial-design-save-area {
	margin-top: 24px;
}

.neb-design-save-disabled {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: not-allowed !important;
	opacity: 0.62;
	filter: grayscale(0.15);
	box-shadow: none !important;
}

.neb-design-save-disabled i {
	font-size: 13px;
	line-height: 1;
}

.neb-design-svet-note {
	margin-top: 9px;
	font-size: 13px;
	line-height: 1.45;
	color: #8c8d9b;
}

/* Заблокированная кнопка "В сердце" */
.neb-heart-locked-tooltip-wrap {
	display: inline-flex;
	position: relative;
}

/* Общий маленький вариант — для карточек */
.neb-heart-locked-btn {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #a9adb8;
	cursor: not-allowed !important;
	opacity: 0.86;
	pointer-events: none;
}

.neb-heart-locked-btn i {
	font-size: 14px;
	line-height: 1;
}

.neb-heart-locked-btn:hover,
.neb-heart-locked-btn:focus {
	color: #a9adb8;
	background: rgba(255, 255, 255, 0.88);
}

/* Большая кнопка на самой Памятной странице */
.neb-heart-locked-btn-profile {
	width: auto;
	height: 42px;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.94);
	color: #8c8d9b;
}

.neb-heart-locked-btn-profile i {
	font-size: 13px;
}

.neb-heart-locked-btn-profile span {
	line-height: 1;
}

.legal-public-offer h2, .legal-privacy h2, .legal-terms h2, .legal-agreement h2, .legal-recommendations h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}
.legal-public-offer p, .legal-privacy p, .legal-terms p, .legal-agreement p, .legal-recommendations p {
    font-size: 15px;
}
.legal-public-offer strong, .legal-privacy strong, .legal-terms strong, .legal-agreement strong, .legal-recommendations strong {
    font-weight: 600;
}
.legal-public-offer a, .legal-privacy a, .legal-terms a, .legal-agreement a, .legal-recommendations a {
    color: #e8b777;
    text-decoration: none;
}
.legal-public-offer ul, .legal-privacy ul, .legal-terms ul, .legal-agreement ul, .legal-recommendations ul {
    list-style-type: disc
}
.pay_modal_wallet_text {
    padding: 0 20px;
}
.neb-svet-payment-confirm {
    text-align: left;
}

.neb-svet-payment-confirm-title {
    margin-bottom: 10px;
    color: #17191f;
    font-size: 18px;
    line-height: 1.3;
}

.neb-svet-payment-confirm-price {
    margin-bottom: 12px;
    color: #000;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}
.neb-svet-payment-confirm-desc {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 20px;
}
.neb-svet-payment-confirm-text {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff8ed;
    border: 1px solid #f1d8ae;
    color: #60482b;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.neb-svet-payment-other {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a5b22;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.pay_modal_wallet_title img {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.neb-admin-refund-period,
.neb-admin-refund-calc {
	font-size: 12px;
	line-height: 1.55;
	color: #333;
	min-width: 190px;
}

.neb-admin-refund-period div,
.neb-admin-refund-calc div {
	margin-bottom: 3px;
}

.neb-admin-refund-total {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #e9e9e9;
	color: #111;
}

.neb-admin-refund-modal-calc {
	padding: 12px 14px;
	border-radius: 10px;
	background: #f8f9fb;
	font-size: 13px;
	line-height: 1.7;
}
.create-page-btn--disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: auto;
}

.create-page-btn--disabled i {
    color: #b8b8b8;
}
.neb-limit-tooltip {
    max-width: 320px;
}

.neb-limit-tooltip .tooltip-inner {
    max-width: 320px;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
    padding: 8px 14px;
}
.neb-list-group {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}
.neb-list-group-page {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    margin-right: -15px;
    margin-bottom: 15px;
}

.left-sidebar.custom .neb-left-menu-disabled-item {
    position: relative;
}


.left-sidebar.custom .neb-left-menu-disabled-item.active > a.neb-left-menu-disabled-link {
    background: transparent !important;
}

.neb-znaki-menu-tooltip {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    width: 340px;
    max-width: calc(100vw - 30px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(28, 39, 60, 0.14);
    padding: 18px 18px 16px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-50% + 8px));
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.neb-znaki-menu-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    pointer-events: auto;
}

.neb-znaki-menu-tooltip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -7px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: -2px 2px 4px rgba(28, 39, 60, 0.04);
}

.neb-znaki-menu-tooltip-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #1f2430;
    text-align: left;
}

.neb-znaki-menu-tooltip-text {
    font-size: 14px;
    line-height: 1.6;
    color: #59606b;
    text-align: left;
}

@media (max-width: 991px) {
    .neb-znaki-menu-tooltip {
        left: 0;
        top: calc(100% + 8px);
        transform: translateY(8px);
        width: 300px;
    }

    .neb-znaki-menu-tooltip.active {
        transform: translateY(0);
    }

    .neb-znaki-menu-tooltip::before {
        top: -7px;
        left: 22px;
        transform: rotate(45deg);
    }
}

.memorial-selected-sign__change {
	border: 0;
	background: #f4eee7;
	color: #8a5a35;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.memorial-selected-sign__change:hover {
	background: #ead8c7;
	color: #6f4426;
}

.memorial-selected-sign__change:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(138, 90, 53, 0.18);
}

.edit-support-sign-add-wrap {
	margin: 12px 15px 0;
}

.edit-support-sign-add-wrap .memorial-sign-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #e8b777;
	background: #fffaf5;
	color: #8a5a35;
	border-radius: 14px;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.edit-support-sign-add-wrap .memorial-sign-trigger:hover {
	background: #f7eee6;
	border-color: #c9a98f;
	color: #6f4426;
}

.edit-support-sign-add-wrap .memorial-sign-trigger:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(138, 90, 53, 0.18);
}

.edit-support-sign-add-wrap .memorial-sign-trigger img {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.neb-share-page-select-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.neb-share-page-select {
	min-height: 40px;
	border-radius: 10px;
}

.neb-share-page-empty {
	margin-bottom: 0;
	border-radius: 10px;
}

.neb-authors-tooltip-wrap {
    position: relative;
    margin-top: 10px;
}

.neb-authors-tooltip-wrap .neb-znaki-menu-tooltip {
    left: auto;
    right: calc(70% + 12px);
    top: 56%;
    bottom: auto;
    transform: translateY(calc(-50% + 8px));
}

.neb-authors-tooltip-wrap .neb-znaki-menu-tooltip.active {
    transform: translateY(-50%);
}

/* Стрелочка для тултипа, который всплывает слева */
.neb-authors-tooltip-wrap .neb-znaki-menu-tooltip::before {
    left: auto;
    right: -7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 2px -2px 4px rgba(28, 39, 60, 0.04);
}

@media (max-width: 991px) {
    .neb-authors-tooltip-wrap .neb-znaki-menu-tooltip {
        left: 0;
        right: auto;
        top: calc(100% + 8px);
        transform: translateY(8px);
        width: 300px;
    }

    .neb-authors-tooltip-wrap .neb-znaki-menu-tooltip.active {
        transform: translateY(0);
    }

    .neb-authors-tooltip-wrap .neb-znaki-menu-tooltip::before {
        top: -7px;
        left: 22px;
        right: auto;
        transform: rotate(45deg);
        box-shadow: -2px -2px 4px rgba(28, 39, 60, 0.04);
    }
}

.neb-sidebar-memory-card {
	margin-bottom: 16px;
}

.neb-sidebar-memory-card .neb-sidebar-memory-card__inner {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: none;
	border: 0;
}

.neb-sidebar-memory-card__cover {
	position: relative;
	height: 85px;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f4f7;
}

.neb-sidebar-memory-card__cover > a {
	display: block;
	width: 100%;
	height: 100%;
}

.neb-sidebar-memory-card__cover img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.neb-sidebar-page-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);

    display: flex;
    align-items: center;
    justify-content: center;
}

.neb-sidebar-page-heart.nk-memorial-heart-btn {
    justify-content: center;
}

.neb-sidebar-page-heart .nk-heart-btn-inner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.neb-sidebar-page-heart .nk-heart-img {
    width: 20px !important;
}

/* Сайдбар: показываем только одну иконку сердца */
.neb-sidebar-page-heart.nk-memorial-heart-btn .nk-heart-hover {
    display: none !important;
}

.neb-sidebar-page-heart.nk-memorial-heart-btn .nk-heart-default {
    display: block !important;
}

.neb-sidebar-page-heart.nk-memorial-heart-btn .nk-heart-btn-inner:hover .nk-heart-default {
    display: none !important;
}

.neb-sidebar-page-heart.nk-memorial-heart-btn .nk-heart-btn-inner:hover .nk-heart-hover {
    display: block !important;
}

.neb-sidebar-page-heart .neb-heart-locked-btn {
	width: 34px;
	height: 34px;
	padding: 0;
	cursor: default;
	opacity: 1;
}

.neb-sidebar-memory-card__body {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 0 14px 14px;
}

.neb-sidebar-memory-card__avatar-link {
	position: relative;
	z-index: 3;
	display: block;
	flex: 0 0 auto;
	text-decoration: none !important;
	margin-top: -65px;
    margin-left: 15px;
}

.neb-sidebar-memory-card__avatar {
    width: 80px !important;
    height: 100px !important;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 2px solid #fff;
    background: #f0f2f5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.neb-sidebar-memory-card__info {
	min-width: 0;
	flex: 1;
}

.neb-sidebar-memory-card__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	color: #1f2430;
}

.neb-sidebar-memory-card__title a {
	color: #1f2430;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.neb-sidebar-memory-card__title a:hover {
	color: #e5a24d;
}

.neb-sidebar-memory-card__years {
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.2;
	color: #7b7f8c;
}

.neb-sidebar-memory-card .page_middle_prnt {
	padding-top: 8px !important;
}

.neb-sidebar-memory-card .card.hovercard.promoted {
	margin-bottom: 0;
}

.show-post4 {
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    background-color: #e8b777;
    color: rgb(255, 255, 255);
    margin: -8px -8px 5px;
    padding: 15px;
    border-radius: 12px 12px 0px 0px;
}

/* =========================
   Небокрай: стили опубликованных типов постов
   ========================= */

.post.neb-post-condolence > .panel-white,
.post.neb-post-memory > .panel-white {
    position: relative;
    border-radius: 16px;
}


/* Бейдж типа поста */
.neb-post-type-badge {
    position: absolute;
    top: 17px;
    right: 52px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.neb-post-type-badge img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.neb-post-type-badge--condolence {
    background: #edf8f0;
    border: 1px solid #cde9d4;
    color: #467755;
}

.neb-post-type-badge--memory {
    background: #fff5e5;
    border: 1px solid #edd8b2;
    color: #8a6531;
}

/* Небольшой деликатный акцент хедера */
.post.neb-post-condolence .post-heading {
    background: linear-gradient(180deg, rgba(242, 251, 245, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 16px 16px 0 0;
}

.post.neb-post-memory .post-heading {
    background: linear-gradient(180deg, rgba(255, 248, 237, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 16px 16px 0 0;
}

/* Мобильная версия: бейдж уходит под хедер, чтобы не налезал на меню */
@media (max-width: 600px) {
    .neb-post-type-badge {
        position: static;
        width: fit-content;
        max-width: calc(100% - 95px);
        margin: -6px 15px 10px 80px;
        box-shadow: none;
    }
}

@media (max-width: 420px) {
    .neb-post-type-badge {
        display: none;
    }
}

.nk-death-announcement-intro {
	padding: 50px 60px;
	text-align: center;
	border-radius: 22px;
}

.nk-death-announcement-icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: #fff7ef;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nk-death-announcement-icon img {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.nk-death-announcement-intro h2 {
	margin: 0 0 18px;
	font-size: 30px;
	font-weight: 700;
	color: #2d3643;
}

.nk-death-announcement-main-text {
	max-width: 680px;
	margin: 0 auto 34px;
	font-size: 17px;
	line-height: 1.65;
	color: #6f7480;
}

.nk-death-announcement-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 22px;
}

.nk-death-announcement-card {
	display: block;
	padding: 24px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid #f0dfca;
	box-shadow: 0 10px 30px rgba(45, 54, 67, 0.07);
	text-align: left;
	transition: 0.2s ease;
	text-decoration: none !important;
}

.nk-death-announcement-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(45, 54, 67, 0.11);
	border-color: #e8b777;
}

.nk-death-announcement-card-title {
	display: block;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 700;
	color: #2d3643;
}

.nk-death-announcement-card-desc {
	display: block;
	font-size: 14px;
	line-height: 1.55;
	color: #8c8d9b;
}

@media (max-width: 768px) {
	.nk-death-announcement-intro {
		padding: 34px 22px;
	}

	.nk-death-announcement-actions {
		grid-template-columns: 1fr;
	}
}

.icon_main2 {
    stroke: #000;
}


.my-choice-page__email-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff6f1;
    border: 1px solid #f2d5c7;
    color: #7a4b36;
    box-shadow: 0 8px 22px rgba(122, 75, 54, 0.08);
}

.my-choice-page__email-note.is-visible {
    display: block !important;
}

.my-choice-page__email-note.is-shaking {
    animation: myChoiceEmailNoteShake 0.55s ease;
}

.my-choice-page__email-note-text {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    margin-bottom: 6px;
}

.my-choice-page__email-note-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #7a4b36;
    text-decoration: underline;
}

.my-choice-page__email-note-link:hover,
.my-choice-page__email-note-link:focus {
    color: #5f3928;
    text-decoration: underline;
}

@keyframes myChoiceEmailNoteShake {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-1.2deg); }
    40% { transform: rotate(1.2deg); }
    60% { transform: rotate(-0.8deg); }
    80% { transform: rotate(0.8deg); }
    100% { transform: rotate(0deg); }
}

.neb-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cool-style-album.empty.blog {
    width: 100%;
}

.nk-blog-section {
    width: 100%;
}

.nk-blog-grid-wrap {
    width: 100%;
}

.nk-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.nk-blog-grid-item {
    min-width: 0;
}

.nk-blog-grid-item .wow_main_blogs {
    width: 100%;
    height: 100%;
}

.nk-blog-empty {
    grid-column: 1 / -1;
}

@media (max-width: 991px) {
    .nk-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .nk-blog-grid-wrap {
        padding-left: 0;
        padding-right: 0;
    }

    .nk-blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.nk-memory-pages-layout {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	width: 100%;
}

.nk-memory-pages-layout .list-page-left {
	flex: 1 1 0;
	min-width: 0;
}

.nk-memory-pages-layout .list-page-right {
	flex: 0 0 260px;
	width: 260px;
	min-width: 260px;
}

.nk-memory-pages-layout .nk-navigation-filter {
	width: 100%;
}

@media (max-width: 992px) {
	.nk-memory-pages-layout {
		flex-direction: column;
		gap: 0;
	}

	.nk-memory-pages-layout .list-page-left,
	.nk-memory-pages-layout .list-page-right {
		width: 100%;
		min-width: 0;
		flex: 0 0 auto;
		margin-bottom: 15px;
	}
}
.nk-my-sidebar-card {
	margin-bottom: 15px;
}
.nk-my-sidebar-card:last-child {
	margin-bottom: 0;
}

.nk-my-sidebar-card-title {
	font-size: 15px;
	font-weight: 600;
	color: #1f2933;
	margin-bottom: 12px;
}

.nk-my-sidebar-card-title svg {
	margin-right: 5px;
}

.nk-my-summary-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.nk-my-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: #6b7280;
}

.nk-my-summary-row b {
	font-size: 14px;
	color: #111827;
	font-weight: 700;
}
.nk-my-summary-row2 {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
    flex-direction: column;
}
.nk-my-summary-row2 b {
	font-size: 14px;
	color: #111827;
	font-weight: 700;
}

.nk-memory-events-section + .nk-memory-events-section {
	margin-top: 16px;
}

.nk-memory-events-section-title {
	font-size: 15px;
	font-weight: 500;
	color: #7b7f8c;
	margin-bottom: 9px;
}

.nk-memory-events-section-title.is-today {
	color: #c9872f;
}

.nk-memory-events-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 -10px -10px;
}

.nk-memory-event-item {
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nk-memory-event-item:hover {
	background: #fff4e2;
	text-decoration: none;
	transform: translateY(-1px);
}

.nk-memory-event-item.is-today {
    background: #fff4e2;
    border: 2px solid rgba(201, 135, 47, 0.18);
    margin-bottom: 10px;
    align-items: flex-start;
    padding: 6px;
    display: flex;
    gap: 10px;
}

.nk-memory-event-avatar-today {
    width: 60px;
    height: 74px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    flex: 0 0 60px;
}
.nk-memory-event-avatar-today img {
	width: auto;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nk-memory-event-avatar {
	width: 60px;
	height: 74px;
	border-radius: 9px;
	overflow: hidden;
	background: #f0f2f5;
	flex: 0 0 60px;
}

.nk-memory-event-avatar img {
	width: auto;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nk-memory-event-date-through {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px 10px;
}

.nk-memory-event-date {
    font-size: 18px;
    font-weight: 700;
    color: #c9872f;
    line-height: 1;
}
.through {
   color: #777;
   font-size: 13px;
   line-height: 1.2;
}
.nk-memory-event-info {
	min-width: 0;
	flex: 1;
}
.nk-memory-event-info2 {
    min-width: 0;
    display: flex;
    gap: 15px;
    align-items: stretch;
}
.nk-memory-event-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    flex: 1;
}
.nk-memory-event-name span {
	font-size: 15px;
    font-weight: 700;
    color: #1f2933;
    line-height: 1.25;
    margin: 0;
    display: inline-block;
}
.nk-memory-event-name-next span {
	font-size: 15px;
    font-weight: 700;
    color: #1f2933;
    line-height: 1.25;
    margin: 0;
    display: block;
}

.event-badge {
    font-size: 14px;
    background: #fff4e2;
    font-weight: 600;
    color: #333;
    padding: 0 8px;
    border-radius: 8px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nk-memory-event-label {
    color: #c9872f;
    font-weight: 600;
    background: #fcfcfa;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid #fce5cf;
    height: 30px;
    line-height: 30px;
    margin-top: 10px;
}

.nk-memory-event-label span {
    font-size: 15px;
}

.nk-memory-event-label svg {
    width: 20px;
    height: 20px;
}

.nk-memory-events-empty {
    padding: 15px 12px;
    border-radius: 8px;
    background: #faf7f2;
    color: #8a8f98;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    margin: 0 -10px -10px;
}
.count-pages-limit {
    display: flex;
    justify-content: space-between;
    background: #faf7f2;
    padding: 6px 10px;
    margin: 0 -10px;
    border-radius: 8px;
}
.sidebar .neb-feed-geo-widget .sidebar-title-back {
    line-height: 40px;
    background: #f9f9f9;
}
.neb-feed-geo-widget {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 767px) {
    .profile, .page-mob-12 {
        display: flex;
        flex-direction: column;
    }

    .singlecol > .profile .mob-1 {
        order: 1;
        width: 100%;
        float: none;
    }

    .singlecol > .profile .mob-2 {
        order: 2;
        width: 100%;
        float: none;
    }
    .page-mob-12 .mob-1 {
        order: 1;
        padding: 0;
    }
    .page-mob-12 .mob-2 {
        order: 2;
    }
    .nady {
    padding: 0;
}
}

@media (max-width: 600px) {
    .memorial-post-type-switcher {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .memorial-post-type-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;

        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;

        font-size: 0 !important;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;

        transition: all 0.2s ease;
    }

    .memorial-post-type-btn img {
        width: 22px;
        height: 22px;
        margin: 0;
        flex: 0 0 auto;
    }

    .memorial-post-type-btn.is-active {
        width: auto;
        min-width: 42px;
        padding: 0 12px;
        gap: 6px;

        font-size: 13px !important;
    }

    .memorial-post-type-btn:focus {
        outline: none;
    }
    .memorial-info-title {
    font-size: 16px;
    width: 50%;
    line-height: 1.2;
}
    .memorial-info-row {
    display: flex;
    padding: 0 0 10px 0;
    flex-direction: column;
}
.memorial-info-row:last-child {
    padding: 0;
}
.memorial-info-card {
    padding: 15px;
    margin-bottom: 0;
}

}

.neb-home-popular-blogs .neb-home-popular-blog-item {
    margin-bottom: 20px;
    padding: 0 18px;
}

.neb-home-popular-blog-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.neb-home-popular-blog-media {
    display: block;
    flex: 0 0 auto;
}

.neb-home-popular-blog-thumb,
.neb-home-popular-blog-icon {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff4e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neb-home-popular-blog-thumb img {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}

.neb-home-popular-blog-info {
    min-width: 0;
    flex: 1;
}

.neb-home-popular-blog-title {
    display: block;
    color: #2f2f2f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.neb-home-popular-blog-title:hover {
    color: #c98a3d;
    text-decoration: none;
}

.neb-home-popular-blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.neb-home-popular-blog-category {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff4e6;
    color: #b9782f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.neb-home-popular-blog-category:hover {
    background: #ffe8c8;
    color: #9f6425;
    text-decoration: none;
}

.neb-home-popular-blog-category.is-muted {
    background: #f4f4f4;
    color: #888;
}

.neb-home-popular-blog-views {
    color: #999;
    font-size: 13px;
    display: flex;
    gap: 3px;
    align-items: center;
    height: 18px;
    line-height: 18px;
}
.material-top-bg {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 550px;
    margin-bottom: 15px;
}
.material-top-bg:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(0deg, #000000bf, transparent);
    height: 300px;
}
.material-top-bg span {
    position: absolute;
    bottom: 34px;
    left: 44px;
    color: #fff;
    font-size: 45px;
    font-weight: 700;
    width: 70%;
    line-height: 1.3;
    text-transform: uppercase;
}
.neb-ms-page {
	margin: 0 auto;
	color: #1f2933;
}

.neb-ms-content {
	margin-top: 26px;
}

.neb-ms-card {
	padding: 30px 32px;
}
.neb-ms-card-accent {
    display: flex;
    gap: 24px;
    align-items: center;
}
.neb-ms-card-accent img {
    width: 300px;
}
.neb-ms-rec {
    display: flex;
    align-items: center;
    gap: 40px;
}
.neb-ms-card-soft {
	background: #fcf4e4;
    border-radius: 16px;
    margin-top: 30px;
}
.time-365-col {
    display: flex;
    align-items: center;
}
.time-365 {
    width: 100%;
    display: flex;
    justify-content: center;
}
.time-365 img {
    width: 350px;
}
.neb-ms-card h2,
.neb-ms-final h2 {
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #111827;
}

.neb-ms-card h3 {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 750;
	color: #111827;
}

.neb-ms-card p:last-child,
.neb-ms-final p:last-child {
	margin-bottom: 0;
}

.neb-ms-relatives-grid {
	display: grid;
	grid-template-columns: repeat(2, 145px);
	gap: 10px;
}

.neb-ms-relatives-grid span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fff7e6;
	color: #9a6518;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid #f0d6ac;
}
.neb-ms-warning {
    font-size: 14px;
    color: #9a6518;
    margin-top: 15px;
    padding-left: 10px;
    border-left: 2px solid #9a6518;
    line-height: 1.4;
}
.neb-ms-list {
	margin: 0;
	padding: 0 0 0 20px;
	list-style: none;
}

.neb-ms-list li {
	position: relative;
	margin-bottom: 18px;
	padding-left: 26px;
    line-height: 1.55;
}

.neb-ms-list li:last-child {
	margin-bottom: 0;
}

.neb-ms-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #e8b777;
	box-shadow: 0 0 0 4px rgba(232, 183, 119, 0.18);
}

.neb-ms-steps {
    display: grid;
    gap: 16px;
}

.neb-ms-step {
    display: flex;
    gap: 30px;
    padding: 18px;
    border-radius: 18px;
    background: #fcf4e4;
    border: 1px solid #f1e0c9;
}

.neb-ms-step > div:first-child {
    flex: 1; 
}
.step-img-wrapper { 
    flex: 0 0 40%; 
    max-width: 40%;
    position: relative;
    display: flex;  
    align-items: center;
    justify-content: center;
}

.step-img {
    width: auto;       
    height: auto;      
    max-height: 300px; 
    object-fit: contain; 
    display: block;    
    border-radius: 8px; 
}

.neb-ms-step-number {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #e8b777;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 20px;
}

.neb-ms-final {
	margin-top: 24px;
	padding: 0 0 0 36px;
	border-radius: 16px;
	background: #1f2933;
	display: flex;
	align-items: center;
}

.neb-ms-final h2 {
	color: #e8b777;
}

.neb-ms-final p {
	color: rgba(255, 255, 255, 0.84);
	font-size: 18px;
}

@media (max-width: 900px) {
	.neb-ms-hero {
		padding: 42px 30px;
	}

	.neb-ms-hero h1 {
		font-size: 34px;
	}

	.neb-ms-relatives-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.neb-ms-page {
		padding: 20px 12px 44px;
	}

	.neb-ms-hero {
		border-radius: 22px;
		padding: 34px 22px;
	}

	.neb-ms-hero h1 {
		font-size: 28px;
	}

	.neb-ms-hero-text {
		font-size: 16px;
	}

	.neb-ms-card,
	.neb-ms-final {
		border-radius: 20px;
		padding: 24px 20px;
	}

	.neb-ms-card h2,
	.neb-ms-final h2 {
		font-size: 22px;
	}

	.neb-ms-relatives-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.neb-ms-step {
		grid-template-columns: 1fr;
	}

	.neb-ms-step-number {
		width: 40px;
		height: 40px;
	}
}

.wow_read_blog_hdr_img {
	position: relative;
}

.nk_read_blog_hdr_actions {
	position: absolute;
	top: 20px;
	left: 20px;
	right: 20px;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.nk_read_blog_hdr_actions > * {
	pointer-events: auto;
}

.nk_blog_back_btn {
	position: relative;
	z-index: 1000;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transition: background 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}

.nk_blog_back_btn:hover,
.nk_blog_back_btn:focus {
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.nk_blog_back_btn svg {
	width: 24px;
	height: 24px;
	pointer-events: none;
}

.nk_read_blog_hdr_actions .wow_read_blog_hdr_img_share {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 1000;
}

.nk_read_blog_hdr_actions .wow_read_blog_hdr_img_share ul {
	margin: 0;
}

.wow_read_blog_hdr_img_innr {
	pointer-events: none;
}

.wow_read_blog_hdr_img_innr a {
	pointer-events: auto;
}

