/* Fortis Play – wygląd wg Figmy „Fortis.play” (Desktop - 2) */
:root {
  --ink: #020a0a;
  --bg: #fbfcff;
  --white: #ffffff;
  --gray: #707b85;
  --gray-100: #dddddd;
  --blue: #1689ff;
  --blue-2: #1e8dff;
  --sky: #6bb4ff;
  --pale: #ddedff;
  --lime: #aff955;
  --lime-2: #cff6a0;
  --grad-blue: linear-gradient(90deg, var(--blue), var(--sky));
  --grad-lime: linear-gradient(90deg, var(--lime) 21.6%, var(--lime-2));
  --display: "Proxima Nova Wide", "Archivo", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1100px;
  --wide: 106%;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: var(--wide); }
.wrap { max-width: calc(var(--container) + 32px); margin: 0 auto; padding: 0 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 61px; border: 1px solid transparent; font: 500 16px/1.5 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad-blue); color: var(--bg); }
.btn.outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.outline:hover { background: var(--ink); color: var(--white); filter: none; }
.btn.dark { background: var(--ink); color: var(--white); font-size: 14px; line-height: 1.3; }
.btn.lime { background: var(--grad-lime); color: var(--ink); font-size: 14px; line-height: 1.3; }
.btn.white { background: var(--white); color: var(--ink); font-size: 14px; line-height: 1.3; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: 92px; display: flex; align-items: center; gap: 24px; padding: 0 56px 0 67px; background: rgba(251, 252, 255, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--white); }
.brand { display: block; padding: 10px; }
.logo { position: relative; display: block; width: 165px; height: 40.16px; }
.logo img { position: absolute; width: auto; height: auto; }
.logo .l-text { inset: 18.99% 0.23% 27.7% 35.78%; width: 63.99%; height: 53.31%; }
.logo .l-mark { inset: 2.02% 68.65% 0.9% 0.54%; width: 30.81%; height: 97.08%; }
.logo .l-tag { inset: 85.27% 0.64% 0.63% 35.87%; width: 63.49%; height: 14.1%; }
.nav { margin: 0 auto; display: flex; gap: clamp(24px, 5.8vw, 84px); font-size: 16px; line-height: 1.3; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a.on { color: var(--blue); }
.topbar .cta { font-size: 16px; padding: 12px 24px; }
.lang { display: flex; font-size: 12px; font-weight: 500; }
.lang button { border: 0; background: none; font: inherit; color: var(--gray); padding: 4px 6px; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--gray-100); }
.lang button[aria-pressed="true"], .lang button:hover { color: var(--blue); }
@media (max-width: 1100px) { .topbar { padding: 0 24px; } .nav { gap: 28px; } }
@media (max-width: 900px) { .nav { display: none; } .lang { margin-left: auto; } .topbar { height: 72px; } html { scroll-padding-top: 72px; } }
@media (max-width: 560px) { .topbar { gap: 12px; padding: 0 16px; } .logo { transform: scale(.75); transform-origin: left center; } .topbar .cta { font-size: 13px; padding: 9px 14px; } .topbar .cta { white-space: normal; text-align: center; max-width: 150px; line-height: 1.2; } }

