/* =========================================================
   Cyferion — component styles
   Blocks carry the structure; this file carries the pixel-level
   design (gradients, blur, grids, cards, animations, responsive).
   ========================================================= */

:root {
	--cyf-header-height: 74px;
	--cyf-dark-900: #0b1016;
	--cyf-dark-800: #10171f;
	--cyf-dark-700: #151c24;
	--cyf-red: #ec0928;
	--cyf-red-hover: #d2071f;
	--cyf-blue: #25a0d6;
	--cyf-bg-light-1: #f8f9fb;
	--cyf-bg-light-2: #f2f3f6;
	--cyf-heading: #191c1d;
	--cyf-heading-alt: #0b1016;
	--cyf-body: #5b5f64;
	--cyf-body-alt: #44474b;
	--cyf-muted-on-dark: #94a3b8;
	--cyf-muted-on-dark-2: #aab4c2;
	--cyf-muted-on-dark-3: #64748b;
	--cyf-border: rgba(197, 198, 203, 0.32);
	--cyf-border-soft: rgba(197, 198, 203, 0.2);
	--cyf-max: 1216px;
}

body {
	color: var(--cyf-body);
}

/* Sections sit flush against each other (each already has its own padding);
   kill WordPress's default root blockGap between top-level page sections. */
main.wp-block-group {
	--wp--style--block-gap: 0;
}
main.wp-block-group > * + * {
	margin-block-start: 0 !important;
}

img {
	max-width: 100%;
	height: auto;
}

/* ---------- typographic rhythm ----------
   theme.json sets blockGap to 0 so the hand-built grids below can own their
   spacing; without it WordPress zeroes every block margin and headings end up
   glued to their body copy. These rules restore the text rhythm at specificity
   (0,1,0) — the same weight as the component rules further down the file, so
   anything that sets its own margin later still wins. */

.wp-block-group :where(h1, h2, h3, h4, h5, h6) { margin-block: 0 0.6em; }
.wp-block-group :where(p) { margin-block: 0 1.15em; }
.wp-block-group :where(ul, ol) { margin-block: 0 1.4em; }
.wp-block-group :where(p, ul, ol, h1, h2, h3, h4, h5, h6):where(:last-child) { margin-block-end: 0; }

/* Section headings fell back to the browser's 1.5em/1.17em defaults, which read
   as undersized next to a 74px hero. Same (0,1,0) weight as above. */
.wp-block-group :where(h2) { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.wp-block-group :where(h3) { font-size: 22px; line-height: 1.3; }
.wp-block-group :where(h4) { font-size: 18px; line-height: 1.35; }

/* Anchor targets must clear the sticky header. */
:target,
[id] {
	scroll-margin-top: calc(var(--cyf-header-height) + 24px);
}

/* ---------- focus ---------- */

:focus-visible {
	outline: 3px solid rgba(37, 160, 214, 0.55);
	outline-offset: 3px;
}
.cyf-header :focus-visible,
.cyf-footer :focus-visible,
.cyf-hero-home :focus-visible,
.cyf-about-mission :focus-visible,
.cyf-dark-feature-section :focus-visible {
	outline-color: rgba(130, 205, 245, 0.9);
}

/* ---------- generic section / layout helpers ---------- */

.cyf-section {
	padding: 120px 48px;
}

.cyf-section-tight {
	padding: 96px 48px;
}

.cyf-section-inner,
.cyf-header-inner,
.cyf-footer-inner {
	max-width: var(--cyf-max);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

.cyf-bg-light-1 { background: var(--cyf-bg-light-1); }
.cyf-bg-light-2 { background: var(--cyf-bg-light-2); }

.cyf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--cyf-red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.cyf-eyebrow .cyf-eyebrow-line {
	display: inline-block;
	width: 28px;
	height: 1px;
	background: rgba(236, 9, 40, 0.5);
}

.cyf-section-head {
	position: relative;
	padding-bottom: 30px;
	margin-bottom: 56px;
}
.cyf-section-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--cyf-border);
}
.cyf-section-head::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 68px;
	height: 2px;
	background: var(--cyf-red);
	z-index: 1;
}

