:root {
    --bg: #0f1115;
    --bg-alt: #161a21;
    --text: #f0f2f5;
    --text-muted: #a0a8b8;
    --accent: #e85d04;
    --accent-hover: #f48c06;
    --border: #2a303c;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    height: 44px;       /* dostosuj według uznania (40–48px) */
    width: auto;
    display: block;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

nav a:hover {
    color: var(--white);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,17,21,0.78) 0%, rgba(15,17,21,0.55) 100%),
                url('foto1.jpg') center/cover no-repeat;
    z-index: -1;
    transform: scaleX(-1); /* jeśli nadal chcesz odbicie */
}

.hero-content {
    max-width: 720px;
}

.hero-company {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-logo-wrap {
    text-align: center;
}

.hero-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto 1.25rem;
}

.hero-slogan {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== SECTIONS ========== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: 3rem;
}

/* ========== LEISTUNGEN ========== */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.leistung-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    transition: border-color 0.2s;
}

.leistung-card:hover {
    border-color: var(--accent);
}

.leistung-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.leistung-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== FÜR WEN ========== */
.fuer-wen-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.fuer-wen-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.fuer-wen-item strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;     /* stały odstęp od opisu */
    /* tytuł zawsze na górze */
}

.fuer-wen-item span {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
    margin-top: auto;           /* opis dociągany do dołu jeśli potrzeba */
}

/* Responsywność */
@media (max-width: 1100px) {
    .fuer-wen-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .fuer-wen-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-logo {
        max-width: 220px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }
}

/* ========== REGION ========== */
.region {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.region-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.region-list span {
    color: var(--accent);
}

/* ========== ÜBER UNS ========== */
.ueber-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ueber-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.ueber-image {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ueber-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== KONTAKT ========== */
.kontakt {
    text-align: center;
}

.kontakt h2 {
    margin-bottom: 1.5rem;
}

.kontakt-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 1.25rem;
    line-height: 1.55;
}

.kontakt-extra {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent);
    margin: 0 auto 2.5rem;
    max-width: 560px;
}

.kontakt-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.kontakt-info {
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== FOOTER ========== */
footer {
    background: #0a0c10;
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== LEGAL PAGES ========== */
.legal-page {
    padding: 140px 0 100px;
}

.legal-page h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
}

.legal-page p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 720px;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent);
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .ueber-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }

    nav.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding: 130px 0 80px;
    }
}