/* Fonts */

/* jetbrains-mono-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100;
  src: url('./fonts/JetBrainsMono-Thin.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 100;
  src: url('./fonts/JetBrainsMono-Thinitalic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 200;
  src: url('./fonts/JetBrainsMono-ExtraLight.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 200;
  src: url('./fonts/JetBrainsMono-ExtraLightitalic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/JetBrainsMono-Light.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 300;
  src: url('./fonts/JetBrainsMono-Lightitalic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/JetBrainsMono-Regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 400;
  src: url('./fonts/JetBrainsMono-Regularitalic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/JetBrainsMono-Medium.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 500;
  src: url('./fonts/JetBrainsMono-Mediumitalic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/JetBrainsMono-SemiBold.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 600;
  src: url('./fonts/JetBrainsMono-SemiBolditalic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/JetBrainsMono-Bold.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 700;
  src: url('./fonts/JetBrainsMono-Bolditalic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  src: url('./fonts/JetBrainsMono-ExtraBold.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 800;
  src: url('./fonts/JetBrainsMono-ExtraBolditalic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-foreground: #1a1a1a;
    --color-background: #fcfcf9;
    --color-paper: #f3efe6;
    --color-paper-ink: #2c2a25;
    --color-signal: #e53935;
    --color-error-on-dark: #ff6b66; /* czerwony czytelny na ciemnym tle sekcji kontakt */
    --color-border: rgba(26, 26, 26, 0.2);
    --color-muted: #7a7a7a;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    /* Czytelny font do wpisywania tekstu w formularzu (systemowy: Segoe UI na Windows, San Francisco na Apple, Roboto na Androidzie) */
    --font-text: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --max-width: 1440px;
    --color-canvas: oklch(0.96 0 0);
    --background-main-color:black;
    --background-secondary-color: white;
}

body {
    font-family: var(--font-mono);
    color: var(--color-foreground);
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    background-color: var(--background-main-color);
    background-image: 
        radial-gradient(circle, var(--background-secondary-color) 34px, transparent 35px), 
        radial-gradient(circle, var(--background-secondary-color) 22px, transparent 23px), 
        radial-gradient(circle, var(--background-secondary-color) 13px, transparent 14px);
    background-position: 87px 143px, 263px 41px, 31px 199px;
    background-size: 613px 541px, 419px 487px, 293px 257px;
    background-attachment: fixed;
}

/* Nowoczesne przeglądarki – dodają efekt przezroczystości (blask) mniejszym kropkom */
@supports (color: color-mix(in lab, red, red)) {
    body {
        background-image: 
            radial-gradient(circle, var(--background-secondary-color) 6px, transparent 6.5px), 
            radial-gradient(circle, var(--background-secondary-color) 3.5px, transparent 4px), 
            radial-gradient(circle, color-mix(in oklch, var(--background-secondary-color) 75%, transparent) 2px, transparent 2.5px), 
            radial-gradient(circle, color-mix(in oklch, var(--background-secondary-color) 55%, transparent) 1.5px, transparent 2px), 
            radial-gradient(circle, color-mix(in oklch, var(--background-secondary-color) 35%, transparent) 1px, transparent 1.5px);
    }
}

/* Main Container */
.main-container {
    max-width: var(--max-width);
    width: 100%;
    background-color: var(--color-background);
    position: relative;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid var(--color-border);
    font-size: 18px;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo w nagłówku jest nagłówkiem h1 strony: wygląda jak zwykły tekst nagłówka */
.site-title {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
}

/* Tekst niewidoczny na ekranie, ale czytany przez wyszukiwarki i czytniki ekranu */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-signal);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--color-foreground);
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-foreground);
    background: transparent;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background-color: var(--color-foreground);
    color: var(--color-background);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

/* Layout Grid */
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    position: relative;
}

/* Section 01 - Usługi */
.section-services {
    padding: 40px;
    border-bottom: 1px solid var(--color-border);
    grid-column: 1;
    grid-row: 1;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.section-label .signal {
    color: var(--color-signal);
}

.services-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
}