.cyf-heading-blue { color: var(--cyf-blue) !important; }
/* Alignment only — spacing stays with .cyf-eyebrow so per-page overrides work. */
.cyf-eyebrow-center { justify-content: center; width: 100%; }
.cyf-text-center { text-align: center; }

.cyf-check-list-plain { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; }
.cyf-plain-check { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--cyf-heading); }

/* ---------- buttons ---------- */

/* blockGap is 0, so the core flex gap resolves to 0 and buttons in a
   wp:buttons group sit flush against each other. */
.wp-block-buttons {
	gap: 14px;
}

.cyf-btn,
.wp-block-button__link {
	font-family: "Inter", sans-serif;
	font-weight: 600;
	border-radius: 11px;
	padding: 16px 32px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

/* White CTA on the dark hero — core supplies the colours, the hover was missing. */
.cyf-btn-hero-primary .wp-block-button__link:hover {
	background-color: #f2f3f6 !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(255, 255, 255, 0.02);
	color: #fff;
	border: 1px solid rgba(197, 198, 203, 0.3);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(197, 198, 203, 0.5);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.cyf-btn-rekrutacja .wp-block-button__link {
	background: var(--cyf-red);
	color: #fff;
	padding: 11px 22px;
	font-size: 15px;
	border-radius: 10px;
}
.cyf-btn-rekrutacja .wp-block-button__link:hover {
	background: var(--cyf-red-hover);
	box-shadow: 0 8px 20px rgba(236, 9, 40, 0.35);
}

/* ---------- header ---------- */

.cyf-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(16, 23, 31, 0.94);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(197, 198, 203, 0.09);
}
.cyf-header-inner {
	padding: 0 48px;
	height: var(--cyf-header-height);
	display: flex;
	align-items: center;
	gap: 24px;
}
.cyf-logo,
.cyf-logo a {
	font-family: "Manrope", sans-serif;
	font-weight: 800;
	font-size: 22px;
	color: #fff !important;
	text-decoration: none;
	letter-spacing: -0.02em;
}
.cyf-nav {
	margin-left: auto;
}
.cyf-nav .wp-block-navigation__container {
	gap: 34px !important;
	align-items: center;
}
.cyf-nav a.wp-block-navigation-item__content {
	color: #cbd5e1;
	font-size: 14px;
	font-weight: 500;
	padding: 0;
	transition: color 0.18s ease;
}
.cyf-nav a.wp-block-navigation-item__content:hover {
	color: #fff;
}
.cyf-nav .current-menu-item > a.wp-block-navigation-item__content,
.cyf-nav .current_page_item > a.wp-block-navigation-item__content {
	color: var(--cyf-blue);
	border-bottom: 2px solid var(--cyf-blue);
	padding-bottom: 3px;
}
.cyf-nav .wp-block-navigation__responsive-container-open {
	color: #fff;
	z-index: 1;
}
.cyf-nav .wp-block-navigation__responsive-container-open svg {
	stroke: #fff;
	fill: #fff;
	width: 24px;
	height: 24px;
}
/* The open modal is rendered as a fixed-position portal outside .cyf-nav, so these are unscoped. */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--cyf-dark-900) !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100vh !important;
	height: 100dvh !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 90px 32px 32px;
	overflow-y: auto;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #fff;
	font-size: 20px;
	padding: 4px 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 26px;
	right: 24px;
	color: #fff;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	stroke: #fff;
	fill: #fff;
}
/* ---------- icon badges (checkmarks, service icons) ---------- */

.cyf-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: rgba(236, 9, 40, 0.08);
	color: var(--cyf-red);
	border-radius: 14px;
}
.cyf-icon-badge svg { display: block; }
.cyf-icon-badge--md { width: 46px; height: 46px; border-radius: 13px; }
.cyf-icon-badge--lg { width: 56px; height: 56px; border-radius: 15px; }
.cyf-icon-badge--xl { width: 64px; height: 64px; border-radius: 18px; }
.cyf-icon-badge--round-sm {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}
.cyf-icon-badge--on-dark {
	background: rgba(236, 9, 40, 0.16);
}

/* ---------- cards ---------- */

