/* ==========================================================================
   Loopcode – arkusz stylów
   Ciemny motyw premium, szeryfowe nagłówki, bez kafelków.
   1. Zmienne  2. Podstawy  3. Typografia  4. Przyciski  5. Nawigacja
   6. Strona główna  7. Sekcje wspólne  8. Blog  9. Artykuł  10. Portfolio
   11. Usługi i kontakt  12. Stopka  13. Dodatki  14. Responsywność
   ========================================================================== */

/* 1. Zmienne ---------------------------------------------------------------- */
:root {
    /* Skala strony na bardzo szerokich ekranach (4K) – zob. koniec pliku */
    --zoom: 1;

    --bg: #070b14;
    --bg-2: #0d1424;
    --bg-3: #131c30;
    --paper: #f6f5f1;
    --ink: #0b1220;
    --ink-muted: #4a5568;
    --text: #eaeef5;
    --muted: #8d99ab;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --line-ink: rgba(11, 18, 32, 0.12);

    /* Kolory z logo */
    --navy: #0b2a55;
    --blue: #2f8fe0;
    --teal: #00b3bb;
    --teal-dark: #00838a;
    --green: #78d878;
    --grad: linear-gradient(100deg, #2f8fe0 0%, #00b3bb 50%, #78d878 100%);

    --display: "Inter Tight", "Inter", -apple-system, "Segoe UI", sans-serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1240px;
    --gutter: 32px;
    --radius: 20px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 84px;
}

/* 2. Podstawy -------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
    margin: 0;
}

::selection {
    background: var(--teal);
    color: var(--bg);
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 3000;
    padding: 10px 18px;
    border-radius: 30px;
    background: var(--text);
    color: var(--bg);
}

.skip-link:focus {
    top: 16px;
}

.d-none {
    display: none !important;
}

/* 3. Typografia ------------------------------------------------------------ */
.display,
.h2,
.h3 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.035em;
    /* Równe linie zamiast jednego słowa w ostatnim wierszu */
    text-wrap: balance;
}

.display {
    font-size: clamp(42px, 6.6vw, 96px);
    line-height: 1;
}

.h2 {
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.06;
}

.h3 {
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.12;
}

/* Akcent: kursywa w gradiencie logo */
.accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.06em;
}

.lead {
    max-width: 620px;
    text-wrap: pretty;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.65;
    color: var(--muted);
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad);
}

.label-num {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* 4. Przyciski ------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 28px;
    border: 1px solid transparent;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn .arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn--primary {
    background: var(--text);
    color: var(--bg);
}

.btn--primary:hover {
    background: var(--teal);
    color: var(--bg);
}

.btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--text);
}

.btn--dark {
    background: var(--ink);
    color: var(--paper);
}

.btn--dark:hover {
    background: var(--teal-dark);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 6px;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.link-arrow > span {
    transition: transform 0.4s var(--ease);
}

.link-arrow:hover {
    border-color: var(--teal);
}

.link-arrow:hover > span {
    transform: translateX(5px);
}

/* 5. Nawigacja ------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Szklane tło na osobnej warstwie: backdrop-filter na samym nagłówku
   „zamknąłby” w nim menu pełnoekranowe (position: fixed) */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 20, 0.86);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.site-header.is-scrolled::before,