.services-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eye-looking-at-service {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.eye-graphic {
    width: 160px;
    height: auto;
    flex-shrink: 0;
}

.service-rotator {
    position: relative;
    height: 200px;
    width: 100%;
    left: 75px;
    overflow: hidden;
    font-family: var(--font-mono);
    mask-image: linear-gradient(transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(transparent, black 25%, black 75%, transparent);
    z-index: 100;
}

.rotator-item {
    position: absolute;
    left: 0;
    top: 50%;
    transform-origin: left;
    white-space: nowrap;
    transition: all 0.7s ease-out;
    font-weight: 400;
    font-size: 0.9rem;
    background: none;
    border: none;
    font-family: var(--font-mono);
    color: var(--color-foreground);
    cursor: default;
    text-align: left;
    padding: 0;
}

.rotator-item.active {
    font-weight: 800;
    font-size: 1.2rem;
}

.service-description {
    margin-top: 16px;
    max-width: 380px;
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-description h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.service-description p {
    font-size: 14px;
    line-height: 1.6;
    font-family: var(--font-mono);
}

.service-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.service-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease;
    object-fit: contain;
}

.service-image-wrapper img.active {
    opacity: 1;
    transform: scale(1);
}

.service-image-wrapper img:not(.active) {
    opacity: 0;
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--color-foreground);
    color: var(--color-background);
    padding: 4px 8px;
    font-size: 12px;
    font-family: var(--font-mono);
    z-index: 2;
}

/* Style dla całego kontenera sekcji */
.about-us-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 24px; /* Odpowiednik gap-x-6 */
    row-gap: 8px;     /* Odpowiednik gap-y-2 */
    margin-top: 32px; /* Odpowiednik mt-8 */
    padding: 16px 0;  /* Odpowiednik py-4 */
    border-top: 1px solid rgba(26, 26, 26, 0.2); /* Odpowiednik border-foreground/20 */
    border-bottom: 1px solid rgba(26, 26, 26, 0.2);
    font-family: var(--font-mono, monospace); /* Zakładając, że masz to w zmiennych, inaczej wpisz 'monospace' */
    font-size: 14px; /* Odpowiednik text-sm */
}

/* Style dla etykiety po lewej stronie */
.about-us-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #7a7a7a; /* Odpowiednik text-muted-foreground */
    white-space: nowrap;
}

/* Kolor dla sygnału (np. [01.c]) */
.signal-text {
    color: #e53935; /* Odpowiednik text-signal */
}

/* Style dla tekstu opisu */
.about-us-text {
    flex: 1;
    min-width: 0; /* Odpowiednik min-w-0, zapobiega rozpychaniu kontenera przez długi tekst */
    line-height: 1.625; /* Odpowiednik leading-relaxed */
    margin: 0; /* Resetujemy domyślny margines akapitu */
}

/* Section 02 - Proces */
.section-process {
    padding: 40px;
    background-color: var(--color-background);
    /* papier milimetrowy – delikatna siatka jak na mapie */
    background-image:
        linear-gradient(rgba(26, 26, 26, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 26, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: -1px -1px;
    color: var(--color-foreground);
    grid-column: 1;
    grid-row: 2;
}

.section-process .section-label .signal {
    color: var(--color-signal);
}

.section-process h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 500px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.process-svg {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 24px;
    color: var(--color-foreground);
    overflow: visible;
}

/* Animacja kółek wyłączona na próbę – usuń komentarz, aby przywrócić
.process-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: ring-spin 14s linear infinite;
    animation-delay: calc(var(--i) * -2s);
}

.process-ring:nth-of-type(odd) {
    animation-direction: reverse;
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}
*/

/* Sidebar */
.sidebar {
    grid-column: 2;
    grid-row: 1 / 3;
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Sidebar Section 01.b - Efekty */
.sidebar-efekty {
    padding: 40px 32px;
    flex: 1;
}

.benefit-list {
    list-style: none;
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px 12px 12px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    transition: background-color 0.2s, color 0.2s;
    cursor: default;
    gap: 12px;
}

/* .benefit-item:hover {
    background-color: var(--color-foreground);
    color: var(--color-background);
} */

.benefit-item .arrow {
    color: var(--color-signal);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s;
    font-weight: 400;
}

.arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Sidebar Section 02.b - O procesie */
.sidebar-proces {
    padding: 40px 32px;
    flex: 1;
    font-family: var(--font-mono);
}

.sidebar-proces .section-label {
    margin-bottom: 24px;
}

.sidebar-proces h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.sidebar-proces p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.sidebar-proces .cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-foreground);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--color-foreground);
    padding-bottom: 4px;
    transition: color 0.2s;
    font-family: var(--font-mono);
}