.cyf-card {
	background: #fff;
	border: 1px solid var(--cyf-border-soft);
	border-radius: 18px;
	padding: 40px;
	box-shadow: 0 1px 2px rgba(16, 23, 31, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cyf-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px -12px rgba(16, 23, 31, 0.14);
}

.cyf-card--numbered {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
}
.cyf-card--numbered::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #ec0928, #ff5a6e);
}
.cyf-card--numbered .cyf-card-number {
	position: absolute;
	top: 24px;
	right: 30px;
	font-family: "Manrope", sans-serif;
	font-weight: 800;
	font-size: 62px;
	line-height: 1;
	color: rgba(11, 16, 22, 0.05);
	pointer-events: none;
}

/* ---------- hero (home) ---------- */

.cyf-hero-home {
	position: relative;
	overflow: hidden;
	min-height: calc(100vh - var(--cyf-header-height));
	min-height: calc(100dvh - var(--cyf-header-height));
	display: flex;
	align-items: center;
	background: linear-gradient(154deg, var(--cyf-dark-900) 0%, var(--cyf-dark-700) 100%);
	color: #fff;
}
.cyf-hero-home::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(8, 12, 17, 0.95) 0%, rgba(13, 18, 26, 0.86) 34%, rgba(16, 23, 31, 0.6) 64%, rgba(16, 23, 31, 0.4) 100%);
	pointer-events: none;
}
.cyf-hero-home::after {
	content: "";
	position: absolute;
	top: -160px;
	right: -80px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(236, 9, 40, 0.16) 0%, rgba(236, 9, 40, 0) 68%);
	pointer-events: none;
}
.cyf-hero-home-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 72px;
	align-items: center;
	padding: 64px 48px;
}
.cyf-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 15px;
	border-radius: 999px;
	background: rgba(243, 244, 245, 0.08);
	border: 1px solid rgba(197, 198, 203, 0.2);
	margin-bottom: 30px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.7px;
	color: rgba(255, 255, 255, 0.82);
}
.cyf-hero-badge .cyf-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cyf-red);
	box-shadow: 0 0 0 4px rgba(236, 9, 40, 0.18);
}
.cyf-hero-home h1 {
	font-size: 74px;
	line-height: 1.02;
	letter-spacing: -2.2px;
	color: #fff;
	margin-bottom: 28px;
}
.cyf-hero-home .cyf-hero-lede {
	font-size: 20px;
	line-height: 1.5;
	color: rgba(225, 227, 228, 0.78);
	max-width: 546px;
	margin-bottom: 38px;
}
.cyf-hero-media {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.cyf-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.cyf-hero-media figure.wp-block-image { margin: 0; height: 100%; }
/* ---------- grids and home competencies ---------- */

.cyf-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}
.cyf-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.cyf-competencies-section {
	border-bottom: 1px solid var(--cyf-border-soft);
}
.cyf-competencies-title {
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 38px;
}
/* Three columns rather than six: at 1216px a six-up row leaves ~180px per cell,
   which forces the copy down to an unreadable size. */
.cyf-competencies-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	background: #fff;
	border: 1px solid var(--cyf-border-soft);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 38px -28px rgba(16, 23, 31, 0.32);
}
.cyf-competency-item {
	min-width: 0;
	padding: 42px 34px 38px;
	text-align: center;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.cyf-competency-item:not(:nth-child(3n + 1)) {
	border-left: 1px solid var(--cyf-border);
}
.cyf-competency-item:nth-child(n + 4) {
	border-top: 1px solid var(--cyf-border);
}
.cyf-competency-item:hover {
	background: rgba(37, 160, 214, 0.035);
	transform: translateY(-3px);
}
.cyf-competency-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	color: #1769c2;
}
.cyf-competency-icon svg {
	width: 48px;
	height: 48px;
}
.cyf-competency-item h3 {
	font-family: "Manrope", sans-serif;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--cyf-heading-alt);
	margin: 0 0 12px;
}
.cyf-competency-item p {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--cyf-body-alt);
	margin: 0;
	max-width: 34ch;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- bezpieczenstwo / split sections ---------- */

.cyf-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}
.cyf-split-wide { gap: 96px; }
/* Two columns of unequal height (form vs. contact details) must top-align, or
   the two column headings sit at different heights. */
