/**
 * Craftory Box — Services page
 */

.services-page {
	width: 100%;
	max-width: none;
	background: var(--front-white);
	color: var(--front-black);
}

.services-hero {
	background: var(--front-white);
}

.services-hero__inner {
	padding-top: clamp(40px, 5vw, 56px);
	padding-bottom: clamp(32px, 4vw, 48px);
}

.services-hero .front-section-head {
	margin-bottom: 0;
}

.services-grid {
	background: var(--front-white);
}

.services-grid__inner {
	padding-bottom: clamp(48px, 6vw, 72px);
}

.services-grid__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 32px);
}

.services-grid__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid #d9d9d9;
	background: var(--front-white);
	color: inherit;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.services-grid__card:hover,
.services-grid__card:focus-visible {
	border-color: var(--front-gold);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.services-grid__card-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 400 / 260;
}

.services-grid__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.services-grid__card-title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 88px;
	padding: 16px 18px;
	font-family: var(--front-font);
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	color: var(--front-black);
}

.services-sections {
	background: var(--front-white);
}

.services-sections__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 8vw, 96px);
	padding-block: clamp(24px, 4vw, 40px) clamp(64px, 8vw, 96px);
}

.services-sections__heading {
	margin: 0;
	width: 100%;
	max-width: none;
	font-family: var(--front-font);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	color: var(--front-black);
}

.services-section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 8vw, 122px);
	min-width: 0;
	scroll-margin-top: 100px;
}

.services-section--reverse {
	direction: rtl;
}

.services-section--reverse > * {
	direction: ltr;
}

.services-section__figure {
	width: 100%;
	max-width: min(572px, 100%);
	min-width: 0;
	margin: 0;
	justify-self: start;
}

.services-section--reverse .services-section__figure {
	justify-self: end;
}

.services-section__image {
	display: block;
	width: 100%;
	aspect-ratio: 496 / 280;
	object-fit: cover;
}

/* УФ-друк: друге фото поверх основного, зі зсувом вліво-вниз. */
.services-section__figure--overlay {
	position: relative;
	padding-bottom: 18%;
}

.services-section__image-secondary {
	position: absolute;
	left: -3%;
	bottom: 0;
	width: 52%;
	height: auto;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.services-section__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(16px, 2vw, 24px);
	min-width: 0;
}

.services-page p.services-section__lead,
.services-page p.services-section__subtitle,
.services-page p.services-section__text {
	margin: 0;
	font-family: var(--front-font);
	font-weight: 400;
	line-height: 1.3;
	color: var(--front-black);
}

.services-page p.services-section__lead,
.services-page p.services-section__text {
	font-size: clamp(16px, 1.6vw, 20px);
}

.services-page p.services-section__subtitle {
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
}

.services-section__bullets {
	margin: 0;
	padding: 0;
	list-style: none;
}

.services-section__bullets li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 18px;
	font-family: var(--front-font);
	font-size: clamp(16px, 1.6vw, 20px);
	line-height: 1.3;
	color: var(--front-black);
}

.services-section__bullets li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--front-gold);
}

.services-section__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: min(100%, 320px);
	min-height: 65px;
	padding: 14px 24px 11px;
	border: 2px solid var(--front-gold);
	background: transparent;
	color: var(--front-black);
	font-family: var(--front-font-nav);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.14;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.services-section__btn:hover,
.services-section__btn:focus-visible {
	background: rgba(198, 161, 91, 0.12);
	color: var(--front-gold);
}

.services-finishing {
	background: var(--front-white);
}

.services-finishing__inner {
	padding-block: 0 clamp(64px, 8vw, 96px);
}

.services-finishing .front-section-head {
	margin-bottom: clamp(48px, 6vw, 80px);
}

.services-finishing .front-section-head__title {
	min-height: 0;
	padding: 0;
	color: var(--front-gold);
	font-family: var(--front-font);
	font-size: clamp(28px, 3.2vw, 45px);
	font-weight: 500;
	line-height: 1.14;
}