.sidebar-proces .cta-link:hover {
    color: var(--color-signal);
}

.sidebar-proces .cta-link .signal {
    color: var(--color-signal);
}

/* Vertical dashed line */
.sidebar-dash-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    pointer-events: none;
    overflow: visible;
}

.sidebar-dash-line line {
    stroke: var(--color-foreground);
    stroke-width: 2;
    stroke-dasharray: 6 8;
    animation: dash 50s linear infinite;
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    grid-column: 1 / -1;
    grid-row: 3;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 160s linear infinite;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
    gap: 24px;
    padding-right: 24px;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 12px;
    white-space: nowrap;
}

.marquee-item .signal {
    color: var(--color-signal);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section 03 - Wycena */
.section-pricing {
    padding: 48px 40px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.section-pricing h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 650px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    background-color: var(--color-background);
    border: 1px solid var(--color-foreground);
    box-shadow: 6px 6px 0 var(--color-foreground);
}

/* .pricing-card:hover {
    border-color: var(--color-foreground);
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 var(--color-foreground);
} */

.pricing-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.pricing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--color-foreground);
    border-radius: 50%;
    color: var(--color-foreground);
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.pricing-icon svg {
    width: 28px;
    height: 28px;
}

.pricing-icon svg.icon-woo {
    width: 36px;
    height: auto;
}

.pricing-index {
    font-size: 11px;
    letter-spacing: 0.2em;
}

.pricing-index .signal {
    color: var(--color-signal);
}

.pricing-tag {
    position: absolute;
    top: -10px;
    left: 20px;
    padding: 2px 8px;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background-color: var(--color-signal);
    color: #ffffff;
}

.pricing-card h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--color-border);
    white-space: nowrap;
}

.pricing-from,
.pricing-currency {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-muted);
}

.pricing-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-muted);
    margin-bottom: 16px;
}

.pricing-features {
    list-style: none;
    margin-top: auto;
}

.pricing-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-signal);
}

.pricing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    font-size: 13px;
    color: var(--color-muted);
}

.pricing-footer .cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-foreground);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--color-foreground);
    padding-bottom: 4px;
    transition: color 0.2s;
    font-family: var(--font-mono);
}


.pricing-footer .cta-link .signal {
    color: var(--color-signal);
}

@media (max-width: 1280px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 24px;
    }
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .section-pricing {
        padding: 32px 20px;
    }

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

/* Section 04 - Dokumenty */
.section-documents {
    padding: 48px 40px;
    border-bottom: 1px solid var(--color-border);
    grid-column: 1 / -1;
    grid-row: 4;
    position: relative;
}

.section-documents h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 650px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

.document-card {
    cursor: default;
    margin: 0;
    --fold: 30px;
    --doc-outline: rgba(26, 26, 26, 0.28);
    /* 1px outline that follows the cut corner too */
    filter:
        drop-shadow(1px 0 0 var(--doc-outline))
        drop-shadow(-1px 0 0 var(--doc-outline))
        drop-shadow(0 1px 0 var(--doc-outline))
        drop-shadow(0 -1px 0 var(--doc-outline));
    transition: transform 0.2s, filter 0.2s;
}

