/* Детальная карточка */

.detail-card {
	display: flex;
	gap: 30px;
	justify-content: space-between;
	margin-bottom: 60px !important;
}

.detail-gallery {
	display: flex;
	align-items: center;
	gap: 15px;
}

.detail-gallery__thumbs-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.detail-gallery__thumbs {
	width: 180px;
	height: 450px;
	overflow: hidden;
}

.detail-gallery__thumbs-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 28px;
	border: none;
	color: var(--color-text);
	cursor: pointer;
	transition: color 0.15s ease;
}

.detail-gallery__thumbs-arrow:hover,
.detail-gallery__thumbs-arrow:active {
	color: #000;
}

.detail-gallery__thumbs-arrow.swiper-button-disabled {
	cursor: default;
	pointer-events: none;
}

.detail-gallery__thumbs-arrow svg {
	width: 39px;
	height: 20px;
}

.detail-gallery__thumbs-arrow--prev svg {
	transform: rotate(90deg);
}

.detail-gallery__thumbs-arrow--next svg {
	transform: rotate(-90deg);
}

.detail-gallery__thumb.swiper-slide {
	width: 180px;
	height: 170px;
	border: 1px solid var(--color-border);
	overflow: hidden;
	opacity: 0.6;
	cursor: pointer;
	transition:
		opacity 0.15s ease,
		border-color 0.15s ease;
}

.detail-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.detail-gallery__thumb:hover {
	opacity: 1;
}

.detail-gallery__thumb.swiper-slide-thumb-active {
	opacity: 1;
	border-color: var(--color-text-secondary);
}

.detail-gallery__main {
	position: relative;
	width: 450px;
	height: 450px;
	background: var(--color-surface);
	overflow: hidden;
}

.detail-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.detail-gallery__pagination {
	display: none;
	position: static !important;
	align-items: center;
	justify-content: center;
}

.detail-gallery__pagination .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	margin: 0;
	border-radius: 50%;
	background: var(--color-dot);
	opacity: 1;
}

.detail-gallery__pagination .swiper-pagination-bullet-active {
	width: 8px;
	height: 8px;
	background: var(--color-primary);
}

.detail-gallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 65px;
	border: none;
	background-color: rgba(126, 126, 126, 0.25);
	color: var(--color-white);
	cursor: pointer;
	transition: all 0.15s ease;
}

.detail-gallery__arrow:hover,
.detail-gallery__arrow:active {
	background-color: rgba(126, 126, 126, 0.5);
}

.detail-gallery__arrow.swiper-button-disabled {
	cursor: default;
	pointer-events: none;
}

.detail-gallery__arrow svg {
	width: 20px;
	height: 39px;
}

.detail-gallery__arrow--prev {
	left: 20px;
}

.detail-gallery__arrow--next {
	right: 20px;
	transform: translateY(-50%) rotate(180deg);
}

/* Информация о товаре */

.detail-card__info {
	display: flex;
	flex-direction: column;
	max-width: 645px;
	width: 100%;
}

.detail-card__title {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 40px;
	line-height: 120%;
	color: var(--color-text);
	margin-bottom: 20px;
}

.detail-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 30px;
}

.detail-card__tag {
	position: relative;
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 18px;
	color: var(--color-text-secondary);
	padding: 8px 16px;
	background-color: var(--color-surface);
	cursor: pointer;
}

.detail-card__volumes {
	margin-bottom: 30px;
}

.detail-card__volumes-title {
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 500;
	color: var(--color-text);
	margin-bottom: 12px;
}

.detail-card__volumes-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.detail-card__volume-item {
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	background: var(--color-white);
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 400;
	color: var(--color-text-secondary);
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease;
}

.detail-card__volume-item:hover {
	border-color: var(--color-primary);
}

