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

/* =========================================================
   RESET
========================================================= */
* {
  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);
}

/* =========================================================
   TYPOGRAFIA – JEDNOLITA (PX)
========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  text-align: justify;
  margin-bottom: 16px;
}

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

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

/* ===========================
   Tablet (768px - 1024px)
=========================== */
@media (min-width: 768px) and (max-width: 1024px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 18px;
  }

  h5 {
    font-size: 16px;
  }

  h6 {
    font-size: 15px;
  }

  p {
    font-size: 15px;
    line-height: 1.65;
  }
}

/* ===========================
   Mobile (do 768px)
=========================== */
@media (max-width: 768px) {
  .wrap {
    padding: 15px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 18px;
  }

  h5 {
    font-size: 16px;
  }

  h6 {
    font-size: 15px;
  }

  p {
    font-size: 15px;
    line-height: 1.65;
  }
}
/* =========================================================
    HEADER I NAWIGACJA
========================================================= */
.site-header {
    margin-bottom: 40px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
}

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

.brand-tagline {
    color: var(--muted);
    line-height: 1.1;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    width: 36px;
    height: 26px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    background: var(--white);
    height: 3px;
    width: 100%;
    position: absolute;
    transition: 0.3s ease;
    border-radius: 2px;
}

.nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span::before {
    content: "";
    top: -10px;
}

.nav-toggle-label span::after {
    content: "";
    top: 10px;
}

/* Animacja hamburger → X */
.nav-toggle:checked + .nav-toggle-label span {
    transform: rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label span::before {
    opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label span::after {
    transform: translateY(-8px) rotate(-90deg);
}

/* NAV DESKTOP */
.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition:
        background 0.3s,
        transform 0.2s;
}

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

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

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

/* =========================================================
    HERO / BANER
========================================================= */
.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);
    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;
}

.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;
}

/* =========================================================
    OFERTA / AKORDEON
========================================================= */
#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-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 {
    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);
}

/* =========================================================
    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,
.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);
    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);
    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
========================================================= */
.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;
    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);
}

/* =========================================================
    RESPONSYWNOŚĆ PODCZAS POSZCZEGÓLNYCH SEKCJI
========================================================= */
/* HEADER MOBILE */
@media (max-width: 768px) {
    .brand img {
        width: 80px;
    }
    .nav-toggle-label {
        display: flex;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-end;
        background: var(--bg);
        padding: 20px;
        gap: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 8px 8px;
    }
    .nav-toggle:checked ~ .main-nav {
        display: flex;
    }
    .main-nav a {
        text-align: center;
        width: 100%;
        padding: 14px 20px;
    }
    .main-nav .cta {
        width: 80%;
        margin: 16px auto;
    }
}

/* HERO / BANNER MOBILE */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
    .hero-left {
        flex: 1 1 100%;
    }
    .hero-left h2 {
        margin-bottom: 8px;
    }
    .hero-left p {
        margin-bottom: 5px;
    }
    .banner {
        flex: 1 1 100%;
        padding: 20px;
    }
}

/* OFERTA MOBILE */
@media (max-width: 768px) {
    .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-name,
    .service-description,
    .service-price {
        position: relative;
        padding-left: 50%;
        display: block;
        margin-bottom: 5px;
        text-align: left;
    }
    .service-name::before {
        content: "Usługa";
        left: 15px;
        font-weight: 600;
        color: var(--white);
        position: absolute;
    }
    .service-description::before {
        content: "Opis";
        left: 15px;
        font-weight: 600;
        color: var(--white);
        position: absolute;
    }
    .service-price::before {
        content: "Cena orientacyjna";
        left: 15px;
        font-weight: 600;
        color: var(--white);
        position: absolute;
    }
}

/* FORMULARZ MOBILE */
@media (max-width: 768px) {
    #wycena form {
        width: 100%;
    }
}

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

/* TABELA / RESPONSYWNOŚĆ TABELI */
@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;
        background: rgba(255, 255, 255, 0.03);
    }

    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 / HEADER MOBILE DROBNE DOPASOWANIA */
@media (min-width: 768px) and (max-width: 1024px) {
    .brand img {
        height: 90px;
    }
    .brand-name {
        font-size: 22px;
    }
    .brand-text {
        font-size: 12px;
    }
    .main-nav{
        gap: 5px;
    }
    .main-nav a {
    font-size: 16px;
  }
}

/* BRAND / HEADER MOBILE DROBNE DOPASOWANIA */
@media (max-width: 768px) {
    .brand img {
        height: 80px;
    }
    .brand-name {
        font-size: 20px;
    }
    .brand-text {
        font-size: 12px;
    }
}

/* NAV / HEADER MOBILE FLEX DOPASOWANIE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
}