/* Autoryzowany partner Sony — wspólna baza obu kierunków (prefix ap-) */
@font-face {
  font-family: 'AP Inter';
  src: url(fonts/inter-latin-ext-opsz-normal.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'AP Inter';
  src: url(fonts/inter-latin-opsz-normal.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* Inter 4 z osią rozmiaru optycznego: duże nagłówki automatycznie dostają kształty Inter Display, tekst zostaje w wersji tekstowej */
body {
  margin: 0; font-family: 'AP Inter', -apple-system, 'Segoe UI', sans-serif; font-optical-sizing: auto;
  background: var(--bg); color: var(--ink); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-wrap { width: 100%; max-width: 1376px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* pas „propozycja wyglądu” */
.ap-strip {
  position: relative; z-index: 60; display: flex; gap: 12px 24px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 9px 20px; font-size: 13px; line-height: 1.35; text-align: center;
  background: var(--strip-bg); color: var(--strip-ink);
}
.ap-strip strong { font-weight: 700; }
.ap-strip a { font-weight: 600; text-underline-offset: 3px; }

/* header */
.ap-header { position: sticky; top: 0; z-index: 50; transition: background-color .35s ease, box-shadow .35s ease; }
.ap-header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.ap-logo { width: 122px; height: 21px; color: var(--logo); }
.ap-logo svg, .ap-logo img { width: 100%; height: 100%; }
.ap-header-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; transition: background-color .2s, color .2s, transform .2s;
}
.ap-header-link svg { width: 16px; height: 16px; transition: transform .2s; }
.ap-header-link:hover svg { transform: translate(2px, -2px); }

/* przyciski */
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  padding: 14px 26px; border-radius: 999px; font: 600 16px/1.2 'AP Inter', sans-serif; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ap-btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.ap-btn:hover { transform: translateY(-2px); }
.ap-btn:hover svg { transform: translateX(3px); }
.ap-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.ap-link svg { width: 16px; height: 16px; transition: transform .2s; }
.ap-link:hover svg { transform: translateX(3px); }
.ap-btn:focus-visible, .ap-link:focus-visible, .ap-header-link:focus-visible, .ap-partner:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 4px;
}

/* ramka AF (nad obiektywem) */
.ap-af { position: absolute; left: 6.5%; top: 47%; width: 40%; height: 41.3%; pointer-events: none; }
.ap-af i { position: absolute; width: 20%; height: 20%; border: 0 solid currentColor; }
.ap-af i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.ap-af i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.ap-af i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.ap-af i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
/* karuzela partnerów */
.ap-marquee { overflow: hidden; position: relative; }
.ap-marquee-track { display: flex; width: max-content; animation: ap-marquee var(--marquee-time, 60s) linear infinite; }
.ap-marquee:hover .ap-marquee-track, .ap-marquee:focus-within .ap-marquee-track { animation-play-state: paused; }
.ap-marquee-group { display: flex; align-items: center; flex: none; }
.ap-marquee--rev .ap-marquee-track { animation-direction: reverse; }
@keyframes ap-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* reveal */
.ap-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.ap-reveal.is-in { opacity: 1; transform: none; }
.ap-d1 { transition-delay: .08s; } .ap-d2 { transition-delay: .16s; } .ap-d3 { transition-delay: .24s; } .ap-d4 { transition-delay: .32s; }

/* przełącznik kierunków */
.ap-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; white-space: nowrap; display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(18,16,20,.86); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.ap-switch a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: rgba(255,255,255,.72); }
.ap-switch a[aria-current="page"] { background: #fff; color: #121014; }
.ap-switch a:hover:not([aria-current]) { color: #fff; }

/* stopka */
.ap-footer { padding: 40px 0 88px; font-size: 14px; }
.ap-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.ap-footer-links { display: flex; gap: 10px 28px; flex-wrap: wrap; align-items: center; }
.ap-footer-links a { text-decoration: none; }
.ap-footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 640px) {
  .ap-header-inner { height: 62px; }
  .ap-logo { width: 96px; height: 17px; }
  .ap-header-link { font-size: 13px; padding: 8px 12px; }
  .ap-btn { width: 100%; }
  .ap-switch { right: auto; left: 50%; transform: translateX(-50%); bottom: 12px; font-size: 12px; }
  .ap-switch a { padding: 7px 12px; }
  .ap-strip { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-reveal { opacity: 1; transform: none; transition: none; }
  .ap-marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
  .ap-marquee-group[aria-hidden="true"] { display: none; }
  .ap-marquee-group { flex-wrap: wrap; }
}

/* opisy pod pudełkiem: dwie wersje w tym samym miejscu, przełączane razem z „Autoryzowany partner Sony / Inne źródło” */
.ap-risks li { grid-template-areas: "v"; }
.ap-rv { grid-area: v; display: grid; gap: 6px; transition: opacity .4s ease, visibility 0s linear .4s; }
.ap-box-sec:not([data-state="other"]) .ap-rv--other, .ap-box-sec[data-state="other"] .ap-rv--auth { opacity: 0; visibility: hidden; }
.ap-box-sec:not([data-state="other"]) .ap-rv--auth, .ap-box-sec[data-state="other"] .ap-rv--other { transition-delay: 0s; }
.ap-box-sec:not([data-state="other"]) .ap-risks li { border-left-color: #80dba4; transition: border-color .4s ease; }

/* tabela: ikona po lewej, tekst w osobnym bloku obok — druga linia zaczyna się pod pierwszą, a nie pod ikoną */
.ap-table td > .ap-yes, .ap-table td > .ap-no { float: left; margin: .18em 12px 0 0; }
.ap-tcell { display: block; overflow: hidden; }