.cyf-split--start { align-items: start; }
.cyf-media-placeholder {
	position: relative;
	min-height: 430px;
	background: #e7eaee repeating-linear-gradient(45deg, rgba(11, 16, 22, 0.05) 0 12px, transparent 12px 24px);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.18);
}
.cyf-media-placeholder .wp-block-image,
.cyf-media-placeholder img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}
.cyf-media-placeholder .wp-block-image { position: absolute; inset: 0; }

/* ---------- feature list (Dlaczego Cyferion) ---------- */

.cyf-feature-list { display: flex; flex-direction: column; gap: 34px; }
.cyf-feature-item { display: flex; gap: 18px; }
.cyf-feature-item h4 { font-size: 20px; margin-bottom: 6px; }
.cyf-feature-item p { font-size: 16px; line-height: 1.55; margin: 0; }

/* ---------- contact icons row ---------- */

.cyf-contact-row {
	display: flex;
	justify-content: center;
	gap: 96px;
	flex-wrap: wrap;
}
.cyf-contact-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
}
.cyf-contact-item p { font-size: 17px; color: #44474b; margin: 0; }

.cyf-contact-list-vertical { display: flex; flex-direction: column; gap: 26px; }
.cyf-contact-item-row { display: flex; align-items: center; gap: 18px; }
.cyf-contact-item-row p { font-size: 16px; color: var(--cyf-body-alt); margin: 0; line-height: 1.5; }

/* ---------- Group company logos ---------- */

.cyf-group-section {
	background: var(--cyf-bg-light-1);
	border-top: 1px solid var(--cyf-border-soft);
}
.cyf-group-section .cyf-eyebrow-center {
	margin-bottom: 20px !important;
}
.cyf-group-intro {
	max-width: 950px;
	margin: 22px auto 50px;
	font-size: 17px;
	line-height: 1.75;
}
.cyf-partner-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.cyf-partner-card {
	background: #fff;
	border: 1px solid var(--cyf-border-soft);
	border-radius: 16px;
	height: 148px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Manrope", sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: var(--cyf-blue);
	text-align: center;
	padding: 12px;
	box-sizing: border-box;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cyf-partner-card img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(86%, 220px);
	max-height: 66px;
	object-fit: contain;
}
.cyf-partner-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px -14px rgba(37, 160, 214, 0.3);
	border-color: rgba(37, 160, 214, 0.4);
}

/* ---------- About page ---------- */

.cyf-about-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 90% 18%, rgba(236, 9, 40, 0.1), transparent 34%),
		radial-gradient(circle at 5% 90%, rgba(37, 160, 214, 0.1), transparent 32%),
		var(--cyf-bg-light-1);
}
.cyf-about-hero__inner {
	max-width: 960px;
}
.cyf-about-hero__title {
	max-width: 880px;
	font-size: clamp(42px, 5vw, 64px);
	line-height: 1.08;
	margin-bottom: 28px;
}
.cyf-about-hero__lead {
	max-width: 900px;
	margin-bottom: 0;
}
.cyf-about-identity {
	background: #fff;
}
.cyf-about-identity__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 86px;
	align-items: start;
}
.cyf-about-identity__head {
	margin-bottom: 0;
}
.cyf-about-identity__title {
	font-size: clamp(32px, 3.5vw, 46px);
	line-height: 1.16;
}
.cyf-about-identity__copy {
	/* Offsets the eyebrow + the large heading's ascender gap so the first line of
	   copy optically lines up with the first line of the heading beside it. */
	padding-top: 58px;
}
.cyf-about-identity__copy p {
	font-size: 17px;
	line-height: 1.75;
}
.cyf-about-mission {
	position: relative;
	overflow: hidden;
	background: var(--cyf-dark-900);
	color: #fff;
}
.cyf-about-mission::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 86% 0%, rgba(236, 9, 40, 0.18), transparent 44%);
	pointer-events: none;
}
.cyf-about-mission__inner {
	position: relative;
	max-width: 980px;
}
.cyf-about-mission__title {
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.2;
	color: #fff;
	margin-bottom: 28px;
}
.cyf-about-mission__copy {
	max-width: 820px;
	font-size: 18px;
	line-height: 1.75;
	color: var(--cyf-muted-on-dark-2);
	margin-bottom: 0;
}
.cyf-about-values__title {
	font-size: 34px;
	letter-spacing: 0.02em;
}
.cyf-about-values__grid {
	align-items: stretch;
}
.cyf-value-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 250px;
	overflow: hidden;
	padding: 38px 32px;
}
.cyf-value-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--cyf-red), #ff6678);
}
.cyf-value-card::after {
	position: absolute;
	top: 22px;
	right: 26px;
	font-family: "Manrope", sans-serif;
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	color: rgba(37, 160, 214, 0.09);
}
.cyf-value-card:nth-child(1)::after { content: "01"; }
.cyf-value-card:nth-child(2)::after { content: "02"; }
.cyf-value-card:nth-child(3)::after { content: "03"; }
.cyf-value-card:nth-child(4)::after { content: "04"; }
.cyf-value-card__title {
	position: relative;
	font-size: 15px;
	letter-spacing: 0.06em;
	margin: 0 0 14px;
}
.cyf-value-card__copy {
	position: relative;
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
}