.site-header.menu-open::before {
    opacity: 1;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

.site-logo img {
    width: auto;
    height: 38px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.site-nav > ul {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav > ul > li {
    position: relative;
}

.site-nav > ul > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > a.active {
    color: var(--text);
}

.site-nav > ul > li > a.active::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 4px;
    background: var(--grad);
}

.has-submenu > a::after {
    content: " ↓";
    font-size: 11px;
}

.submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: -10px;
    min-width: 260px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(13, 20, 36, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--muted);
    transition: background 0.2s, color 0.2s;
}

.submenu a:hover,
.submenu a.active {
    background: var(--bg-3);
    color: var(--text);
}

.nav-phone {
    font-size: 15px;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-phone:hover {
    color: var(--text);
}

.nav-cta {
    padding: 13px 22px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.menu-toggle .bar {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-toggle .bar:first-child {
    top: 18px;
}

.menu-toggle .bar:nth-child(2) {
    top: 25px;
}

.menu-toggle[aria-expanded="true"] .bar {
    top: 21.5px;
}

.menu-toggle[aria-expanded="true"] .bar:first-child {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    transform: rotate(-45deg);
}

/* 6. Strona główna --------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* vh dzielone przez skalę, bo zoom powiększa też jednostki ekranu */
    min-height: calc(100vh / var(--zoom));
    min-height: calc(100svh / var(--zoom));
    padding: calc(var(--header-h) + 48px) 0 44px;
    overflow: hidden;
    isolation: isolate;
}

/* Zorza w kolorach logo + delikatna siatka */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: aurora 18s ease-in-out infinite alternate;
}

.aurora--1 {
    width: 46vw;
    height: 46vw;
    top: -12vw;
    left: -8vw;
    background: radial-gradient(circle, #2f8fe0 0%, transparent 65%);
}

.aurora--2 {
    width: 40vw;
    height: 40vw;
    top: 4vw;
    right: -10vw;
    background: radial-gradient(circle, #00b3bb 0%, transparent 65%);
    animation-delay: -6s;
}

.aurora--3 {
    width: 34vw;
    height: 34vw;
    bottom: -16vw;
    left: 30vw;
    background: radial-gradient(circle, #78d878 0%, transparent 65%);
    opacity: 0.35;
    animation-delay: -12s;
}

@keyframes aurora {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4vw, 3vw) scale(1.12); }
    100% { transform: translate(-3vw, -2vw) scale(0.95); }
}

/* Poświata podążająca za kursorem */
.hero-spot {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 40%), rgba(0, 179, 187, 0.14), transparent 60%);
    pointer-events: none;
}

/* Grafika w banerze: orbity z kropkami wokół pętli z logo (sam CSS + małe SVG).
   --mx/--my (-1…1) ustawia site.js z pozycji kursora – lekka paralaksa. */
.hero-art {
    position: absolute;
    top: calc(var(--header-h) + 3vh);
    right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    z-index: -1;
    width: min(36vw, 520px);
    aspect-ratio: 1;
    pointer-events: none;
    opacity: 0;
    animation: fade-in 1.6s 0.3s var(--ease) forwards;
}

.hero-art-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -18px), 0);
    transition: transform 1.2s var(--ease);
}

.orbit {
    position: absolute;
    inset: var(--inset);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    animation: spin var(--speed) linear infinite;
}

.orbit--1 { --inset: 0%; --speed: 60s; }
.orbit--2 { --inset: 14%; --speed: 42s; border-style: dashed; border-color: var(--line-strong); animation-direction: reverse; }
.orbit--3 { --inset: 28%; --speed: 28s; }

.orbit-dot {
    position: absolute;
    top: -5px;
    left: calc(50% - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot, var(--teal));
    box-shadow: 0 0 18px 2px var(--dot, var(--teal));
}

.orbit--1 .orbit-dot { --dot: var(--blue); }
.orbit--2 .orbit-dot { --dot: var(--green); top: auto; bottom: -4px; width: 8px; height: 8px; }
.orbit--3 .orbit-dot { --dot: var(--teal); left: -5px; top: calc(50% - 5px); }

