/* =========================================================================
   Codetech — komponenty współdzielone (nagłówek, nawigacja, loader, stopka,
   przyciski, kontenery, „eyebrow", tagi). Wartości 1:1 z projektu.
   ========================================================================= */

/* ---------- Kontenery / utility ---------- */
.cdt-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.cdt-relative { position: relative; }

/* ---------- Wrapper strony ---------- */
.cdt-page { position: relative; width: 100%; overflow-x: clip; background: #fff; }

/* ---------- Loader ---------- */
.cdt-loader { position: fixed; inset: 0; z-index: 2000; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; will-change: transform; }
.cdt-loader--home { display: none; }
.cdt-loader__logo { height: 30px; width: auto; display: block; }
.cdt-loader__track { width: 200px; height: 2px; background: #eaecf2; overflow: hidden; border-radius: 2px; }
.cdt-loader__fill { width: 100%; height: 100%; background: #C00018; transform: scaleX(0); transform-origin: left; }

/* ---------- Pasek postępu przewijania (home) ---------- */
.cdt-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 4000; background: rgba(192,0,24,0.15); pointer-events: none; opacity: 0; }
.cdt-progress__fill { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: #C00018; border-radius: 2px; box-shadow: 0 0 6px rgba(192,0,24,0.5); will-change: transform; }

/* ---------- Kursor (podstrony) ---------- */
.cdt-cursor-ring { position: fixed; top: 0; left: 0; width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 1px solid #C00018; border-radius: 50%; pointer-events: none; z-index: 1900; will-change: transform; }
.cdt-cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #C00018; border-radius: 50%; pointer-events: none; z-index: 1901; will-change: transform; }

/* ---------- Intro (home): kropka → logo → dokowanie ---------- */
.cdt-fly { position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none; will-change: left, top; }
.cdt-fly__inner { position: absolute; left: 0; top: 0; will-change: transform; }
.cdt-fly__logo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; opacity: 0; user-select: none; transition: opacity .3s ease; }
.cdt-fly__ring { position: absolute; border-radius: 50%; opacity: 0; }
.cdt-fly__ring--1 { border: 1.5px solid rgba(255,45,63,.6); }
.cdt-fly__ring--2 { border: 1.5px solid rgba(255,45,63,.45); }
.cdt-fly__ring--3 { border: 1px solid rgba(255,45,63,.35); }
.cdt-fly__core { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #ff2d3f; box-shadow: 0 0 26px 7px rgba(255,45,63,.55); transform: scale(0); }

/* ---------- Nawigacja ---------- */
.cdt-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; border-bottom: 1px solid transparent; }
.cdt-nav--home { opacity: 0; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.cdt-nav--light { background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px); }
.cdt-nav__bar { max-width: 1200px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; }
.cdt-logo-link { position: relative; display: flex; align-items: center; text-decoration: none; }
.cdt-logo { height: 23px; width: auto; display: block; }
.cdt-logo--white { opacity: 0; transition: opacity .3s ease; }
.cdt-logo--dark-abs { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .3s ease; }
.cdt-nav__right { display: flex; align-items: center; gap: 36px; }
.cdt-nav__right--light { gap: 38px; }
.cdt-nav-links { display: flex; gap: 30px; align-items: center; }

/* ---------- Linki nawigacji (hover) ---------- */
.cdt-navlink { text-decoration: none; font-size: 15px; transition: color .25s ease; }
.cdt-navlink:hover { color: #C00018; }
.cdt-navlink--home { color: #FFFFFF; font-weight: 500; }
.cdt-navlink--light { color: #6B7280; font-weight: 500; }
.cdt-navlink.is-active { color: #C00018; font-weight: 700; }

/* ---------- Przyciski ---------- */
.cdt-btn { display: inline-flex; align-items: center; text-decoration: none; border-radius: 10px; font-weight: 700; cursor: pointer; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.cdt-btn--primary { background: #C00018; color: #fff; }
.cdt-btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.18); }
.cdt-btn--white { background: #fff; color: #C00018; }.cdt-btn:hover { transform: translateY(-2px); }[data-magnetic] { transition: none; }.cdt-btn--ghost:hover { transform: none; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }

/* Rozmiary przycisków (padding/font/cień per użycie) */
.cdt-btn--nav { gap: 8px; background: #C00018; color: #fff; padding: 11px 20px; font-size: 15px; box-shadow: 0 8px 22px -12px rgba(192,0,24,.6); }
.cdt-btn--nav-light { gap: 9px; padding: 12px 22px; font-size: 15px; will-change: transform; }
.cdt-btn--lg { gap: 10px; padding: 17px 30px; font-size: 16px; box-shadow: 0 12px 30px -10px rgba(192,0,24,.65); }
.cdt-btn--md { gap: 10px; padding: 16px 28px; font-size: 16px; box-shadow: 0 12px 30px -12px rgba(192,0,24,.6); }
.cdt-btn--ghost-lg { gap: 9px; padding: 16px 26px; font-size: 16px; }
.cdt-btn--pill-lg { gap: 10px; padding: 18px 34px; font-size: 17px; box-shadow: 0 14px 36px -10px rgba(192,0,24,.7); }

/* ---------- „Eyebrow" (etykieta sekcji) ---------- */
.cdt-eyebrow { display: flex; align-items: center; gap: 12px; color: #C00018; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.cdt-eyebrow--inline { display: inline-flex; letter-spacing: 0.16em; }
.cdt-eyebrow--center { justify-content: center; display: inline-flex; }
.cdt-eyebrow__line { width: 24px; height: 1px; background: #C00018; display: block; }
.cdt-eyebrow__line--lg { width: 26px; }

/* ---------- Nagłówki sekcji ---------- */
.cdt-h2 { line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 24px 0 0; }
.cdt-h2__line-wrap { display: block; overflow: hidden; padding-bottom: 0.18em; }
.cdt-h2__line { display: block; }
.cdt-h2__line--red { color: #C00018; }

/* Strzałki / akcenty w przyciskach i linkach (współdzielone) */
.home-hero__arrow { font-size: 18px; }
.home-hero__arrow-up { color: #ff2d3f; }
.cdt-ico-16 { font-size: 16px; }
.cdt-ico-17 { font-size: 17px; }
.cdt-accent { color: #C00018; }
.cdt-accent-pink { color: #ff2d3f; }
.cdt-h2__line--accent { color: #ff2d3f; }
.cdt-h2__line--bold { font-weight: 700; }

/* ---------- Tagi ---------- */
.cdt-tag { font-size: 12px; color: #5c6173; background: #f0f1f5; border-radius: 100px; padding: 6px 12px; }
.cdt-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pcard-arrow { display: inline-block; transition: transform .3s ease; }

/* ---------- Karta usługi (home + listing usług) ---------- */
.home-svc-card { position: relative; display: block; text-decoration: none; color: #0B1230; background: #fff; border: 1px solid #eaecf2; border-radius: 22px; padding: 34px; will-change: transform; cursor: pointer; box-shadow: 0 1px 2px rgba(11,18,48,0.04); }
.home-svc-card__glow { position: absolute; inset: 0; border-radius: 22px; opacity: 0; pointer-events: none; }
.home-svc-card__body { position: relative; }
.home-svc-card__num { color: #C00018; font-weight: 700; font-size: 14px; }
.home-svc-card__title { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 12px; }
.home-svc-card__desc { color: #5c6173; font-size: 15px; line-height: 1.6; margin: 0; }
.home-svc-card__more { margin-top: 22px; display: flex; align-items: center; gap: 8px; color: #C00018; font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(12px); }
.home-svc-cta { position: relative; background: #C00018; border-radius: 22px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; min-height: 240px; }
.home-svc-cta__text { font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; max-width: 18ch; }
.home-svc-cta__btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; background: #fff; color: #C00018; text-decoration: none; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; margin-top: 24px; }

/* ---------- Karta realizacji (.pcard) — home + listing ---------- */
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #eaecf2; border-radius: 20px; overflow: hidden; text-decoration: none; color: #0B1230; box-shadow: 0 1px 2px rgba(11,18,48,0.04); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease; will-change: transform; }
.pcard-inner { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 32px; }
.pcard-media { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #e9e9f0; }
.pcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pcard__cat { color: #C00018; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.pcard__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 13px 0 11px; }
.pcard__desc { color: #5c6173; font-size: 15px; line-height: 1.6; margin: 0; }
.pcard__more { display: flex; align-items: center; gap: 8px; color: #C00018; font-weight: 700; font-size: 14px; margin-top: 24px; }
.pcard__tag { font-size: 12px; color: #5c6173; background: #F7F8FA; border: 1px solid #e7e9f0; border-radius: 100px; padding: 6px 12px; }

/* Siatka realizacji (listing) — 3 kolumny desktop, 2 tablet, 1 mobile */
.rzl-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .rzl-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px)  { .rzl-grid { grid-template-columns: 1fr !important; } }

/* ---------- Przycisk „do góry" (budowany w JS, stylowany klasą) ---------- */
.cdt-to-top { position: fixed; right: 28px; bottom: 28px; z-index: 3500; width: 50px; height: 50px; border-radius: 14px; background: #0B1230; border: 1px solid rgba(255,255,255,0.10); box-shadow: 0 14px 30px -14px rgba(11,18,48,0.55); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; opacity: 0; transform: translateY(14px) scale(0.92); pointer-events: none; transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), background .25s ease, box-shadow .25s ease, border-color .25s ease; will-change: transform, opacity; }
.cdt-to-top.is-on { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cdt-to-top svg { display: block; transition: transform .25s ease; }
.cdt-to-top.is-on:hover { transform: translateY(-3px) scale(1); background: #C00018; border-color: rgba(192,0,24,0.6); box-shadow: 0 20px 40px -14px rgba(192,0,24,0.65); }
.cdt-to-top.is-on:hover svg { transform: translateY(-2px); }
.cdt-to-top.is-on:hover path:last-child { stroke: #fff; }
@media (max-width: 480px) { .cdt-to-top { width: 44px; height: 44px; right: 16px; bottom: 16px; } }

/* ---------- Nawigacja mobilna (burger + pełnoekranowe menu) — budowana w JS, stylowana klasami ---------- */
.cdt-burger { display: none; position: relative; width: 46px; height: 46px; border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; padding: 0; color: #fff; z-index: 5200; }
.cdt-burger.is-dark { color: #0B1230; }
.cdt-burger.is-open { color: #fff; }
.cdt-burger__line { position: absolute; left: 11px; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.cdt-burger__line--1 { top: 18px; }
.cdt-burger__line--2 { top: 27px; }
.cdt-burger.is-open .cdt-burger__line--1 { top: 22px; transform: rotate(45deg); }
.cdt-burger.is-open .cdt-burger__line--2 { top: 22px; transform: rotate(-45deg); }
@media (max-width: 1024px) {
	.cdt-desktop-nav { display: none !important; }
	.cdt-burger { display: inline-flex !important; }
}

.cdt-menu { position: fixed; inset: 0; z-index: 5000; background: radial-gradient(120% 90% at 80% 0%, #15204a 0%, #0B1230 48%, #091022 100%); opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease; display: flex; flex-direction: column; overscroll-behavior: contain; }
.cdt-menu.is-open { opacity: 1; visibility: visible; }
.cdt-menu__top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cdt-menu__logo { height: 23px; width: auto; display: block; }
.cdt-menu__close { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); border-radius: 12px; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cdt-menu__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 32px; min-height: 0; }
.cdt-menu-link { position: relative; display: block; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(30px,8vw,46px); line-height: 1.18; padding: 6px 0; transition: color .2s ease; }
.cdt-menu-link .cdt-idx { font-size: 14px; font-weight: 700; color: #C00018; letter-spacing: 0.1em; vertical-align: super; margin-right: 14px; }
.cdt-menu-link:active, .cdt-menu-link:hover { color: #ff7a86; }
.cdt-menu__cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 34px; background: #C00018; color: #fff; text-decoration: none; padding: 18px 26px; border-radius: 12px; font-weight: 700; font-size: 17px; box-shadow: 0 14px 36px -12px rgba(192,0,24,.7); }
.cdt-menu__cta-arrow { font-size: 18px; }
.cdt-menu__foot { flex: none; padding: 22px 32px 32px; border-top: 1px solid rgba(255,255,255,0.08); color: #9aa1b8; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.cdt-menu__foot a { text-decoration: none; }
.cdt-menu__foot-mail { color: #fff; font-weight: 700; }
.cdt-menu__foot-tel { color: #9aa1b8; }
@media (max-width: 600px) { .cdt-menu__top, .cdt-menu__body, .cdt-menu__foot { padding-left: 20px; padding-right: 20px; } }

/* Akcje hero na wąskich ekranach (pełna szerokość przycisków) */
@media (max-width: 560px) {
	.cdt-actions { flex-direction: column; align-items: stretch; width: 100%; }
	.cdt-actions > a { width: 100%; justify-content: center; }
}

/* ---------- FAQ (akordeon) ---------- */
.cdt-faq { border-top: 1px solid #eaecf2; }
.cdt-faq--last { border-bottom: 1px solid #eaecf2; }
.cdt-faq__q { width: 100%; background: none; border: none; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; font-family: inherit; font-weight: 700; font-size: clamp(18px,1.6vw,21px); letter-spacing: -0.01em; color: #0B1230; cursor: pointer; }
.cdt-faq__q--sm { padding: 24px 0; font-size: clamp(17px,1.5vw,20px); }
.cdt-faq__icon { flex: none; font-size: 26px; font-weight: 400; color: #C00018; line-height: 1; display: inline-block; }
.cdt-faq__a { overflow: hidden; height: 0; }
.cdt-faq__inner { padding: 0 0 28px; color: #5c6173; font-size: 16px; line-height: 1.65; max-width: 54ch; }
.cdt-faq__inner--wide { max-width: 56ch; padding: 0 0 26px; }

/* ---------- Stopka ---------- */
.cdt-footer { color: #fff; padding: 90px 0 40px; background: #091022; }
.cdt-footer--home,
.cdt-footer--light { background: #091022; }
.cdt-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid #1d2540; }
.cdt-footer__logo { height: 26px; width: auto; display: block; }
.cdt-footer__desc { color: #9aa1b8; font-size: 15px; line-height: 1.6; margin: 20px 0 0; max-width: 34ch; }
.cdt-footer__heading { color: #808aa0; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.cdt-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.cdt-footer-link { color: #c4c9d8; text-decoration: none; transition: color .2s ease; }
.cdt-footer-link:hover { color: #fff; }
.cdt-footer__email { color: #fff; text-decoration: none; font-weight: 700; }
.cdt-footer__muted { color: #9aa1b8; }
.cdt-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; color: #808aa0; font-size: 13px; }
.cdt-footer__bottom a { color: #c4c9d8; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Placeholder brakującego obrazu ---------- */
div.cdt-imgph {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 12px; box-sizing: border-box; text-align: center;
	background: rgba(0,0,0,.04); color: rgba(0,0,0,.55);
	font: 500 13px/1.3 system-ui, -apple-system, sans-serif;
	letter-spacing: 0.01em; user-select: none;
}
.cdt-imgph__ring { position: absolute; inset: 0; border: 1.5px dashed rgba(0,0,0,.25); pointer-events: none; }
.cdt-imgph__icon { opacity: .45; }
.cdt-imgph__cap { max-width: 90%; }
.pcard-media .cdt-imgph { background: transparent; }
.pcard-media .cdt-imgph .cdt-imgph__ring { display: none; }