/* ---------- Oferta hero ---------- */

.cyf-hero-oferta {
	position: relative;
	overflow: hidden;
	background: var(--cyf-bg-light-1);
}
.cyf-hero-oferta::before {
	content: "";
	position: absolute;
	top: -130px;
	right: -90px;
	width: 580px;
	height: 580px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(236, 9, 40, 0.12) 0%, rgba(236, 9, 40, 0) 66%);
	pointer-events: none;
}
.cyf-hero-oferta::after {
	content: "";
	position: absolute;
	bottom: -180px;
	left: -130px;
	width: 540px;
	height: 540px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(37, 160, 214, 0.1) 0%, rgba(37, 160, 214, 0) 68%);
	pointer-events: none;
}
.cyf-hero-oferta-inner { position: relative; z-index: 1; padding: 118px 48px 92px; }

/* Kariera reuses the Oferta hero shell. It used a constrained block layout, but
   `margin: auto` cannot centre .cyf-eyebrow (an inline-flex element), so the
   eyebrow sat at the container edge while the heading centred — the two never
   lined up. Constrain the wrapper instead and keep everything left-aligned to
   the same edge as the job cards below. */
.cyf-hero-kariera__inner {
	/* 980px of content + the 48px inner padding on each side, so the hero text
	   starts on the same edge as the .cyf-job-list cards below it. */
	max-width: calc(980px + 96px);
}
.cyf-hero-kariera__title {
	max-width: 760px;
}
.cyf-hero-kariera__lead {
	max-width: 62ch;
	margin-bottom: 0;
}

/* The visual is a single 309px card, so an even 1fr/1fr split squeezed the copy
   into three-word lines and left the right half mostly empty. */
.cyf-offer-hero__layout {
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
	gap: 64px;
}
.cyf-offer-hero__lead {
	max-width: 62ch;
}
.cyf-offer-hero__content {
	min-width: 0;
}
.cyf-offer-hero__title {
	font-size: clamp(40px, 4.8vw, 60px);
	line-height: 1.1;
	margin-bottom: 28px;
}
.cyf-offer-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
}
.cyf-tag-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cyf-tag-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(197, 198, 203, 0.4);
	font-size: 14px;
	font-weight: 600;
	color: var(--cyf-body-alt);
}
.cyf-tag-pill .cyf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyf-red); }

