/* Стили для кнопки печати*/
.btn-group.pull-right {
  margin-top: 10px;
  position: relative;
  display: inline-block;
  float: right;
}

.btn {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
}

.btn:hover {
  background: #e9ecef;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 0 !important;
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  list-style: none;
  margin: 0 !important;
}

li.print-icon {
    margin-bottom: 0em !important;
}

.open .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #f8f9fa;
}

.icon-print::before { content: "🖨"; }
.caret::before { content: "▼"; font-size: 10px; }


  
.our-proj-glr {
    display: flex;
    flex-wrap: wrap;
}

.our-proj-glr__item {
    margin: 0 20px 20px 0;
    width: calc(100%/3 - 20px);
    text-align: center;
}

.our-proj-glr__item h4 {
    margin: 0 0 15px;
    font-size: 20px;
}

.our-proj-glr__item div {
    margin: 0 0 10px;
}

.our-proj-glr__item div a {
    display: none;
}

.our-proj-glr__item div a:first-child {
    display: block;
}

.our-proj-glr__item img {
    border: 2px solid #7f4324;
    border-radius: 5px;
    width: 250px;
    height: 250px;
    transition: .25s;
}

.our-proj-glr__item img:hover {
    border-color: #ee7f17;
}

.our-proj-glr__item p {
    margin: 0 auto;
    max-width: 320px;
}

.our-proj-glr--vertical .our-proj-glr__item {
    margin: 0;
    padding: 25px 20px 20px 30px;
    border: 3px solid #f0caa8;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    width: 100%;
    text-align: left;
}

.our-proj-glr--vertical .our-proj-glr__item + .our-proj-glr__item {
    margin-top: 25px;
}

.our-proj-glr__i-cont {
    display: flex;
    margin: 0 !important;
	justify-content: flex-start;
}

.our-proj-glr--vertical .our-proj-glr__item h4 {
    font-size: 24px;
}

.our-proj-glr__i-desc,
.our-proj-glr__i-photo {
    margin: 0 !important;
}

.our-proj-glr__i-desc {
    width: 385px;
    max-width: 100%;
}

.our-proj-glr__i-desc p {
    max-width: 100%;
}

#content .our-proj-glr__i-desc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.our-proj-glr__i-photo {
    display: flex;
    flex-wrap: wrap;
    margin-left: 35px !important;
    max-width: 100%;
    align-items: center;
}

.our-proj-glr__i-photo a {
    margin: 0 0 10px 10px;
}

.our-proj-glr--vertical .our-proj-glr__item div a {
    display: block;
}

.our-proj-glr--vertical .our-proj-glr__item img {
    width: auto;
    height: 90px;
}

@media screen and (max-width: 767px) {
    .our-proj-glr__i-cont {
        flex-direction: column;
    }
    .our-proj-glr__i-photo {
        margin: 15px 0 0 !important;
    }
}

/* Стили для списков фото-описание*/
.img-txt {
  padding: 0;
  margin: 0 !important;
  list-style: none;
}

.img-txt li {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0 !important;
  gap: 30px;
  margin-bottom: 35px !important;
  align-items: flex-start;
}

.img-txt__photo {
  margin-top: 15px;
  flex: 0 0 280px;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.img-txt__photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

.img-txt__photo:hover img {
  transform: scale(1.03);
}

.img-txt__description {
  flex: 1;  
  min-width: 300px; 
}

.img-txt__description h3 {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  color: #2d3748;
  line-height: 1.3;
}

.img-txt__description a {
  display: inline-block;
  font-size: 1.1rem;
  color: #e67e22;
  text-decoration: none;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(230, 126, 34, 0.3);
}

.img-txt__description a:hover {
  color: #d35400;
  border-bottom-color: #e67e22;
}

.img-txt__description p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #4a5568;
}

@media (max-width: 800px) {
  .img-txt li {
    gap: 20px;
  }
  
  .img-txt__photo {
    flex-basis: 240px;
  }
}

@media (max-width: 600px) {
  .img-txt li {
    flex-direction: column;
  }
  
  .img-txt__photo {
    flex-basis: auto;
    width: 100%;
  }
}

/* Стили для галлерей*/
.m-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 15px;
    padding: 10px 0;
}