.hero-core {
    position: absolute;
    inset: 33%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 70%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 30px 80px rgba(0, 179, 187, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-core svg {
    width: 70%;
    overflow: visible;
}

.loop-path {
    fill: none;
    stroke: url(#loop-grad);
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.85;
}

/* Światełko biegnące po pętli (animateMotion w SVG) */
.loop-spark {
    fill: #fff;
    filter: drop-shadow(0 0 3px #00b3bb) drop-shadow(0 0 6px rgba(0, 179, 187, 0.7));
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes drift {
    from { transform: translate3d(0, -10px, 0) rotate(var(--rot-from, 0deg)); }
    to { transform: translate3d(0, 12px, 0) rotate(var(--rot-to, 0deg)); }
}

.float-shape {
    position: absolute;
    animation: drift var(--speed, 9s) ease-in-out infinite alternate;
}

.float-shape--plus {
    top: 8%;
    left: 4%;
    width: 22px;
    height: 22px;
    --speed: 8s;
    --rot-to: 90deg;
}

.float-shape--plus::before,
.float-shape--plus::after {
    content: "";
    position: absolute;
    inset: 10px 0;
    border-radius: 2px;
    background: var(--teal);
}

.float-shape--plus::after {
    transform: rotate(90deg);
}

.float-shape--square {
    right: 2%;
    bottom: 16%;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(47, 143, 224, 0.08);
    --speed: 11s;
    --rot-from: 12deg;
    --rot-to: 48deg;
}

.float-shape--ring {
    bottom: 4%;
    left: 14%;
    width: 30px;
    height: 30px;
    border: 2px solid var(--green);
    border-radius: 50%;
    opacity: 0.6;
    --speed: 10s;
}

.float-shape--dots {
    top: 4%;
    right: 8%;
    width: 90px;
    height: 60px;
    background-image: radial-gradient(var(--line-strong) 1.5px, transparent 2px);
    background-size: 15px 15px;
    --speed: 13s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 9px 16px 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: var(--muted);
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--green);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    from { transform: scale(0.6); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

.hero-title {
    max-width: 14ch;
}

/* Wjazd linii nagłówka */
.line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.line > span {
    display: inline-block;
    transform: translateY(105%);
    animation: line-up 1.1s var(--ease) forwards;
}

.line:nth-child(2) > span { animation-delay: 0.12s; }
.line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes line-up {
    to { transform: translateY(0); }
}

.hero-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    opacity: 0;
    animation: fade-in 1s 0.5s var(--ease) forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.scroll-hint::after {
    content: "";
    width: 1px;
    height: 40px;
    background: linear-gradient(var(--text), transparent);
    animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
}

/* Duże zdanie o firmie */
.statement {
    font-family: var(--display);
    font-size: clamp(24px, 2.9vw, 42px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.statement .dim {
    color: #4d586b;
}

/* 7. Sekcje wspólne -------------------------------------------------------- */
.section {
    position: relative;
    padding: clamp(64px, 7.5vw, 112px) 0;
}

.section--tight {
    padding: clamp(48px, 5.5vw, 80px) 0;
}

.section--paper {
    background: var(--paper);
    color: var(--ink);
}

.section-head {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
    align-items: end;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head .lead {
    justify-self: end;
}

.split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* Usługi: duże wiersze z numerami */
.rows {
    border-top: 1px solid var(--line);
}

.row-link {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1.1fr 1fr 70px;
    gap: 32px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}

/* Wypełnienie od lewej po najechaniu */
.row-link::before {
    content: "";
    position: absolute;
    inset: 0 -24px;
    z-index: -1;
    border-radius: 16px;
    background: linear-gradient(100deg, rgba(47, 143, 224, 0.12), rgba(0, 179, 187, 0.08), transparent 80%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.row-link:hover::before {
    opacity: 1;
}

.row-num {
    font-size: 14px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.row-title {
    font-family: var(--display);
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    transition: transform 0.6s var(--ease);
}

.row-link:hover .row-title {
    transform: translateX(14px);
}

.row-text {
    color: var(--muted);
    font-size: 16px;
}

.row-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 20px;
    transition: transform 0.6s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}

.row-link:hover .row-arrow {
    transform: rotate(-45deg);
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

/* Proces: numerowana oś */
.steps {
    counter-reset: step;
}

/* Postęp przy przewijaniu (site.js dodaje .is-tracked i ustawia --progress 0…1):
   linia w kolorach logo wypełnia się z góry na dół, kolejne numery się podświetlają */
.steps.is-tracked {
    position: relative;
    padding-left: 34px;
}

.steps.is-tracked::before,
.steps.is-tracked::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    border-radius: 2px;
}

.steps.is-tracked::before {
    background: var(--line);
}

.steps.is-tracked::after {
    background: linear-gradient(var(--blue), var(--teal), var(--green));
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
    transition: transform 0.3s linear;
}

.steps.is-tracked .step-num {
    opacity: 0.25;
    transition: opacity 0.6s var(--ease);
}

.steps.is-tracked .step.is-passed .step-num {
    opacity: 1;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.step:last-child {
    border-bottom: 1px solid var(--line);
}

.step-num {
    font-family: var(--display);
    font-weight: 600;
    font-size: 40px;
    line-height: 0.9;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.step h3 {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 600;
}

.step p {
    color: var(--muted);
}

.sticky {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    align-self: start;
}

/* Technologie */
.tech {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.tech img {
    height: 46px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.tech img:hover {
    opacity: 0.9;
}

/* Wiersze z listą „ptaszków” */
.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    border-top: 1px solid var(--line);
}

.checks li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
}

.checks li::before {
    content: "✓";
    flex-shrink: 0;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* FAQ */
.faq {
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 30px;
    font-weight: 300;
    line-height: 0.8;
    color: var(--teal);
    transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    max-width: 760px;
    padding-bottom: 22px;
    color: var(--muted);
}

/* Cennik: kolumny rozdzielone liniami */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.price {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 32px;
    border-right: 1px solid var(--line);
}

.price:first-child {
    padding-left: 0;
}

.price:last-child {
    padding-right: 0;
    border-right: 0;
}

.price-name {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.03em;
    font-size: 30px;
    line-height: 1;
}

.price-amount {
    font-size: 15px;
    color: var(--muted);
}

.price-amount strong {
    font-size: 40px;
    font-weight: 500;
    color: var(--text);
}

.price-badge {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--grad);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
}

.price ul {
    flex: 1;
}

.price li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--muted);
}

/* Duże wezwanie do kontaktu */
.contact-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.contact-cta .aurora {
    z-index: -1;
    opacity: 0.35;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
}

.contact-title {
    max-width: 14ch;
    margin: 18px 0 24px;
}

.contact-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 32px;
    font-size: 15px;
    color: var(--text);
}

.contact-points li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-points li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.contact-rows a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.contact-rows {
    border-top: 1px solid var(--line);
}

.contact-rows .contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.contact-rows a:hover .contact-value {
    transform: translateX(12px);
}

.contact-rows .contact-kind {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-rows .contact-hint {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.contact-rows .contact-value {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-family: var(--display);
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}

.contact-rows a:hover .contact-value {
    color: var(--teal);
}

.contact-rows .row-arrow {
    width: 52px;
    height: 52px;
}

.contact-rows a:hover .row-arrow {
    transform: rotate(-45deg);
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

/* Nagłówek podstron */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(44px, 6vw, 84px)) 0 clamp(28px, 3.5vw, 48px);
    overflow: hidden;
    isolation: isolate;
}

.page-hero .aurora {
    z-index: -1;
    opacity: 0.3;
}

.page-hero h1 {
    max-width: 20ch;
    margin: 18px 0 20px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumbs a {
    transition: color 0.3s var(--ease);
}

.breadcrumbs a:hover {
    color: var(--text);
}

/* Filtry */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}

.chip {
    padding: 10px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 40px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.chip:hover {
    color: var(--text);
    border-color: var(--text);
}

.chip.is-active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

[data-tags][hidden] {
    display: none !important;
}

/* 8. Blog ----------------------------------------------------------------- */
.post-rows {
    border-top: 1px solid var(--line);
}

.post-row {
    display: grid;
    grid-template-columns: 150px 1fr 52px;
    gap: 28px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.post-row-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-2);
}

.post-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.post-row:hover .post-row-thumb img {
    transform: scale(1.06);
}

.post-row-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    white-space: nowrap;
    font-size: 13px;
    color: var(--muted);
}

.post-row-cat {
    color: var(--teal);
    font-weight: 600;
}

.post-row-title {
    font-family: var(--display);
    font-size: clamp(20px, 1.9vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    transition: color 0.4s var(--ease);
}

.post-row:hover .post-row-title {
    color: var(--teal);
}

.post-row:hover .row-arrow {
    transform: rotate(-45deg);
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

/* Wyróżniony artykuł */
.feature {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: clamp(44px, 5vw, 72px);
}

.media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-2);
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

a:hover > .media img,
.media:hover img {
    transform: scale(1.04);
}

.feature .media {
    aspect-ratio: 16 / 10;
}

.feature-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    font-size: 14px;
    color: var(--muted);
}

.feature h2 {
    margin-bottom: 22px;
}

.feature p {
    margin-bottom: 30px;
    color: var(--muted);
}

/* 9. Artykuł -------------------------------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 3px;
}

.reading-progress span {
    display: block;
    height: 100%;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
}

.article-hero h1 {
    max-width: 24ch;
    font-size: clamp(32px, 4.2vw, 58px);
}

.article-hero .feature-meta {
    margin-top: 6px;
}

.article-cover {
    position: relative;
    max-width: 1100px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    aspect-ratio: 16 / 9;
}

.article-paper {
    padding-top: clamp(48px, 6vw, 80px);
}

.article-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 700px);
    justify-content: center;
    gap: 80px;
}

.article-toc {
    position: sticky;
    top: calc(var(--header-h) + 30px);
}

.article-toc-title {
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.article-toc ol {
    border-left: 1px solid var(--line-ink);
}

.article-toc a {
    display: block;
    margin-left: -1px;
    padding: 8px 0 8px 18px;
    border-left: 1px solid transparent;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-muted);
    transition: color 0.3s, border-color 0.3s;
}

.article-toc a:hover,
.article-toc a.is-active {
    border-left-color: var(--teal-dark);
    color: var(--ink);
}

.prose {
    font-size: 19px;
    line-height: 1.8;
    color: #1d2533;
}

.prose p,
.prose ul,
.prose ol {
    margin-bottom: 1.4em;
}

.prose .article-lead p {
    font-size: clamp(20px, 1.8vw, 23px);
    font-weight: 500;
    line-height: 1.6;
    color: var(--ink);
}

.prose h3,
.prose h4 {
    scroll-margin-top: calc(var(--header-h) + 30px);
    color: var(--ink);
}

.prose h3 {
    margin: 2em 0 0.6em;
    font-family: var(--display);
    font-size: clamp(25px, 2.3vw, 31px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.prose h4 {
    margin: 1.8em 0 0.5em;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
}

.prose strong {
    font-weight: 600;
    color: var(--ink);
}

.prose a {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ol {
    list-style: decimal;
}

.prose ul {
    list-style: disc;
}

.prose li {
    margin: 0 0 0.7em 1.2em;
    padding-left: 0.4em;
}

.prose ol > li::marker {
    font-weight: 600;
    color: var(--teal-dark);
}

.prose ul > li::marker {
    color: var(--teal-dark);
}

.prose li p {
    margin: 0.3em 0 0;
}

.prose img {
    margin: 1.4em 0;
    border-radius: 14px;
}

.prose blockquote {
    margin: 0 0 1.4em;
    padding-left: 22px;
    border-left: 3px solid var(--teal);
    font-style: italic;
    color: var(--ink);
}

.prose code {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--line-ink);
    font-size: 0.85em;
}

.prose figcaption {
    margin-top: -0.8em;
    font-size: 15px;
    color: var(--ink-muted);
}

/* Podgląd nieopublikowanego artykułu (widzi go tylko zalogowany administrator) */
.preview-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 1300;
    padding: 12px 20px;
    border: 1px solid rgba(240, 180, 76, 0.6);
    border-radius: 40px;
    background: #2a2210;
    color: #f6dfb0;
    font-size: 14px;
    transform: translateX(-50%);
}

.preview-bar a {
    margin-left: 8px;
    color: #fff;
    text-decoration: underline;
}

/* Regulamin i polityka: numerowane listy zagnieżdżone */
.prose ol.policy {
    list-style: decimal;
}

.prose ol.policy h4 {
    margin-top: 1.2em;
}

.article-cta {
    margin-top: 56px;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.article-cta .aurora {
    z-index: -1;
    opacity: 0.45;
}

.article-cta h2 {
    margin: 16px 0 12px;
    font-family: var(--display);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.article-cta p {
    margin-bottom: 28px;
    color: var(--muted);
}

/* Przyciski w ramce stoją w treści artykułu – nie mogą dziedziczyć wyglądu linków z .prose */
.prose .article-cta .btn {
    text-decoration: none;
}

.prose .article-cta .btn--primary {
    color: var(--bg);
}

.prose .article-cta .btn--ghost {
    color: var(--text);
}

/* 10. Portfolio ------------------------------------------------------------ */
.showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
    padding: clamp(36px, 4vw, 60px) 0;
    border-top: 1px solid var(--line);
}

.showcase:nth-of-type(even) {
    grid-template-columns: 1fr 1.5fr;
}

.showcase:nth-of-type(even) .showcase-media {
    order: 2;
}

.showcase-media {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-2);
    transition: transform 0.8s var(--ease), border-color 0.4s;
}

a.showcase-media:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
}

.browser-bar {
    display: flex;
    gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line-strong);
}

.showcase-media .media {
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.showcase-media .media img {
    object-position: top;
}

.showcase-type {
    margin-bottom: 12px;
}

.showcase h2,
.showcase h3 {
    margin-bottom: 12px;
}

.showcase p {
    margin-bottom: 20px;
    color: var(--muted);
}

.showcase-scope {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--muted);
}

.showcase-scope li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.showcase-scope li::before {
    content: "— ";
    color: var(--teal);
}

/* Strona realizacji */
.case-head {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: end;
}

.case-head h1 {
    margin-bottom: 0;
}

.case-cover {
    max-width: 1240px;
    margin: 0 auto;
}

.case-cover .media {
    aspect-ratio: auto;
    border-radius: 0;
}

.gallery {
    columns: 3;
    column-gap: 20px;
}

.gallery a {
    display: block;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 16px;
    break-inside: avoid;
    cursor: zoom-in;
}

.gallery img {
    width: 100%;
    transition: transform 1s var(--ease);
}

.gallery a:hover img {
    transform: scale(1.04);
}

.next-link {
    display: block;
    padding: clamp(48px, 6vw, 84px) 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

.next-link .display {
    display: inline-block;
    margin-top: 14px;
    font-size: clamp(36px, 5.4vw, 76px);
    transition: color 0.4s var(--ease), transform 0.8s var(--ease);
}

.next-link:hover .display {
    transform: scale(1.03);
}

.next-link:hover .display {
    color: var(--teal);
}

/* 11. Usługi i kontakt ----------------------------------------------------- */
.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
}

.benefit {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.benefit-num {
    font-size: 14px;
    color: var(--teal);
    font-variant-numeric: tabular-nums;
}

.benefit h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
}

.benefit p {
    color: var(--muted);
}

/* 12. Stopka ------------------------------------------------------------- */
.site-footer {
    position: relative;
    padding-top: 64px;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
}

.footer-grid h4 {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-grid li {
    margin-bottom: 10px;
}

.footer-grid a {
    color: var(--text);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-grid a:hover {
    opacity: 1;
}

.footer-about p {
    max-width: 340px;
    margin: 20px 0 26px;
    color: var(--muted);
}

.footer-about img {
    height: 36px;
    width: auto;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.3s, color 0.3s;
}

.socials a:hover {
    background: var(--text);
    color: var(--bg);
}

/* Ogromny napis „loopcode” */
.footer-wordmark {
    margin: 48px 0 -0.16em;
    font-family: var(--display);
    font-size: calc(21vw / var(--zoom));
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.06em;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(234, 238, 245, 0.22), rgba(234, 238, 245, 0.02));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.footer-bottom a {
    transition: color 0.3s var(--ease);
}

.footer-bottom a:hover {
    color: var(--text);
}

/* 13. Dodatki ------------------------------------------------------------ */
/* Pojawianie się przy przewijaniu (tylko gdy działa JS) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Dekoracje sekcji: lekkie figury w tle (pierścień, kropki, plus, kwadrat).
   Unoszą się powoli (transform), a przy przewijaniu przesuwają o --shift (translate, ustawia site.js). */
.section:has(> .deco) {
    isolation: isolate;
}

.deco {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.deco > span {
    position: absolute;
    display: block;
    translate: 0 calc(var(--shift, 0px) * var(--depth, 1));
    animation: drift var(--speed, 12s) ease-in-out infinite alternate;
}

.deco-ring {
    width: var(--size, 320px);
    aspect-ratio: 1;
    padding: 1px;
    border-radius: 50%;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0.28;
    --speed: 16s;
}

.deco-dots {
    width: 200px;
    height: 140px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 2px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    --speed: 18s;
    --depth: 0.6;
}

.deco-plus {
    width: 26px;
    height: 26px;
    opacity: 0.7;
    --speed: 9s;
    --rot-to: 90deg;
    --depth: 1.6;
}

.deco-plus::before,
.deco-plus::after {
    content: "";
    position: absolute;
    inset: 12px 0;
    border-radius: 2px;
    background: var(--teal);
}

.deco-plus::after {
    transform: rotate(90deg);
}

.deco-square {
    width: 70px;
    height: 70px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 143, 224, 0.12), rgba(120, 216, 120, 0.04));
    --speed: 14s;
    --rot-from: 8deg;
    --rot-to: 52deg;
    --depth: 1.3;
}

/* Rozmieszczenie w poszczególnych sekcjach */
#o-nas .deco-ring { --size: 420px; right: -120px; bottom: -150px; opacity: 0.35; }
#o-nas .deco-dots { left: 0; bottom: 8%; }
#o-nas .deco-plus { right: 34%; top: 10%; }

#uslugi .deco-square { right: 4%; top: 6%; }
#uslugi .deco-plus { left: 3%; bottom: 10%; --rot-from: 45deg; --rot-to: 135deg; }

#proces .deco-dots { left: 2%; bottom: 12%; }
#proces .deco-ring { --size: 240px; left: -110px; top: 16%; }

#blog .deco-square { left: 40%; top: 26%; --depth: 0.6; }
#blog .deco-dots { right: 0; top: 4%; }

.contact-cta .deco-ring { --size: 520px; right: -180px; top: -200px; opacity: 0.22; }
.contact-cta .deco-plus { left: 46%; bottom: 14%; }

/* Nagłówki podstron: pierścień i siatka kropek bez dodatkowego HTML */
.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    animation: drift 16s ease-in-out infinite alternate;
}

.page-hero::before {
    top: calc(var(--header-h) - 40px);
    right: max(-120px, calc((100% - var(--container)) / 2 - 160px));
    width: 380px;
    aspect-ratio: 1;
    padding: 1px;
    border-radius: 50%;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0.3;
}

.page-hero::after {
    right: max(var(--gutter), calc((100% - var(--container)) / 2 + 120px));
    bottom: 18%;
    width: 180px;
    height: 120px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1.5px, transparent 2px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    animation-duration: 20s;
    animation-delay: -6s;
}

/* Baner cookies */
.cookies {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1200;
    max-width: 420px;
    padding: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(13, 20, 36, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    font-size: 14px;
    color: var(--muted);
}

.cookies p {
    margin-bottom: 16px;
}

.cookies a {
    color: var(--text);
    text-decoration: underline;
}

.cookies .btn {
    padding: 12px 20px;
    font-size: 14px;
}

/* Pasek „Zadzwoń / WhatsApp” na telefonach */
.mobile-bar {
    display: none;
}

/* Podgląd zdjęć */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    background: rgba(4, 7, 13, 0.94);
}

.lightbox[hidden],
.lightbox button[hidden] {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.lightbox button {
    position: absolute;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close {
    top: 18px;
    right: 26px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

body.lightbox-open,
body.menu-locked {
    overflow: hidden;
}

/* Otwarte menu nie może być zasłonięte banerem cookies */
body.menu-locked .cookies {
    visibility: hidden;
}

/* Animacje wyłączone w systemie – szanujemy to */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .aurora,
    .pulse::after,
    .scroll-hint::after,
    .orbit,
    .float-shape,
    .deco > span,
    .page-hero::before,
    .page-hero::after {
        animation: none;
    }

    .hero-art {
        animation: none;
        opacity: 1;
    }

    .hero-art-inner {
        transform: none;
        transition: none;
    }

    .loop-spark {
        display: none;
    }

    .line > span {
        animation: none;
        transform: none;
    }

    .hero-bottom {
        animation: none;
        opacity: 1;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Bez przesuwania i skalowania – zostaje tylko zmiana koloru */
    .row-link:hover .row-title,
    .contact-rows a:hover .contact-value,
    .link-arrow:hover > span,
    .btn:hover .arrow,
    .media img,
    .gallery img,
    .post-row-thumb img,
    a.showcase-media:hover,
    .next-link:hover .display {
        transform: none !important;
    }
}

/* 14. Responsywność -------------------------------------------------------- */
@media (max-width: 1100px) {
    .nav-phone {
        display: none;
    }

    .row-link {
        grid-template-columns: 60px 1fr 60px;
    }

    .row-link .row-text {
        grid-column: 2;
        grid-row: 2;
    }

    .row-link .row-arrow {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 991px) {
    /* Grafika banera nad tekstem, w pustej górnej części ekranu */
    .hero-art {
        top: calc(var(--header-h) + 2vh);
        right: 50%;
        width: min(64vw, 400px);
        translate: 50% 0;
    }

    .deco-ring {
        --size: 260px !important;
    }

    #uslugi .deco-square,
    #blog .deco-square {
        display: none;
    }

    .page-hero::before {
        width: 240px;
        right: -90px;
    }

    .page-hero::after {
        display: none;
    }

    :root {
        --gutter: 22px;
        --header-h: 72px;
    }

    .menu-toggle {
        display: block;
    }

    /* Menu pełnoekranowe */
    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding: 30px var(--gutter) 40px;
        background: var(--bg);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
    }

    .site-header.menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav > ul > li > a {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--display);
        font-weight: 600;
        letter-spacing: -0.03em;
        font-size: 30px;
        line-height: 1.1;
        color: var(--text);
    }

    .site-nav > ul > li > a.active::after,
    .has-submenu > a::after {
        display: none;
    }

    .submenu {
        position: static;
        min-width: 0;
        padding: 6px 0 10px;
        border: 0;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .submenu a {
        padding: 10px 0 10px 18px;
        font-size: 17px;
    }

    .nav-phone {
        display: block;
        font-size: 18px;
    }

    .nav-cta {
        justify-content: center;
        padding: 18px;
        font-size: 16px;
    }

    .section-head,
    .split,
    .case-head,
    .feature,
    .showcase,
    .showcase:nth-of-type(even),
    .benefits,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .showcase:nth-of-type(even) .showcase-media {
        order: 0;
    }

    .section-head .lead {
        justify-self: start;
    }

    .sticky {
        position: static;
    }

    .post-row {
        grid-template-columns: 96px 1fr 44px;
        gap: 16px;
    }

    .post-row .row-arrow {
        width: 44px;
        height: 44px;
    }

    .pricing {
        grid-template-columns: 1fr;
    }

    .price,
    .price:first-child,
    .price:last-child {
        padding: 36px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .article-toc {
        position: static;
        margin-bottom: 44px;
        padding: 24px;
        border-radius: 16px;
        background: rgba(11, 18, 32, 0.05);
    }

    .article-cover {
        margin: 0 var(--gutter) 36px;
    }

    .gallery {
        columns: 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-rows a {
        gap: 20px;
    }

    .footer-grid {
        gap: 36px;
    }
}

@media (max-width: 640px) {
    /* Na telefonie grafika tylko wystaje z prawego górnego rogu, żeby nie przeszkadzać w czytaniu */
    .hero-art {
        top: calc(var(--header-h) - 20px);
        right: -90px;
        width: 280px;
        translate: none;
    }

    .hero-art-inner {
        opacity: 0.45;
    }

    body {
        font-size: 16px;
    }

    /* Dół zostawia miejsce na pasek „Zadzwoń / WhatsApp” */
    .hero {
        padding: calc(var(--header-h) + 32px) 0 96px;
    }

    .row-link {
        grid-template-columns: 1fr 52px;
        gap: 10px 16px;
        padding: 32px 0;
    }

    .row-link .row-num {
        grid-column: 1;
        grid-row: 1;
    }

    .row-link .row-title {
        grid-column: 1;
        grid-row: 2;
    }

    .row-link .row-text {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .row-link .row-arrow {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 48px;
        height: 48px;
    }

    .step {
        grid-template-columns: 64px 1fr;
    }

    .step-num {
        font-size: 40px;
    }

    .checks {
        grid-template-columns: 1fr;
    }

    .benefit {
        grid-template-columns: 44px 1fr;
    }

    .prose {
        font-size: 17px;
    }

    .article-cta {
        padding: 32px 24px;
    }

    .gallery {
        columns: 1;
    }

    .cookies {
        left: 12px;
        right: 12px;
        bottom: 70px;
        max-width: none;
    }

    /* Pasek szybkiego kontaktu */
    .mobile-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 900;
        display: flex;
        gap: 8px;
        padding: 6px;
        border: 1px solid var(--line-strong);
        border-radius: 40px;
        background: rgba(13, 20, 36, 0.85);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }

    .mobile-bar a {
        flex: 1;
        padding: 13px;
        border-radius: 30px;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
    }

    .mobile-bar a:first-child {
        background: var(--text);
        color: var(--bg);
    }

    .mobile-bar a:last-child {
        background: #128c4a;
        color: #fff;
    }

    .site-footer {
        padding-bottom: 80px;
    }
}

/* Nagłówki podstron – nieco mniejsze niż na stronie głównej */
.page-hero .display {
    font-size: clamp(38px, 5.4vw, 80px);
}

/* 15. Bardzo szerokie ekrany (monitory 4K) -------------------------------
   Projekt jest pod ok. 1900 px szerokości. Na szerszych ekranach powiększamy
   całą stronę proporcjonalnie, żeby nie była mała i ściśnięta na środku. */
@media (min-width: 2200px) {
    :root {
        --zoom: 1.3;
    }
}

@media (min-width: 2800px) {
    :root {
        --zoom: 1.5;
    }
}

@media (min-width: 3400px) {
    :root {
        --zoom: 1.9;
    }
}

html {
    zoom: var(--zoom);
}
