/* Нормализация стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    background-color: #fff4f0;
    color: #333;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {font-family: Arial, Helvetica, sans-serif; color: #a47764;    white-space: break-spaces;   word-break: break-word;}
blockquote {   margin: 20px 0; padding-left: 1.5rem;  border-left: 5px solid #a47764;}
a {color: #30221d; text-decoration: underline;  text-decoration-style: dotted;  text-decoration-color: #a47764; }
a:hover {text-decoration: none;}
video {    width: 100%; max-width: 800px; height: auto; display: block;  margin: 0 auto;  }
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Основные блоки */
.header {
    background-color: #fff; padding: 0.3rem 0.5rem;
    color: #111;
    text-align: center; display: flex; flex-direction: row;justify-content: space-between;  
}

 
.logo {         flex-basis: 40%;    display: flex;      justify-content: center;      align-items: center;      text-align: center;     order: 2;  }
.logo img { max-width: 100%; height: auto;  transition: transform 0.3s ease-in-out; }
.logo img:hover  {
   transform: scale(1.1); 
}
.ame {      display: flex;   flex-basis: 30%; justify-content: left; align-items: center;order: 1; }
.tme {      display: flex;   flex-basis: 30%; justify-content: right; align-items: center;order: 3; }
.tme a span, .ame a span {display: none;}
.tme a, .ame a {color: #a47764; text-decoration: none; font-family: Arial, Helvetica, sans-serif; display: inline-flex; line-height: 1.1;  align-items: center;  transition: color 0.3s ease-in-out;  }
.tme a:hover, .ame a:hover {color: #000; }
 
.add-photo {
  width: 24px; margin-right: 3px; /* Размер иконки */
  height: 24px; /* Размер иконки */
  background-color: #a47764; /* Цвет иконки */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 7.757v8.486M7.757 12h8.486M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>') no-repeat center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 7.757v8.486M7.757 12h8.486M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/></svg>') no-repeat center;
  background-size: contain; /* Размер иконки */
  transition: background-color 0.3s, transform 0.3s ease-in-out; 
}
.add-video {
  width: 24px;
  height: 24px;
  margin-right: 3px;
  background-color: #a47764;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 6H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1Zm7 11-6-2V9l6-2v10Z"/></svg>') no-repeat center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 6H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1Zm7 11-6-2V9l6-2v10Z"/></svg>') no-repeat center;
  background-size: contain;
  transition: background-color 0.3s, transform 0.3s ease-in-out;
}
.market {
  width: 24px;
  height: 24px;
  margin-right: 3px;
  background-color: #a47764;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13l-1.35 2.7A1 1 0 0 0 6.5 17h11a1 1 0 0 0 .85-1.5L17 13M7 13l1.5-3m0 0L9.6 6M8.5 10h7"/></svg>') no-repeat center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13l-1.35 2.7A1 1 0 0 0 6.5 17h11a1 1 0 0 0 .85-1.5L17 13M7 13l1.5-3m0 0L9.6 6M8.5 10h7"/></svg>') no-repeat center;
  background-size: contain;
  transition: background-color 0.3s, transform 0.3s ease-in-out;
}
.user {
  width: 24px;  /* Размер иконки */
  height: 24px; /* Размер иконки */
  background-color: #a47764; /* Цвет иконки */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M7 17v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1a3 3 0 0 0-3-3h-4a3 3 0 0 0-3 3Zm8-9a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/></svg>') no-repeat center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M7 17v1a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1a3 3 0 0 0-3-3h-4a3 3 0 0 0-3 3Zm8-9a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/></svg>') no-repeat center;
  background-size: contain; /* Размер иконки */
  transition: background-color 0.3s, transform 0.3s ease-in-out; 
}
.logout {
  width: 24px; /* Размер иконки */
  height: 24px; /* Размер иконки */
  background-color: #a47764; /* Цвет иконки */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="%23000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7h14m-9 3v8m4-8v8M10 3h4a1 1 0 0 1 1 1v3H9V4a1 1 0 0 1 1-1ZM6 7h12v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7Z"/></svg>') no-repeat center;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="%23000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7h14m-9 3v8m4-8v8M10 3h4a1 1 0 0 1 1 1v3H9V4a1 1 0 0 1 1-1ZM6 7h12v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7Z"/></svg>') no-repeat center;
  background-size: contain; /* Размер иконки */
  transition: background-color 0.3s, transform 0.3s ease-in-out;
}
 

.ame a:hover .add-photo, .ame a:hover .add-video, .ame a:hover .market, .tme a:hover .user , .tme a:hover .logout {
  background-color: #000; transform: scale(1.4);/* Цвет иконки при наведении */
}
.nav {
    background-color: #30221d;
    color: #fff;
    padding: 1rem 0;
        position: sticky;
    top: 0px; /* Расстояние от верхней границы экрана, под header */
    z-index: 999; /* Расположим чуть ниже header */
    overflow-x: auto;
    scrollbar-width: none; /* Скрыть скроллбар в Firefox */
    -ms-overflow-style: none; /* Скрыть скроллбар в IE */
    display: flex; /* Горизонтальное выравнивание содержимого */     
    white-space: nowrap; /* Запрет на перенос строк */
}

.nav::-webkit-scrollbar {
    display: none; /* Скрыть скроллбар в Chrome, Safari */
}

 
.nav > * {
    flex-shrink: 0; /* Запрет на сжатие элементов */
    margin-right: 20px; /* Пример отступа между элементами */
}

.menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0 1rem;
    white-space: nowrap; /* Запрещаем перенос строк */
}

.menu li {
    flex-shrink: 0; /* Ссылки не сжимаются */
    display: inline-flex;  line-height: 32px;
}

.menu a {
    display: flex; /* Flexbox для внутреннего содержания */
    align-items: center; /* Вертикальное выравнивание текста и изображения */
    text-decoration: none;
    color: #fff;
    padding-left: 0.5rem;
    background-color: #795647;
    border-radius: 4px;
    gap: 0.5rem;
    transition: background-color 0.3s ease; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.menu a sup {font-size: 0.6em;  vertical-align: super; /* Выравниваем над текстом */
    position: relative;
    top: -0.5em; }
/* Наведение на блок <a> или <li> */
.menu a:hover {
    background-color: #fff; 
    color: #a47764;
}

/* Прозрачность картинки внутри блока <a> */
.menu a:hover img {
    opacity: 1; /* Убираем наложение при наведении на родительский блок */
}

.menu a img {
    border-radius: 0 4px 4px 0; 
    width: 64px; /* Фиксированная ширина для изображения */
    height: 32px; /* Фиксированная высота для изображения */
    display: block;  
    opacity: 0.5; 
    background-color: rgba(164, 119, 100, 1); 
    transition: opacity 0.3s ease;
}


/* Основной контент */
.main {
    flex: 1;
 
    padding: 0;
}
.main  h1  {font-size: calc(2rem + 0.9vw);  }
.main  h2  {font-size: calc(1.8rem + 0.8vw);  }
.main  h3  {font-size: calc(1.6rem + 0.7vw);  }
.main  h4  {font-size: calc(1.4rem + 0.6vw);  }
.main  h5  {font-size: calc(1.2rem + 0.5vw);  }
.main  h6  {font-size: calc(1.1rem + 0.4vw);  }
.main .hh {text-align: center; padding: 20px 0;}
.responsive-img {  width: 100%;   height: auto;}
 
 
.gallery {
    display: flex;
    flex-wrap: wrap;
  justify-content: space-around;
  gap: 0;
     
}

.photo-card {
    position: relative; 
    width: calc(50%); /* Адаптивная ширина для 4 фото в строке */
    max-width: 320px;
    border: 1px solid #eee;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
 

transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } 

.photo-card img {
    width: 100%;
    height: auto;
    object-fit: cover; margin-bottom: -7px;
}

.photo-info {
     position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background-color: rgba(164, 119, 100, 0.3);
    color: #fff;
    font-size: 0.9rem; transition: background-color 0.3s ease;
}
.photo-info:hover {background-color: rgba(164, 119, 100, 0.8);}

.photo-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Сокращение длинного текста с "..." */
    margin: 0;
    font-weight: bold;
}
.photo-title a {color: #fff; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: #ccc;}
.photo-title a:hover {color: #eee ;text-decoration:none;}
.photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
}

.photo-date {
    font-size: 0.8rem;
    align-items: center; display: flex;
    color: #eee;
}

.photo-views {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.icon-eye {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.3rem;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 4.5C7.305 4.5 3.135 7.81 1.5 12c1.635 4.19 5.805 7.5 10.5 7.5s8.865-3.31 10.5-7.5c-1.635-4.19-5.805-7.5-10.5-7.5zm0 12c-2.48 0-4.5-2.02-4.5-4.5S9.52 7.5 12 7.5 16.5 9.52 16.5 12 14.48 16.5 12 16.5zm0-7.5c-1.655 0-3 1.345-3 3s1.345 3 3 3 3-1.345 3-3-1.345-3-3-3z"/></svg>') no-repeat center;
    background-size: contain;
}
.icon-star {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.3rem;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M13.849 4.22c-.684-1.626-3.014-1.626-3.698 0L8.397 8.387l-4.552.361c-1.775.14-2.495 2.331-1.142 3.477l3.468 2.937-1.06 4.392c-.413 1.713 1.472 3.067 2.992 2.149L12 19.35l3.897 2.354c1.52.918 3.405-.436 2.992-2.15l-1.06-4.39 3.468-2.938c1.353-1.146.633-3.336-1.142-3.477l-4.552-.36-1.754-4.17Z"/></svg>') no-repeat center;
    background-size: contain;
}
.kakacoin {
    display: inline-block;
    width: 24px; margin-top: 3px;
    height: 24px;
    margin-left: 0.3rem;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23000"><path d="M45 15v70h8V57l17 28h10L60 50l20-35H72L53 45V15h-8Z"/><rect x="32" y="22" width="36" height="5"/><rect x="32" y="73" width="36" height="5"/></svg>') no-repeat center;
    background-size: contain;
}



.comment-card {
  display: flex;
  flex-direction: row;
  width: calc(100%); /* Два блока в строке с отступами */
  max-width: 500px;
  aspect-ratio: 2.5 / 1; /* Соотношение сторон 2.5:1 */
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border-radius: 24px 4px 4px 4px;
  margin: 0 0.5rem 1rem 0.5rem;


}

.comment-photo {
  flex: 1;
  overflow: hidden;
  position: relative; 
}

.comment-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background-color: rgba(164, 119, 100, 0.01);
  color: #222;
}

.comment-text {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #333;
}
.comment-text a {color: #444; text-decoration: none;}

.comment-meta {
  font-size: 0.9rem;
  color: #444;
}

.comment-user {
  font-weight: bold;
}

.comment-city {
  color: #555;
}

.comment-date {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
}
.user-block {
    display: flex;
    align-items: center; /* Выравнивание по центру */
}
.user-link {
    display: flex;
    align-items: center;
    
}



.user-name {
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap; /* Запрещает перенос текста */
}

.bform {   background-color: #fff; border: 1px solid #ddd; padding: 0 15px;  border-radius: 5px;

}
 
ul.collapsible {
  list-style: none;
  margin: 5px 10px;
  
}

.collapsible li {
  
  margin-bottom: 5px;
 
  overflow: hidden;padding: 6px;
}


.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    background: linear-gradient(145deg, #ffe29f, #ffa07a); /* солнечный градиент */
    font-weight: bold;
    border-radius: 8px;
    color: #4a2c0b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: center;
    border: none;
    user-select: none;
    margin-bottom: 16px;
}

.collapsible-header:hover {
    background: linear-gradient(145deg, #ffd36e, #ff8c42);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}





 

 

.collapsible-header i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  background-color: #fff; border-radius: 8px;
}
.collapsible-body p, .bform p  { padding: 10px 0;}

.collapsible-body span {
  display: block;
  padding: 15px 0;
}
.collapsible-body img {max-width: 320px;}

/* Open state (dynamic height is applied by JS) */
.collapsible-body.open {
  overflow: visible;
}

.row {display: flex;justify-content: space-between; align-items: center; flex-wrap: wrap; }
@media only screen and (max-width: 600px){ 
 .users {  flex-direction: column-reverse; }
}
.users , .userss {padding: 4px 6px!important;    margin-bottom:10px ; border-bottom: 1px solid #ccc; border-top: 1px solid #eee; border-left: 10px solid #eee;  border-right: 10px solid #a47764;  display: flex;   justify-content: space-between;}
.users {flex-basis: 50%; align-items: center;}
.userss { flex-basis: 100%; align-items: center;}
.users span {font-weight: 600;} 
.users img {border-radius: 50%; max-width: 88px; }

    .chart-container {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
        }
        .chart {
            display: flex;
            align-items: flex-end;
            gap: 10px;
            height: 300px;
            position: relative;
        }
        .chart-bar {
              position: relative;
            background-color: #a47764;
            width: 8%;
            text-align: center;
            color: black;
            font-size: 14px;
            line-height: 1.2;
        }
        .chart-bar span {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.8em;
            padding-bottom: 5px;
        }
        .chart-labels {
            display: flex;
            justify-content: space-around;
            margin-top: 10px;
        }
        .chart-labels span {
           font-size: 0.6em; text-align: center;
        }



    .kaknbr { flex-direction: column;   }
    .kakh1, .kakb { flex: none; width: 100%;   }
    .kakh1 h1 { font-size: 2rem;  }
    .kakh1 { order: 1; text-align: center;}
    .kakb { order: 2;}
    .kakb img { max-width: 100%; height: auto;}
    .kakff {max-width: 100%;}    


.krows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

.krow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #333;
}

.krow .breadcrumb {
  color: #a47764;
  text-decoration: none;
  font-weight: bold;
}

.krow .breadcrumb:hover {
  color: #000;
}

.krow > span::after {
  content: '>';
  margin: 0 5px;
  color: #888;
}

.krow > span:last-child::after {
  content: '';
}

.krowl {
  display: flex;
  gap: 20px;
}

.krowl a {
  color: #a47764;
  text-decoration: none;
  font-size: 18px;
}

.krowl a:hover {
  color: #000000;
  text-decoration: none;  
}

.krowl a b {
  font-size: 20px;
  vertical-align: middle;
}
.cnt {  display: flex;  flex-direction: column;   justify-content: space-between;  }
.inf { display: flex;  flex-direction: column;  flex-basis: 100%; padding: 20px; }
.inf p {position: relative; margin-bottom: 10px;}
.inf .right { position: absolute; display: flex; bottom: 0;  right: 0; background-color: #a47764; padding: 1px 9px; border-radius: 3px; color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);     align-items: center; }
.inf .ava, .imya .ava {border-radius: 50%; max-width: 240px; margin: 0 auto;  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);   margin-right: 10px;}
 .imya .ava {max-width: 40px;}
.cont {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px; flex-basis: 100%;
  

  margin: 0 auto;
}

.collection {
  list-style: none;
  padding: 0;
  margin: 0;
}

.collection-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ffffff;
  padding: 15px; margin-bottom: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #a47764;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.collection-item:target {
    scroll-margin-top: 100px;
}


.collection-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.imya {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #333; 
  justify-content: space-between;
}

.imya span {
  font-size: 30px; line-height: 25px;
   margin-top: -6px;
}

.imya .title {
  margin-left: 10px;    
}

.ttx {
  font-size: 1em;
  color: #444;
  line-height: 1.5;
}

.city {
  font-size: 13px;
  color: #888;
  position: relative;
}

.city span {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 12px;
  color: #666;
}

.city::before {
  content: "📍 ";
}

.collection-item p {
  margin: 0;
}

 





.aside {
    background-color: #eedfdb;
    padding: 1rem;
    text-align: center;
}
.aside h5 {font-size: 1.2em;}

.footer {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
    display: flex;justify-content: space-between;
    align-items: center;
}
.footer .copy {display: flex; align-items: center;   }
.footer .views {display: flex; align-items: center;    }



.pagination {padding: 1rem 0; text-align: center;}
.pagination li{display:inline-block;border-radius:2px;text-align:center;vertical-align:top;height:30px}
.pagination li a{color:#444;display:inline-block;font-size:1.2rem;padding:0 10px;line-height:30px}
.pagination li.active a{color:#fff}.pagination li.active{background-color:#a47764} 
 
 
 

form span {
   
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.input-field {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}
.i-field {display: flex;justify-content: space-around; max-width: 600px;
  margin: 0 auto;
  padding: 20px;}

.input-field input,
.input-field textarea {
  display: block;
  width: 100%;
  padding: 10px 15px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field input:focus,
.input-field textarea:focus {
  border-color: #a47764;
  box-shadow: 0 0 5px rgba(164, 119, 100, 0.5);
}

.input-field label {
  font-size: 12px;
  color: #a47764;
}

.comrat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
}

.comrat:last-child {
  margin-right: 0;
}

.comrat span {
  font-size: 16px;
  color: #333; display: inline;
}

.comrat .green, .imya .green {
  color: #4caf50; font-size: 24px;
}

.comrat .grey, .imya .gray {
  color: #9e9e9e; font-size: 24px;
}

.comrat .red, .imya .red {
  color: #f44336; font-size: 24px;
}

.comrat input[type="radio"] {
  accent-color: #a47764;
}

.input-field > div {
  display: flex;
  gap: 20px;
}

.card-action {
  text-align: center; background-color: #eedfdb; margin: 0 -15px;    border-radius: 0 0 8px 8px;
   
}

.card-action .btn {
  padding: 10px 20px; margin: 20px 0;
  font-size: 16px;
  background-color: #a47764;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card-action .btn:hover {
  background-color: #8b5c4f;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-action .btn:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(164, 119, 100, 0.7);
} 

.btn-small {background-color: #c5c5c5!important;  color: #000!important;}
 .toast {
            position: fixed;
            top: 10px;
            right: 5%;
            transform: translateX(-50%);
            background-color: #323232;
            color: #fff;
            padding: 10px 20px;
            border-radius: 5px;
            font-size: 14px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        /* Показ уведомления */
        .toast.show {
            opacity: 1;
            visibility: visible;
        }
}

/* Контейнер для постов */
#post-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 20px auto;
    max-width: 1200px;
}

/* Сообщение о конце категории */
#end-message {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

/* Ссылка внутри сообщения о конце */
#end-message a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

#end-message a:hover {
    text-decoration: underline;
}

/* Блок загрузки */
#loading {
    margin-top: 20px;
    color: #666;
    font-size: 16px;
    text-align: center;
}

.load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #a47764;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.load-more:hover {
    background-color: #795647;
}
.price {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  background: #f5faff;
  padding: 10px 16px;
  border-left: 5px solid #a47764;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  color: #333;
  display: flex;
  margin: 10px 0;
      align-items: center;

}
.price b {
  color: #a47764;
}

.price span {
  font-weight: bold;
  font-size: 20px;
  color: #2a8f2a;
  padding: 0 4px;
  display: inline-block;
  background: linear-gradient(90deg, #d4fcd4, #eaffea);
  border-radius: 4px;
  margin-left: 4px;
}


p.telega  {display: flex; align-items: center; justify-content: center;}
p.telega a{display: flex; align-items: center;}
p.telega img{margin: 0 10px 0 10px; max-width: 30px;}

.mini-chat-container {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 320px;
    max-height: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    font-family: Arial, sans-serif;
    transform: scale(0);
    max-height: 0;
    opacity: 0;
    visibility: hidden; /* Полностью скрывает чат */
    transition: transform 0.4s ease-in-out, max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Когда чат развернут */
.mini-chat-container.visible {
    transform: scale(1);
    max-height: 300px;
    opacity: 1;
    visibility: visible; /* Делает чат видимым */
}

.mini-chat-header {
    background: #a47764;
    color: white;
    text-align: center;
    padding: 5px;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
}

.mini-chat-header .close-chat {
    position: absolute;
    right: 10px;
    top: 5px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.mini-chat-messages {
    height: 220px;
    overflow-y: auto;
    padding: 5px;
    font-size: 14px;
    line-height: 1.4;
}

/* Кнопка для открытия чата */
.mini-chat-toggle {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #a47764;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: block;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
}

.mini-chat-toggle:hover {
    background: #8a5e4a;
}


.emoji-panel {
            display: flex;
            gap: 5px;
            padding: 5px;
            border: 1px solid #ccc;
            background: #f9f9f9;
            border-radius: 5px;
            margin-top: 5px;
        }
        .emoji {
            font-size: 20px;
            cursor: pointer;
        }
        .emoji:hover {
            transform: scale(1.2);
        }

        .chat-container {
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid #ccc;
    padding: 10px;
    background: #f9f9f9;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    padding: 5px;
}

.message {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.message-content {
    background: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.time {
    font-size: 12px;
    color: gray;
    margin-left: 5px;
}

.chat-input {
    display: flex;
    padding: 5px;
}





/* Larger than mobile */
@media (min-width: 550px) {
    .gallery {gap: 0;}
    .photo-card { width: calc(33.3%); }
    .inf .photo-card { width: calc(50%); }
    .header {    padding: 0.4rem 1rem;}
    .tme a span, .ame a span {display: inline;}
    .comment-card { width: calc(50% - 1rem);  margin:0;}
    .users {flex-basis: 50%; background-color: #fafafa;}
    .kakff {max-width: 54%; height: auto;}
.kaknbr{ display: flex; flex-direction: column;  align-items: center;  margin: 0;}
.kakh1 {         flex-basis: 50%;    display: flex;      justify-content: center;      align-items: center;      text-align: center;     order: 1;  }
.kakh1 h1 {      font-size: calc(1rem + 3vw);      color: #a47764;    white-space: break-spaces;   word-break: break-word; line-height: 1.5;}
.kakb {      display: flex;   flex-basis: 90%; justify-content: center; align-items: center;order: 2; }
.kakb img {  max-width: 55%;  height: auto;   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }

}

 
/* Larger than tablet */
@media (min-width: 750px) {
        .photo-card { width: calc(25%); }
        .inf .photo-card { width: calc(50%); }
       .header { padding: 0.5rem 2rem;}
       .inf { flex-basis: 50%;}
.cont { flex-basis: 50%;}  
.cnt {flex-direction: row; } 
}

 
/* Larger than Desktop HD */
@media (min-width: 1200px) {
     .header { padding: 0.8rem 3rem;}
     .photo-card { width: calc(16.6% - 1rem); }
     .inf .photo-card { width: calc(50% - 1rem); }
    .gallery {gap: 1rem;}
     .main{    padding: 0;  max-width: 1700px;  margin: 0 auto;}
     .comment-text {   font-size: 1rem; }
      .users {flex-basis: 25%; }
             .inf { flex-basis: 33.3%;}
.cont { flex-basis: 66.6%;}  
}





/* Форма поиска (можно размещать в шапке) */
.site-search-form {padding: 20px 10px 5px 10px;}
.site-search-form form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
    max-width: 800px;
    margin:0 auto;
}
.site-search-form input[type="search"] {
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    flex-grow: 1; /* Занимает все доступное место */
}
.site-search-form input[type="search"]:focus {
    outline: none;
}
.site-search-form button {
    background-color: #a46a2a;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
}
.site-search-form button:hover {
    background-color: #6c3f0d;
}

/* Контейнер для страницы результатов */
.search-page-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
}
.search-page-container h1 {
    text-align: center;
    color: #2C3E50;
    margin-bottom: 25px;
}
.search-page-container h1 q {
    color: #6c3f0d;
    font-style: italic;
}

/* Карточка одного результата */
.search-result-item {
    display: flex;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.search-result-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.search-result-photo {
    flex-shrink: 0;
}
.search-result-photo img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: block;
}
.search-result-info {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}
.search-result-info h3 {
    margin: 0 0 5px 0;
}
.search-result-info h3 a {
    color: #a46d2a;
    text-decoration: none;
    font-size: 1.4em;
}
.search-result-info h3 a:hover {
    text-decoration: underline;
}
.search-result-meta {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.search-result-description {
    color: #444;
    flex-grow: 1;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .search-result-item {
        flex-direction: column;
    }
    .search-result-photo img {
        width: 100%;
        height: 180px;
    }
}





