/* =========================
   Fonts (self-hosted Poppins)
   ========================= */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================
   Base Reset & Variables
   ========================= */
:root {
    /* #44992D: brand/dekoracje (kontrast 3.6:1 — za niski dla tekstu);
       tekst, linki i przyciski używają --primary-dark (5.3:1, WCAG AA) */
    --primary-color: #44992D;
    --primary-dark: #367a24;
    --primary-darker: #2a5f1c;
    --primary-on-dark: #7fd166;
    --ink: #1c2f12;
    --text-color: #333333;
    --text-muted: #6c757d;
    --surface-color: #ffffff;
    --surface-muted: #f8f9fa;
    --surface-tint: #f4f7f1;
    --surface-border: #e9ecef;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --header-height: 80px;
    --container-padding: 1rem;
    --section-padding-y: 5rem;
    --transition-base: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--surface-color);
    overflow-x: hidden;
}

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

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-darker);
}

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

h1,
h2,
h3 {
    margin: 0 0 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p {
    margin: 0 0 1.2rem;
}

strong {
    font-weight: 600;
}

/* =========================
   Layout Helpers
   ========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding-y) 0;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 0.6rem;
}

.section-title {
    text-align: left;
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.section-subtitle {
    text-align: left;
    margin: 0 0 3rem;
    max-width: 720px;
    color: var(--text-muted);
}

.button-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    min-height: 48px;
    border-radius: 6px;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), transform 0.2s ease;
}

.btn .icon {
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: var(--surface-color);
}

.btn-primary:hover {
    background-color: var(--primary-darker);
    color: var(--surface-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: var(--surface-color);
    transform: translateY(-2px);
}

.back-link {
    display: inline-flex;
    margin-top: 2rem;
}

/* =========================
   Header & Navigation
   ========================= */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: background-color var(--transition-base);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-dark);
}

.nav-link:focus {
    outline: none;
}

.nav-link:focus-visible::after {
    width: 100%;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: transform var(--transition-base), background-color var(--transition-base), opacity var(--transition-base);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: var(--primary-color);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    background-color: var(--primary-color);
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
    padding: 1rem 0;
    border-top: 1px solid var(--surface-border);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    visibility: hidden;
}

.mobile-nav.is-active {
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background-color: var(--surface-muted);
    color: var(--primary-dark);
}

.mobile-nav-link:focus {
    outline: none;
}

.mobile-nav-link.active {
    background-color: var(--surface-muted);
    color: var(--primary-dark);
    font-weight: 600;
}

/* =========================
   Hero Section
   ========================= */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 5rem;
    min-height: 78vh;
    display: flex;
    align-items: center;
    color: var(--surface-color);
    background: linear-gradient(135deg, #0f2408 0%, #1a4310 45%, #2d7a1c 100%);
    overflow: hidden;
}

/* siatka rysunku technicznego */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

/* linework tras instalacyjnych */
.hero-lines {
    position: absolute;
    top: 50%;
    right: max(-60px, calc((100vw - 1560px) / 2));
    transform: translateY(-50%);
    width: min(46vw, 640px);
    height: auto;
    pointer-events: none;
}

.hero-lines path[pathLength] {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: heroDraw 1.6s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.hero-lines path[pathLength]:nth-of-type(2) { animation-delay: 0.25s; }
.hero-lines path[pathLength]:nth-of-type(3) { animation-delay: 0.5s; }
.hero-lines path[pathLength]:nth-of-type(4) { animation-delay: 0.7s; }
.hero-lines path[pathLength]:nth-of-type(5) { animation-delay: 0.9s; }

.hero-lines-nodes {
    opacity: 0;
    animation: heroFade 0.9s ease-out 1.3s forwards;
}

@keyframes heroDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes heroFade {
    to { opacity: 1; }
}

.hero h1 {
    color: var(--surface-color);
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1.4rem;
}

.hero-grid {
    position: relative;
    width: 100%;
}

.hero-content {
    max-width: 640px;
    animation: fadeInHero 1s ease-out both;
}

.hero-content > p {
    max-width: 560px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-on-dark);
    margin-bottom: 1rem;
}

.hero .button-group {
    margin-top: 2rem;
}

.hero .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--surface-color);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--surface-color);
}

.hero-points {
    margin: 2.25rem 0 0;
    padding: 0;
    max-width: 640px;
    display: grid;
    gap: 0.75rem;
    text-align: left;
}