/* .document-card:hover {
    transform: translateY(-4px);
    filter:
        drop-shadow(1px 0 0 var(--color-foreground))
        drop-shadow(-1px 0 0 var(--color-foreground))
        drop-shadow(0 1px 0 var(--color-foreground))
        drop-shadow(0 -1px 0 var(--color-foreground))
        drop-shadow(6px 6px 0 var(--color-foreground));
} */

/* Kartka papieru A4 z zagiętym rogiem */
.document-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.414;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 24px;
    background-color: #ffffff;
    color: var(--color-paper-ink);
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}

/* Zagięty róg */
.document-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: var(--fold);
    height: var(--fold);
    background: linear-gradient(to bottom left, transparent 50%, var(--color-paper) 50%);
    border-left: 1px solid var(--doc-outline);
    border-bottom: 1px solid var(--doc-outline);
    box-sizing: border-box;
}

/* Nagłówek dokumentu (np. OFERTA  Nº 01) */
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-right: calc(var(--fold) - 12px);
    padding-bottom: 10px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-paper-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.doc-number {
    color: var(--color-signal);
    letter-spacing: 0.1em;
}

/* Treść dokumentu */
.doc-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doc-body strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    color: var(--color-foreground);
}

.doc-body p {
    margin: 0;
    color: var(--color-muted);
}

.doc-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-body li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
}

.doc-body li::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-signal);
}

/* Szkic dalszej treści – szare linijki "tekstu" */
.doc-lines {
    flex: 1;
    min-height: 0;
    margin: 24px 0 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='80' preserveAspectRatio='none'%3E%3Cg fill='%23e8e5de'%3E%3Crect y='0' width='100' height='5'/%3E%3Crect y='16' width='94' height='5'/%3E%3Crect y='32' width='98' height='5'/%3E%3Crect y='48' width='58' height='5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 80px;
    background-repeat: repeat-y;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
}

/* Stopka dokumentu */
.doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.doc-footer b {
    color: var(--color-foreground);
}

.doc-sign {
    display: inline-block;
    min-width: 110px;
    padding-top: 22px;
    border-bottom: 1px dashed var(--color-muted);
    font-size: 9px;
    color: var(--color-muted);
    line-height: 1;
    padding-bottom: 4px;
}

.document-card figcaption {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.document-card figcaption .signal {
    color: var(--color-signal);
}

/* Section 05 - Kontakt */
.section-contact {
    padding: 80px 40px;
    background-color: var(--color-foreground);
    color: var(--color-background);
    grid-column: 1 / -1;
    grid-row: 5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info {
    font-family: var(--font-mono);
}

.contact-info .section-label {
    color: rgba(252, 252, 249, 0.6);
}

.contact-info .section-label .signal {
    color: var(--color-signal);
}

.contact-info h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.contact-info > p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 400px;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.2rem;
}

.contact-links a {
    color: var(--color-background);
    text-decoration: none;
    opacity: 0.9;
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: var(--font-mono);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(252, 252, 249, 0.4);
    padding: 8px 0;
    color: var(--color-background);
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s;
}

.form-group select option,
.form-group select option[value=""],
.form-group select option:checked {
    background-color: var(--color-foreground) !important;
    color: var(--color-background) !important;
}

/* Select — spójny z input/textarea */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(252, 252, 249, 0.4);
    border-radius: 0;
    padding: 8px 28px 8px 0;
    color: var(--color-background);
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    /* własna strzałka w kolorze tekstu */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fcfcf9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.form-group select:focus {
    border-bottom-color: var(--color-background);
}

/* Placeholder (pusta opcja) — przygaszony jak label */
.form-group select:invalid,
.form-group select option[value=""] {
    color: rgba(252, 252, 249, 0.5);
}

/* Lista rozwijana — ciemne tło, jasny tekst */
.form-group select option {
    background-color: var(--color-foreground);
    color: var(--color-background);
    font-family: var(--font-text);
    padding: 8px;
}

/* Zaznaczona opcja w dropdownie */
.form-group select option:checked,
.form-group select option:hover {
    background-color: var(--color-background);
    color: var(--color-foreground);
}

/* Firefox — kolor tekstu w rozwiniętej liście */
.form-group select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--color-background);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-background);
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit-btn {
    align-self: flex-start;
    border: 1px solid var(--color-background);
    background: transparent;
    color: var(--color-background);
    padding: 12px 32px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background-color: var(--color-background);
    color: var(--color-foreground);
}