/* ---------- sections ---------- */
section { padding: 24px 0; }
.head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.eyebrow { font: 600 16px/1.3 var(--body); color: var(--blue); text-transform: uppercase; }
.head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.07; letter-spacing: -.02em; text-transform: uppercase; max-width: 700px; }
.head h2.narrow { max-width: 603px; }
.head p { margin: 0; color: var(--gray); max-width: 700px; }
.head p.narrow-p { max-width: 639px; }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: -92px; padding: 0; height: 768px; display: grid; place-items: center; overflow: hidden; }
.hero-in { margin-top: 44px; position: relative; z-index: 1; width: min(758px, 100% - 32px); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.07; letter-spacing: -.02em; text-transform: uppercase; }
.hero p { margin: 0; font-size: 18px; color: var(--gray); }
.btns { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.ribbon { position: absolute; left: -16%; width: 132%; background: var(--lime); overflow: hidden; }
.ribbon.top { top: 117px; transform: rotate(-2.72deg); }
.ribbon.bottom { top: 672px; transform: rotate(3.06deg); }
.ribbon-track { display: flex; width: max-content; animation: ribbon 40s linear infinite; }
.ribbon.bottom .ribbon-track { animation-direction: reverse; }
.ribbon-track span { padding: 16px 28px; font: 500 16px/1.3 var(--display); font-stretch: var(--wide); white-space: nowrap; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track, .logos-track { animation: none !important; } }
@media (max-width: 720px) {
  .hero { height: auto; min-height: 640px; margin-top: -72px; padding: 190px 0 170px; }
  .ribbon.top { top: 100px; } .ribbon.bottom { top: auto; bottom: 60px; }
  .hero p { font-size: 16px; }
  .btns { gap: 12px; }
}

/* ---------- solutions ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } }
.tile { min-height: 246px; border: 1px solid var(--sky); border-radius: 24px; padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 28px; font-weight: 700; line-height: 1.07; letter-spacing: -.02em; max-width: 284px; }
.tile p { margin: 0; color: var(--gray); }
.ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 4px; display: grid; place-items: center; }
.ico-quiz { background: var(--lime); border-radius: 3.3px; }
.ico-quiz i { width: 16.6px; height: 16.6px; background: var(--ink); transform: rotate(-45deg); }
.ico-promo { background: var(--ink); display: flex; justify-content: center; gap: 2.5px; align-items: center; }
.ico-promo i { width: 5px; height: 20px; border-radius: 28px; background: var(--white); }
.ico-promo i:nth-child(2) { background: var(--blue-2); }
.ico-special { background: var(--lime); }
.ico-special i { width: 20px; height: 20px; border: 2px solid var(--white); border-radius: 4px; }
.cta-tile { background: var(--grad-blue); border: 0; padding: 24px; justify-content: space-between; }
.cta-tile .small { font: 500 14px/1.5 var(--body); text-transform: uppercase; }
.cta-tile h3 { font-size: 32px; color: var(--bg); max-width: 300px; }
.cta-tile .btn { align-self: flex-start; }

/* ---------- work / carousel ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 1px solid var(--sky); background: transparent; color: var(--ink); border-radius: 32px; padding: 10px 16px; font: 500 12px/1.3 var(--display); font-stretch: var(--wide); cursor: pointer; }
.tab:hover { border-color: var(--blue-2); }
.tab[aria-pressed="true"] { background: var(--blue-2); border-color: var(--blue-2); color: var(--bg); }
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track.all { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
@media (max-width: 1000px) { .track { grid-auto-columns: calc((100% - 40px) / 3); } .track.all { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .track { grid-auto-columns: 70%; } .track.all { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.arrow.prev { left: -61px; }
.arrow.next { right: -61px; }
.arrow.next img { transform: rotate(180deg); }
.arrow[disabled] { opacity: .25; cursor: default; }
.track.all ~ .arrow { display: none; }
@media (max-width: 1240px) { .arrow { display: none; } }
.work { position: relative; display: block; aspect-ratio: 260/480; border-radius: 18px; overflow: hidden; background: #0b0f16; scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.work > img, .work > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work > video { opacity: 0; transition: opacity .25s; }
.work:hover > video.ready { opacity: 1; }
.work .tag { position: absolute; left: 12px; top: 12px; padding: 6px 8px; border-radius: 42px; background: var(--ink); color: var(--bg); font: 500 10px/1.3 var(--display); font-stretch: var(--wide); }
.work .glass { position: absolute; left: 0; right: 0; bottom: 0; min-height: 190px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; border-top: 1px solid var(--white); border-radius: 18px; background: linear-gradient(75.9deg, #fff 2.8%, rgba(255, 255, 255, 0) 133%); backdrop-filter: blur(14.5px); -webkit-backdrop-filter: blur(14.5px); opacity: 0; transform: translateY(24px); transition: opacity .25s, transform .25s; }
.work:hover .glass, .work:focus-visible .glass { opacity: 1; transform: none; }
@media (hover: none) { .work .glass { opacity: 1; transform: none; } }
.work h3 { font-size: 18px; font-weight: 700; line-height: 1.07; letter-spacing: -.02em; }
.work p { margin: 8px 0 0; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work .btn { width: 100%; }
.work .btn img { width: 24px; height: 24px; }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font: 700 18px/1.1 var(--display); color: var(--white); }
.more { display: flex; justify-content: center; margin-top: 19px; }
.empty { color: var(--gray); }

/* ---------- benefits ---------- */
.benefit { min-height: 246px; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.benefit .no { font: 400 20px/1.07 var(--display); font-stretch: var(--wide); letter-spacing: -.02em; }
.benefit > div { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.benefit.end > div { justify-content: flex-end; }
.benefit h3 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; line-height: 1.07; letter-spacing: -.02em; }
.benefit p { margin: 0; }
.benefit.lime { background: var(--lime); }
.benefit.blue { background: var(--blue); color: var(--white); }
.benefit.dark { background: var(--ink); color: var(--white); }
.benefit.pale { background: var(--pale); }
.c-lime { color: var(--lime); } .c-sky { color: var(--sky); } .c-blue { color: var(--blue); }

/* ---------- clients ---------- */
.clients-sec .head { margin-bottom: 24px; }
.logos { overflow: hidden; background: var(--bg); padding: 14px 0; }
.logos-track { display: flex; align-items: center; gap: 59px; width: max-content; padding-left: 29px; animation: ribbon 60s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos-track span { height: 42px; flex-shrink: 0; overflow: hidden; }
.logos-track img { height: 42px; width: auto; max-width: 310px; object-fit: contain; }
/* PNG logos with built-in padding, cropped the same way as in the design */
.logos-track .crop img { height: var(--h); margin-top: var(--t); max-width: none; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 420px; } }
.plan { border: 1px solid var(--sky); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.plan-top { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-100); }
.plan h3 { font-size: 28px; font-weight: 700; line-height: 1.07; letter-spacing: -.02em; }
.plan .desc { margin: 0; min-height: 48px; color: var(--gray); }
.plan .price { display: flex; flex-direction: column; gap: 4px; color: var(--gray); }
.plan .price b { font: 700 clamp(28px, 2.6vw, 36px)/1.07 var(--display); font-stretch: var(--wide); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.plan .btn { width: 100%; }
.plan-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.3; }
.plan-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-list li { display: flex; align-items: center; gap: 10px; }
.plan-list li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); flex-shrink: 0; }
.plan.featured { border: 0; background: linear-gradient(115.7deg, var(--blue) 5.2%, var(--sky) 108%); color: var(--white); }
.plan.featured .plan-top { border-color: rgba(255, 255, 255, .6); }
.plan.featured .desc { color: var(--pale); }
.plan.featured .price { color: var(--white); }
.plan.featured .price b { color: var(--lime); }
.plan.featured li::before { background: var(--lime); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 24px; }
.faq details { border: 1px solid var(--gray-100); border-radius: 24px; padding: 12px 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--sky); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 700 clamp(18px, 2vw, 24px)/1.07 var(--display); font-stretch: var(--wide); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 42px; height: 42px; flex-shrink: 0; background: url(../figma/faq-closed.svg) center/42px no-repeat; }
.faq details[open] summary i { background-image: url(../figma/faq-open.svg); }
.faq p { margin: 16px 0 12px; max-width: 962px; color: var(--gray); }

