body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.4;
  color: var(--dark-gray);
  background-color: var(--light-gray);
  padding: 0;
  margin: 0;
}


:root {
  --primary-color: #4a76a8;
  --secondary-color: #5b88bd;
  --accent-color: #ff5c35;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333;
  --white: #fff;
  --success-color: #4caf50;
  --error-color: #f44336;
  --box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 6px;
  --transition: all 0.2s ease;
}

#galoba-select {
	margin-bottom: 20px;
}

.errr {
	background: #f0f2f5;
	color: #000000;
	font-weight: 600;
	text-align: center;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 10px;
	width: 200px;
	margin: 0 auto;
	text-decoration: none;
}

.opis-numb {
	padding: 10px;
	text-align: center;
}

.close-galoba {
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	color: #fff;
	background: #f0f2f5;
	position: absolute;
	right: 0px;
	top: 0px;
	text-align: center;
	cursor: pointer;
	padding-top: 8px;
}

.after-galoba {
    width: 400px;
	margin: 0 auto;
	padding: 60px 20px;
	background: #fff;
	position: fixed;
	top: 100px;
	z-index: 99;
	text-align: center;
	height: 250px;
	display: none;
    left: 50%;
    transform: translateX(-50%);
}

.okeys {
	background: #f0f2f5;
	color: #000000;
	font-weight: 600;
	text-align: center;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 10px;
	width: 200px;
	margin: 0 auto;
	margin-top: 40px;
}

.galoby {
    width: 400px;
    height: 250px;
    padding: 60px 20px;
    box-sizing: border-box;
    background: #fff;
    position: fixed;
    top: 100px;

    left: 50%;
    transform: translateX(-50%);
	display: none;
    z-index: 99;
}

#galobas {
	background: #f0f2f5;
	color: #000000;
	font-weight: 600;
	text-align: center;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 10px;
	width: 200px;
	margin: 0 auto;
}

#galobas:hover {
	background: #e6e9ee;
}

#joinGroup {
	background: #f0f2f5;
	color: #000000;
	font-weight: 600;
	text-align: center;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 10px;
	width: 200px;
	margin: 0 auto;
}

#joinGroup:hover {
	background: #e6e9ee;
}

.prod-est {
	text-decoration: none;
	text-align: center;
	font-weight: 600;
	background: #3770b1;
	color: #fff;
	padding: 0px;
	width: 50%;
	border-top-left-radius: 250px;
	border-bottom-right-radius: 250px;
	
	border-bottom-left-radius: 10px;
	border-top-right-radius: 10px;
	margin-top: 10px;
	margin-bottom: 5px;
	height: 27px;
}

.prod-est-net {
	background: none;	
}

.removeduser {
	position: absolute;
	text-decoration: none;
	width: 100%;
	z-index: 1;
	border: 2px dashed #3770b1;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	margin-top: 25px;
	color: #fff;
	background: rgba(0,0,0,0.7);
	padding-top: 10px;
	padding-bottom: 10px;
}

.doper-prods {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

.doper-prods > div {
	width: 48%;
	border: 1px solid #333333;
	text-align: center;
	padding: 3px 0px;
	height: 30px;
	box-sizing: border-box;
}

.vk-galoba {
	cursor: pointer;
	font-size: 14px;
}

.vk-soc {
	text-align: right;
	font-size: 14px;
	cursor: pointer;
}

.vk-soc svg {
	position: absolute;
	right: 100px;
}

.f-carousel__slide {
	position: relative;
}

#banlister {
	border: 4px dashed red;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 40px;
	text-align: center;
	margin-top: 40px;
	max-width: 60%;
}

#banlister a {
	width: 100%;
	text-decoration: none;
	color: var(--primary-color);
	font-weight: 600;
}

#pregroup {
	border: 4px dashed red;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 20px;
	text-align: center;
	margin-top: 40px;
}

.pregr {
	display: inline-block;
	width: 95%;
	vertical-align: top;
	margin-bottom: 20px;
}

.fancybox__toolbar.is-absolute {
	bottom: 100px!important;
}

.prod-infor-new {
	padding: 10px 20px;
	display: flex;
}

.prod-infor-new h2 {
	padding-left: 0px;
}

.admy1 span {
	display: block;
}

.admy1 {
	padding-left: 185px;
}

.proname {
	display: block;
	height: 95px;
	overflow: hidden;
}

.block-red1 {
	margin-top: 20px;
	padding: 20px;
	display: flex;
}

.my-blockser {
	padding-left: 200px;
}

.block-red1 > div {
	width: 50%;
	text-align: center;
}

#blackFones {
	background: rgba(0,0,0,0.8);
	position: absolute;
	z-index: 99;
}