.hero-points li {
    position: relative;
    padding-left: 2.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.hero-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    opacity: 0.92;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

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

/* =========================
   Services (Usługi)
   ========================= */
.uslugi {
    background-color: var(--surface-tint);
}

.uslugi-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.usluga-item {
    background-color: var(--surface-color);
    padding: 2rem 1.75rem;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    text-align: left;
    transition: transform 0.2s ease, border-color var(--transition-base), box-shadow var(--transition-base);
}

.usluga-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.usluga-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.usluga-item p {
    color: var(--text-muted);
}



/* =========================
   Process Section
   ========================= */
/* sekcja-blueprint: ciemny arkusz rysunku z siatką, kroki jako pola legendy */
.proces {
    position: relative;
    background-color: var(--ink);
    overflow: hidden;
}

.proces::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.proces .container {
    position: relative;
}

.proces .section-title {
    color: var(--surface-color);
}

.proces .section-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.proces-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 3rem;
}

.proces-step {
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

/* kreskowy mostek trasy między polami */
.proces-step + .proces-step::before {
    content: '';
    position: absolute;
    top: 49px;
    left: calc(-1.25rem - 1px);
    width: calc(1.25rem + 2px);
    height: 2px;
    background-image: repeating-linear-gradient(90deg, var(--primary-on-dark) 0 7px, transparent 7px 13px);
}

.proces-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-on-dark);
    color: var(--ink);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.proces-step h3 {
    color: var(--surface-color);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.proces-step p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
}
/* =========================
   About (O Nas)
   ========================= */
.o-nas-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.o-nas-content .section-title {
    text-align: left;
}

.o-nas-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

/* =========================
   Why Us (Dlaczego My)
   ========================= */
.dlaczego-my {
    background-color: var(--surface-tint);
}

.dlaczego-my-grid {
    display: grid;
    gap: 0 3.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dlaczego-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.75rem 0;
    border-bottom: 1px solid #dde5d8;
}

.dlaczego-my-grid .dlaczego-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.dlaczego-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 28px;
}

.dlaczego-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* =========================
   Specialisations (Specjalizacje)
   ========================= */
.specjalizacje-grid {
    display: grid;
    gap: 2.5rem 3rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 3rem;
}

.specjalizacja-item {
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-color);
    text-align: left;
}

.specjalizacja-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.specjalizacja-item p {
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 0;
}


/* =========================
   Case Studies (Realizacje)
   ========================= */
.realizacje {
    background-color: var(--surface-tint);
}

.realizacje-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.realizacja-item {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s ease, border-color var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
}

.realizacja-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.realizacja-item .realizacja-stat {
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
    margin: 0 0 0.3rem;
}

.realizacja-item .realizacja-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 1.4rem;
}

.realizacja-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.realizacja-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* =========================
   FAQ
   ========================= */
.faq {
    background-color: var(--surface-color);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem 4rem;
    align-items: start;
}

.faq-head .section-subtitle {
    margin-bottom: 1.5rem;
}

.faq-contact-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 1.25rem 1.5rem;
    background-color: var(--surface-tint);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    margin: 0;
}

.faq-contact-hint a {
    font-weight: 600;
    white-space: nowrap;
}

.faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--surface-border);
}

.faq-item {
    border-bottom: 1px solid var(--surface-border);
    overflow: hidden;
}

.faq-question {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.35rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    transition: color var(--transition-base);
}

.faq-toggle:hover {
    color: var(--primary-dark);
}

.faq-toggle:focus {
    outline: none;
}

.faq-toggle:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

.faq-chevron {
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--primary-dark);
    transition: transform 0.35s ease;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.05s;
}

.faq-item.is-open .faq-answer-inner {
    opacity: 1;
}

.faq-answer-content {
    padding: 0 2.5rem 1.75rem 0;
}

/* Bez JS: wszystkie odpowiedzi widoczne, chevrony ukryte */
html:not(.js) .faq-answer {
    grid-template-rows: 1fr;
}

html:not(.js) .faq-answer-inner {
    opacity: 1;
}

html:not(.js) .faq-chevron {
    display: none;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: disc;
    color: var(--text-muted);
    line-height: 1.75;
    padding-left: 1.3rem;
    margin: 0.5rem 0 1rem;
}

.faq-answer ul li {
    margin-bottom: 0.35rem;
    padding-left: 0.2rem;
}

.faq-answer ul li::marker {
    color: var(--primary-color);
}

.faq-answer strong {
    color: var(--text-color);
    font-weight: 600;
}

/* =========================
   Contact (Kontakt)
   ========================= */
.kontakt-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: flex-start;
}

.kontakt-text .section-title,
.kontakt-info .section-title {
    text-align: left;
}

.kontakt-info {
    background-color: var(--surface-tint);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 2rem;
}

.kontakt-info .section-title {
    font-size: 1.3rem;
    margin-bottom: 1.75rem;
}

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

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.4rem;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .icon {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 28px;
}