.cyf-floating-stat-card {
	background: #fff;
	border: 1px solid var(--cyf-border);
	border-radius: 20px;
	padding: 26px;
	box-shadow: 0 28px 56px -22px rgba(16, 23, 31, 0.3);
	animation: cyfFloat 6s ease-in-out infinite;
	max-width: 309px;
}
.cyf-floating-stat-card-head { display: flex; align-items: center; gap: 14px; }
.cyf-floating-stat-card-head strong { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 18px; color: #0b1016; display: block; }
.cyf-floating-stat-card-head span { font-size: 13px; color: #71757a; letter-spacing: 0.2px; }
.cyf-floating-bars { display: flex; align-items: flex-end; gap: 10px; margin-top: 24px; height: 110px; }
.cyf-floating-bars span {
	flex: 1;
	height: 100%;
	border-radius: 7px;
	transform-origin: bottom;
	animation: cyfBar 2.6s ease-in-out infinite;
}
.cyf-floating-bars span:nth-child(odd) { background: linear-gradient(180deg, #ec0928, #ff7888); }
.cyf-floating-bars span:nth-child(even) { background: rgba(236, 9, 40, 0.16); animation-delay: 0.4s; }
.cyf-floating-stat-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--cyf-border-soft);
	font-size: 13px;
	color: #71757a;
}
.cyf-floating-stat-card-foot strong { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 15px; color: var(--cyf-red); }

.cyf-offer-services__grid {
	align-items: stretch;
}
.cyf-service-card {
	display: flex;
	flex-direction: column;
	padding: 42px;
}
.cyf-service-card--wide {
	grid-column: 1 / -1;
}
.cyf-service-card__title {
	font-size: 24px;
	line-height: 1.25;
	margin: 0 72px 16px 0;
}
.cyf-service-card__intro {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--cyf-body-alt);
	margin-bottom: 28px;
}
.cyf-service-card__scope-title {
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cyf-red);
	margin: 0 0 12px;
}
.cyf-service-list {
	margin: 0;
	padding-left: 21px;
	color: var(--cyf-body-alt);
}
.cyf-service-list li {
	padding-left: 5px;
	margin-bottom: 9px;
	line-height: 1.55;
}
.cyf-service-list li::marker {
	color: var(--cyf-red);
}
.cyf-service-card--wide .cyf-service-list {
	columns: 2;
	column-gap: 48px;
}
.cyf-service-card--wide .cyf-service-list li {
	break-inside: avoid;
}

/* ---------- Dlaczego warto (dark 3x2 grid) ---------- */

.cyf-dark-feature-section {
	position: relative;
	overflow: hidden;
	background: var(--cyf-dark-900);
	color: #fff;
}
.cyf-dark-feature-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 80% -10%, rgba(236, 9, 40, 0.16) 0%, rgba(236, 9, 40, 0) 52%);
	pointer-events: none;
}
.cyf-dark-feature-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.cyf-dark-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 26px 24px;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.cyf-dark-feature-item:hover { transform: translateY(-4px); border-color: rgba(236, 9, 40, 0.4); }
.cyf-dark-feature-item p { font-size: 16px; line-height: 1.5; color: #dbe2ea; margin: 0; }

/* ---------- Kariera job cards and expandable offer ---------- */

.cyf-job-list {
	display: grid;
	gap: 24px;
	max-width: 980px;
	margin: 0 auto;
}
.cyf-job-card {
	position: relative;
	padding: 48px;
}
.cyf-job-card:hover {
	transform: none;
}
.cyf-job-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.cyf-job-tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--cyf-bg-light-2);
	font-size: 13px;
	font-weight: 600;
	color: var(--cyf-body-alt);
}
.cyf-job-details {
	margin-top: 26px;
}
.cyf-job-summary {
	display: inline-flex;
	list-style: none;
	cursor: pointer;
	border-radius: 10px;
}
.cyf-job-summary::-webkit-details-marker {
	display: none;
}
.cyf-job-summary::marker {
	content: "";
}
.cyf-job-summary:focus-visible {
	outline: 3px solid rgba(37, 160, 214, 0.35);
	outline-offset: 4px;
}
.cyf-job-summary-button {
	display: inline-flex;
}
.cyf-job-summary-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.cyf-job-summary-button .wp-block-button__link::after {
	content: "+";
	font-size: 18px;
	line-height: 1;
}
.cyf-job-details[open] .cyf-job-summary-button .wp-block-button__link::after {
	content: "−";
}
.cyf-job-content {
	margin-top: 34px;
	padding-top: 34px;
	border-top: 1px solid var(--cyf-border);
}
.cyf-job-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 34px;
	margin: 0 0 42px;
	background: var(--cyf-bg-light-1);
	border: 1px solid var(--cyf-border-soft);
	border-radius: 16px;
	padding: 8px 28px;
}
.cyf-job-fact {
	display: grid;
	grid-template-columns: minmax(130px, 0.65fr) 1fr;
	gap: 14px;
	padding: 17px 0;
	border-bottom: 1px solid var(--cyf-border-soft);
}
.cyf-job-fact:nth-last-child(-n+2) {
	border-bottom: 0;
}
.cyf-job-fact dt {
	font-weight: 700;
	color: var(--cyf-heading);
}
.cyf-job-fact dd {
	margin: 0;
	color: var(--cyf-body-alt);
}
.cyf-job-section {
	margin-top: 40px;
}
.cyf-job-section-title {
	font-size: 22px;
	margin: 0 0 18px;
}
.cyf-job-list-items {
	margin: 0;
	padding-left: 24px;
	color: var(--cyf-body-alt);
}
.cyf-job-list-items li {
	padding-left: 6px;
	margin-bottom: 11px;
	line-height: 1.65;
}
.cyf-job-list-items li::marker {
	color: var(--cyf-red);
}
.cyf-job-actions {
	margin-top: 40px;
}
.cyf-job-image {
	margin: 40px 0 0;
	border-radius: 16px;
	overflow: hidden;
	background: var(--cyf-dark-800);
}
.cyf-job-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1042 / 251;
	object-fit: cover;
}

