html {
  position: relative;
  min-height: 100%;
  display: flex;
  justify-content: center;
}

body {
  font-family: "Gantari", sans-serif;
  color: rgba(0, 0, 0, 0.8);
  font-size: 15px;
  overflow-x: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 10px;
}

.container-fluid {
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.body-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.canvas {
  width: 100%;
  flex: 1;
  position: relative;
}

.main-content {
  flex: 1;
  max-width: calc(100% - 300px);
  overflow: hidden;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
}

.canvas-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.image-list-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.image-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.image-list img {
  object-fit: contain;
}

.monument-dimensions {
  background-color: #f8f9fa;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
  color: #9d9fa5;
  font-size: 14px;
  text-align: center;
}

.epitaph-container {
  position: relative;
  width: auto;
  max-width: 300px;
  margin: 10px auto;
}

#appwrapper {
  width: 100%;
  height: 100%;
}

.tool-block {
  margin-bottom: 20px;
}

.tool-description {
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 16px;
  color: #9d9fa5;
}

.copyright {
  position: relative;
padding-top: 12px;
}

.copyright a {
  color: #e9e9e9;
}

p {
  margin: 0;
}

.footer {
  width: 100%;
  padding: 30px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}

.footer-image {
  width: 73px;
  display: flex;
  padding: 3px;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  background-color: #d9d9d9;
  cursor: pointer;
}

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

.navbar-default .navbar-toggle .icon-bar {
  background-color: #ffffff;
}

.navbar-default .navbar-toggle:hover {
  background-color: #4db6ac;
}

.navbar-default .navbar-toggle {
  border-color: #ffffff;
}

.sidebar {
  width: 300px;
  background-color: #ffffff;
  padding: 20px 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .body-container {
    flex-direction: column;
  }

  .main-content {
    max-width: 100%;
    width: 100%;
    padding-right: 0;
    order: 1;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    order: 2;
    box-shadow: none;
    padding: 10px;
  }

  .main-content {
    width: 100%;
    order: 1;
  }

  .footer {
    width: 100%;
  }

.image-list-container {
    padding-right: 0;
  }
}

.nav-item {
  margin-bottom: 10px;
  width: 100%;
}

.rednav {
  border-radius: 0px;
  color: #ffffff;
  box-shadow: 0 0px 17px 0 rgba(0, 0, 0, 0.2), 0 0px 20px 0 rgba(0, 0, 0, 0.19);
}

.navbar-toggle:focus {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.3);
}

.tool,
.button1 {
  background-color: #1e2c5c;
  color: #ffffff;
  border: none;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  padding: 11px 30px;
  display: flex;
  align-items: center;
  justify-content: left;
}

.tool:hover,
.button1:hover {
  background-color: #ffffff;
  color: #1e2c5c;
}

#contentDiv {
  overflow: hidden;
  width: 100%;
}

.empty-container-80 {
  height: 160px;
}

.centered {
  float: none;
  margin: 0 auto;
}

.dont-break-out {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.modal-header {
  background-color: #1e2c5c;
  border-radius: 0px;
  color: #ffffff;
  border-color: #1e2c5c;
}

.modal-footer {
  background-color: #1e2c5c;
  border-radius: 0px;
  color: #ffffff;
  border-color: #1e2c5c;
}

.modal-footer .btn-flat {
  background-color: #1e2c5c;
  border-radius: 0px;
  border: solid 2px #ffffff;
  color: #ffffff;
  transition: all 0.3s ease;
}

.modal-footer .btn-flat:hover {
  background-color: #ffffff;
  color: #1e2c5c;
}

.modal-footer .btn-flat:active {
  background-color: #ffffff;
  color: #1e2c5c;
}

.modal-header .close {
  color: #ffffff;
  opacity: 0.8;
}

.modal-header .close:hover {
  color: #ffffff;
  opacity: 0.99;
}

.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 15px;
}

.right {
  position: relative;
  float: right;
}

.hidden {
  display: none;
}

.input-group,
select {
  margin: 8px;
}

select {
  width: calc(100% - 16px) !important;
}

.smallinput {
  margin-right: 0px;
  margin-left: 0px;
  padding: 0px;
}

