/* Reviews page — match Figma NSM */
.page.reviews-page,
.reviews-page {
	background: #fff !important;
	padding-bottom: 0;
}

.reviews-page .page-content {
	padding-top: 20px;
	padding-bottom: 0;
	background: transparent;
}

.reviews-page__inner {
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 15px 60px;
}

.reviews-page__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-bottom: 36px;
}

.reviews-page__title {
	margin: 0;
	max-width: 780px;
	font-weight: 800;
	font-size: 42px;
	line-height: 1.15;
	color: #111;
}

.reviews-page__title::after {
	display: none !important;
}

.reviews-page__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	height: 46px;
	min-height: 46px;
	min-width: 0;
	padding: 0 24px;
	border: 1px solid rgba(196, 196, 196, 0.24);
	border-radius: 2px;
	background: #0f2950 !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.reviews-page__cta:hover,
.reviews-page__cta:focus {
	background: #163a6e !important;
	color: #fff !important;
	box-shadow: none !important;
}

.reviews-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.reviews-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 280px;
	padding: 24px 28px;
	background: #fafafb;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.reviews-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.reviews-card__name {
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: #111;
}

.reviews-card__date {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.3;
	color: #8b8b8b;
	white-space: nowrap;
}

.reviews-card__rating-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.reviews-card__source-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.reviews-card__source-icon img {
	display: block;
	max-width: 22px;
	max-height: 22px;
	width: auto;
	height: auto;
}

.reviews-card__source-icon--site {
	width: auto;
	height: 18px;
	pointer-events: none;
}

.reviews-card__source-icon--site img {
	max-width: 72px;
	max-height: 18px;
}

.reviews-card__stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.reviews-card__star {
	display: block;
	width: 16px;
	height: 16px;
	background: url('/site/img-new/reviews/star-off.svg') center / contain no-repeat;
}

.reviews-card__star.is-active {
	background-image: url('/site/img-new/reviews/star-on.svg');
}

.reviews-card__files {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.reviews-card__file {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 2px;
	background: #eee;
}

.reviews-card__file img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reviews-card__file:hover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(15, 41, 80, 0.45) url('/site/img-new/reviews/zoom.svg') center / 28px no-repeat;
}

.reviews-card__file--pdf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #0f2950;
	text-decoration: none;
}

.reviews-card__body {
	flex: 1 1 auto;
	max-height: 168px;
	overflow-y: auto;
	padding-right: 8px;
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #333;
}

.reviews-card__body::-webkit-scrollbar {
	width: 4px;
}

.reviews-card__body::-webkit-scrollbar-track {
	background: transparent;
}

.reviews-card__body::-webkit-scrollbar-thumb {
	background: #ff9900;
	border-radius: 4px;
}

.reviews-empty {
	grid-column: 1 / -1;
	padding: 40px 24px;
	text-align: center;
	color: #6b7a90;
	background: #fafafb;
}

.reviews-page__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin: 8px 0 48px;
}

.reviews-page__more {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	min-height: 50px;
	padding: 14px 36px;
	border: 0;
	border-radius: 2px;
	background: linear-gradient(180deg, #f7bc4e 0%, #ff9900 100%);
	box-shadow: 0 4px 0 #c56619;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.reviews-page__more.is-visible {
	display: inline-flex;
}

.reviews-page .pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.reviews-page .pagination li a,
.reviews-page .pagination li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #e0e0e0;
	border-radius: 2px;
	background: #fff;
	color: #111;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.reviews-page .pagination li.active a,
.reviews-page .pagination li.active span {
	border-color: #ff9900;
	color: #111;
	background: #fff;
}

.reviews-page .pagination li.next a {
	min-width: auto;
	padding: 0 18px;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.reviews-page .pagination li.prev {
	display: none;
}

/* Form section */
.reviews-form-section {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 80px 15px 70px;
	color: #fff;
	background:
		linear-gradient(180deg, rgba(12, 39, 81, 0.9) 0%, rgba(12, 39, 81, 0.92) 100%),
		url('/site/img-new/reviews/form-bg.jpg') center / cover no-repeat;
	border-radius: 0;
	overflow: hidden;
}

.reviews-form-section__inner {
	max-width: 1290px;
	margin: 0 auto;
}

.reviews-form-section__title {
	margin: 0 0 8px;
	font-size: 46px;
	line-height: 58px;
	font-weight: 700;
	color: #fff;
}

.reviews-form-section__title::after {
	content: '';
	display: block;
	width: 101px;
	height: 2px;
	margin-top: 14px;
	background: #ff9900;
}

.reviews-form-section__lead {
	display: none;
}

.reviews-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 36px;
}

.reviews-form .form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.reviews-form .form-row > * {
	flex: 1 1 280px;
}

.reviews-form .form-group {
	margin-bottom: 0;
}

.reviews-form .form-label {
	display: none;
}

.reviews-form-rating {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
}

.reviews-form-rating__label {
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
}

.reviews-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
}

