/* ==========================================================================
   Unibest — обновление визуала (правки №4, №6, №10, №12)
   Тёмный фон + неоновые акценты + мягкие тени, крупнее компоненты,
   плавное появление блоков, глубина (параллакс) на первом экране.
   Подключается после style.css и media.css, поэтому только переопределяет стили.
   ========================================================================== */

:root {
	--ub-cyan: #01E9ED;
	--ub-blue: #0287ED;
	--ub-violet: #7B5CFF;
	--ub-grad: linear-gradient(90deg, #01E9ED 0%, #0287ED 100%);
	--ub-bg: #0c0d11;
	--ub-card: #14161c;
	--ub-card2: #181b22;
	--ub-border: rgba(255, 255, 255, .08);
	--ub-border-hover: rgba(1, 233, 237, .45);
	--ub-text: #b7bcc6;
	--ub-radius: 16px;
	--ub-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--ub-glow: 0 0 0 1px rgba(1, 233, 237, .18), 0 18px 45px rgba(2, 135, 237, .22);
	--ub-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Фон с неоновыми «пятнами» ---------- */
body {
	background: var(--ub-bg);
	color: var(--ub-text);
	-webkit-font-smoothing: antialiased;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background:
		radial-gradient(600px 400px at 12% 18%, rgba(2, 135, 237, .14), transparent 70%),
		radial-gradient(520px 380px at 88% 42%, rgba(123, 92, 255, .10), transparent 70%),
		radial-gradient(700px 500px at 50% 100%, rgba(1, 233, 237, .08), transparent 70%);
}

/* ---------- Шире контейнер на больших экранах (было 1170px — «всё маленькое») ---------- */
@media (min-width: 1400px) {
	.container { width: 1340px; }
}
@media (min-width: 1700px) {
	.container { width: 1480px; }
}

/* ---------- Заголовки ---------- */
.title {
	font-size: 38px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -.01em;
	padding-bottom: 22px;
	margin-bottom: 44px;
}
.title::before {
	width: 64px;
	height: 3px;
	border-radius: 3px;
	background: var(--ub-grad);
	box-shadow: 0 0 14px rgba(1, 233, 237, .6);
}
@media (max-width: 767px) {
	.title { font-size: 28px; margin-bottom: 30px; }
}

/* ---------- Шапка: стекло при прокрутке ---------- */
header#header {
	background: rgba(17, 18, 22, .82);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--ub-border);
	transition: background .3s, box-shadow .3s;
}
header#header.fixed,
header#header.is-scrolled {
	background: rgba(12, 13, 17, .92);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}

