/* =========================================================
   Главная страница: первый экран и блоки
   ========================================================= */

/* ---------- Первый экран ---------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(88vh, 860px);
	overflow: hidden;
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #0b0a09;
}

.hero__video,
.hero__video--img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(0.92) contrast(1.02);
}

.hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(8, 7, 6, 0.94) 0%, rgba(10, 9, 8, 0.75) 42%, rgba(10, 9, 8, 0.32) 72%, rgba(8, 7, 6, 0.6) 100%),
		radial-gradient(90% 70% at 12% 50%, rgba(122, 82, 51, 0.24) 0%, rgba(10, 9, 8, 0) 65%),
		linear-gradient(180deg, rgba(8, 7, 6, 0.55) 0%, rgba(8, 7, 6, 0) 30%, rgba(11, 11, 12, 0.92) 100%);
}

.hero__inner {
	position: relative;
	padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 10vw, 8rem);
	max-width: 1240px;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	margin: 0 0 1.2rem;
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--gold);
}

.hero__eyebrow-line {
	display: inline-block;
	width: clamp(28px, 5vw, 56px);
	height: 1px;
	background: linear-gradient(90deg, rgba(196, 156, 70, 0), var(--gold));
}

.hero__title {
	margin: 0 0 1.15rem;
	max-width: 20ch;
	font-size: clamp(2.15rem, 5.2vw, 4.4rem);
	line-height: 1.06;
	letter-spacing: -0.01em;
	text-wrap: balance;
	color: #f7f2e8;
	text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}

.hero__sub {
	max-width: 54ch;
	margin: 0 0 2rem;
	font-family: var(--font-serif);
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	line-height: 1.6;
	color: #d6cec0;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: 2.2rem;
}

.hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.4rem;
	margin: 0;
	padding: 1.4rem 0 0;
	list-style: none;
	border-top: 1px solid rgba(237, 230, 216, 0.14);
}

.hero__badges li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: #bfb7a8;
}

.hero__badges .icon { color: var(--gold); }

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.4rem;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	width: 28px;
	height: 44px;
	border: 1px solid rgba(196, 156, 70, 0.45);
	border-radius: 99px;
	z-index: 2;
}

.hero__scroll span {
	width: 3px;
	height: 9px;
	margin-top: 8px;
	border-radius: 2px;
	background: var(--gold);
	animation: heroScroll 1.9s var(--ease) infinite;
}

@keyframes heroScroll {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(16px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 860px) {
	.hero { min-height: min(84vh, 720px); }
	.hero__title { max-width: 24ch; }
	.hero__scroll { display: none; }
}

/* ---------- Категории ---------- */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-grid li { margin: 0; }

.cat-card {
	height: 100%;
	border: 1px solid rgba(196, 156, 70, 0.16);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: linear-gradient(180deg, rgba(33, 27, 20, 0.6) 0%, rgba(14, 12, 10, 0.85) 100%);
	transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cat-card:hover {
	border-color: rgba(196, 156, 70, 0.5);
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}

.cat-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }

.cat-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background:
		radial-gradient(70% 70% at 50% 40%, rgba(196, 156, 70, 0.14) 0%, rgba(14, 12, 10, 0) 70%),
		#131110;
	overflow: hidden;
}

.cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.cat-card:hover .cat-card__media img { transform: scale(1.05); }

.cat-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: rgba(196, 156, 70, 0.75);
}

.cat-card__placeholder .icon { width: 64px; height: 64px; stroke-width: 1; }

.cat-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.15rem 1.3rem 1.35rem;
	position: relative;
}

.cat-card__title {
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: var(--bone);
}

.cat-card__count {
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.cat-card__arrow {
	position: absolute;
	right: 1.3rem;
	bottom: 1.35rem;
	color: var(--gold);
	transition: transform 0.3s var(--ease);
}

.cat-card:hover .cat-card__arrow { transform: translateX(4px); }

/* ---------- О мастерской ---------- */
.about {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(1.75rem, 4vw, 4rem);
	align-items: center;
}

.about__media {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line-soft);
}

.about__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 7, 6, 0) 45%, rgba(8, 7, 6, 0.75) 100%);
	pointer-events: none;
}

.about__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.about__caption {
	position: absolute;
	left: 1.1rem;
	bottom: 1.1rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bone-dim);
}

.about__caption .icon { color: var(--gold); }

.about__text {
	color: var(--bone-dim);
	font-size: 1rem;
	line-height: 1.75;
	margin-bottom: 1.6rem;
}

.about__text p:first-child {
	font-family: var(--font-serif);
	font-size: 1.18rem;
	color: #ddd5c6;
}

.about__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem 1.5rem;
	margin: 0 0 1.9rem;
	padding: 1.2rem 0;
	list-style: none;
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
}

.about__facts li { margin: 0; display: flex; flex-direction: column; gap: 0.2rem; }

.about__facts strong {
	font-family: var(--font-sans);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
}

.about__facts span { font-size: 0.88rem; color: var(--bone-dim); line-height: 1.45; }

@media (max-width: 860px) {
	.about { grid-template-columns: 1fr; }
	.about__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Преимущества ---------- */
.adv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.adv-grid li { margin: 0; }

.adv-card {
	position: relative;
	height: 100%;
	padding: 1.6rem 1.5rem 1.7rem;
	border: 1px solid rgba(196, 156, 70, 0.14);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(30, 25, 19, 0.55) 0%, rgba(13, 12, 10, 0.8) 100%);
	transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.adv-card:hover { border-color: rgba(196, 156, 70, 0.4); transform: translateY(-3px); }

.adv-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1.1rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--gold);
	background: rgba(196, 156, 70, 0.06);
}