#cleartext {
  cursor: pointer;
}

.colorpicker-label {
  max-width: 250px;
  position: relative;
  float: left;
  margin: 8px;
  margin-top: 16px;
}

.colorpicker {
  max-width: 100px;
  position: relative;
  float: left;
  margin: 2px;
  margin-top: 12px;
}

.preview {
  width: 100%;
  min-height: 200px;
  padding: 0px;
  border: solid 1px #1e2c5c;
  margin-top: 5px;
}

.preview-big {
  width: 100%;
  min-height: 350px;
  padding: 0px;
  border: solid 1px #1e2c5c;
  margin-top: 5px;
}

.hexcolor {
  margin: 5px;
  margin-top: 10px;
  width: 130px;
  position: relative;
  float: left;
}

.checkbox {
  padding: 6px;
  border: solid 1px #cccccc;
  border-radius: 4px;
}

.slider {
  padding: 6px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 0px;
}

.table td {
  text-align: center;
}

.table {
  border-radius: 6px;
  padding: 0px;
  border-top: 1px solid #cccccc;
}

.linewidth {
  width: 130px;
  padding-left: 10px;
}

@media screen and (min-width: 720px) {
  .canvas {
    height: auto;
  }

  .redactor-name-title {
    line-height: 1.5; /* Высота строки */
    max-height: 3em; /* Максимальная высота для двух строк */
    font-size: 16px;
    overflow: hidden; /* Скрываем переполнение */
    text-overflow: ellipsis; /* Добавляем многоточие, если текст длиннее */
    display: -webkit-box; /* Для поддержки в браузерах WebKit */
    -webkit-line-clamp: 2; /* Ограничиваем до двух строк */
    -webkit-box-orient: vertical; /* Устанавливаем ориентацию блока */
  }
  
}

@media screen and (min-width: 407px) {
  .empty-container-80 {
    height: 80px;
  }
}
.header-page {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #1E2C5C33;
  width: 100%;
}

@media (max-width: 1024px) {
  .header-page {
    padding: 15px;
    position: relative;
  }

  .custom-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-right: 50px;
    margin-left: 15px;
  }

  .custom-nav-menu {
    flex-direction: column;
    gap: 30px;
    padding-top: 80px;
  }

  .custom-nav-menu-right {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
  }

  .custom-nav-item {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    text-align: center;
  }

  .custom-nav-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #1E2C5C;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .custom-nav-item:hover:after {
    width: 100%;
  }

  .custom-logo-section {
    justify-content: flex-start;
  }

  .custom-contact-section {
    text-align: right;
  }
}

@media (max-width: 768px) {
  .custom-header {
    align-items: flex-start;
    padding-right: 0;
    margin-left: 15px;
  }

  .custom-logo-circle {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }

  .custom-title {
    font-size: 14px;
  }

  .custom-phone {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .custom-call-order {
    font-size: 14px;
  }

  .custom-contact-section {
    text-align: left;
  }

  .burger-menu {
    top: 15px;
  }
}

@media (max-width: 480px) {
  .header-page {
    padding: 10px;
  }

  .custom-logo-section {
    flex-direction: row;
    /* gap: 10px; */
    text-align: left;
  }

  .custom-logo-circle {
    margin-right: 10px;
    width: 69px;
    height: 69px;
  }

  .custom-nav-section {
    padding: 0;
  }

  .custom-nav-menu {
    padding-top: 60px;
  }

  .custom-nav-item {
    font-size: 16px;
  }

  .burger-menu {
    width: 25px;
    height: 20px;
    right: 15px;
    top: 15px;
  }
}

.custom-header {
  display: flex;
  justify-content: space-between;
}

.custom-logo-section {
  display: flex;
  align-items: center;
  /* gap: 20px; */
}

.custom-logo-section2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.custom-logo {
  width: 70px;
  height: 120px;
  margin-right: 24px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .custom-logo {
    width: 50px;
    height: 86px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .custom-logo {
    width: 69px;
    height: 69px;
    margin-right: 10px;
  }
}

.custom-title {
  margin: 0;
  font-size: 16px;
  color: #1E2C5C;
  white-space: nowrap;
}

.mobile-header-text {
  display: none;
  font-size: 16px;
  color: #1E2C5C;
  font-weight: 500;
  margin-right: 20px;
}

.custom-contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  width: 100%;
}

.custom-contact-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 150px;
}

