/* ============ Plasma Glass — основные стили ============ */

:root {
	--bg: #05060a;
	--surface: #0c0f16;
	--surface-2: #121722;
	--line: rgba(255, 255, 255, .08);
	--text: #e8ecf4;
	--muted: #8a93a8;
	--blue: #5ad1ff;
	--violet: #a97cff;
	--glow: linear-gradient(90deg, var(--blue), var(--violet));
	--radius: 14px;
	--container: 1200px;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.eyebrow {
	font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--blue); margin-bottom: 14px;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px; border-radius: 999px;
	font: 600 16px var(--font); cursor: pointer; border: 1px solid transparent;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn--primary { background: var(--glow); color: #05060a; }
.btn--primary:hover { color: #05060a; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(90, 209, 255, .35); }
.btn--ghost { border-color: rgba(255, 255, 255, .25); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--blue); color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	transition: background .3s, border-color .3s;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(5, 6, 10, .85); backdrop-filter: blur(12px); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; }
.logo:hover { color: #fff; }
.logo__mark {
	width: 12px; height: 28px; border-radius: 6px;
	background: linear-gradient(180deg, var(--blue), var(--violet));
	box-shadow: 0 0 18px rgba(90, 209, 255, .7);
}
.logo__by { font-size: 12px; font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav__cta { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; }
.site-header__side { display: flex; align-items: center; gap: 18px; }
.site-header__phone { color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.lang { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang__cur { color: var(--text); font-weight: 600; }
.lang__sep { opacity: .5; }
.burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 10px 8px; }
.burger span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s; }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: center; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(5, 6, 10, .92) 0%, rgba(5, 6, 10, .55) 50%, rgba(5, 6, 10, .2) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__content { position: relative; padding: 120px 0 80px; }
.hero__title { font-size: clamp(54px, 9vw, 120px); font-weight: 800; line-height: .95; margin-bottom: 28px; }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: #c9d0de; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Секции ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__lead { color: #c3cad8; font-size: 18px; }
.note { margin-top: 32px; color: var(--muted); max-width: 760px; }

/* Факты */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 40px 32px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact p { color: var(--muted); margin: 0; }

/* ---------- Где работают ---------- */
.uses__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.use { margin: 0; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.use:hover { border-color: rgba(90, 209, 255, .45); transform: translateY(-3px); }
.use img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #000; }
.use figcaption, .use__body { padding: 16px 18px 20px; flex: 1; display: block; }
a.use { color: inherit; text-decoration: none; }
.use h3 { font-size: 19px; margin-bottom: 8px; }
.use p { color: #c3cad8; font-size: 14.5px; line-height: 1.5; margin: 0; }
.use .use__link { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- Цвета ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
	font: 500 14px var(--font); color: var(--text); cursor: pointer;
	padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.filter:hover { border-color: rgba(255, 255, 255, .3); }
.filter.is-active { border-color: var(--blue); color: #fff; background: rgba(90, 209, 255, .08); }

.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.color-card {
	position: relative; display: flex; color: var(--text); flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color .25s, transform .25s, box-shadow .25s;
}
.color-card.is-hidden { display: none; }
.color-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
	box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 22%, transparent);
}
.color-card__media { aspect-ratio: 3 / 4; background: #000; overflow: hidden; }
.color-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.color-card:hover .color-card__media img { transform: scale(1.05); }
.color-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.color-card__body h3 {
	font-size: 19px; margin-bottom: 6px; color: var(--accent);
	text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.color-card__text { font-size: 14.5px; line-height: 1.5; color: #c9d0de; margin-bottom: 12px; }
.badges { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #d5dbe7; }
.badges .badge--high { background: rgba(125, 255, 176, .12); color: #9dffc4; }
.badges .badge--low { background: rgba(255, 196, 120, .12); color: #ffd29a; }

.specs { display: grid; gap: 10px; margin: 24px 0 0; }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-size: 15px; }
.specs--compact div { grid-template-columns: 1fr auto; padding-top: 8px; }
.specs--inline { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.specs--inline div { display: block; border: 0; padding: 0; }

/* ---------- Модели ---------- */
.models__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.model__media { aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.model__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.model:hover .model__media img { transform: scale(1.04); }
.model__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.model__kind { color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.model__body h3 { font-size: 24px; }
.model__price { margin: auto 0 0; padding-top: 18px; font-weight: 700; font-size: 18px; }

.terms { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: #c3cad8; font-size: 15px; }
.terms strong { color: var(--text); font-weight: 600; }

/* ---------- Почему мы ---------- */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why__item { background: var(--surface); padding: 32px; }
.why__item p { color: var(--muted); margin: 0; }

/* ---------- Проекты ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { display: block; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.project-card:hover { color: var(--text); border-color: rgba(90, 209, 255, .5); transform: translateY(-3px); }
.project-card__media { aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 20px 22px 24px; }
.project-card__meta { color: var(--blue); font-size: 13px; margin-bottom: 6px; }
.project-card__body p:last-child { margin: 0; }

/* ---------- Производство ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { counter-increment: step; }
.step img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; margin-bottom: 16px; background: var(--surface); }
.step h3::before { content: "0" counter(step) " "; color: var(--blue); font-size: 14px; margin-right: 4px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Под заказ ---------- */
/* Слайдер «Под заказ»: по одному изделию на кадр, листается свайпом и стрелками */
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--radius); }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.slide__media img, .slide__media video { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--radius); background: #000; }
.slide__count { color: var(--muted); font-size: 14px; letter-spacing: .1em; margin-bottom: 12px; }
.slide__body h3 { font-size: 30px; margin-bottom: 14px; }
.slide__body p { color: #c3cad8; }
.slide__link { display: inline-block; margin-top: 8px; }
.slider__nav { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.slider__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: inherit; font-size: 24px; line-height: 1; cursor: pointer; transition: border-color .2s; }
.slider__btn:hover { border-color: var(--blue); }
.slider__dots { display: flex; gap: 10px; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); cursor: pointer; }
.slider__dots button.is-active { background: var(--blue); }
.forms__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Страница «Арт-объекты на заказ»: формы друг под другом, картинка то слева, то справа */
.art__head { max-width: 820px; margin-bottom: 64px; }
.art__head h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 24px; }
.art__forms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; }
.art__item > * { min-width: 0; }
.art__item:nth-child(even) .slide__media { order: 2; }
.art__item h2 { font-size: 30px; margin-bottom: 14px; }
.art__steps-head { margin-top: 96px; }
.art__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }

/* ---------- Сервис ---------- */
.service__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service__grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.service__grid p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #c3cad8; margin: 14px 0 0; }

/* ---------- Заявка ---------- */
.contact { background: radial-gradient(60% 80% at 80% 50%, rgba(169, 124, 255, .12), transparent), var(--bg); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__direct { font-size: 26px; font-weight: 700; display: flex; flex-direction: column; }
.contact__direct a { color: var(--text); }
.contact__direct .muted { font-size: 15px; font-weight: 400; }
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea {
	font: 16px var(--font); color: var(--text); background: var(--bg);
	border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form__hp { position: absolute; left: -9999px; }
.form__ok { color: #7dffb0; margin: 0; }
.form__err { color: #ff8a8a; margin: 0; }
.form__legal { font-size: 13px; margin: 0; }
.form .form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; }
.form .form__consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--surface); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
.site-footer__title { font-size: 15px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--blue); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Страница цвета ---------- */
.color-page { padding-top: 110px; }
.color-page__grid { display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: 56px; align-items: center; padding-bottom: 40px; }
.color-page__media { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 3 / 4; box-shadow: 0 20px 80px color-mix(in srgb, var(--accent) 25%, transparent); }
.color-page__media img, .color-page__media video { width: 100%; height: 100%; object-fit: cover; }
.color-page h1 { font-size: clamp(40px, 6vw, 72px); color: var(--accent); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); }
.color-page__lead { font-size: 21px; color: #d8dee9; max-width: 560px; }
.badges--big li { font-size: 14px; padding: 8px 12px; }
.color-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.color-page__note { font-size: 14px; }
.color-page__more { padding-top: 20px; }
.entry__content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.entry__content .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; margin: 0; }
.entry__content .wp-block-gallery > figure,
.entry__content .wp-block-gallery.has-nested-images figure.wp-block-image { width: 100% !important; max-width: none !important; margin: 0 !important; flex: none !important; }
.entry__content .wp-block-gallery.has-nested-images figure.wp-block-image img { height: 100% !important; aspect-ratio: 3 / 4; }
.color-page__gallery figure { margin: 0; }
.color-page__gallery video { width: 100%; border-radius: 10px; }
.color-page__nav { display: flex; justify-content: space-between; gap: 20px; padding: 32px 0 80px; border-top: 1px solid var(--line); margin-top: 20px; }
.color-page__nav a { color: var(--text); font-weight: 600; }
.color-page__nav a:hover { color: var(--accent); }

/* ---------- Страница проекта ---------- */
.project__hero { position: relative; min-height: 70svh; display: flex; align-items: flex-end; overflow: hidden; }
.project__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__head { position: relative; padding: 140px 0 48px; }
.project__head h1 { font-size: clamp(36px, 6vw, 72px); }
.page { padding-top: 140px; }
.entry h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 28px; }
.entry__content { font-size: 18px; color: #d3d9e5; }
.entry__content h2 { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 16px; color: var(--text); }
.entry__content ul { padding-left: 1.2em; }
.entry__content li { margin-bottom: 6px; }
.entry__content img { border-radius: 10px; margin: 24px 0; }
.entry__content figure { margin: 32px 0; }
.entry__content figure img { margin: 0; width: 100%; height: auto; }
.entry__content figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.entry__content figure.is-portrait { max-width: 460px; margin-inline: auto; }
.entry__content .img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.entry__content .img-pair figure { margin: 0; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.nav, .site-header__phone { display: none; }
	.burger { display: block; }
	.nav.is-open {
		display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
		position: fixed; inset: 72px 0 auto; padding: 24px 16px 32px;
		background: rgba(5, 6, 10, .97); border-bottom: 1px solid var(--line);
	}
	.nav.is-open a { font-size: 20px; }
	.color-grid { grid-template-columns: repeat(3, 1fr); }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.art__steps { grid-template-columns: 1fr 1fr; }
	.uses__grid { grid-template-columns: repeat(3, 1fr); }
	.service__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
	body { font-size: 16px; }
	.facts__grid, .why__grid, .models__grid, .projects__grid, .contact__grid, .site-footer__grid { grid-template-columns: 1fr; }
	.fact { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
	.fact:first-child { border-top: 0; }
	.color-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.uses__grid { grid-template-columns: 1fr; }
	.color-card__body { padding: 12px 12px 14px; }
	.color-card__body h3 { font-size: 16px; }
	.color-card__text { font-size: 13.5px; }
	.badges li { font-size: 11px; }
	.steps { grid-template-columns: 1fr 1fr; }
	.color-page__grid { grid-template-columns: 1fr; gap: 28px; }
	.entry__content .wp-block-gallery { grid-template-columns: 1fr 1fr; }
	.service__grid { grid-template-columns: 1fr; }
	.slide { grid-template-columns: 1fr; gap: 20px; align-items: start; }
	.slide__body h3 { font-size: 24px; }
	.art__item:nth-child(even) .slide__media { order: 0; }
	.art__item h2 { font-size: 24px; }
	.art__forms { gap: 48px; }
	.art__steps { grid-template-columns: 1fr; }
	.entry__content .img-pair { grid-template-columns: 1fr; }
	.hero__shade { background: linear-gradient(0deg, rgba(5, 6, 10, .95) 10%, rgba(5, 6, 10, .45) 70%); }
	.hero__content { align-self: flex-end; }
	.site-footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}

/* Видео внутри текста страниц (кейсы, цвета) */
.entry__content .wp-block-video { margin: 28px 0; }
.entry__content .wp-block-video video { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 10px; display: block; background: #000; }
.entry__content figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: left; }