.detail-card__volume-item.is-active {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.detail-card__specs {
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
}

.detail-card__specs-title {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 20px;
	color: var(--color-text);
	margin-bottom: 12px;
}

.detail-card__spec {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 6px;
	font-family: var(--font-secondary);
	font-size: 16px;
	margin-bottom: 8px;
}

.detail-card__spec-label {
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 18px;
	flex-shrink: 0;
	color: var(--color-text-secondary);
	white-space: nowrap;
}

.detail-card__spec-dots {
	flex: 1;
	min-width: 12px;
	margin-bottom: 4px;
	border-bottom: 2px dotted var(--color-text-secondary);
}

.detail-card__spec-value {
	font-family: var(--font-secondary);
	font-weight: 500;
	font-size: 18px;
	color: var(--color-text-secondary);
	word-break: break-word;
	overflow-wrap: break-word;
}

.detail-card__decoration {
	margin-bottom: 30px;
}

.detail-card__decoration-title {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 20px;
	color: var(--color-text);
	margin-bottom: 12px;
}

.detail-card__decoration-list {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.detail-card__decoration-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 117px;
	width: 100%;
}

.detail-card__decoration-image {
	display: block;
	height: 85px;
	width: auto;
	object-fit: cover;
}

.detail-card__decoration-name {
	font-family: var(--font-secondary);
	font-size: 14px;
	font-weight: 400;
	color: var(--color-text-secondary);
	text-align: center;
}

.detail-card__actions {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
}

.detail-card__action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 16px;
	border: 1px solid var(--color-border);
	background-color: var(--color-white);
	color: var(--color-text);
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease;
}

.detail-card__action:hover {
	border-color: var(--color-primary);
}

.detail-card__action--primary {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.detail-card__action--primary:hover {
	background-color: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
}

.detail-card__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 500;
	color: var(--color-text);
	transition: color 0.15s ease;
}

.detail-card__link:hover {
	color: var(--color-primary);
}

.detail-card__link-icon {
	width: 8px;
	height: 9px;
}

.product__series--static {
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	grid-template-rows: 1fr !important;
}

/* Комплектующие */

.components {
	margin-bottom: 60px !important;
}

.components__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.components__title {
	font-family: var(--font-primary);
	font-size: 40px;
	font-weight: 500;
	color: var(--color-text);
}

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

.components__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--color-text-secondary);
	border: 1px solid var(--color-border);
	background-color: var(--color-white);
	cursor: pointer;
	transition: all 0.15s ease;
}

.components__arrow:hover,
.components__arrow:active {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-text);
}

.components__arrow svg {
	width: 12px;
	height: 23px;
}

.components__arrow--next {
	transform: rotate(180deg);
}

.components__pagination {
	display: none;
	position: static !important;
	margin-top: 16px;
	align-items: center;
	justify-content: center;
}

.components__pagination .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	margin: 0;
	border-radius: 50%;
	background: var(--color-dot);
	opacity: 1;
}

.components__pagination .swiper-pagination-bullet-active {
	width: 8px;
	height: 8px;
	background: var(--color-primary);
}

/* Табы */

.tabs {
	margin-bottom: 60px !important;
}

.tabs__list {
	display: flex;
	justify-content: space-evenly;
	gap: 8px;
	margin-bottom: 30px;
	padding: 6px;
	background-color: var(--color-surface);
}

.tabs__list::-webkit-scrollbar {
	display: none;
}

.tabs__trigger {
	position: relative;
	width: 211px;
	padding: 5px;
	border: 0;
	background: transparent;
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 500;
	color: var(--color-text);
	cursor: pointer;
	transition: color 0.15s ease;
}

.tabs__trigger:hover,
.tabs__trigger.is-active {
	border: 1.5px solid var(--color-primary);
}

.tabs__trigger.is-active::after {
	transform: scaleX(1);
}

.tabs__panel {
	display: none;
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-text-secondary);
}

.tabs__panel.is-active {
	display: block;
}

.tabs__text {
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 18px;
	color: var(--color-text-secondary);
	margin-bottom: 12px;
}

.tabs__text:last-child {
	margin-bottom: 0;
}

.tabs__links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tabs__link {
	display: flex;
	align-items: center;
	gap: 9px;
	width: fit-content;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 500;
	color: var(--color-text);
	transition: color 0.15s ease;
}

.tabs__link:hover,
.tabs__link:hover .tabs__link-icon {
	color: var(--color-primary);
}

.tabs__link-icon {
	width: 12px;
	height: 12px;
	transform: rotate(-90deg);
	color: var(--color-text-secondary);
	transition: color 0.15s ease;
}

.tabs__specs {
	display: flex;
	flex-direction: column;
	max-width: 600px;
}

.tabs__spec {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	font-family: var(--font-secondary);
	font-size: 16px;
	margin-bottom: 8px;
}

.tabs__spec-label {
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 18px;
	flex-shrink: 0;
	color: var(--color-text-secondary);
	white-space: nowrap;
}