@media (max-width: 768px) {

  .custom-contact-wrapper {
    flex-direction: row;
    align-items: center;
    margin-top: 15px;
    margin-right: 60px;
  }
}

@media (max-width: 480px) {
  .custom-contact-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
  }
}

.custom-subtitle {
  margin: 0;
  font-size: 16px;
  color: #1E2C5C;
}

.custom-nav-section {
  display: flex;
  align-items: center;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
  position: fixed;
  right: 20px;
  top: 20px;
  background: #1E2C5C;
  border: none;
  padding: 5px;
  border-radius: 4px;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-menu.active {
  background-color: #1E2C5C;
}

.burger-menu.active .burger-line {
  background-color: #ffffff;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.custom-nav-menu {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

@media (max-width: 1024px) {
  .burger-menu {
    display: flex;
  }

.custom-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 1000;
  padding: 60px 20px;
  backdrop-filter: blur(5px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-nav-menu.active {
  opacity: 1;
  visibility: visible;
}

  .custom-nav-menu > a:first-child {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
  }

  .custom-nav-menu-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
  }

  .custom-nav-menu a {
    position: relative;
    transition: color 0.3s ease;
  }

  .custom-nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1E2C5C;
    transition: width 0.3s ease;
  }

  .custom-nav-menu a:hover:after {
    width: 100%;
  }

  .custom-nav-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .custom-nav-menu-right {
    width: 100%;
    text-align: center;
  }

  .custom-nav-item {
    display: block;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 500;
  }

  .custom-nav-menu.active {
    display: flex;
  }

  .burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .burger-menu:hover .burger-line {
    background-color: #fff;
  }

  .burger-menu.active {
    background-color: #1E2C5C;
  }

  body.menu-open {
    overflow: hidden;
  }
}

.custom-nav-menu-right {
  display: flex;
  gap: 20px;
}

.custom-nav-item {
  text-decoration: none;
  font-size: 14px;
  color: #1E2C5C;
  text-align: center;
}

.first-link {
  text-align: left;
}

.custom-contact-section {
  text-align: right;
}

.custom-contact-section2 {
  text-align: left;
}

.custom-phone {
  margin: 0;
  font-size: 16px;
  color: #1E2C5C;
}

.custom-call-order {
  font-size: 16px;
  color: #9D9FA5;
  text-decoration: none;
  text-transform: uppercase;
}

.redactor-name {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 60px;
  font-family: "Brygada 1918", serif;

}

.redactor-name-title {
  font-size: 40px;
  font-weight: 700;
  color: #1E2C5C;
  font-family: "Brygada 1918", serif;
}

.redactor-name-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #1E2C5C;
  margin-left: 20px;
}

.redactor-name-right {
  display: flex;
  gap: 23px;
  align-items: center;
}

.photo-component {
  background-image: url('../images/background-image.jpg'); /* Путь к изображению */
  background-size: cover; /* Изображение будет покрывать весь элемент */
  background-position: center; /* Центрируем изображение */
  height: 300px; /* Задаем высоту элемента */
  width: 100vw; /* Задаем ширину элемента на всю ширину окна просмотра */
  position: relative; /* Убедитесь, что элемент может позиционироваться относительно родителя */
  left: 50%; /* Сдвигаем элемент на 50% вправо */
  right: 50%; /* Сдвигаем элемент на 50% влево */
  margin-left: -50vw; /* Убираем половину ширины окна просмотра для центрирования */
  margin-top: 120px;
  position: relative;
}

.text-page {
  font-family: "Brygada 1918", serif;
}

