/* Service page: «Товари з каталогу» grid (services.php), same grammar as «Що виготовляємо». */
.fxs { color: #fff; font-family: Gilroy, sans-serif; }
.fxs a { text-decoration: none; }
.fxs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 50px; }
.fxs-head-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.fxs-eyebrow { margin: 0; color: #fff; font-size: 20px; font-weight: 400; line-height: 1.2; }
.fxs-title { max-width: 980px; margin: 0; color: #fff; font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.fxs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fxs-chips-label { margin-right: 6px; color: #bfc0c0; font-size: 16px; }
.fxs .fxs-chip { padding: 8px 16px; border: 1px solid #ff6e33; color: #ff6e33; font-size: 16px; line-height: 1.2; transition: background-color .2s ease, color .2s ease; }
.fxs .fxs-chip:hover, .fxs .fxs-chip:focus-visible { background: #ff6e33; color: #010204; }
.fxs .fxs-all { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid #48494a; color: #fff; font-size: 16px; transition: border-color .2s ease; }
.fxs .fxs-all span { color: #ff6e33; }
.fxs .fxs-all:hover, .fxs .fxs-all:focus-visible { border-color: #ff6e33; color: #fff; }

.fxs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #48494a; border-left: 1px solid #48494a; }
.fxs .fxs-cell { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 244px; padding: 25px; overflow: hidden; border-right: 1px solid #48494a; border-bottom: 1px solid #48494a; background: #010204; color: #fff; transition: background-color .25s ease; }
.fxs-img {
	position: absolute; top: 0; right: 0; width: 72%; height: 100%;
	object-fit: cover; object-position: center;
	/* one wide, eased radial fade from the top-right corner: no edges, the text side stays dark */
	-webkit-mask-image: radial-gradient(ellipse 90% 100% at 100% 15%, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .62) 18%, rgba(0, 0, 0, .36) 36%, rgba(0, 0, 0, .16) 54%, rgba(0, 0, 0, .05) 70%, transparent 84%);
	mask-image: radial-gradient(ellipse 90% 100% at 100% 15%, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .62) 18%, rgba(0, 0, 0, .36) 36%, rgba(0, 0, 0, .16) 54%, rgba(0, 0, 0, .05) 70%, transparent 84%);
	opacity: .7;
	transition: transform .5s ease, opacity .3s ease;
}
.fxs-cat { position: relative; color: #9a9b9e; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fxs-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding-right: 56px; }
.fxs-n { color: #ff6e33; font-size: 20px; }
.fxs-name { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.fxs-line { color: #a8a9ab; font-size: 14px; line-height: 1.35; }
.fxs-arrow { position: absolute; right: 25px; bottom: 25px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #ff6e33; color: #010204; font-size: 20px; line-height: 1; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.fxs .fxs-cell:hover, .fxs .fxs-cell:focus-visible { background: #0b0c0e; color: #fff; }
.fxs .fxs-cell:hover .fxs-img, .fxs .fxs-cell:focus-visible .fxs-img { transform: scale(1.04); opacity: .85; }
.fxs .fxs-cell:hover .fxs-arrow, .fxs .fxs-cell:focus-visible .fxs-arrow { opacity: 1; transform: none; }
.fxs .fxs-cell:focus-visible { outline: 2px solid #ff6e33; outline-offset: -2px; }

.fxs-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 24px; color: #a8a9ab; font-size: 15px; }
.fxs-foot a { color: #ff6e33; }
.fxs-foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.fxs-img, .fxs-arrow, .fxs .fxs-cell { transition: none; }
}
@media (max-width: 1024px) {
	.fxs-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 36px; }
	.fxs-title { font-size: 32px; }
	.fxs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.fxs-title { font-size: 26px; line-height: 1.1; }
	.fxs-grid { grid-template-columns: minmax(0, 1fr); }
	.fxs .fxs-cell { min-height: 210px; padding: 20px; }
	.fxs-arrow { right: 20px; bottom: 20px; opacity: 1; transform: none; }
	.fxs .fxs-all { width: 100%; justify-content: center; box-sizing: border-box; }
}