.tabs__spec-dots {
	flex: 1;
	min-width: 12px;
	margin-bottom: 4px;
	border-bottom: 2px dotted var(--color-text-secondary);
}

.tabs__spec-value {
	font-family: var(--font-secondary);
	font-weight: 500;
	font-size: 18px;
	flex-shrink: 0;
	color: var(--color-text-secondary);
	white-space: nowrap;
}

/* Медиа-слайдеры (видео + фото) */

.media-sliders {
	display: flex;
	gap: 30px;
}

.video-slider {
	flex: 0 1 420px;
	min-width: 0;
}

.video-slider__swiper {
	position: relative;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 420 / 655;
	overflow: hidden;
}

.video-slider__slide.swiper-slide {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.video-card {
	position: relative;
	width: 100%;
	height: 100%;
	max-height: 655px;
	overflow: hidden;
}

.video-card__video {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;

	background: #000;
}

.video-card__control {
	position: absolute;

	z-index: 10;

	top: 50%;
	left: 50%;

	width: 64px;
	height: 64px;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0;

	border: 0;
	border-radius: 50%;

	background: rgba(126, 126, 126, 0.25);

	color: var(--color-white);

	cursor: pointer;

	transform: translate(-50%, -50%);

	transition: background 0.2s ease;
}

.video-card__control:hover {
	background: rgba(126, 126, 126, 0.5);
}

.video-card__control svg {
	width: 28px;
	height: 28px;

	fill: currentColor;
}

.video-card__pause {
	display: none;
}

.video-card.is-playing .video-card__play {
	display: none;
}

.video-card.is-playing .video-card__pause {
	display: block;
}

.video-slider__pagination {
	position: absolute !important;
	left: 0;
	right: 0;
	bottom: 25px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-slider__pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0;
	border-radius: 50%;
	background: var(--color-dot);
	opacity: 1;
}

.video-slider__pagination .swiper-pagination-bullet-active {
	width: 10px;
	height: 10px;
	background: var(--color-white);
}

.photo-slider {
	flex: 1 1 870px;
	min-width: 0;
}

.photo-slider__swiper {
	position: relative;
	width: 100%;
	max-width: 870px;
	height: 100%;
	overflow: hidden;
}

.photo-slider__slide.swiper-slide {
	width: 100%;
	height: 100%;
}

.photo-slider__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
}

.photo-slider__image {
	display: block;
	flex: 1;
	min-height: 0;
	width: 100%;
	object-fit: cover;
	background: var(--color-surface);
}

.photo-slider__caption {
	flex-shrink: 0;
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 500;
	color: var(--color-text);
	line-height: 100%;
}

.photo-slider__arrow {
	position: absolute;
	top: calc(50% - 28px);
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 65px;
	border: none;
	background-color: rgba(126, 126, 126, 0.25);
	color: var(--color-white);
	cursor: pointer;
	transition: all 0.15s ease;
}

.photo-slider__arrow:hover,
.photo-slider__arrow:active {
	background-color: rgba(126, 126, 126, 0.5);
}

.photo-slider__arrow.swiper-button-disabled {
	cursor: default;
	pointer-events: none;
}

.photo-slider__arrow svg {
	width: 20px;
	height: 39px;
}

.photo-slider__arrow--prev {
	left: 20px;
}

.photo-slider__arrow--next {
	right: 20px;
	transform: translateY(-50%) rotate(180deg);
}

.photo-slider__pagination {
	position: absolute !important;
	left: 0;
	right: 0;
	bottom: 45px !important;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.photo-slider__pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0;
	border-radius: 50%;
	background: var(--color-dot);
	opacity: 1;
}

.photo-slider__pagination .swiper-pagination-bullet-active {
	width: 10px;
	height: 10px;
	background: var(--color-white);
}

/* Новости */

.news {
	margin-bottom: 60px !important;
}

.news__header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 30px;
}

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

.news__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--color-text-secondary);
	border: 1px solid var(--color-border);
	background-color: var(--color-white);
	cursor: pointer;
	transition: all 0.15s ease;
}

.news__arrow:hover,
.news__arrow:active {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-text);
}

.news__arrow svg {
	width: 12px;
	height: 23px;
}

.news__arrow--next {
	transform: rotate(180deg);
}