.text-page-line {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.text-page-content {
  flex: 0 0 calc(50% - 15px);
  min-width: 280px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .text-page-line {
    gap: 30px;
  }

  .text-page-content {
    flex: 0 0 calc(50% - 15px);
  }

  .text-page-name {
    display: flow;
    margin-top: 40px;
  }

  .text-page-name-title {
    font-size: 32px;
  }

  .redactor-name {
    display: flow;
  }

  .redactor-name-title {
    font-size: 32px;
    margin-left: 20px;
  }

  .redactor-name-right {
    width: 100%;
    justify-content: left;
  }
}

@media (max-width: 650px) {
  .text-page-line {
    gap: 20px;
  }
  
  .text-page-content {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .text-page-line {
    gap: 20px;
  }

  .text-page-name-title {
    font-size: 28px;
  }

  .text-page-01 {
    font-size: 20px;
  }

  .text-page-subtitle {
    font-size: 14px;
  }

  .redactor-name-title {
    font-size: 28px;
    margin-left: 20px;
  }

  .redactor-name-subtitle {
    font-size: 12px;
  }

  .photo-component-title {
    font-size: 20px;
    bottom: 60px;
  }

  .photo-component-subtitle {
    font-size: 14px;
    bottom: 30px;
  }
}

.text-page-01 {
font-size: 24px;
font-weight: 400;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: #1E2C5C;
}

.text-page-subtitle {
font-size: 16px;
font-weight: 400;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: #9D9FA5;
}

.text-page-content {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: left;
  gap: 4px;
  border-left: 1px solid #1E2C5C;
}

.text-page-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  align-items: center;
}

.text-page-name-title {
font-size: 40px;
font-weight: 700;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: #1E2C5C;
}

.text-page-name-right {
font-size: 13px;
font-weight: 700;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: #1E2C5C;
display: flex;
align-items: center;
gap: 77px;
}

.footer-page {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #ccc; /* Линия сверху с серым цветом */
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 769px) {
  .footer-page-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer-page {
    width: 100%;
    flex-direction: column;
    gap: 30px;
  }

  .footer-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .custom-logo-name {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    height: 80px;
  }

  .footer-page-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
    order: 1;
    border-top: 1px solid rgba(30, 44, 92, 0.1);
    padding-top: 10px;
    width: 100%;
  }

  .footer-contacts {
    order: 2;
    margin-top: 20px;
  }

  .links-section {
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
  }

  .footer-page-right a {
    color: #1E2C5C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .footer-page {
    padding: 20px 15px;
    gap: 30px;
  }

  .custom-logo-circle {
    width: 35px;
    height: 35px;
  }

  .custom-title {
    font-size: 14px;
  }

  .custom-phone {
    font-size: 14px;
  }

  .custom-call-order {
    font-size: 12px;
  }

  .footer-page-right a {
    font-size: 16px;
  }
}

.custom-logo-name {
  display: flex;
  align-items: center;
}

.nil {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: end;
}

.logoNil {
  max-height: 26px;
  width: auto;
}

.links-section {
  display: flex;
  gap: 20px;
}

.footer-page-right {
  list-style: none; /* Убираем точки списка */
  display: flex; /* Делаем элементы списка в одну строку */
  flex-direction: column; /* Возвращаем элементы в колонку */
  gap: 20px; /* Устанавливаем расстояние между элементами */
  margin-top: 20px;
}

.footer-page-right a {
  font-size: 20px; /* Размер шрифта */
  font-weight: 400; /* Толщина шрифта */
  color: #1E2C5C; /* Цвет текста */
  text-decoration: none; /* Убираем подчеркивание */
}

.footer-page-right a:hover {
  text-decoration: underline; /* Подчеркивание при наведении */
}

.photo-component-subtitle {
  position: absolute; /* Позволяет позиционировать элемент относительно родителя */
  bottom: 40px; /* Отступ от низа родительского элемента */
  left: 50%; /* Центрируем элемент по горизонтали */
  transform: translateX(-50%); /* Сдвигаем элемент на половину его ширины для центрирования */
  text-align: center; /* Выравнивание текста по центру */
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
}

.photo-component-title {
  position: absolute; /* Позволяет позиционировать элемент относительно родителя */
  bottom: 120px; /* Отступ от низа родительского элемента */
  left: 50%; /* Центрируем элемент по горизонтали */
  transform: translateX(-50%); /* Сдвигаем элемент на половину его ширины для центрирования */
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  width: 300px;
}