.adv-card__icon .icon { width: 26px; height: 26px; }

.adv-card__num {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	color: rgba(196, 156, 70, 0.45);
}

.adv-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.16rem;
}

.adv-card__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--muted);
}

/* ---------- Пошив на заказ ---------- */
.section--custom { padding-block: 0; }

.custom {
	position: relative;
	padding-block: clamp(3rem, 7vw, 6rem);
	border-block: 1px solid var(--line-soft);
	background:
		radial-gradient(80% 100% at 0% 0%, rgba(122, 82, 51, 0.28) 0%, rgba(14, 12, 10, 0) 60%),
		linear-gradient(120deg, #1c1712 0%, #0e0c0a 60%, #14110d 100%);
	overflow: hidden;
}

.custom::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(196, 156, 70, 0.05) 0 1px, transparent 1px 24px);
	opacity: 0.5;
	pointer-events: none;
}

.custom__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
	gap: clamp(1.75rem, 4vw, 4rem);
	align-items: start;
}

.custom__text { color: var(--bone-dim); margin-bottom: 1.8rem; font-size: 1rem; line-height: 1.7; }

.steps {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.steps__item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin: 0;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(237, 230, 216, 0.09);
}

.steps__item:first-child { padding-top: 0; }
.steps__item:last-child { border-bottom: 0; }

.steps__num {
	flex: 0 0 auto;
	font-family: var(--font-display);
	font-size: 1.05rem;
	color: var(--gold);
	min-width: 2ch;
}

.steps__title { margin: 0 0 0.2rem; font-size: 1.02rem; font-family: var(--font-sans); font-weight: 500; color: var(--bone); }
.steps__text { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 860px) {
	.custom__inner { grid-template-columns: 1fr; }
}

/* ---------- Отзывы ---------- */
.reviews__score {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.1rem;
	border: 1px solid var(--line-soft);
	border-radius: 99px;
	background: rgba(196, 156, 70, 0.05);
}

.reviews__score-num { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-light); line-height: 1; }
.reviews__score-stars { display: inline-flex; gap: 2px; color: rgba(196, 156, 70, 0.3); }
.reviews__score-stars .is-filled { color: var(--gold); }
.reviews__score-count { font-size: 0.76rem; color: var(--muted); }

.reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.reviews-grid li { margin: 0; }

.review-card {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	height: 100%;
	padding: 1.5rem 1.55rem 1.4rem;
	border: 1px solid rgba(196, 156, 70, 0.16);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(30, 25, 19, 0.5) 0%, rgba(13, 12, 10, 0.8) 100%);
}

.review-card__stars { display: inline-flex; gap: 3px; color: rgba(196, 156, 70, 0.28); }
.review-card__stars .is-filled { color: var(--gold); }

.review-card__text {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--font-serif);
	font-size: 1.08rem;
	line-height: 1.6;
	color: #dcd4c5;
	flex: 1;
}

.review-card__text::before { content: "«"; }
.review-card__text::after { content: "»"; }

.review-card__foot {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(237, 230, 216, 0.09);
}

.review-card__author { font-size: 0.88rem; color: var(--bone); font-weight: 500; }
.review-card__product { font-size: 0.76rem; color: var(--muted); }
.review-card__product:hover { color: var(--gold); }

/* ---------- Галерея ---------- */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 1fr;
	gap: clamp(0.6rem, 1.2vw, 1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery li { margin: 0; }

.gallery__item {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: #0e0d0b;
	aspect-ratio: 1 / 1;
}

.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }

.gallery__item a { display: block; width: 100%; height: 100%; }

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
	opacity: 0.92;
}

.gallery__item:hover img { transform: scale(1.05); opacity: 1; }

@media (max-width: 760px) {
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.6rem; }

.faq__item {
	border: 1px solid rgba(196, 156, 70, 0.16);
	border-radius: var(--radius-lg);
	background: rgba(20, 17, 14, 0.55);
	overflow: hidden;
	transition: border-color 0.25s var(--ease);
}

.faq__item[open] { border-color: rgba(196, 156, 70, 0.4); }

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.3rem;
	cursor: pointer;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 450;
	color: var(--bone);
	list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--gold-light); }

.faq__mark {
	display: inline-flex;
	color: var(--gold);
	transition: transform 0.25s var(--ease);
}

.faq__item[open] .faq__mark { transform: rotate(180deg); }

.faq__a { padding: 0 1.3rem 1.2rem; color: var(--bone-dim); font-size: 0.94rem; line-height: 1.7; }
.faq__a p { margin: 0; }

/* ---------- Финальный CTA ---------- */
.cta {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
	padding: clamp(1.75rem, 4vw, 3.5rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(70% 120% at 100% 0%, rgba(196, 156, 70, 0.16) 0%, rgba(14, 12, 10, 0) 60%),
		linear-gradient(160deg, #1d1812 0%, #0d0b09 100%);
	box-shadow: var(--shadow-card);
}

.cta__title { margin: 0 0 0.9rem; font-size: clamp(1.6rem, 3vw, 2.4rem); text-wrap: balance; }
.cta__text { color: var(--bone-dim); font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.6; }
.cta__actions { display: grid; gap: 0.7rem; }

.cta__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 0.4rem 0 0;
	font-size: 0.78rem;
	color: var(--muted);
	text-align: center;
}

.cta__note .icon { color: var(--gold); }

@media (max-width: 860px) {
	.cta { grid-template-columns: 1fr; }
}

/* ---------- Заголовок блока «Журнал» ---------- */
.section--blog .blog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