/* ---------- Кнопки ---------- */
.btn-blue {
	box-shadow: 0 8px 26px rgba(2, 135, 237, .35);
	transition: transform .25s var(--ub-ease), box-shadow .25s var(--ub-ease), background .4s;
}
.btn-blue:hover,
.btn-blue:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 34px rgba(1, 233, 237, .45);
}
.btn-white, .btn-gray {
	transition: transform .25s var(--ub-ease), border-color .25s, background .25s, color .25s;
}
.btn-white:hover { border-color: var(--ub-cyan); color: #fff; transform: translateY(-2px); }
.btn-gray:hover { transform: translateY(-2px); }
.bt:focus-visible, a:focus-visible, input:focus-visible + span {
	outline: 2px solid var(--ub-cyan);
	outline-offset: 3px;
}

/* ---------- Первый экран: глубина ---------- */
.slider-item { overflow: hidden; }
.slider-fon { will-change: transform; transform: scale(1.08); }
.slider-img img { will-change: transform; filter: drop-shadow(0 30px 60px rgba(2, 135, 237, .35)); }
.slider-head { font-weight: 700; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.slider-head2 {
	background: var(--ub-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.slider-link { padding: 16px 56px; font-size: 18px; }

/* ---------- Полоса преимуществ под первым экраном ---------- */
.usp-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: -40px;
	position: relative;
	z-index: 3;
}
.usp-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	background: rgba(20, 22, 28, .85);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid var(--ub-border);
	border-radius: var(--ub-radius);
	box-shadow: var(--ub-shadow);
	color: #fff;
	font-size: 15px;
	line-height: 1.3;
}
.usp-item b { display: block; font-weight: 600; }
.usp-item span { display: block; color: #8d93a0; font-size: 13px; margin-top: 3px; }
.usp-icon {
	flex: 0 0 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ub-cyan);
	background: rgba(1, 233, 237, .08);
	box-shadow: inset 0 0 0 1px rgba(1, 233, 237, .25);
}
@media (max-width: 1024px) { .usp-strip { grid-template-columns: repeat(2, 1fr); margin-top: 20px; } }
@media (max-width: 560px) { .usp-strip { grid-template-columns: 1fr; } }

/* ---------- Общий стиль карточек ---------- */
.config-item,
.computer-item,
.conf-item,
.product-item,
.sidebox-item,
.client-item .client-img,
.live-item > a {
	background: linear-gradient(180deg, var(--ub-card2) 0%, var(--ub-card) 100%);
	border: 1px solid var(--ub-border);
	border-radius: var(--ub-radius);
	box-shadow: var(--ub-shadow);
	transition: transform .35s var(--ub-ease), box-shadow .35s var(--ub-ease), border-color .35s;
}
.config-item:hover,
.computer-item:hover,
.conf-item:hover,
.product-item:hover {
	transform: translateY(-6px);
	border-color: var(--ub-border-hover);
	box-shadow: var(--ub-glow);
}
.config-item img,
.computer-item .computer-img img,
.product-item .product-img img,
.conf-item .conf-img img {
	transition: transform .5s var(--ub-ease), filter .5s;
}
.config-item:hover .config-img img,
.computer-item:hover .computer-img img,
.product-item:hover .product-img img,
.conf-item:hover .conf-img img {
	transform: scale(1.05) translateY(-4px);
	filter: drop-shadow(0 16px 30px rgba(2, 135, 237, .35));
}

/* ---------- Решения Unibest (правки №1, №10) ---------- */
.config-item { padding: 26px; }
.config-img {
	display: flex;
	height: 240px;
	padding-top: 34px;
	cursor: pointer;
}
.config-img img { max-height: 100%; }
.config-label {
	background: rgba(1, 233, 237, .1);
	border-color: rgba(1, 233, 237, .5);
	color: #dff;
	font-size: 13px;
	padding: 4px 10px;
	border-radius: 30px;
}
.config-name { display: block; font-size: 21px; font-weight: 600; line-height: 1.25; color: #fff; }
.config-name:hover { color: var(--ub-cyan); }
.config-price { font-size: 22px; font-weight: 700; }
.config-attr { font-size: 15px; margin-bottom: 14px; }
.config-btns .bt { padding: 10px 22px; font-size: 15px; }

/* ---------- Карточки сборок (правка №1 — картинка кликабельна) ---------- */
.computer-img { height: 240px; }
.computer-img_link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.computer-img_link img { max-height: 90%; }
.computer-name { font-size: 21px; font-weight: 600; }
.computer-name:hover { color: var(--ub-cyan); }
.computer-price { font-size: 24px; font-weight: 700; }

/* ---------- Подбор ПК: выбор категории / игры / разрешения ---------- */
.selection-check,
.resolution-check,
.game-check {
	background: linear-gradient(180deg, var(--ub-card2), var(--ub-card));
	border: 1px solid var(--ub-border);
	border-radius: var(--ub-radius);
	transition: border-color .3s, box-shadow .3s, transform .3s var(--ub-ease);
}
.selection-item:hover .selection-check,
.resolution-item:hover .resolution-check,
.game-item:hover .game-check {
	border-color: var(--ub-border-hover);
	transform: translateY(-3px);
}
.selection-item input:checked ~ .selection-check,
.resolution-item input:checked ~ .resolution-check,
.game-item input:checked ~ .game-check {
	border-color: var(--ub-cyan);
	box-shadow: var(--ub-glow);
}
.selection-check { padding: 36px 30px; font-size: 15px; }
.selection-img img { max-height: 72px; }
.selection-name { font-size: 21px; color: #fff; font-weight: 600; }
.resolution-check { padding: 36px 30px; }
.resolution-name { font-size: 40px; }
#resolution { scroll-margin-top: 140px; }
#podbor { scroll-margin-top: 130px; }

/* Пустая линейка — вместо «заглушки» */
.solution-empty {
	text-align: center;
	padding: 50px 30px;
	border-radius: var(--ub-radius);
	border: 1px dashed rgba(1, 233, 237, .35);
	background: radial-gradient(500px 200px at 50% 0%, rgba(1, 233, 237, .08), transparent 70%), var(--ub-card);
}
.solution-empty_title { font-size: 26px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.solution-empty_text { max-width: 640px; margin: 0 auto 26px; color: #9aa1ad; }
.solution-empty_btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.solution-empty_btns .btn-white { padding: 11px 30px; }

/* ---------- Иконка запуска видео (правка №4) ---------- */
.play { z-index: 2; text-align: center; }
.play-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), 0 10px 30px rgba(0, 0, 0, .35);
	transition: transform .3s var(--ub-ease), background .3s, box-shadow .3s;
}
.play-btn svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.play-btn::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1.5px solid rgba(1, 233, 237, .55);
	animation: ub-pulse 2.4s var(--ub-ease) infinite;
}
a:hover .play-btn,
.client-play:hover .play-btn {
	transform: scale(1.08);
	background: var(--ub-grad);
	box-shadow: 0 0 0 0 transparent, 0 12px 40px rgba(1, 233, 237, .55);
}
@keyframes ub-pulse {
	0% { transform: scale(.92); opacity: .9; }
	70% { transform: scale(1.25); opacity: 0; }
	100% { transform: scale(1.25); opacity: 0; }
}
.obzor-link .play-btn { width: 110px; height: 110px; }
.obzor-link .play-btn svg { width: 44px; height: 44px; }
.client-play { display: inline-block; }
.client-play .play-btn { width: 64px; height: 64px; }
.live-item > a { display: block; overflow: hidden; position: relative; }
.live-item > a > img { transition: transform .6s var(--ub-ease); }
.live-item > a:hover > img { transform: scale(1.05); }
@media (max-width: 767px) {
	.play-btn { width: 56px; height: 56px; }
	.play-btn svg { width: 22px; height: 22px; }
	.play img { width: auto; }
}

/* ---------- Иконки соцсетей (правка №6) ---------- */
.hsocial { display: flex; gap: 8px; align-items: center; }
.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: #d7dbe2;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--ub-border);
	transition: color .25s, border-color .25s, background .25s;
}
.social-link:hover { color: #fff; border-color: var(--ub-cyan); background: rgba(1, 233, 237, .12); }
.social-link .social-svg { width: 18px; height: 18px; }
.fsocial-link .social-svg {
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: 12px;
	color: #fff;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--ub-border);
	margin-bottom: 10px;
	transition: border-color .25s, background .25s;
}
.fsocial-link:hover .social-svg { border-color: var(--ub-cyan); background: rgba(1, 233, 237, .12); }
.fsocial-link .social-svg_wa { color: #25D366; }

/* ---------- Конфигуратор: крупнее и заметнее (правка №10) ---------- */
.conf-item {
	padding: 22px 18px 18px;
}
.conf-item--selected {
	border-color: var(--ub-cyan);
	box-shadow: var(--ub-glow);
}
.conf-item--conflict { opacity: .72; }
.conf-item--conflict:hover { opacity: 1; }
.conf-type {
	align-self: flex-start;
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--ub-cyan);
	background: rgba(1, 233, 237, .08);
	border: 1px solid rgba(1, 233, 237, .25);
	border-radius: 20px;
	padding: 5px 10px;
	margin-bottom: 14px;
}
.conf-img { height: 170px; margin-bottom: 20px; }
.conf-name { font-size: 16px; line-height: 1.35; margin-bottom: 12px; }
.conf-name:hover { color: var(--ub-cyan); }
.conf-bottom { margin-top: auto; }
.conf-price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
}
.conf-price_total { font-size: 19px; font-weight: 700; color: #fff; }
.conf-price_diff { font-size: 14px; color: #8d93a0; white-space: nowrap; }
.conf-conflict {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.35;
	color: #ffb4a8;
	background: rgba(255, 90, 70, .08);
	border: 1px solid rgba(255, 90, 70, .3);
	border-radius: 10px;
	padding: 8px 10px;
	margin-bottom: 12px;
}
.conf-conflict svg { flex: 0 0 16px; margin-top: 1px; }

/* Кнопка выбора: была маленьким «+» 33×30 — теперь заметная кнопка на всю ширину */
.conf-check { width: 100%; height: 46px; }
.conf-check span {
	border-radius: 30px;
	font-size: 15px;
	box-shadow: 0 6px 20px rgba(2, 135, 237, .3);
	transition: box-shadow .25s, transform .25s var(--ub-ease);
}
.conf-check span::before,
.conf-check span::after { display: none; }
.conf-check i { font-style: normal; }
.conf-check .conf-check_done { display: none; }
.conf-check:hover span { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(1, 233, 237, .45); }
.conf-check input:checked ~ span {
	background: rgba(1, 233, 237, .12);
	border-color: var(--ub-cyan);
	color: var(--ub-cyan);
	box-shadow: none;
	transform: none;
}
.conf-check input:checked ~ span .conf-check_add { display: none; }
.conf-check input:checked ~ span .conf-check_done { display: inline-flex; align-items: center; gap: 6px; }
.conf-check input:checked ~ span .conf-check_done::before { content: "✓"; font-weight: 800; }
@media (min-width: 1400px) {
	.conf-item { width: calc(33.33% - 14px); }
}

/* Блок «Проверка совместимости» в сайдбаре (правки №8, №14) */
.compat {
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.4;
	border: 1px solid var(--ub-border);
	background: rgba(255, 255, 255, .03);
}
.compat-head { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.compat-icon {
	flex: 0 0 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	background: rgba(255, 255, 255, .1);
}
.compat--ok { border-color: rgba(46, 213, 115, .45); background: rgba(46, 213, 115, .07); }
.compat--ok .compat-icon { background: #2ed573; color: #0c0d11; }
.compat--warning { border-color: rgba(255, 193, 7, .45); background: rgba(255, 193, 7, .07); }
.compat--warning .compat-icon { background: #ffc107; color: #0c0d11; }
.compat--error { border-color: rgba(255, 90, 70, .55); background: rgba(255, 90, 70, .08); }
.compat--error .compat-icon { background: #ff5a46; color: #fff; }
.compat-list { list-style: none; margin: 10px 0 0; padding: 0; }
.compat-list li { position: relative; padding-left: 16px; margin-top: 6px; color: #d5d9e0; }
.compat-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; }
.compat-error::before { background: #ff5a46; }
.compat-warning::before { background: #ffc107; }
.compat-text { margin-top: 8px; color: #9aa1ad; }
.filter-item_compat { border: 1px solid rgba(1, 233, 237, .3); border-radius: 12px; padding: 6px 4px 6px; margin-bottom: 14px; background: rgba(1, 233, 237, .05); }
.filter-item_compat .filter-head { color: var(--ub-cyan); }

/* ---------- Каталог: фильтр по цене (правка №7) ---------- */
.filter-price { display: flex; align-items: center; gap: 8px; padding: 6px 0 12px; }
.filter-price_input {
	width: 100%;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--ub-border);
	background: rgba(255, 255, 255, .05);
	color: #fff;
	font-size: 14px;
	transition: border-color .25s;
}
.filter-price_input:focus { outline: none; border-color: var(--ub-cyan); }
.filter-price_input::placeholder { color: #7c828e; }
.filter-price_sep { color: #7c828e; }
.filter-price_btn { width: 100%; padding: 10px 20px; font-size: 15px; }

/* ---------- Вход через Google (правка №15) ---------- */
.social-login { margin-top: 26px; text-align: center; }
.social-login_sep { position: relative; color: #7c828e; font-size: 14px; margin-bottom: 18px; }
.social-login_sep::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ub-border); }
.social-login_sep span { position: relative; padding: 0 14px; background: var(--ub-bg); }
.social-login_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 280px;
	padding: 13px 28px;
	border-radius: 60px;
	background: #fff;
	color: #1f1f1f;
	font-weight: 600;
	font-size: 16px;
	box-shadow: var(--ub-shadow);
	transition: transform .25s var(--ub-ease), box-shadow .25s;
}
.social-login_btn:hover { color: #1f1f1f; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 255, 255, .15); }

/* ---------- Блок «Соберите ПК» и «Почему мы» ---------- */
.buildbox {
	background: linear-gradient(135deg, rgba(2, 135, 237, .12), rgba(123, 92, 255, .06) 60%, transparent), var(--ub-card);
	border: 1px solid var(--ub-border);
	border-radius: 24px;
	overflow: hidden;
}
.buildbox-link { transition: color .25s, padding-left .3s var(--ub-ease); }
.buildbox-link:hover { padding-left: 8px; }
.buildbox-link:hover .buildbox-link_name { color: var(--ub-cyan); }
.why-grid_item img { border-radius: var(--ub-radius); }

/* ---------- Плавное появление при прокрутке ---------- */
.ub-reveal {
	opacity: 0;
	transform: translate3d(0, 34px, 0);
	transition: opacity .8s var(--ub-ease), transform .8s var(--ub-ease);
	transition-delay: var(--ub-delay, 0s);
}
.ub-reveal.is-visible {
	opacity: 1;
	transform: none;
}
/* при наведении карточка уже видима — переход трансформации должен быть быстрым */
.ub-reveal.is-visible.config-item,
.ub-reveal.is-visible.computer-item,
.ub-reveal.is-visible.product-item {
	transition: opacity .8s var(--ub-ease), transform .35s var(--ub-ease), box-shadow .35s, border-color .35s;
	transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ub-reveal { opacity: 1; transform: none; }
	.slider-fon, .slider-img img { transform: none !important; }
}

/* Исправление: старое правило ".play span {display:block; width:100%; margin-top:20px}"
   растягивало круглую кнопку в овал — возвращаем ей ровный круг */
.play .play-btn,
.client-play .play-btn {
	display: inline-flex;
	width: 76px;
	height: 76px;
	min-width: 76px;
	margin: 0;
	padding: 0;
	font-size: 0;
	line-height: 0;
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
}
.play .play-btn svg,
.client-play .play-btn svg,
.obzor-link .play .play-btn svg {
	width: 30px;
	height: 30px;
}
.obzor-link .play .play-btn { width: 110px; height: 110px; min-width: 110px; }
.obzor-link .play .play-btn svg { width: 44px; height: 44px; }
.client-play .play-btn { width: 64px; height: 64px; min-width: 64px; }
@media (max-width: 767px) {
	.play .play-btn, .client-play .play-btn { width: 56px; height: 56px; min-width: 56px; }
	.play .play-btn svg { width: 22px; height: 22px; }
}

a.fsocial-link {
    padding-left: 0;
}

.footer-bottom {
    padding: 20px 0;
}