.services-finishing .front-section-head__title::before,
.services-finishing .front-section-head__title::after {
	display: none;
}

.services-finishing__list {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 6vw, 72px);
}

.services-finishing__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 8vw, 122px);
	min-width: 0;
	scroll-margin-top: 100px;
}

.services-finishing__content {
	min-width: 0;
}

.services-finishing__item-title,
.front-page h3.services-finishing__item-title {
	margin: 0 0 20px;
	font-family: var(--front-font);
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.14;
	color: var(--front-black);
}

.services-page p.services-finishing__item-text {
	margin: 0;
	font-family: var(--front-font);
	font-size: clamp(16px, 1.6vw, 20px);
	font-weight: 400;
	line-height: 1.3;
	color: var(--front-black);
}

.services-finishing__figure {
	width: 100%;
	max-width: min(420px, 100%);
	margin: 0;
	justify-self: start;
}

.services-finishing__image {
	display: block;
	width: 100%;
	aspect-ratio: 472 / 207;
	object-fit: cover;
}

.services-sections__heading,
.services-grid__card {
	scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
	.services-grid__card {
		transition: none;
	}
}

/* ==========================================================================
   Service detail (UV / DTF)
   ========================================================================== */
.service-detail__inner {
	padding-block: clamp(32px, 4vw, 48px) clamp(64px, 8vw, 96px);
}

.service-detail__back {
	margin: 0 0 24px;
	font-family: var(--front-font);
	font-size: 16px;
}

.service-detail__back a {
	color: var(--front-gold);
	text-decoration: none;
}

.service-detail__back a:hover,
.service-detail__back a:focus-visible {
	text-decoration: underline;
}

.service-detail__header {
	margin-bottom: clamp(40px, 5vw, 64px);
}

.service-detail__header .front-section-head {
	margin-bottom: clamp(28px, 3.5vw, 40px);
}

.service-detail__header .front-section-head__title {
	color: var(--front-black);
}

.services-page p.service-detail__hero,
.service-detail__hero {
	margin: 0 0 16px;
	font-family: var(--front-font);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 500;
	line-height: 1.25;
	color: var(--front-black);
}

.services-page p.service-detail__intro,
.service-detail__intro,
.services-page p.service-detail__text,
.service-detail__text,
.services-page p.service-detail__outro,
.service-detail__outro,
.services-page p.service-detail__note,
.service-detail__note {
	margin: 0;
	font-family: var(--front-font);
	font-size: clamp(16px, 1.6vw, 20px);
	font-weight: 400;
	line-height: 1.45;
	color: var(--front-black);
	text-align: left;
}

.services-page p.service-detail__intro,
.service-detail__intro {
	margin-top: 12px;
}

.service-detail__sections {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 4vw, 40px);
	margin-bottom: clamp(28px, 4vw, 40px);
}

.service-detail__title,
.front-page h2.service-detail__title {
	margin: 0 0 14px;
	font-family: var(--front-font);
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--front-black);
}

.services-page p.service-detail__text,
.service-detail__text {
	margin-bottom: 12px;
}

.service-detail__bullets {
	margin: 0;
	padding: 0 0 0 1.2em;
	font-family: var(--front-font);
	font-size: clamp(16px, 1.6vw, 20px);
	line-height: 1.45;
	color: var(--front-black);
}

.service-detail__bullets li + li {
	margin-top: 6px;
}

.services-page p.service-detail__outro,
.service-detail__outro {
	font-weight: 500;
	margin-bottom: 24px;
}

.services-page p.service-detail__note,
.service-detail__note {
	color: var(--front-gray);
	font-size: 14px;
}

.services-page p.services-section__lead strong,
.services-section__lead strong,
.services-page p.services-section__text strong,
.services-section__text strong {
	font-weight: 700;
}

.services-section__content {
	text-align: left;
}