#loadingSpinner {
	text-align: center;
	position: fixed;
	z-index: 100;
	width: 100%;
	padding-top: 100px;
	display: none;
}

.delim {
	background: #717171;
	width: 35px;
	height: 35px;
	color: #fff;
	text-align: center;
	padding: 7px;
	box-sizing: border-box;
	position: absolute;
	right: 0px;
	top: 0;
	display: inline-block;
	border-radius: 5px;
	font-weight: bold;
}

.icon-load {
	width: 180px;
	height: 180px;
	position: relative;
	border: 1px solid #dadada;
	cursor: pointer;
	align-content: center;
	border-radius: 10px;
	margin-bottom: 10px;
	margin-left: 15px;
	margin-right: 15px;
}

.icon-load img {
	max-width: 100%;
	max-height: 100%;
}

.deu-seracher {
	width: 100%;
	z-index: 10;
	background: #dadada;
	top: 10px;
	border-radius: 20px;
	position: relative;
}

.ad10px {
	margin-top: 0px;
}

.hider1 {
	display: none;
}

.predthanks {
	padding-top: 25px;
	padding-bottom: 25px;
}

#thanks {
	margin-top: 40px;
	width: 85%;
	text-align: center;
	margin: 0 auto;
	border: 1px dashed #d0d0d0;
	padding: 30px;
	margin-bottom: 40px;
}

#thanks > div {
	margin-bottom: 10px;
}

.thankok {
	margin: 0 auto;
	width: 100px;
	background: #16c60c;
	color: #fff;
	text-align: center;
	margin-top: 10px;
	padding: 5px;
	cursor: pointer;
	border: 1px solid #002f03;
}

.deu-lister {
	overflow: auto;
	max-height: 300px;
	border: 1px solid var(--medium-gray);
	cursor: pointer;
	display: none;
	position: absolute;
	width: 100%;
	background: #fff;
}

.deu-lister::-webkit-scrollbar {
	width: 15px; /* ширина вертикального скроллбара */
}

.deu-lister::-webkit-scrollbar-thumb {
	background-color: #3770b1;
}

.deu-lister::-webkit-scrollbar-track {
	background-color: #f1f1f1;
	border-radius: 20px;
}

.deu-lister > div {
	padding: 10px;
}

.deu-lister > div:hover {
	background: #d1e4f9;
}

.logius {
	width: 50px;	
	border-radius: 100px;
}

#logur {
	width: 50px;
	border-radius: 100px;
}

#myForm {
	padding: 0px 15px;
}

.main-shap {
	background: #3770b1;
	padding: 10px;
	color: #fff;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	display: flex;
	justify-content: space-between;
	font-size: 12px;
}

.shap-txt {
	line-height: 20px;
	padding-top: 5px;
}

.main-shap div {
	text-align: center;
}

.back {
	text-decoration: none;
	cursor: pointer;
	position: absolute;
	right: 15px;
	top: 18px;
	box-sizing: border-box;
	width: 60px;
	overflow: hidden;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

#model {
	margin-top: 10px;
}

.vk-menu-activ {
	border-bottom: 5px solid #3770b1;
}

.category-main {
	display: flex;
	justify-content: space-between;
}

.category-main > div {
	width: 33%;
	background: #f0f1f3;
	padding: 20px 0px;
	cursor: pointer;
	color: #3770b1;
	text-align: center;
	box-sizing: border-box;
	height: 80px;
}

.category-main > div span {
	display: block;
}

.main-filter-in {
	display: flex;
	justify-content: space-between;
	padding: 10px 10px;
	padding-bottom: 20px;

}

.no-results {
	padding: 20px 20px;
	margin: 0 auto;
	margin-top: 20px;
	margin-bottom: 20px;
	background-color: #fff4f4; /* светлый красный фон */
	border: 1px solid #ff6b6b; /* красная рамка */
	border-radius: 8px;
	color: #d32f2f; /* тёмно-красный текст */
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	box-shadow: 0 4px 6px rgba(0,0,0,0.08); /* лёгкая тень */
	transition: all 0.3s ease;
	width: 95%;
}

.res-hei {
	height: 100px;
}

.loader {
	padding: 20px 20px;	
	height: 100px;
}

.no-results:hover {
	background-color: #ffecec;
	box-shadow: 0 6px 10px rgba(0,0,0,0.12);
}

.no-results::before {
	content: "⚠️"; /* иконка предупреждения */
	display: block;
	font-size: 24px;
	margin-bottom: 8px;
}


#filter-button {
	border-bottom: 10px solid var(--light-gray);	
}

#find-but {
	background: #f0f2f5;
	color: #000000;
	font-weight: 600;
	text-align: center;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 10px;
	width: 250px;
	margin: 0 auto;
	margin-bottom: 20px;
	border: 1px solid #3770b1;
}