/* ---------- contact ---------- */
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 8px; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: flex; flex-direction: column; gap: 8px; }
form.contact input, form.contact textarea { font: inherit; color: var(--ink); background: rgba(251, 252, 255, .2); border: 1px solid var(--sky); border-radius: 6px; padding: 11px 14px; }
form.contact input { height: 48px; }
form.contact textarea { min-height: 204px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 137, 255, .15); }
@media (max-width: 640px) { form.contact { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { margin-top: 24px; padding: 36px 0; font-size: 14px; line-height: 1.3; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-logo { width: 288px; height: auto; }
.foot-cols { flex: 1; max-width: 640px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-cols b { display: block; margin-bottom: 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-cols li { display: flex; align-items: center; gap: 10px; }
.foot-cols li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--blue); }
.foot-contact p { margin: 0 0 8px; display: flex; gap: 8px; font-size: 12px; line-height: 1.5; }
.foot-contact .addr { display: flex; flex-direction: column; gap: 8px; }
.foot-contact img { flex-shrink: 0; }
.foot-bottom { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-100); text-align: center; font-size: 12px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.foot-bottom small { font-size: 10px; }
@media (max-width: 640px) { .foot-logo { width: 200px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- case study page ---------- */
.cs-page .topbar { background: var(--bg); }
.cs-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 48px 0 32px; }
.cs-head h1 { text-align: center; font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.07; letter-spacing: -.02em; text-transform: uppercase; max-width: 640px; }
.cs-head .l { font: 600 16px/1.3 var(--body); color: var(--blue); text-transform: uppercase; }
.cs-head .r { font-size: 15px; color: var(--gray); text-align: right; }
@media (max-width: 720px) { .cs-head { grid-template-columns: 1fr; text-align: center; } .cs-head .r { text-align: center; order: 3; } .cs-head .l { order: 2; } }
.phone { border-radius: 18px; overflow: hidden; background: #0b0f16; }
.phone > img, .phone > video { width: 100%; aspect-ratio: 390/720; object-fit: cover; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 220px); gap: 20px; overflow-x: auto; justify-content: center; padding-bottom: 6px; }
@media (max-width: 900px) { .shots { justify-content: start; } }
.shots .phone.wide > img { object-fit: contain; background: var(--pale); }
.cs-text { display: grid; gap: 24px; padding: 40px 0 64px; }
@media (min-width: 820px) { .cs-text { grid-template-columns: 1fr 1fr; } }
.cs-text > div { border: 1px solid var(--sky); border-radius: 24px; padding: 24px; }
.cs-text h2 { font-size: 24px; font-weight: 700; line-height: 1.07; letter-spacing: -.02em; margin: 0 0 12px; }
.cs-text p { margin: 0 0 10px; color: var(--gray); }
.cs-text .meta { font-size: 14px; }
.cs-text a { color: var(--blue); }
.stage { position: relative; overflow: hidden; padding: 56px 0; background: var(--ink); }
.stage .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) brightness(.45); }
.stage .device { position: relative; margin: 0 auto; width: min(390px, 100%); aspect-ratio: 390/720; border: 1px solid rgba(255,255,255,.5); border-radius: 24px; padding: 7px; background: #000; }
.stage iframe, .stage .poster { width: 100%; height: 100%; border: 0; border-radius: 18px; background: #000; display: block; }
.stage .poster { position: relative; cursor: pointer; overflow: hidden; }
.stage .poster video, .stage .poster img { width: 100%; height: 100%; object-fit: cover; }
.stage .start { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); }
.stage .hint { position: relative; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; margin: 14px 0 0; }
.stage .hint a { color: #fff; }
.row-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 20px; overflow-x: auto; padding-bottom: 6px; }