/* ---------- contact form ---------- */

.cyf-contact-form-wrap { max-width: 620px; margin: 0 auto; }
.cyf-form-notice {
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 24px;
	font-size: 15px;
}
.cyf-form-notice--success { background: rgba(37, 160, 214, 0.1); color: #146a8f; border: 1px solid rgba(37, 160, 214, 0.3); }
.cyf-form-notice--error { background: rgba(236, 9, 40, 0.08); color: var(--cyf-red-hover); border: 1px solid rgba(236, 9, 40, 0.25); }
.cyf-form-hp { position: absolute; left: -9999px; opacity: 0; }
.cyf-contact-form .cyf-form-row { margin-bottom: 20px; }
.cyf-contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--cyf-heading); margin-bottom: 8px; }
.cyf-contact-form input,
.cyf-contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	padding: 13px 16px;
	border-radius: 10px;
	border: 1px solid var(--cyf-border);
	background: #fff;
	color: var(--cyf-heading);
}
.cyf-contact-form input:focus,
.cyf-contact-form textarea:focus {
	outline: none;
	border-color: var(--cyf-red);
	box-shadow: 0 0 0 3px rgba(236, 9, 40, 0.12);
}
.cyf-contact-form button[type="submit"] {
	appearance: none;
	border: none;
	cursor: pointer;
	background: var(--cyf-red);
	color: #fff;
}
/* Match the lift/shadow the block buttons get, so the form CTA does not feel
   like a different control. */