.block-fil select, .block-fil input {
	height: 40px;
	box-sizing: border-box;
	border: 1px solid #3770b1;
	cursor: pointer;
}

.block-fil b {
	display: inline-block;
	padding-bottom: 5px;
}

#clear-filtr {
	text-align: center;
	cursor: pointer;
	border: 2px solid #f0f2f5;
	width: 250px;
	box-sizing: border-box;
	margin: 0 auto;
	margin-bottom: 20px;
	background: #f0f2f5;
}

.hidden-text pre {
    white-space: pre-wrap;       /* сохраняет пробелы и переносы строк */
    word-break: break-word;      /* ломает длинные слова */
    overflow-wrap: break-word;   /* дополнительная поддержка */
	font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	line-height: 1.4;
	color: var(--dark-gray);	
}

.hidden-text {
	height: 3em;               /* Пример: 3 строки по 1.2em */
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;       /* Количество строк */
	-webkit-box-orient: vertical;
}

.hidden-text.expanded {
	height: auto;
	overflow: visible;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
}

.podr-vk {
	display: flex;
	justify-content: space-between;
	margin-top: 5px;
}






.prod-vk-dop {
	font-size: 16px;
}

.prod-vk-dop > div {
	background: red;
	margin-bottom: 5px;
	padding: 8px 12px;
	background: var(--light-gray);
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	border-left: 3px solid var(--primary-color);
	font-size: 14px;
}

.prod-vk-dop > div b {
	color: var(--primary-color);
	font-weight: 600;
	font-size: 16px;	
}

.prod-vk-dop > div a {
	font-size: 16px;
}




.quanFot {
	position: absolute;
	margin-top: -32px;
	right: 0px;
	background: #e6e9ee;
	padding: 5px;
	box-sizing: border-box;
}

.podr-vk span {
	display: block;
	width: 48%;
	background: #3770b1;
	text-align: center;
	cursor: pointer;
	padding-top: 0px;
	padding-bottom: 10px;
	font-weight: 600;
	box-sizing: border-box;
	height: 45px;
	border: 1px solid #3770b1;
	color: #fff;
	font-size: 14px;
}

.desc-opis {
	display: none;
}

.addD {
	height: 20px;
	right: 0px;	
}

.desc-opis pre {
	white-space: pre-wrap;
	word-break: break-word;
	overflow-wrap: break-word;
	line-height: 1.4;
	color: var(--dark-gray);
	margin-bottom: 10px;
}

.opis-txt {
	border-bottom:1px solid #333333;
	margin-bottom: 10px;
}

.p404 img {
	width: 100%;
}

.podr-vk span a {
	display: block;
	width: 100%;
	text-decoration: none;
	color: #fff;
	font-weight: 600;
	height: 45px;
	padding-top: 10px;
}

.podrobnee {
	padding-top: 10px;
	display: block;
	height: 45px;
}

.prod-list .img-main img {
	max-height: 400px;       /* ограничиваем высоту */
	width: 100%;             /* чтобы подстраивалось под ширину контейнера */
	object-fit: cover;       /* обрезает лишнее */
	object-position: center; /* центрируем по вертикали и горизонтали */
	display: block;
}

.img-gal {
	display: none;
}

.vk-date {
	font-size: 12px;
	text-align: right;
	margin-top: 10px;
}

.vk-id {
	font-size: 12px;
	text-align: left;
	margin-top: 10px;
	position: absolute;
}

.vk-cont {
	text-decoration: none;
	color: #3770b1;
	font-size: 16px;
	background: #f0f1f3;
	width: 100%;
	display: block;
	font-weight: 600;
	text-align: center;
	padding: 5px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.vk-cont2 {
	text-decoration: none;
	color: #3770b1;
	font-weight: bold;
}

.prod-infos-vk {
	padding: 5px;
	padding-right: 10px;
}

.prod-list-vk-name {
	color: #000;
	font-weight: 600;
	display: inline-block;
	width: 50%;
}

b {
	font-weight: 600;	
}

.prod-list-vk-price {
	color: #000;
	font-weight: 600;
	display: inline-block;
	text-align: right;
	width: 50%;
}

.prod-vk-txt {
	padding: 0px 20px;
	padding-bottom: 10px;
}

.pr-prod {
	border-bottom: 10px solid var(--light-gray);
}

.prod-list {
	display: flex;
	justify-content: space-between;	
	flex-wrap: nowrap;
}

.img-main {
	width: 100%;
	padding-left: 20px;
	padding-right: 20px;
}

.prod-infos-vk {
	width: 100%;
	padding-left: 20px;
	padding-right: 20px;
}

.main-filter-in > div {
	width: 48%;
}

.category-add {
	display: flex;
	flex-wrap: wrap;
	text-align: center;
	justify-content: space-between;
	padding: 10px;
}

.category-add > div {
	border: 1px solid red;
	box-sizing: border-box;
	width: 49%;
	cursor: pointer;
	border: 1px solid var(--medium-gray);
	padding: 20px 0px;
	margin-bottom: 10px;
}


#felse {
	display: none;
}