.contact-footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid rgba(252, 252, 249, 0.2);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    opacity: 0.6;
}

#status { 
	margin-top: 1rem; 
}

#status.error { 
	color: var(--color-error-on-dark); 
}

/* Błędy pól formularza */
.field-error {
    color: var(--color-error-on-dark);
    font-size: 12px;
    line-height: 1.4;
    margin: 6px 0 0;
}

.field-error:empty {
    display: none;
}

/* Licznik znaków pod opisem */
.char-counter {
    font-size: 12px;
    opacity: 0.6;
    text-align: right;
    margin: 6px 0 0;
}

.char-counter.over {
    color: var(--color-error-on-dark);
    opacity: 1;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
    border-bottom-color: var(--color-error-on-dark);
}

.form-group textarea[aria-invalid="true"] {
    border-right-color: var(--color-error-on-dark);
}

.form-group input::placeholder {
    color: rgba(252, 252, 249, 0.35);
}

#status.ok { 
	color: white; 
}

/* Banner cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookie-banner p {
    margin: 0;
    flex: 1 1 300px;
}

#cookie-banner a {
    color: #7ec8ff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

#accept-all {
    background: #2e7d32;
    color: #fff;
}

#accept-all:hover {
    background: #256428;
}

#accept-necessary {
    background: #444;
    color: #fff;
    border: 1px solid #777;
}

#accept-necessary:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 1280px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-column: 1;
        grid-row: auto;
        border-left: none;
        border-top: 1px solid var(--color-border);
    }

    .sidebar-efekty {
        border-bottom: 1px solid var(--color-border);
    }

    .services-layout {
        grid-template-columns: 1fr;
    }

    .eye-graphic {
        width: 120px;
    }

    .service-rotator {
        height: 180px;
    }

    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .header-right .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    /* --- Usługi na telefonie: obraz → poziome podpisy → opis, bez lornetki --- */
    .services-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .services-left {
        display: contents;
    }

    /* Lornetka obok podpisów: [lornetka] AKTYWNY następny */
    .eye-looking-at-service {
        order: 2;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
        padding: 8px 0;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }

    .eye-graphic {
        width: 72px;
        flex-shrink: 0;
    }

    .eye-graphic svg {
        width: 100%;
        height: auto;
        display: block;
    }

    .service-image-wrapper {
        order: 1;
        width: 100%;
    }

    .image-badge {
        display: none;
    }

    .service-rotator {
        flex: 1;
        min-width: 0;
        left: 0;
        height: 56px;
        mask-image: linear-gradient(to right, black 80%, transparent);
        -webkit-mask-image: linear-gradient(to right, black 80%, transparent);
    }

    .rotator-item {
        left: 0;
        transform-origin: left center;
    }

    .service-description {
        order: 3;
        margin-top: 24px;
    }

    /* "O nas" – etykieta nad tekstem zamiast w wąskiej kolumnie obok */
    .about-us-banner {
        flex-direction: column;
    }

    /* Większe podpisy na mapie procesu (SVG skaluje się w dół na telefonie) */
    .process-svg {
        overflow: visible;
        margin-top: 40px;
    }

    .process-svg text {
        font-size: 34px;
        transform: translateY(-8px);
    }

    /* podpis SEO jest pod kółkiem – odsuń go w dół */
    .process-svg text[y="408"] {
        transform: translateY(12px);
    }

    /* Sidebar znika na telefonie */
    .sidebar {
        display: none;
    }

    .site-header {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .status-badge {
        display: none;
    }

    .section-services {
        padding: 24px 20px;
    }

    .section-process {
        padding: 24px 20px;
    }

    .sidebar-efekty,
    .sidebar-proces {
        padding: 24px 20px;
    }

    .section-documents {
        padding: 32px 20px;
    }

    .section-contact {
        padding: 48px 20px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Dokumenty na telefonie: bez proporcji A4, krótsze kartki */
    .document-placeholder {
        aspect-ratio: auto;
        padding: 24px 20px 16px;
        --fold: 24px;
    }

    .document-card {
        --fold: 24px;
    }

    .doc-header {
        margin-bottom: 16px;
    }

    .doc-body {
        gap: 10px;
    }

    .doc-lines {
        flex: none;
        height: 40px;
        margin: 16px 0 12px;
    }

    .marquee-container {
        font-size: 12px;
    }

    .service-description h2 {
        font-size: 1.4rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .crosshair-bottom-left,
    .crosshair-bottom-right {
        display: none;
    }
}

/* ==========================================================================
   Scrollbary
   Chrome/Edge/Safari: pseudo-elementy ::-webkit-scrollbar (pełna kontrola wyglądu).
   Firefox: standardowe scrollbar-width / scrollbar-color (tylko kolory i grubość).
   Standardowe właściwości są w @supports, bo w nowym Chrome wyłączyłyby
   style ::-webkit-scrollbar.
   ========================================================================== */

/* Cała strona: ciemny tor jak tło strony, jasny kwadratowy suwak, czerwony po najechaniu */
html::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html::-webkit-scrollbar-track {
    background: var(--background-main-color);
}

html::-webkit-scrollbar-thumb {
    background-color: rgba(252, 252, 249, 0.45);
    border: 3px solid var(--background-main-color); /* odstęp od krawędzi toru */
    border-radius: 0;
}

html::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-signal);
}

