:root {
  color-scheme: light;
  --red: #e30613;
  --red-hover: #bd0510;
  --ink: #17171a;
  --muted: #53535b;
  --line: #e6e5e8;
  --soft: #f6f5f6;
  --pink: #fcecee;
  --card-section: #f4f6f9;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.035em; }
.wrap { width: min(1176px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; transform: translateY(-150%); padding: .65rem; background: white; }
.skip:focus { transform: translateY(0); }
/* Wspólny nagłówek, menu i stopka */
.header { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff 0%, #fff 27%, #c00 50%); color: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; padding-block: .65rem; }
.brand img { width: clamp(150px, 22vw, 200px); }
.header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.65rem; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }

.header nav a:hover, .header nav a[aria-current="page"] { color: white; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .header { background: white; }
  .header-inner { flex-wrap: wrap; gap: .55rem; min-height: 0; padding-bottom: 0; }
  .header nav { position: relative; isolation: isolate; width: 100%; gap: .15rem 1rem; }
  .header nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #c00; box-shadow: 0 0 0 100vmax #c00; clip-path: inset(0 -100vmax); }
}

.site-footer { background: var(--ink); color: white; text-align: center; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .2rem 1.25rem; padding-block: .3rem; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; }
.footer-brand img { width: 142px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1.05rem; color: #e4e2e6; font-size: .875rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-bottom a:hover { color: white; text-decoration: underline; text-decoration-color: #ff6470; }
@media (max-width: 480px) {
  .footer-inner { flex-wrap: wrap; justify-content: center; }
}

.hero { background: radial-gradient(ellipse at top right, var(--pink), #fff 78%); padding-block: clamp(3rem, 7vw, 6.5rem) clamp(1.25rem, 2.5vw, 2.25rem); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .875rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.eyebrow span { width: 20px; height: 3px; background: var(--red); }
h1 { margin-top: 1rem; font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1.03; }
h1 em { color: var(--red); font-style: normal; }
.lead { margin-top: 1.4rem; max-width: 51ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: 6px; background: var(--red); color: white; font-weight: 700; text-align: center; text-decoration: none; }
.button:hover { background: var(--red-hover); }
.button:focus-visible { outline-color: var(--red-hover); }
.secondary { border-color: #d1cfd4; background: white; color: var(--ink); }
.secondary:hover { border-color: var(--red); background: var(--pink); color: var(--red-hover); }
.showcase { min-width: 0; }
.showcase img { width: 100%; }

.catalog { padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(3.25rem, 7vw, 6rem); }
.section-intro { margin-bottom: 2rem; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.section-intro p, .contact p { margin-top: .75rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card, .flagship, .detail-grid article { border: 1px solid #c6d4e5; border-radius: 18px; background: #fff; box-shadow: 0 4px 12px #263b5608; }
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.15rem, 2vw, 1.6rem); }
.card:hover, .card:focus-within,
.flagship:hover, .flagship:focus-within,
.detail-grid article:hover, .detail-grid article:focus-within { border-color: #9caec4; box-shadow: 0 6px 18px #263b5614; }
.tile { display: grid; place-items: center; min-width: 49px; min-height: 44px; padding-inline: .45rem; border-radius: 6px; background: var(--pink); color: var(--red-hover); font-size: .875rem; font-weight: 800; }
.card h3 { margin-top: 1rem; font-size: 1.3rem; letter-spacing: -.025em; }
.card p { margin-block: .65rem 1rem; color: var(--muted); }
.card a { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; margin-top: auto; color: var(--red-hover); font-weight: 700; }
.card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card a:hover { color: var(--ink); }
.product-link-arrow { margin-inline-start: .45em; font-size: .95em; font-weight: 500; }

.contact { padding-block: clamp(2rem, 5vw, 4rem); background: var(--soft); border-block: 1px solid var(--line); }
.contact-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem; }
.contact[data-product-contact] { padding-block: clamp(.85rem, 2vw, 1.6rem); }
.contact[data-product-contact] .contact-inner { gap: .65rem 1.25rem; }
.contact[data-product-contact] p { margin-top: .35rem; }
.contact[data-product-contact] .button { margin-inline-start: auto; }
@media (max-width: 600px) {
  .contact[data-product-contact] .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact[data-product-contact] .button { margin-inline-start: 0; }
}
.contact h2 { font-size: clamp(1.75rem, 3.25vw, 2.6rem); }
.contact-page-title { display: flex; align-items: center; gap: .7rem; margin-top: 0; font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 720; line-height: 1.15; }
.contact-page-title::before { content: ""; flex: 0 0 4px; height: .82em; border-radius: 4px; background: var(--red); }

@media (max-width: 990px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .wrap { width: min(100% - 32px, 560px); }
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 475px) {
  .grid { grid-template-columns: 1fr; }
  .actions > a { flex: 1 1 100%; }
}

.detail-hero { padding-block: clamp(2rem, 6vw, 5rem); background: radial-gradient(ellipse at top right, var(--pink), #fff 78%); }
.detail-hero .wrap { position: relative; }
.detail-hero h1 { max-width: 18ch; }
.detail-hero .lead { max-width: 60ch; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1rem; color: var(--red-hover); font-weight: 650; }
.back:hover { color: var(--ink); }
.detail-content { padding-block: clamp(2.75rem, 6vw, 5rem); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.detail-grid article { padding: 1.3rem; }
.detail-grid h3 { font-size: 1.375rem; }
.detail-grid p { margin-top: .65rem; color: var(--muted); }
@media (max-width: 740px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.flagship { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 1fr); align-items: center; gap: 2rem; margin-bottom: 1rem; padding: clamp(1.5rem, 4vw, 3rem); border-color: #25456B; background: #25456B; color: #fff; }
.flagship h3 { margin-top: .55rem; font-size: clamp(2rem, 4.5vw, 3.75rem); }
.flagship p:not(.eyebrow) { margin-top: .7rem; color: #e1ebf7; }
.flagship .button { margin-top: 1.2rem; }
.flagship .button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.flagship .button:focus-visible { outline-color: white; }
.flagship-screenshot { width: 100%; height: auto; border: 1px solid #ffffff40; border-radius: 12px; box-shadow: 0 8px 24px #11243c55; }
.flagship h3 span { color: #ff8a92; }
.detail-hero h1 em { color: var(--red); }
@media (max-width: 740px) {
  .flagship { grid-template-columns: 1fr; }
}

.demo-intro { margin-top: .75rem; color: var(--muted); }
#przyklady article { display: flex; flex-direction: column; position: relative; }
#przyklady h3 a { text-decoration: none; }
#przyklady h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
#przyklady article:hover h3 a, #przyklady h3 a:focus-visible { color: var(--red-hover); text-decoration: underline; }
.demo-view { margin-top: auto; border-top: 1rem solid white; padding: 1rem; border-radius: 8px; background: #f1f4f8; color: #1e3856; }
.demo-view p { color: inherit; font-weight: 650; }
.demo-view .demo-label { margin-top: 0; color: #425a75; font-size: .875rem; font-weight: 700; }

.detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.product-image { display: grid; place-items: center; margin: 0; }
.product-image img { width: auto; max-height: 420px; object-fit: contain; }
.product-image-soft-edges img {
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.detail-hero:has(+ .screen-section) { padding-bottom: 0; }
.screen-section { padding-top: clamp(.75rem, 2vw, 1.5rem); scroll-margin-top: 1rem; }
.screen-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.screen-card { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.screen-card:first-child { grid-column: 1 / -1; }
.screen-card img { width: 100%; border-radius: 12px 12px 0 0; }
.screen-card figcaption { padding: .9rem 1rem 1rem; }
.screen-card figcaption p { margin-top: .25rem; color: var(--muted); }
@media (max-width: 740px) {
  .detail-hero-grid, .screen-gallery { grid-template-columns: minmax(0, 1fr); }
}

.screen-gallery.is-carousel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; position: relative; overflow: clip; container-type: inline-size; width: min(100%, 960px); margin-inline: auto; }
.is-carousel .screen-card { grid-area: 1 / 1; width: 62%; justify-self: center; position: relative; border: 0; background: transparent; opacity: 0; visibility: hidden; pointer-events: none; }
.is-carousel .screen-card[data-offset="0"] { visibility: visible; opacity: 1; z-index: 3; pointer-events: auto; }
.is-carousel .screen-card[data-offset="-1"], .is-carousel .screen-card[data-offset="1"] { visibility: visible; opacity: .78; z-index: 2; pointer-events: auto; }
.is-carousel .screen-card[data-offset="-2"], .is-carousel .screen-card[data-offset="2"] { visibility: visible; opacity: .48; z-index: 1; pointer-events: auto; }
.is-carousel .screen-card[data-offset="-1"] { transform: perspective(950px) translateX(-31%) rotateY(24deg) scale(.88); }
.is-carousel .screen-card[data-offset="1"] { transform: perspective(950px) translateX(31%) rotateY(-24deg) scale(.88); }
.is-carousel .screen-card[data-offset="-2"] { transform: perspective(950px) translateX(-55%) rotateY(32deg) scale(.72); }
.is-carousel .screen-card[data-offset="2"] { transform: perspective(950px) translateX(55%) rotateY(-32deg) scale(.72); }
.is-carousel .screen-card figcaption { display: none; }
.is-carousel .screen-card img { aspect-ratio: 1.82; object-fit: contain; border-radius: 12px; background: var(--soft); }
.carousel-controls:not([hidden]) { display: block; margin-top: .35rem; }
.carousel-controls p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.carousel-arrow { position: absolute; z-index: 4; top: calc(31cqw / 1.82); transform: translateY(-50%); display: grid; place-items: center; width: clamp(44px, 7cqw, 60px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: white; color: #343434; box-shadow: 0 3px 14px #17171a36; cursor: pointer; }
.carousel-arrow:hover { background: var(--pink); }
.carousel-arrow::before { content: ""; width: .55rem; height: .55rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.carousel-arrow[data-previous] { left: clamp(.35rem, 2cqw, 1rem); }
.carousel-arrow[data-previous]::before { transform: translateX(2px) rotate(-135deg); }
.carousel-arrow[data-next] { right: clamp(.35rem, 2cqw, 1rem); }
.carousel-arrow[data-next]::before { transform: translateX(-2px) rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
  .is-carousel .screen-card { transition: transform 480ms cubic-bezier(.22, .75, .25, 1), opacity 480ms ease; }
}

.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; }
.carousel-dot { display: grid; place-items: center; width: 25px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a2a6b0; }
.carousel-dot:hover::before { background: #696d78; }
.carousel-dot[aria-current="true"]::before { background: var(--red-hover); }
@media (prefers-reduced-motion: no-preference) {
  .carousel-dot::before { transition: background-color .2s ease; }
}

.api-scope-title { margin-top: 1.75rem; }
.api-scope { padding-inline-start: 1.35rem; color: var(--muted); }
.api-scope li + li { margin-top: .35rem; }
.api-reference h4 { margin: 0; font-size: 1.2rem; }
.api-reference dl { margin: .9rem 0 0; }
.api-reference dt { font-weight: 700; overflow-wrap: anywhere; }
.api-reference dt:not(:first-child) { margin-top: .85rem; }
.api-reference dd { margin: .25rem 0 0; color: var(--muted); }

.mobile-account-image { margin: 1.75rem auto 0; max-width: 520px; }
.mobile-section { padding-top: 0; scroll-margin-top: 1.5rem; }
.detail-grid.mobile-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-qr-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.mobile-qr-card > div { flex: 1 1 12rem; min-width: 0; }
.mobile-qr-card .mobile-qr { width: 132px; }
.store-badge { width: 150px; margin-top: .7rem; }
@media (max-width: 740px) {
  .detail-grid.mobile-downloads { grid-template-columns: minmax(0, 1fr); }
}

#instrukcje code { overflow-wrap: anywhere; }
#instrukcje details { margin-top: .75rem; }
#instrukcje summary { cursor: pointer; font-weight: 650; }

.contact-directory address { margin-top: .65rem; color: var(--muted); font-style: normal; }
.contact-directory a { color: #243c58; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contact-directory a:hover { background: var(--card-section); }
.contact-directory a:focus-visible { outline-color: #34597f; outline-offset: 2px; }
.contact-directory p + h3 { margin-top: 1.25rem; }
@media (min-width: 741px) and (max-width: 990px) {
  .contact-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.screen-zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.screen-card[data-offset="0"] .screen-zoom { cursor: zoom-in; }
.screen-zoom-dialog { width: min(96vw, 1450px); max-height: 94vh; border: 0; border-radius: 12px; padding: clamp(.65rem, 2vw, 1.25rem); background: white; }
.screen-zoom-dialog::backdrop { background: #17171ad9; }
.screen-zoom-dialog form { text-align: right; margin-bottom: .65rem; }
.screen-zoom-dialog form button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font: 1.65rem/1 system-ui, sans-serif; cursor: pointer; }
.screen-zoom-dialog button:hover { background: var(--pink); }
.screen-zoom-stage { position: relative; }
.screen-zoom-stage .carousel-arrow { top: 50%; }
.screen-zoom-dialog img { width: 100%; max-height: 80vh; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .screen-zoom-dialog[open] { animation: zoom-appear 180ms ease-out; }
  @keyframes zoom-appear { from { opacity: .5; } to { opacity: 1; } }
}

.contact-directory a[href^="tel:"], .contact-directory a[href^="mailto:"] { display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; min-height: 38px; padding: .2rem .5rem .2rem .2rem; border-radius: 8px; }
.contact-icon { display: inline-block; flex: 0 0 1.15rem; width: 1.15rem; text-align: center; color: var(--red-hover); text-decoration: none; }
.contact-directory a .contact-icon { display: grid; place-items: center; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; border-radius: 6px; background: #eaf0f7; color: #365777; font-size: .9rem; }
.contact-directory address { position: relative; padding-inline-start: 1.7rem; }
.contact-pin { position: absolute; inset-inline-start: .15rem; top: .24em; width: .78em; height: .78em; border: 2px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.contact-pin::after { content: ""; position: absolute; inset: 25%; border-radius: 50%; background: currentColor; }

.catalog, .detail-content:has(.detail-grid) { position: relative; isolation: isolate; }
.catalog::before, .detail-content:has(.detail-grid)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--card-section); box-shadow: 0 0 0 100vmax var(--card-section); clip-path: inset(0 -100vmax); }
.contact:has(.contact-directory) { background: var(--card-section); }

@media (prefers-reduced-motion: no-preference) {
  .card, .flagship, .detail-grid article { transition: border-color 160ms ease, box-shadow 160ms ease; }
  .contact-directory a { transition: background-color 160ms ease; }
}
