/* =========================================================
    ZMIENNE CSS I RESET
========================================================= */
:root {
    --bg: #0b1220;
    --panel: #0f1724;
    --panelhover: #38385e;
    --accent: #ffd166;
    --accenthover: #c49a4a;
    --muted: #9aa4b2;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, #0b1018 100%);
    color: var(--muted);
    margin: 0;
}

p {
    text-align: justify;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.accent {
    color: var(--accent);
    font-weight: 600;
}

/* =========================================================
    HEADER I NAWIGACJA
========================================================= */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    height: 100px;
    width: auto;
    border-radius: 10px;
}

.brand .name {
    color: var(--white);
    font-weight: 700;
    font-size: 24px;
}

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

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

nav a.cta {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
}

nav a.cta:hover {
    background: var(--accenthover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(246, 180, 0, 0.3);
}

/* =========================================================
    SEKCJA HERO I PRZYCISKI
========================================================= */
.hero {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(180deg, var(--panel), rgba(12, 18, 28, 0.9));
    border-radius: 22px;
    padding: 30px;
    gap: 30px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(6, 8, 12, 0.6);
}

.hero-left {
    flex: 1 1 400px;
}

.hero-left h2 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-left p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--accenthover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(246, 180, 0, 0.3);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.banner {
    flex: 1 1 350px;
    background: var(--bg);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.banner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* =========================================================
    SEKCJE OGÓLNE I KARTY
========================================================= */
section {
    margin-top: 40px;
}

h2 {
    color: var(--white);
    margin-bottom: 20px;
}

h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 26px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
}

.card strong {
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

/* =========================================================
    SEKCJA OFERTA (Akordeon Stylizowany na Tabelę)
========================================================= */

#Oferta .accent {
    font-weight: bold;
    color: var(--accent);
}

#Oferta .category td {
    background-color: #1e1e1e; 
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 0.8rem;
}

.accordion-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border-collapse: collapse;
}

.category-header {
    background-color: var(--panel);
    color: var(--white);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s;
}

.category-header:hover {
    background-color: var(--panelhover);
}

.arrow {
    font-size: 1.5em;
    transition: transform 0.3s;
    margin-left: 10px;
}

.active .arrow {
    transform: rotate(90deg);
}

.service-list {
    background: rgba(255, 255, 255, 0.03);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    border-radius: 0 0 8px 8px;
}

.service-list.active {
    max-height: 2000px;
    padding-bottom: 5px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.service-item:first-child {
    border-top: none;
}

.service-name {
    color: var(--accent);
    font-weight: 600;
    grid-column: 1 / 2;
}

.service-description {
    color: var(--muted);
    grid-column: 2 / 3;
}

.service-price {
    color: var(--muted);
    text-align: right;
    grid-column: 3 / 4;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

thead {
    background: var(--panel);
}

thead th {
    color: var(--white);
    text-align: left;
    padding: 12px;
}

tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

tbody td {
    padding: 12px;
    color: var(--muted);
}

/* =========================================================
    SEKCJA KONTAKT
========================================================= */
#kontakt {
    margin-top: 60px;
    width: 100%;
    background: rgba(15, 23, 36, 0.8);
    padding: 50px 20px;
}

#kontakt h3 {
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
}

#kontakt p {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.kontakt-panel {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 30px 40px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
    text-align: center;
    transition: all 0.3s ease;
}

.kontakt-panel p {
    margin: 0 0 15px 0;
}

.kontakt-panel strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.kontakt-panel a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.kontakt-panel span {
    color: var(--accent);
    font-weight: 600;
}

/* =========================================================
    FORMULARZ WYCENY
========================================================= */
#wycena {
    margin-top: 60px;
    padding: 60px 20px;
    background: rgba(15, 23, 36, 0.85);
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

#wycena h2 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 25px;
}

#wycena form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#wycena input,
#wycena textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#wycena input::placeholder,
#wycena textarea::placeholder {
    color: var(--muted);
}

#wycena input:focus,
#wycena textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(246, 180, 0, 0.3);
}

#wycena button {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    padding: 14px 22px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#wycena button:hover {
    background: var(--accenthover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(246, 180, 0, 0.3);
}

#wycena button:disabled,
.btn-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =========================================================
    STOPKA (Usprawniona i Wyśrodkowana)
========================================================= */

.site-footer {
    margin-top: 80px;
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer p {
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
}

.site-footer strong {
    font-size: 1rem;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.site-footer p:last-child {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--white);
}

@media (max-width: 600px) {
    .site-footer {
        padding: 20px 0;
    }
    .site-footer strong {
        font-size: 0.9rem;
    }
}

/* =========================================================
    RESPONSYWNOŚĆ (Media Queries)
========================================================= */

@media (max-width: 768px) {
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    tbody tr {
        margin-bottom: 20px;
        border-radius: 12px;
        padding: 12px;
    }

    tbody td {
        padding-left: 50%;
        position: relative;
    }

    tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: var(--white);
    }

    .brand img {
        height: 70px;
    }

    .brand .name {
        font-size: 20px;
    }
    .brand .text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    h3 {
    font-size: 22px;
}
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        flex-direction: column;
    }

    .hero-left {
        flex: 1 1 100%;
    }

    .hero-left h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .hero-left p {
        margin-bottom: 5px;
    }

    .banner {
        flex: 1 1 100%;
        background: var(--bg);
        border-radius: 16px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

    nav {
        justify-content: center;
        width: 100%;
    }

    #wycena {
        padding: 40px 15px;
    }

    #wycena h2 {
        font-size: 24px;
    }

    #wycena form {
        width: 100%;
    }

    .category-header {
        border-radius: 12px;
        margin-top: 15px;
    }

    .service-list {
        border-radius: 12px;
    }

    .service-item {
        display: block;
        padding: 12px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        border: none;
    }

    .service-list.active {
        padding: 10px;
        border-top: none;
    }

    .service-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .service-name,
    .service-description,
    .service-price {
        position: relative;
        padding-left: 50%;
        display: block;
        margin-bottom: 5px;
        text-align: left;
    }

    .service-name::before {
        content: "Usługa";
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: var(--white);
    }

    .service-description::before {
        content: "Opis";
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: var(--white);
    }

    .service-price::before {
        content: "Cena orientacyjna";
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: var(--white);
    }
}