.category-add > div:hover {
	background: #ececec;
}

.main-block {
	background: var(--white);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	position: relative;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


.inputer {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--medium-gray);
	border-radius: var(--border-radius);
	font-size: 14px;
	transition: var(--transition);
	background-color: var(--white);
	display: inline-block;
}

.form-container {
	max-width: 700px;
	margin: 0 auto;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 600;
  padding-top: 10px;
  padding-left: 10px;
}

.my-ades {

}

.my-ades > div:nth-of-type(odd) {
	background: #f0f1f3;
}

.m-inf-price {
	font-weight: 600;
}

.m-inf-status {

}

.my-ades > div {
	position: relative;
}

.prichina {
	text-align: center;
	border: 2px dashed red;
	padding: 20px;
}

.previm {
	padding: 10px;
}

.redacter {
	cursor: pointer;
}

.redcss {
	color: var(--primary-color);
	font-weight: 600;
	right: 20px;
	bottom: 20px;
	cursor: pointer;
}

.red-id {
	position: absolute;
	right: 10px;
	top: 10px;
	font-size: 11px;
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
	margin-top: 20px;
	padding-left: 10px;
	padding-right: 10px;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

label {
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--dark-gray);
  font-size: 14px;
  display: block;
}

input, select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: var(--transition);
  background-color: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 118, 168, 0.1);
}

textarea {
  height: 180px;
  resize: vertical;
}

button[type=submit] {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

button:hover {
  background-color: var(--secondary-color);
}

/* Drag & Drop стили */
#photos {
  display: none;
}

.upload-area {
  border: 2px dashed var(--medium-gray);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary-color);
}

.upload-text {
  font-size: 14px;
  color: var(--dark-gray);
  margin-bottom: 3px;
}

.upload-hint {
  font-size: 12px;
  color: #777;
}

#preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.preview-item {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: grab;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: var(--transition);
}

.preview-item:hover .remove-btn {
  opacity: 1;
}

.preview-item .remove-btn:hover {
  background: var(--error-color);
}

.empty-placeholder {
	color: #999;
	width: 100%;
	text-align: center;
	padding: 20px 0;
	font-size: 14px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

/* Сообщение об успехе */
#thankyou {
  display: none;
  padding: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  max-width: 700px;
  margin: 20px auto;
}

#thankyou h2 {
  color: var(--success-color);
  margin-bottom: 10px;
}

#thankyou a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin: 0 10px;
}

#thankyou button {
  max-width: 200px;
  margin: 20px auto 0;
}

.privacy-link {
	font-size: 12px;
	color: #777;
	display: inline-block;
	text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

.previm img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	position: absolute;
	left: 20px;
}

.support {
	font-size: 12px;
	cursor: pointer;
	color: red;
	text-align: right;
	position: absolute;
	right: 10px;
	margin-top: 7px;
	text-decoration: none;
}

.sotr img {
	width: 100%;
	border-top: 1px solid #3770b1;
	border-bottom: 1px solid #3770b1;
}

/* Адаптивность */
@media (max-width: 600px) {
	
	#banlister {
		margin-top: 100px;
		max-width: 90%;
	}
	
	.galoby, .after-galoba {
		width: 100%;
	}
	
	.form-group {
		min-width: 45%;
	}

	input, select {
		padding: 10px 10px;
	}

  .preview-item {
	width: 120px;
	height: 120px;
  }
  
  #form-container {
	  padding: 0px;
  }
  
  .main-shap {
	  border-radius: 0;
  }

	.icon-load {
		width: 40%;
		height: 140px;
		margin-right: 0px;
		margin-left: 0px;
	}
  
  .icon-load:nth-of-type(even) {
	   margin-left: 20px;
  }
  
	.prod-list {
		flex-wrap: wrap;
	}
	
	.f-carousel__slide {
		display: flex;
		justify-content: center;   /* центр по горизонтали */
		align-items: center;       /* центр по вертикали */
		width: 100%!important;
		height: 300px!important;             /* макс. высота блока */
		overflow: hidden;          /* чтобы не было скролла */
	  	box-shadow: 0 0 10px rgba(0,0,0,0.3);
		box-sizing: border-box;
	}
	
	.f-carousel__slide img {
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;       /* изображение не обрезается */
	}
}