.m-gallery a {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    border: 3px solid #7f4324;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.m-gallery a:hover {
    border-color: #ee7d18;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.m-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.m-gallery iframe, 
.m-gallery video {
    width: 31%;
    height: 230px;
    border: none;
    border-radius: 7px 7px 0 0;
}

.m-gallery__item {
    width: calc(25% - 15px);
    margin-bottom: 15px;
}

.m-gallery__item p {
    margin: 10px 0 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    padding: 0 10px;
    font-size: 0.9em !important;
    color: #7f4324 !important;
}

.m-gallery--certificates a {
    width: 175px;
}

.m-gallery--certificates a,
.m-gallery--certificates img {
    height: 230px;
}

@media screen and (max-width: 1200px) {
    .m-gallery__item {
        width: calc(33.33% - 15px);
    }
}

@media screen and (max-width: 991px) {
    .m-gallery__item {
        width: calc(50% - 15px);
    }
    
    .m-gallery img {
        height: 180px;
    }
    
    .m-gallery--certificates a,
    .m-gallery--certificates img {
        height: 200px;
    }
}

@media screen and (max-width: 767px) {
    .m-gallery {
        gap: 10px;
    }
    
    .m-gallery__item {
        width: calc(50% - 10px);
    }
    
    .m-gallery iframe, 
    .m-gallery video {
        height: 180px;
    }
    
    .m-gallery img {
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .m-gallery a,
    .m-gallery__item {
        width: 100%;
        max-width: 300px;
    }
    
    .m-gallery img,
    .m-gallery iframe, 
    .m-gallery video {
        height: 200px;
    }
    
    .m-gallery--certificates a {
        width: 150px;
    }
    
    .m-gallery--certificates a,
    .m-gallery--certificates img {
        height: 180px;
    }
}

/* Основные стили для страницы */
.item-page {
  color: #333;
  line-height: 1.7;
  max-width: 95%;
  margin: 0 auto;
  padding: 20px;
}

/* Заголовки */
.item-page h1 {
  font-size: 2.2rem;
  color: #7f4324;
  margin: 0 0 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

.item-page h2 {
  font-size: 1.8rem;
  color: #7f4324;
  margin: 1.3em 0 0.7em;
  font-weight: 600;
}

.item-page h3 {
  font-size: 1.5rem;
  color: #a17258;
  margin: 1.1em 0 0.6em;
}

/* Основной текст */
.item-page p {
  font-size: 1.1rem;
  margin: 0 0 1.5em 0;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
  color: #444;
}

/* Списки */
.item-page ul, .item-page ol {
  margin: 1em 0 1.5em 2em;
  padding: 0;
}

.item-page li {
  margin-bottom: 0.7em;
  padding-left: 0.5em;
}

/* Цитаты */
.item-page blockquote {
  border-left: 4px solid #3498db;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: #f8f9fa;
  color: #555;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

/* Код и преформатированный текст */
.item-page pre, .item-page code {
  font-family: 'Courier New', monospace;
  background: #f5f7fa;
  border-radius: 4px;
}

.item-page pre {
  padding: 1em;
  overflow-x: auto;
  margin: 1.5em 0;
  border-left: 3px solid #e74c3c;
}

.item-page code {
  padding: 0.2em 0.4em;
  font-size: 0.9em;
}

/* Таблицы */
.item-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.item-page th, .item-page td {
  padding: 0.75em 1em;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.item-page th {
  background-color: #7f4324;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.item-page tr:nth-child(even) {
  background-color: #f9f5f2;
}

.item-page tr:hover {
  background-color: #f0e6dd;
}

/* Подписи */
.item-page figcaption {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: -1em;
  margin-bottom: 1.5em;
}

/* Адаптивность */
@media (max-width: 768px) {
  .item-page {
    padding: 0px;
    font-size: 0.95rem;
  }
  
  .item-page h1 {
    font-size: 1.8rem;
  }
  
  .item-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }
  
  .item-page th, 
  .item-page td {
    padding: 0.5em 0.75em;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .item-page {
    padding: 5px 0px;
  }
  
  .item-page table {
    font-size: 0.7rem;
  }
  
  .item-page th, 
  .item-page td {
    padding: 0.4em 0.6em;
  }
}
/* Обертка для таблицы с прокруткой */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}

/* Стили для таблицы сравнения */
.comparison-table {
  width: 100%;
  min-width: 800px; /* Минимальная ширина для удобного отображения */
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th, 
.comparison-table td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background-color: #7f4324;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f5f2;
}

.comparison-table tr:hover {
  background-color: #f0e6dd;
}

@media (max-width: 992px) {
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-table th, 
  .comparison-table td {
    padding: 8px 10px;
  }
}