/* ShortPRO Web – hlavička s velkým menu (includes/menu.php). Od 1100 px vodorovně s panely, níž celoobrazovkové menu. */
html, body { overflow-x: clip; } /* starší stránky přetékaly do strany a na mobilu odsunuly menu z obrazovky */
.spw-h { --hv: #5c57cb; --hl: #8783e0; --hp: #d662a8; --hi: #2f2b6b; position: fixed; z-index: 99999999; inset: 0 0 auto; padding: 10px 10px 0; font-family: Rubik, sans-serif; color: var(--hi); pointer-events: none; }
.spw-h *, .spw-h *::before { box-sizing: border-box; }
.spw-h ul { margin: 0; padding: 0; list-style: none; }
.spw-h li { margin: 0; }
.spw-h a { text-decoration: none; color: inherit; }
.spw-h .spw-h__bar { position: relative; display: flex; align-items: center; gap: 14px; height: 80px; padding: 0 28px 0 36px; border-radius: 20px; background: #fff; box-shadow: 0 4px 24px rgba(47, 43, 107, .1); pointer-events: auto; }
.spw-h__logo { flex: none; display: block; margin-right: auto; }
.spw-h__logo img { display: block; width: 190px; height: auto; }
.spw-h .spw-h__list { display: flex; align-items: center; gap: 2px; }

body .spw-h .spw-h__top { display: flex !important; align-items: center !important; gap: 7px !important; min-height: 42px !important; margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 99px !important; background: none !important; box-shadow: none !important; font: 400 15px/1 Rubik, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--hi) !important; cursor: pointer !important; transition: background .18s, color .18s !important; white-space: nowrap !important; }
body .spw-h .spw-h__top:hover, body .spw-h .is-open > .spw-h__top { background: #f1f0fc !important; color: var(--hv) !important; }
body .spw-h .is-active > .spw-h__top, body .spw-h .spw-h__top[aria-current] { color: var(--hv) !important; font-weight: 500 !important; }
.spw-h__top svg { flex: none; transition: rotate .2s; }
.spw-h .is-open > .spw-h__top svg { rotate: 180deg; }
.spw-h a:focus-visible, body .spw-h button:focus-visible { outline: 2px solid var(--hv) !important; outline-offset: 2px !important; }

.spw-h__cta { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 99px; background: linear-gradient(128deg, var(--hv), var(--hl)); font-size: 15px; font-weight: 500; transition: box-shadow .2s, translate .2s; }
.spw-h a.spw-h__cta { color: #fff; }
.spw-h a.spw-h__cta:hover { box-shadow: 0 8px 20px rgba(92, 87, 203, .35); translate: 0 -1px; }
.spw-h .spw-h__cta--m { display: none; }
.spw-h__lang { flex: none; }
.spw-h__lang li { display: block; }
body .spw-h .spw-h__burger { display: none !important; }

/* Karty */
.spw-h .spw-h__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; }
.spw-h__tile { display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px 14px; border-radius: 16px; transition: background .18s; }
.spw-h__tile strong, .spw-h__case strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--hi); transition: color .18s; }
.spw-h small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.3; font-weight: 400; color: #6f6c96; }
.spw-h__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #f1f0fc; color: var(--hv); transition: background .2s, color .2s, border-radius .25s; }
.spw-h__ico svg { width: 23px; height: 23px; }
.spw-h__tile:hover, .spw-h__tile[aria-current] { background: #f7f6fd; }
.spw-h__tile:hover strong, .spw-h__case:hover strong, .spw-h [aria-current] strong { color: var(--hv); }
.spw-h__tile:hover .spw-h__ico { background: var(--hv); color: #fff; border-radius: 14px; }
.spw-h__tiles li:nth-child(3n+2) .spw-h__ico { background: #fdeaf6; color: var(--hp); }
.spw-h__tiles li:nth-child(3n+3) .spw-h__ico { background: #fdf5d4; color: #9a7a12; }
.spw-h__tile--ask { border: 1.5px dashed #cfccf3; }
.spw-h__feat { position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 250px; padding: 26px; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 120% at 100% 100%, #fea2d9 0, transparent 46%), linear-gradient(150deg, var(--hv), var(--hl)); }
.spw-h a.spw-h__feat { color: #fff; }
.spw-h__feat-t { position: relative; z-index: 1; display: block; max-width: 170px; }
.spw-h .spw-h__feat small { color: rgba(255, 255, 255, .85); margin: 0 0 8px; }
.spw-h__feat strong { display: block; font-size: 23px; line-height: 1.15; font-weight: 600; }
.spw-h__feat-t > span { display: block; max-width: 115px; margin-top: 10px; font-size: 14px; line-height: 1.4; }
.spw-h__feat img { position: absolute; right: 18px; bottom: -70px; width: 130px; height: auto; border: 5px solid #23214a; border-radius: 22px; rotate: 7deg; transition: translate .3s, rotate .3s; }
.spw-h__feat:hover img { translate: 0 -10px; rotate: 3deg; }

.spw-h .spw-h__cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 18px; }
.spw-h .spw-h__cases[hidden] { display: none; }
.spw-h__case { position: relative; display: block; }
.spw-h__pic { display: block; margin-bottom: 10px; border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, #e9e7fb, #fdeaf6); aspect-ratio: 4 / 3; }
.spw-h__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .35s; }
.spw-h__pic picture { display: contents; }
.spw-h__case:hover .spw-h__pic img { scale: 1.05; }
.spw-h__case em { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 99px; background: #fdeca0; font-size: 12px; font-style: normal; font-weight: 500; color: var(--hi); }
body .spw-h .spw-h__cats button { display: block !important; width: 100% !important; min-height: 44px !important; margin: 0 !important; padding: 0 18px !important; border: 0 !important; border-radius: 14px !important; background: none !important; box-shadow: none !important; text-align: left !important; font: 400 16px/1.2 Rubik, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--hi) !important; cursor: pointer !important; transition: background .18s, color .18s !important; }
body .spw-h .spw-h__cats button:hover { background: #f7f6fd !important; color: var(--hv) !important; }
body .spw-h .spw-h__cats button[aria-pressed="true"] { background: #f1f0fc !important; color: var(--hv) !important; font-weight: 500 !important; }
.spw-h a.spw-h__all { display: inline-block; margin-top: 18px; font-weight: 500; color: var(--hv); }

@media (min-width: 1100px) {
	.spw-h__panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; }
	.spw-h__panel::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; } /* most pro myš mezi lištou a panelem */
	.spw-h .is-open > .spw-h__panel { display: block; animation: spw-h-in .2s ease-out; }
	.spw-h__in { max-height: calc(100vh - 120px); overflow: auto; padding: 28px 32px 32px; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(47, 43, 107, .2); }
	.spw-h__panel--sluzby .spw-h__in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
	.spw-h__panel--studie .spw-h__in { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 34px; min-height: 420px; }
	.spw-h__panel--spoluprace .spw-h__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.spw-h__panel--materialy .spw-h__pic { aspect-ratio: 5 / 4; }
}
@keyframes spw-h-in { from { opacity: 0; translate: 0 -6px; } }
@media (min-width: 1100px) and (max-width: 1290px) {
	.spw-h .spw-h__bar { padding: 0 18px 0 24px; gap: 8px; }
	.spw-h__logo img { width: 150px; }
	body .spw-h .spw-h__top { padding: 0 10px !important; font-size: 14.5px !important; }
	.spw-h .spw-h__cases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; }
	.spw-h__panel--sluzby .spw-h__in { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 1099px) {
	.spw-h .spw-h__bar { height: 62px; padding: 0 10px 0 18px; gap: 8px; border-radius: 18px; }
	.spw-h__logo img { width: 122px; }
	.spw-h__bar > .spw-h__cta { display: none; }
	body .spw-h .spw-h__burger { display: grid !important; place-content: center !important; gap: 7px !important; flex: none !important; width: 46px !important; height: 46px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: none !important; box-shadow: none !important; cursor: pointer !important; }
	.spw-h__burger i { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--hv); transition: rotate .2s, translate .2s; }
	.spw-h.is-menu .spw-h__burger i:first-child { rotate: 45deg; translate: 0 4.75px; }
	.spw-h.is-menu .spw-h__burger i:last-child { rotate: -45deg; translate: 0 -4.75px; }
	.spw-h__nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(47, 43, 107, .25); overflow: hidden; }
	.spw-h.is-menu .spw-h__nav { display: flex; animation: spw-h-in .2s ease-out; }
	.spw-h .spw-h__list { display: block; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px 14px; }
	.spw-h__item + .spw-h__item { border-top: 1px solid #efeefa; }
	body .spw-h .spw-h__top { width: 100% !important; min-height: 58px !important; padding: 0 6px !important; justify-content: space-between !important; border-radius: 0 !important; font-size: 19px !important; font-weight: 500 !important; white-space: normal !important; text-align: left !important; }
	body .spw-h .spw-h__top:hover, body .spw-h .is-open > .spw-h__top { background: none !important; }
	.spw-h__top svg { width: 14px; height: 10px; }
	.spw-h__panel { display: none; padding: 0 0 18px; }
	.spw-h .is-open > .spw-h__panel { display: block; }
	.spw-h .spw-h__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.spw-h__tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; background: #f7f6fd; }
	.spw-h__tile small { display: none; }
	.spw-h__tile--ask { background: none; justify-content: center; }
	.spw-h__ico { width: 40px; height: 40px; }
	.spw-h__feat { min-height: 0; margin-top: 10px; padding: 20px 130px 20px 20px; border-radius: 18px; }
	.spw-h__feat-t, .spw-h__feat-t > span { max-width: none; }
	.spw-h__feat strong { font-size: 19px; }
	.spw-h__feat img { width: 96px; right: 18px; bottom: -60px; }
	.spw-h__cats, .spw-h .spw-h__cases { display: flex; gap: 12px; margin: 0 -14px; padding: 2px 14px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 14px; }
	.spw-h .spw-h__cats { gap: 6px; margin-bottom: 12px; }
	body .spw-h .spw-h__cats button { flex: none !important; width: auto !important; min-height: 40px !important; padding: 0 16px !important; border-radius: 99px !important; background: #f7f6fd !important; font-size: 15px !important; white-space: nowrap !important; }
	body .spw-h .spw-h__cats button[aria-pressed="true"] { background: var(--hv) !important; color: #fff !important; }
	.spw-h__cases li { flex: 0 0 62%; max-width: 250px; scroll-snap-align: start; }
	.spw-h .spw-h__cta--m { display: flex; justify-content: center; flex: none; margin: 8px 14px 14px; min-height: 52px; font-size: 17px; }
}
@media (max-width: 360px) { .spw-h__logo img { width: 104px; } }
@media (prefers-reduced-motion: reduce) { .spw-h *, .spw-h__panel { animation: none !important; transition: none !important; } }
/* Místo pod pevnou lištou a horní okraj přihlášených */
body.admin-bar .spw-h { top: 32px; }
@media (max-width: 782px) { body.admin-bar .spw-h { top: 46px; } }
html.spw-h-lock { overflow: hidden; }