html::-webkit-scrollbar-corner {
    background: var(--background-main-color);
}

/* Pole opisu w sekcji kontakt: cienki jasny suwak na ciemnym tle, bez widocznego toru */
.form-group textarea::-webkit-scrollbar {
    width: 6px;
}

.form-group textarea::-webkit-scrollbar-track {
    background: transparent;
}

.form-group textarea::-webkit-scrollbar-thumb {
    background-color: rgba(252, 252, 249, 0.35);
    border-radius: 0;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
    background-color: rgba(252, 252, 249, 0.7);
}

/* Firefox */
@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-width: auto;
        scrollbar-color: rgba(252, 252, 249, 0.45) var(--background-main-color);
    }

    .form-group textarea {
        scrollbar-width: thin;
        scrollbar-color: rgba(252, 252, 249, 0.35) transparent;
    }
}


/* ==========================================================================
   Podstrony dokumentów (regulamin, polityka prywatności) z podglądem PDF
   ========================================================================== */
.doc-logo {
    color: inherit;
    text-decoration: none;
}

.doc-section {
    padding: 48px 40px 80px;
}

.doc-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    max-width: 900px;
    margin: 0 auto 24px;
}

.doc-head h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0;
}

.doc-download {
    color: var(--color-foreground);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.doc-download:hover {
    border-bottom-color: var(--color-signal);
}

.doc-download .signal {
    color: var(--color-signal);
}

.pdf-viewer {
    max-width: 900px;
    margin: 0 auto;
}

.pdf-pages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Jedna strona PDF: biała kartka z cienką ramką, jak na reszcie strony */
.pdf-page {
    position: relative;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 0 1px var(--color-border), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pdf-page canvas {
    display: block;
}

.pdf-status {
    font-size: 14px;
    color: var(--color-muted);
    text-align: center;
    padding: 48px 0;
    margin: 0;
}

.pdf-status a {
    color: var(--color-foreground);
}

.pdf-status--error {
    color: var(--color-signal);
}

@media (max-width: 640px) {
    .doc-section {
        padding: 24px 12px 48px;
    }

    .pdf-pages {
        gap: 10px;
    }
}

/* Linki w stopce sekcji kontakt */
.contact-footer a {
    color: inherit;
    text-decoration: none;
}

.contact-footer a:hover {
    text-decoration: underline;
}

/* Warstwa tekstu PDF.js (z pdfjs-dist/web/pdf_viewer.css): niewidoczny tekst
   nad obrazem strony, dzięki któremu da się go zaznaczać i kopiować */
.textLayer {
    position: absolute;
    text-align: initial;
    inset: 0;
    overflow: clip;
    opacity: 1;
    line-height: 1;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
    forced-color-adjust: none;
    transform-origin: 0 0;
    caret-color: CanvasText;
    z-index: 0;
}

.textLayer :is(span, br) {
    color: transparent;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
}

.textLayer > :not(.markedContent),
.textLayer .markedContent span:not(.markedContent) {
    z-index: 1;
}

.textLayer span.markedContent {
    top: 0;
    height: 0;
}

.textLayer span[role="img"] {
    user-select: none;
    cursor: default;
}

.textLayer ::selection {
    background: rgba(229, 57, 53, 0.25);
}

.textLayer br::selection {
    background: transparent;
}

.textLayer .endOfContent {
    display: block;
    position: absolute;
    inset: 100% 0 0;
    z-index: 0;
    cursor: default;
    user-select: none;
}

.textLayer.selecting .endOfContent {
    top: 0;
}

/* Na podstronach dokumentów link "strona główna" zostaje widoczny także na telefonie
   (na stronie głównej menu w nagłówku jest na telefonie ukryte) */
.doc-page .header-right .nav-links {
    display: flex;
}


/* ==========================================================================
   Strona błędu 404 (404.html)
   ========================================================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section-error {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: center;
    gap: 64px;
    padding: 80px 40px;
}

.error-code {
    font-size: clamp(6rem, 18vw, 13rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

.error-code .signal {
    color: var(--color-signal);
}

.section-error h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 650px;
    margin-bottom: 16px;
}

.error-text {
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-muted);
    max-width: 560px;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}

.error-actions .cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-foreground);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--color-foreground);
    padding-bottom: 4px;
    transition: color 0.2s;
}

.error-actions .cta-link:hover {
    color: var(--color-signal);
}

.error-actions .cta-link .signal {
    color: var(--color-signal);
}

.error-secondary-link {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 14px;
}

.error-secondary-link:hover {
    color: var(--color-foreground);
    text-decoration: underline;
}

.error-graphic {
    display: flex;
    justify-content: center;
}

.error-binoculars {
    width: 100%;
    max-width: 360px;
    height: auto;
    animation: error-scan 6s ease-in-out infinite;
    transform-origin: 50% 60%;
}

/* Źrenice rozglądają się w poszukiwaniu zgubionej strony */
.error-pupil {
    animation: error-look 6s ease-in-out infinite;
}

@keyframes error-scan {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-4deg); }
    60%      { transform: rotate(3deg); }
}

@keyframes error-look {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(-6px, 2px); }
    60%      { transform: translate(6px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
    .error-binoculars,
    .error-pupil {
        animation: none;
    }
}

.error-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 40px;
    background-color: var(--color-foreground);
    color: var(--color-background);
    font-size: 12px;
}

.error-footer span {
    opacity: 0.6;
}

.error-footer a {
    color: inherit;
    text-decoration: none;
}

.error-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .section-error {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .error-graphic {
        order: -1;
        justify-content: flex-start;
    }

    .error-binoculars {
        max-width: 220px;
    }
}

@media (max-width: 640px) {
    .section-error {
        padding: 48px 20px;
    }

    .section-error h2 {
        font-size: 1.25rem;
    }

    .error-footer {
        padding: 20px;
    }
}