.info-item a {
    color: var(--primary-dark);
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-address {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-style: normal;
    gap: 0.3rem;
}

.contact-address span {
    display: block;
}

.company-data {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.company-data div {
    display: flex;
    gap: 0.5rem;
}

.company-data dt {
    font-weight: 600;
    min-width: 48px;
}

.company-data dd {
    margin: 0;
    color: var(--text-muted);
}

.map-container {
    margin-top: 2.5rem;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* =========================
   Footer
   ========================= */
.footer {
    background-color: var(--ink);
    color: #d5ddd0;
    padding: 3rem 0;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary-color);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-info p {
    margin: 0.3rem 0;
}

.footer-info a {
    color: #ffffff;
    transition: color var(--transition-base);
}

.footer-info a:hover {
    color: var(--primary-on-dark);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-on-dark);
    text-decoration: underline;
}

/* =========================
   Scroll To Top Button
   ========================= */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), background-color var(--transition-base);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 990;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
}

/* =========================
   Legal Pages
   ========================= */
.legal-page {
    background-color: var(--surface-muted);
    padding-top: var(--header-height);
}

.legal-content {
    max-width: 820px;
    margin: 2rem auto 4rem;
    padding: 2.5rem;
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.legal-content h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.legal-content h2 {
    color: #444444;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 0.4rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-wrapper th,
.table-wrapper td {
    border: 1px solid var(--surface-border);
    padding: 0.8rem;
    text-align: left;
    vertical-align: top;
}

.table-wrapper th {
    background-color: var(--surface-muted);
    font-weight: 600;
}

.table-wrapper td code {
    background-color: #eeeeee;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* =========================
   Utilities & Effects
   ========================= */
button:focus,
a:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.hamburger:focus {
    outline-offset: -3px;
    border-radius: 3px;
}

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

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

.icon-2x { font-size: 2em; }
.icon-3x { font-size: 3em; }

/* Animacja tylko przy działającym JS (klasa .js dodawana w script.js) —
   bez JS sekcje są widoczne od razu */
.js .fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   Responsive Breakpoints
   ========================= */
@media (max-width: 1199.98px) {
    .hero-lines {
        width: 40vw;
        opacity: 0.7;
    }
}

@media (max-width: 991.98px) {
    :root {
        --header-height: 70px;
    }

    .hero-lines {
        display: none;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .o-nas-container {
        grid-template-columns: 1fr;
    }

    .o-nas-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .kontakt-container {
        grid-template-columns: 1fr;
    }

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

    /* proces: pola legendy w dwóch kolumnach, bez mostków */
    .proces-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proces-step + .proces-step::before {
        display: none;
    }

    .dlaczego-my-grid {
        grid-template-columns: 1fr;
    }

    .dlaczego-my-grid .dlaczego-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #dde5d8;
    }

    .dlaczego-my-grid .dlaczego-item:last-child {
        border-bottom: none;
    }

    .hero-points {
        max-width: 100%;
    }

    .legal-page {
        padding-top: var(--header-height);
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding-y: 3.2rem;
    }

    .hero {
        min-height: 70vh;
        padding-top: calc(var(--header-height) + 2.5rem);
        padding-bottom: 3rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .uslugi-grid,
    .dlaczego-my-grid,
    .specjalizacje-grid,
    .realizacje-grid,
    .proces-grid {
        grid-template-columns: 1fr;
    }

    .faq-toggle {
        padding: 1.1rem 0;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.4rem 0;
    }

    .kontakt-info {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    :root {
        --header-height: 60px;
        --container-padding: 0.75rem;
    }

    .logo img {
        height: 40px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .button-group {
        width: 100%;
    }

    .hero-kicker {
        letter-spacing: 0.12rem;
        font-size: 0.78rem;
    }

    .hero-points li {
        padding-left: 1.8rem;
    }

    .scroll-to-top {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto 3rem;
    }
}

/* =========================
   404 Error Page
   ========================= */
.error-section {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--surface-muted) 0%, var(--surface-color) 100%);
}

.error-content {
    max-width: 700px;
    padding: 0 var(--container-padding);
}

.error-number {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.error-section h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.error-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.error-section .button-group {
    justify-content: center;
}

.error-links-section {
    background-color: var(--surface-color);
}

.error-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.error-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface-color);
    border: 2px solid var(--surface-border);
    border-radius: 8px;
    transition: all var(--transition-base);
    color: var(--text-color);
}

.error-link-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.error-links-section .section-title {
    text-align: center;
}

.error-link-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-link-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.error-link-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .error-section {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
        min-height: 60vh;
    }

    .error-number {
        font-size: 7rem;
    }

    .error-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =========================
   Motion Preferences
   ========================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
