main {
    margin-top: 90px;
    padding: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    background: transparent;
}

.h1-wrapper {
    text-align: center;
}

h1 {
    position: relative;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    color: #222;
    padding: 20px 0;
    display: inline-block;
    z-index: 1;
}

h1::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 12px;
    background-color: #f2b600;
    z-index: -1;
    opacity: 0.4;
    border-radius: 4px;
}

.oferta-opis {
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    text-align: left;
    font-family: 'Georgia', serif;
    padding-left: 5%;
    padding-right: 5%;
    cursor: pointer;
    font-style: italic;
}

/* Główne tło i tekst */
.cennik-wrapper {
    padding-left: 5%;
    padding-right: 5%;
    font-family: Arial, sans-serif;
    color: #d09c3c;
    background-color: #f7f7f7;
    border-radius: 10px;
}

/* Tytuł i opis */
.cennik-title {
    margin-bottom: 10px;
    color: #d09c3c;
}

.cennik-description {
    margin-bottom: 25px;
    color: #444;
}

/* Zakładki */
.cennik-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.cennik-tab-button {
    flex: 1;
    min-width: 100px;
    min-height: 60px;
    padding: 16px 24px;
    border: 1px solid #878787;
    background-color: #e9e9e9;
    color: #d09c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    box-shadow: none;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.cennik-tab-button h2 {
    font-size: 20px;
    /* mniejsza czcionka niż domyślna h2 */
    font-weight: 700;
    /* zachowaj pogrubienie */
    margin: 0;
    /* usuń domyślne marginesy */
    line-height: 1.2;
    /* dopasuj wysokość linii */
    display: inline-block;
    /* żeby lepiej się układało obok SVG */
    vertical-align: middle;
    color: inherit;
    /* żeby kolor tekstu był taki sam jak przycisku */
}

.cennik-tab-button svg.tab-icon {
    width: 28px;
    height: 28px;
    margin-right: 0px;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
    transition: fill 0.3s ease;
}

.cennik-tab-button i {
    margin-right: 8px;
    font-size: 22px;
    vertical-align: middle;
}

.cennik-tab-button:hover {
    background-color: #dcdcdc;
    border-color: #aaa;
}

.cennik-tab-button.active {
    background-color: #d09c3c;
    border: 1px solid #878787;
    color: #fff;
    border-color: #d09c3c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sekcje treści */
.cennik-tab-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.cennik-tab-section.active {
    display: block;
}

/* Siatka kafelków */
.cennik-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.cennik-card {
    background-color: #fff;
    border: 1px solid #878787;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
}

.cennik-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cennik-card-title {
    font-weight: 500;
    font-size: 1.5rem;
    /* przykład, dostosuj */
    line-height: 1.2;
}

.cennik-card-title .subtitle {
    display: block;
    /* nowa linia */
    font-size: 0.5em;
    /* mniejsza czcionka (85% wielkości h3) */
    font-weight: 200;
    /* może lżejsza czcionka */
    margin-top: 0.25em;
    /* odrobinę odstępu od tytułu */
    color: #555;
    /* opcjonalnie szary kolor dla podtytułu */
}

/* Animacja */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toggle-more {
    color: #d09c3c;
    cursor: pointer;
    text-decoration: underline;
}

.mobile-full {
    display: inline;
}

.mobile-short {
    display: none;
}

/* Ceny */
.cennik-card {
    background-color: #fff;
    padding: 30px 20px;
    min-height: 300px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cennik-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.cennik-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 28px;
    /* odsunięcie tekstu od ikonki */
    color: black;
}

.cennik-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d09c3c" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M7 12.5l3 3 7-7"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

.cennik-list i {
    /* color: #28a745; zielony plusik */
    color: #d09c3c;
    font-size: 14px;
}

.cennik-prices {
    margin-top: auto;
    padding: 15px;
    background-color: #f1cdb0;
    /* delikatny niebieski */
    border-top: 2px solid #d09c3c;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    font-weight: 600;
    color: black;
    text-align: center;
}

.cennik-prices p {
    margin: 5px 0;
}

.cyklicznosc-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cyklicznosc-btn {
    background-color: #d3d6d6;
    border: 1px solid #878787;
    color: #d09c3c;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cyklicznosc-btn.active {
    background-color: #d09c3c;
    border: 1px solid #878787;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pakiety-cykliczne-kafelki {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.pakiet-cykliczny {
    background-color: #fff;
    border: 1px solid #878787;
    padding: 30px 20px;
    min-height: 100px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pakiet-cykliczny:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.pakiet-cykliczny .ceny {
    margin-top: auto;
    padding: 12px;
    background-color: #f1cdb0;
    border-top: 2px solid #d09c3c;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    font-weight: 600;
    color: black;
    text-align: center;
}

.pakiet-cykliczny .ceny p {
    margin: 5px 0;
}


.uslugi-kafelki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 100%;
    /* Zapobiega wychodzeniu poza kontener */
}

@media (min-width: 1024px) {
    .uslugi-kafelki-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Maksymalnie 3 kolumny na dużych ekranach */
    }
}

.usluga-kafelek {
    background-color: #fff;
    border: 1px solid #878787;
    padding: 30px 20px;
    min-height: 100px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.usluga-kafelek:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.usluga-kafelek h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #d09c3c;
}

.usluga-kafelek .cena {
    margin-top: auto;
    padding: 12px;
    background-color: #f0f7ff;
    border-top: 2px solid #d09c3c;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    font-weight: 600;
    color: #d09c3c;
}

.small-text-spacing {
    font-size: 12px;
    margin-bottom: 20px;
}

.medium-text-spacing {
    font-size: 13px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    main {
        margin-top: 90px;
        padding: 20px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        opacity: 1;
        background: transparent;
    }

    .cennik-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    
    .cennik-tab-button {
        flex: 1 1 calc((100% - 20px) / 3);
        padding: 8px 5px;
        font-size: 12px;
        border-radius: 8px;
        font-weight: 600;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .cennik-tab-button h2 {
        font-size: 12px;
    }
    
    .cennik-tab-button svg.tab-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;   
    }

    .cyklicznosc-btn {
        background-color: #d3d6d6;
        border: 1px solid #878787;
        color: #d09c3c;
        padding: 15px 5px;
        font-size: 12px;
        border-radius: 8px;
        cursor: pointer;
        flex: 0 1 calc((100% - 70px) / 3);
        font-weight: 600;
        transition: all 0.3s;
    }

    .oferta-opis {
        text-align: center;
    }

    h1 {
        font-size: 1.4rem;
    }

    .mobile-full {
        display: none;
    }

    .mobile-short {
        display: inline;
    }
}