.news__slider {
	width: 100%;
	overflow: hidden;
}

.news__slide.swiper-slide {
	max-width: 420px;
	height: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.news__image {
	display: block;
	max-width: 420px;
	width: 100%;
	aspect-ratio: 420 / 322;
	object-fit: cover;
}

.news__caption {
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 500;
	color: var(--color-text);
}

.news__pagination {
	display: none;
	position: static !important;
	margin-top: 16px;
	align-items: center;
	justify-content: center;
}

.news__pagination .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	margin: 0;
	border-radius: 50%;
	background: var(--color-dot);
	opacity: 1;
}

.news__pagination .swiper-pagination-bullet-active {
	width: 8px;
	height: 8px;
	background: var(--color-primary);
}

/* Новости */

/* похожие товары */

.similar-products {
	margin-bottom: 60px !important;
}

.similar-products__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.similar-products__title {
	font-size: 40px;
	font-weight: 500;
	color: var(--color-text);
}

.similar-products__controls {
	display: flex;
	gap: 8px;
}

.similar-products__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--color-text-secondary);
	border: 1px solid var(--color-border);
	background-color: var(--color-white);
	cursor: pointer;
	transition: all 0.15s ease;
}

.similar-products__arrow:hover,
.similar-products__arrow:active {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-text);
}

.similar-products__arrow svg {
	width: 12px;
	height: 23px;
}

.similar-products__arrow--next {
	transform: rotate(180deg);
}

@media screen and (max-width: 1281px) {
	.detail-card {
		flex-wrap: wrap;
	}
}

@media screen and (max-width: 1000px) {
	.detail-card {
		gap: 40px;
	}

	.tabs__list {
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		margin-left: -20px;
		margin-right: -20px;
		padding-left: 26px;
		padding-right: 26px;
	}

	.tabs__trigger {
		flex-shrink: 0;
	}
}

@media screen and (max-width: 768px) {
	.detail-card__title,
	.similar-products__title {
		font-size: 28px;
	}

	.detail-card__tag {
		font-size: 16px;
	}

	.media-sliders {
		flex-direction: column;
	}

	.video-slider,
	.photo-slider {
		flex: none;
		width: 100%;
	}

	.photo-slider__arrow {
		display: none;
	}

	.photo-slider__content {
		flex-direction: column-reverse;
	}

	.photo-slider__pagination {
		bottom: 8px !important;
	}

	.detail-gallery {
		width: 100%;
		flex-wrap: wrap;
	}

	.detail-gallery__thumbs.swiper {
		display: none;
	}

	.detail-gallery__main {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.detail-gallery__arrow {
		display: none;
	}

	.detail-gallery__pagination {
		display: flex;
		width: 100%;
	}

	.detail-gallery__pagination .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
	}

	.detail-gallery__pagination .swiper-pagination-bullet-active {
		width: 10px;
		height: 10px;
	}

	.detail-card__volume-item {
		font-size: 16px;
	}

	.detail-card__spec-label {
		font-size: 16px;
	}

	.detail-card__spec-value {
		font-size: 16px;
	}

	.components__title {
		font-size: 28px;
	}

	.components__pagination {
		display: flex;
	}

	.detail-card__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.detail-card__action {
		font-size: 16px;
		padding: 12px;
	}

	.detail-card__action--pdf {
		grid-column: 1 / -1;
	}

	.news__slider {
		padding-bottom: 30px;
	}

	.news__pagination {
		display: flex;
	}

	.detail-card__info {
		max-width: 100%;
	}

	.components__arrow,
	.similar-products__arrow {
		width: 30px;
		height: 30px;
	}

	.components__arrow svg,
	.similar-products__arrow svg {
		width: 10px;
		height: 17px;
	}

	.components__pagination .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
	}

	.components__pagination .swiper-pagination-bullet-active {
		width: 10px;
		height: 10px;
	}

	.tabs__trigger {
		padding: 7px;
		font-size: 16px;
	}

	.tabs__text {
		font-size: 16px;
	}

	.news__controls {
		display: none;
	}

	.news__pagination .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
	}

	.news__pagination .swiper-pagination-bullet-active {
		width: 10px;
		height: 10px;
	}

	.news__caption {
		font-size: 16px;
	}
}

@media screen and (max-width: 426px) {
	.components__controls,
	.similar-products__controls {
		display: none;
	}
}
