.faq-block {
  position: relative;
}
.faq-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto !important;
  padding: 0 3%;
  box-sizing: border-box;
}

/* Opcje szerokości analogiczne do Kafelki */
.faq-container[data-width-type="custom"] {
  max-width: var(--custom-width, 1600px);
}

.faq-container[data-width-type="full-with-padding"] {
  max-width: none;
  width: 100%;
  padding: 0 3%;
}

.faq-container[data-width-type="full-no-padding"] {
  max-width: none;
  width: 100%;
  padding: 0;
}
.faq-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
    margin: 0 0 50px 0;
}
.faq-subtitle {
	color: rgba(0, 0, 0, 1);
	margin: 0 0 20px 0;
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 400;
	letter-spacing: 1px;
}
.faq-title {
    font-size: 52px;
    font-weight: 400;
    color: #000;
    line-height: 120%;
	margin-left: auto;
}

@media screen and (max-width: 1000px) {
	.faq-title {
		font-size: clamp(38px, 5vw, 50px);
	}
}

.faq-head-right {
	flex-basis: 40%;
}

.faq-head-right .faq-search {
  width: 100%;
  padding: 18px 48px 18px 20px; /* miejsce na przycisk X */
  border: 1px solid #d0d6d8;
  border-radius: 30px;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
	transition: all 0.2s ease;
}

.faq-head-right .faq-search:focus {
	border: 1px solid #689C8C;
	transition: all 0.2s ease;
}

.faq-head-right .faq-search::placeholder {
	color: rgba(0 0 0 / 0.5);
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.faq-filters .faq-filter {
	font-size: 16px;
	font-weight: 400;
	border-radius: 30px;
	background: transparent;
	padding: 14px 25px;
	color: #666;
	cursor: pointer;
	border: 1px solid #B2B2B2;
	transition: all 0.2s ease;
}

.faq-filters .faq-filter.is-active,
.faq-filters .components-button.is-active {
	color: #666;
	background: transparent;
	border: 1px solid #62A1FF;
	transition: all 0.2s ease;
}

.faq-filters .faq-filter:hover {
	background: transparent;
	border: 1px solid #62A1FF;
	transition: all 0.2s ease;
}


.faq-list {
  border-top: 1px solid #DADADA;
  margin-top: 40px;
  transition: opacity 200ms ease;
}
.faq-list.is-loading { opacity: 0.2; pointer-events: none; }
.faq-item {
  border-bottom: 1px solid #DADADA;
  padding: 15px 0;
}
.faq-item-title {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 15px 0 15px 0;
  font-size: 30px;
  color: #000;
  cursor: pointer;
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
	transition: all 0.2s ease;
}
	.faq-item-title:after {
		content: "";
		display: block;
		width: 26px;
		height: 12px;
		
		background-image: url(icoArrow.svg);
		background-size: contain;
		background-repeat: no-repeat;
		background-position: 50% 50%;
		transition: all 0.2s ease;
	}
	
	.is-open .faq-item-title:after {
		transform: scale(-1);
		transition: all 0.2s ease;
	}
	
.faq-item-title:hover {
	
}
.faq-item-content {
  color: #666;
  font-size: 16px;
  padding: 0 50% 0 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms ease, opacity 200ms ease, padding 200ms ease;
}
.faq-item.is-open .faq-item-content {
  padding: 6px 50% 16px 0;
  box-sizing: border-box;
  max-height: 1000px;
  opacity: 1;
}
.faq-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.faq-pages { display: inline-flex; gap: 12px; }
	
	.faq-pagination button {
		position: relative;
		width: 48px;
		height: 48px;
		border: 1px solid #DADADA;
		margin: 0;
		transform: unset;
		background: #fff;
		top: unset;
		font-size: 20px;
		line-height: 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}
		
	.faq-pagination button:disabled {
		color: #000;
		opacity: 1;
		background: #F3F7FD;
	}
	
	.faq-pagination button.buttons-dots {
		border: 0;
		background: transparent;
		padding-top: 15px;
	}
	
		.faq-pagination button.buttons-dots:hover {
			border: 0;
			background: transparent;
			cursor: initial;
		}
	
	.faq-pagination button.faq-prev {
		color: #A3A3A3;
		background: #fff;
		font-size: 25px;
		margin-right: 20px;
	}
	
	.faq-pagination button.faq-next {
		color: #A3A3A3;
		background: #fff;
		font-size: 25px;
		margin-left: 20px;
	}
		
	.faq-pagination button:not(:disabled):hover {
		border: 1px solid #62A1FF;
		color: #62A1FF;
		background: #F3F7FD;
	}
	
.faq-page-info {
  color: #849095;
}

/* Ikona wyszukiwarki / X do czyszczenia */
.faq-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}
.faq-clear-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-clear-btn svg { width: 16px; height: 15px; }

/* Ukrycie natywnego X dla input[type=search] (Safari/Chromium/IE) */
.faq-head-right .faq-search::-webkit-search-decoration,
.faq-head-right .faq-search::-webkit-search-cancel-button,
.faq-head-right .faq-search::-webkit-search-results-button,
.faq-head-right .faq-search::-webkit-search-results-decoration { display: none; }
.faq-head-right .faq-search::-ms-clear { display: none; width: 0; height: 0; }


@media screen and (max-width: 1000px) {
	.faq-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.faq-head-right {
		width: 100%;
	}
	
	.faq-item-title {
		font-size: 20px;
	}
	
	.faq-item .faq-item-content {
		padding: 0 0 0 0;
	}
	.faq-item.is-open .faq-item-content {
		padding: 5px 0 16px 0;
	}
}