.reviews-form button.reviews-rating__star,
.reviews-rating__star {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px !important;
	min-width: 28px !important;
	max-width: 28px !important;
	height: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	overflow: visible !important;
	color: #ff9900;
	font-size: 0 !important;
	line-height: 0 !important;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.reviews-rating__svg {
	display: block;
	width: 28px;
	height: 27px;
	overflow: visible;
	pointer-events: none;
}

.reviews-rating__svg path {
	fill: rgba(255, 153, 0, 0);
	stroke: #ff9900;
	stroke-width: 1.4;
	stroke-linejoin: round;
	transition: fill 0.28s ease;
}

.reviews-rating__star.is-filled .reviews-rating__svg path,
.reviews-rating__star.is-active .reviews-rating__svg path,
.reviews-rating__star.is-hover .reviews-rating__svg path,
.reviews-rating__star:hover .reviews-rating__svg path {
	fill: #ff9900;
}

.reviews-rating__star:nth-child(1).is-filled .reviews-rating__svg path { transition-delay: 0ms; }
.reviews-rating__star:nth-child(2).is-filled .reviews-rating__svg path { transition-delay: 40ms; }
.reviews-rating__star:nth-child(3).is-filled .reviews-rating__svg path { transition-delay: 80ms; }
.reviews-rating__star:nth-child(4).is-filled .reviews-rating__svg path { transition-delay: 120ms; }
.reviews-rating__star:nth-child(5).is-filled .reviews-rating__svg path { transition-delay: 160ms; }

.reviews-rating__star:hover {
	transform: translateY(-1px);
}

.reviews-rating__star:focus {
	outline: 1px solid rgba(255, 153, 0, 0.7) !important;
	outline-offset: 2px;
}

.reviews-form .form-control {
	height: 52px;
	padding: 12px 20px;
	border: 0;
	border-radius: 3px;
	background: #fff;
	font-size: 15px;
	line-height: 26px;
	color: #222;
}

.reviews-form textarea.form-control {
	height: 120px;
	min-height: 120px;
	resize: vertical;
}

.reviews-form .form-control::placeholder {
	color: #606060;
}

.reviews-form .form-control.is-invalid {
	box-shadow: inset 0 0 0 1px #ba4520;
}

.reviews-upload {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 16px 24px;
	border: 1px dashed rgba(185, 184, 190, 0.41);
	border-radius: 6px;
	cursor: pointer;
}

.reviews-upload input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.reviews-upload__icon {
	display: block;
	width: 31px;
	height: 31px;
	flex-shrink: 0;
	background: url('/site/img-new/reviews/camera.svg') center / contain no-repeat;
}

.reviews-upload__text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 26px;
	color: #fff;
}

.reviews-upload__pick {
	color: #ff9900;
	text-decoration: underline;
}

.reviews-upload__hint {
	font-size: 13px;
	line-height: 26px;
	color: rgba(255, 255, 255, 0.6);
}

.reviews-upload__list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.reviews-form__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.reviews-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 14px 36px;
	border: 0;
	border-radius: 2px;
	background: linear-gradient(180deg, #f7bc4e 0%, #ff9900 100%);
	box-shadow: 0 4px 0 #c56619;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.reviews-form__submit:hover {
	filter: brightness(1.03);
}

.reviews-form .box-form-note {
	width: 100%;
	max-width: 900px;
	margin: 0;
}

.reviews-form .box-form-note label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.52);
}

.reviews-form .box-form-note .inpcheckbox {
	flex-shrink: 0;
	margin-top: 1px;
}

.reviews-form .box-form-note input[type="checkbox"] {
	width: 19px;
	height: 19px;
	margin: 0;
}

.reviews-form .box-form-note a {
	color: #f78923;
	text-decoration: none;
}

.reviews-form .box-form-note a:hover {
	text-decoration: underline;
}

.reviews-form-success {
	text-align: center;
	padding: 40px 10px;
}

.reviews-form-success .headline,
.reviews-form-success h3 {
	color: #fff;
	margin-bottom: 12px;
}

.reviews-form-success .headline::after {
	background: #ff9900;
	margin-left: auto;
	margin-right: auto;
}

.reviews-form-section .form-label-visible {
	display: block;
	margin-bottom: 12px;
	font-size: 16px;
	color: #fff;
}

@media (max-width: 991px) {
	.reviews-page__title {
		font-size: 32px;
	}

	.reviews-list {
		grid-template-columns: 1fr;
	}

	.reviews-form-section__title {
		font-size: 34px;
		line-height: 1.2;
	}
}

@media (max-width: 767px) {
	.reviews-page__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.reviews-card {
		padding: 18px;
	}

	.reviews-form-section {
		padding: 48px 15px 50px;
	}

	.reviews-upload {
		flex-direction: column;
		align-items: flex-start;
	}

	.reviews-upload__hint {
		display: block;
		width: 100%;
	}
}