.cyf-contact-form button[type="submit"]:hover {
	background: var(--cyf-red-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(236, 9, 40, 0.35);
}

/* ---------- legal pages ---------- */

.cyf-legal-content { max-width: 820px; margin: 0 auto; }
.cyf-legal-content h2 { font-size: 24px; margin-top: 2.4em; margin-bottom: 0.7em; }
.cyf-legal-content h1 { margin-bottom: 0.5em; }
.cyf-legal-content ul { line-height: 1.7; }
.cyf-legal-content li { margin-bottom: 8px; }
.cyf-legal-updated { color: var(--cyf-muted-on-dark-3); font-size: 14px; }

/* ---------- footer ---------- */

.cyf-footer { background: var(--cyf-dark-900); border-top: 1px solid #1c2530; color: var(--cyf-muted-on-dark); }
/* Grid rather than flex: with three flexible columns the last third of the
   footer stayed empty on wide screens. */
.cyf-footer-inner {
	display: grid;
	grid-template-columns: 1.9fr 1fr 1.15fr 1.15fr;
	gap: 40px 48px;
	padding: 68px 48px;
	align-items: start;
}
.cyf-footer-logo, .cyf-footer-logo a {
	font-family: "Manrope", sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #fff !important;
	text-decoration: none;
}
.cyf-footer-blurb { font-size: 14px; line-height: 1.65; color: var(--cyf-muted-on-dark); max-width: 340px; margin: 18px 0 28px; }
.cyf-footer-copy { font-size: 14px; color: var(--cyf-blue); margin: 0; }
.cyf-footer-heading { font-family: "Manrope", sans-serif; font-weight: 600; font-size: 16px; color: #fff; margin-bottom: 24px; }
.cyf-footer-link { margin: 0 0 14px; }
.cyf-footer-link a { color: var(--cyf-muted-on-dark); font-size: 14px; text-decoration: none; opacity: 0.85; transition: color 0.18s ease, opacity 0.18s ease; }
.cyf-footer-link a:hover { color: #fff; opacity: 1; }
.cyf-footer-contact { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--cyf-muted-on-dark); }
.cyf-footer-contact a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
.cyf-footer-contact a:hover { color: #fff; }

/* ---------- keyframes ---------- */

@keyframes cyfFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
@keyframes cyfBar {
	0% { transform: scaleY(0.3); }
	50% { transform: scaleY(1); }
	100% { transform: scaleY(0.3); }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
	.cyf-hero-home-inner,
	.cyf-split,
	.cyf-split-wide,
	.cyf-about-identity__inner {
		grid-template-columns: 1fr;
	}
	.cyf-about-identity__inner {
		gap: 40px;
	}
	.cyf-about-identity__copy {
		padding-top: 0;
	}
	.cyf-offer-hero__visual {
		justify-content: flex-start;
	}
	.cyf-hero-home h1 { font-size: 48px; }
	.cyf-grid-4,
	.cyf-dark-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.cyf-competencies-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cyf-competency-item:nth-child(odd) {
		border-left: 0;
	}
	.cyf-competency-item:nth-child(even) {
		border-left: 1px solid var(--cyf-border);
	}
	.cyf-competency-item:nth-child(n + 3) {
		border-top: 1px solid var(--cyf-border);
	}
	.cyf-partner-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cyf-footer-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 44px;
	}
	.cyf-floating-stat-card { position: static !important; margin-top: 32px; max-width: 100%; }
}

@media (max-width: 680px) {
	.cyf-section { padding: 72px 24px; }
	.cyf-section-tight { padding: 56px 24px; }
	.cyf-header-inner { padding: 0 24px; }
	.cyf-hero-home-inner { padding: 72px 24px; }
	.cyf-hero-oferta-inner { padding: 80px 24px 68px; }
	.cyf-hero-home h1 { font-size: 36px; }
	.cyf-grid-2,
	.cyf-grid-4,
	.cyf-dark-feature-grid {
		grid-template-columns: 1fr;
	}
	.cyf-competencies-grid,
	.cyf-partner-grid,
	.cyf-job-facts {
		grid-template-columns: 1fr;
	}
	.cyf-competency-item {
		border-left: 0 !important;
		border-top: 1px solid var(--cyf-border);
		padding: 32px 26px;
	}
	.cyf-competency-item:first-child {
		border-top: 0;
	}
	.cyf-footer-inner {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 56px 24px;
	}
	.cyf-job-card {
		padding: 30px 24px;
	}
	.cyf-service-card {
		padding: 34px 26px;
	}
	.cyf-service-card--wide .cyf-service-list {
		columns: 1;
	}
	.cyf-service-card__title {
		font-size: 21px;
		margin-right: 54px;
	}
	.cyf-value-card {
		min-height: 220px;
	}
	.cyf-partner-card {
		height: 128px;
	}
	.cyf-job-fact {
		grid-template-columns: 1fr;
		gap: 5px;
	}
	.cyf-job-fact:nth-last-child(2) {
		border-bottom: 1px solid var(--cyf-border-soft);
	}
	.cyf-nav .wp-block-navigation__container { gap: 16px !important; }
	.cyf-contact-row { gap: 32px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.cyf-floating-stat-card,
	.cyf-floating-bars span {
		animation: none;
	}
	.cyf-card:hover,
	.cyf-competency-item:hover,
	.cyf-partner-card:hover,
	.cyf-dark-feature-item:hover,
	.wp-block-button__link:hover {
		transform: none;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
