/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;

    background-color: #f5eee8;
    color: #503c32;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   KOLORY
========================================= */

:root {
    --background: #f5eee8;
    --background-dark: #ebe0d5;
    --card: #f1e7de;

    --brown: #503c32;
    --brown-light: #927964;
    --brown-button: #a9917d;

    --line: #b49a83;

    --white: #ffffff;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;

    padding: 28px 4vw 10px;

    background-color: var(--background);
}

.header-container {
    max-width: 1240px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* =========================================
   LOGO
========================================= */

.logo {
    width: 250px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: auto;

    display: block;
}


/* =========================================
   NAWIGACJA
========================================= */

.navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 65px;

    margin-top: -35px;
}

.navigation a {
    position: relative;

    font-size: 22px;
    font-weight: 400;

    color: #58463c;

    padding: 8px 0;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease,
        transform 0.25s ease;
}

.navigation a:hover {
    color: #8f7561;

    text-shadow:
        0 3px 8px rgba(80, 60, 50, 0.18);

    transform: translateY(-1px);
}

.navigation a.active {
    color: #503c32;

    text-shadow:
        0 3px 7px rgba(80, 60, 50, 0.26);
}

.navigation a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    border-radius: 10px;

    background-color: #9b816c;

    box-shadow:
        0 5px 7px rgba(80, 60, 50, 0.25);
}


/* =========================================
   PRZYCISK HEADER
========================================= */

.navigation .nav-button {
    padding: 9px 17px;

    border-radius: 8px;

    background-color: var(--brown-button);
    color: #fff;

    font-size: 22px;

    box-shadow:
        0 4px 10px rgba(80, 60, 50, 0.16);

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.navigation .nav-button:hover {
    background-color: #806a58;
    color: #fff;

    box-shadow:
        0 6px 14px rgba(80, 60, 50, 0.22);

    transform: translateY(-1px);
}


/* =========================================
   INTRO
========================================= */

.pricing-intro {
    width: 100%;

    padding: 35px 4vw 25px;
}

.pricing-intro-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}

.intro-text {
    max-width: 760px;

    margin: 0 auto 40px;

    text-align: center;

    font-size: 18px;

    line-height: 1.7;

    color: #735f50;
}


/* =========================================
   RODZAJE TRENINGÓW
========================================= */

.training-types {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.training-type {
    min-height: 190px;

    padding: 24px 25px;

    background-color: rgba(241, 231, 222, 0.65);

    border: 1px solid rgba(110, 88, 73, 0.13);

    border-radius: 20px;

    box-shadow:
        0 8px 18px rgba(65, 45, 35, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.training-type:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 25px rgba(65, 45, 35, 0.12);
}

.training-number {
    margin-bottom: 10px;

    font-size: 12px;

    letter-spacing: 2px;

    color: #a9917d;
}

.training-type h2 {
    margin-bottom: 10px;

    font-size: 20px;
    font-weight: 400;

    line-height: 1.25;

    color: #503c32;
}

.training-type p {
    font-size: 14px;

    line-height: 1.55;

    color: #735f50;
}


/* =========================================
   FILTRY
========================================= */

.filters-section {
    width: 100%;

    padding: 25px 4vw 40px;
}

.filters-container {
    max-width: 1400px;

    margin: 0 auto;

    padding: 18px 25px;

    background-color: #ebe0d5;

    border-radius: 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.filters-title {
    font-size: 15px;

    color: #6e594b;
}

.filters {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}

.filter-button {
    border: 1px solid rgba(110, 88, 73, 0.25);

    background-color: transparent;

    color: #6e594b;

    padding: 9px 18px;

    border-radius: 30px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 14px;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.filter-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 5px 10px rgba(65, 45, 35, 0.10);
}

.filter-button.active {
    background-color: #a9917d;

    border-color: #a9917d;

    color: #fff;

    box-shadow:
        0 5px 12px rgba(65, 45, 35, 0.15);
}


/* =========================================
   CENNIK
========================================= */

.pricing-section {
    width: 100%;

    padding: 0 4vw 70px;
}

.pricing-container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


/* =========================================
   GRUPA TRENINGOWA
========================================= */

.pricing-group {
    margin-bottom: 70px;
}

.pricing-group:last-child {
    margin-bottom: 0;
}


/* =========================================
   NAGŁÓWEK GRUPY
========================================= */

.pricing-group-heading {
    margin-bottom: 25px;

    padding-left: 5px;
}

.pricing-group-heading span {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    letter-spacing: 2px;

    color: #a9917d;
}

.pricing-group-heading h2 {
    margin-bottom: 6px;

    font-size: 29px;
    font-weight: 400;

    color: #503c32;
}

.pricing-group-heading p {
    font-size: 14px;

    line-height: 1.5;

    color: #806c5d;
}


/* =========================================
   KARTY
========================================= */

.price-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.price-card {
    overflow: hidden;

    background-color: #f1e7de;

    border: 1px solid rgba(110, 88, 73, 0.15);

    border-radius: 20px;

    box-shadow:
        0 13px 25px rgba(65, 45, 35, 0.12);

    display: flex;

    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.price-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 22px 34px rgba(65, 45, 35, 0.18);
}


/* =========================================
   ZDJĘCIE
========================================= */

.price-image {
    width: 100%;

    height: 355px;

    overflow: hidden;
}

.price-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.price-card:hover .price-image img {
    transform: scale(1.04);
}


/* =========================================
   CONTENT
========================================= */

.price-content {
    flex: 1;

    padding: 24px 25px 25px;

    display: flex;

    flex-direction: column;
}

.price-category {
    margin-bottom: 7px;

    font-size: 11px;

    letter-spacing: 2px;

    color: #9b816c;
}

.price-content h3 {
    min-height: 50px;

    margin-bottom: 8px;

    font-size: 21px;
    font-weight: 400;

    line-height: 1.2;

    color: #503c32;
}


/* =========================================
   CENA
========================================= */

.price {
    margin-bottom: 15px;

    font-size: 32px;

    line-height: 1;

    color: #503c32;
}


/* =========================================
   OPIS
========================================= */

.price-description {
    min-height: 125px;

    margin-bottom: 20px;

    font-size: 14px;

    line-height: 1.6;

    color: #735f50;
}


/* =========================================
   INFORMACJE
========================================= */

.price-info {
    margin-top: auto;

    padding-top: 17px;

    border-top: 1px solid rgba(110, 88, 73, 0.15);
}

.info-item {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 11px;

    font-size: 13px;

    line-height: 1.4;

    color: #6e594b;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item img {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    object-fit: contain;
}


/* =========================================
   PRZYCISK
========================================= */

.price-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: 22px;

    padding: 12px 18px;

    border-radius: 9px;

    background-color: #a9917d;

    color: #fff;

    font-size: 14px;

    letter-spacing: 0.5px;

    box-shadow:
        0 5px 12px rgba(65, 45, 35, 0.12);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.price-button:hover {
    background-color: #806a58;

    transform: translateY(-2px);

    box-shadow:
        0 8px 16px rgba(65, 45, 35, 0.18);
}


/* =========================================
   UKRYWANIE GRUP
========================================= */

.pricing-group.hidden {
    display: none;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background-color: #eee3d8;

    background-image: url("../images/footer-bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    color: #503c32;
}

.footer-container {
    width: 100%;
    max-width: 1400px;

    min-height: 125px;

    margin: 0 auto;

    padding: 16px 24px 14px;

    display: grid;

    grid-template-columns:
        1.3fr
        1.3fr
        2.6fr
        1.4fr
        0.6fr;

    align-items: stretch;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    margin: 0 0 8px;

    font-size: 13px;
    font-weight: 400;

    letter-spacing: 0.5px;

    color: #503c32;
}

.footer-column a {
    margin-bottom: 6px;

    font-size: 13px;

    color: #584238;

    text-decoration: underline;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.footer-column a:hover {
    color: #8f7561;

    text-shadow:
        0 2px 6px rgba(80, 60, 50, 0.18);
}

.footer-decoration {
    position: relative;

    height: 100%;

    min-height: 95px;

    margin: 0 40px;

    border-left: 2px solid rgba(120, 94, 76, 0.45);
    border-right: 2px solid rgba(120, 94, 76, 0.45);
}

.footer-contact {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding-left: 20px;
}

.contact-item {
    display: flex;

    align-items: flex-start;

    margin-bottom: 6px;

    font-size: 13px;

    line-height: 1.25;

    color: #584238;
}

.contact-icon {
    width: 25px;
    min-width: 25px;

    margin-right: 7px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 18px;

    color: #8f7561;
}

.socials {
    display: flex;

    flex-direction: row;

    align-items: center;
    justify-content: center;

    gap: 16px;

    height: 100%;

    min-height: 95px;
}

.socials a {
    width: 24px;
    height: 24px;

    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.socials a:hover {
    transform: translateY(-2px);

    opacity: 0.7;
}

.socials img {
    width: 20px;
    height: 20px;

    display: block;

    object-fit: contain;
}

.copyright {
    min-height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 6px 20px;

    background-color: #c5b09c;

    color: #fff;

    text-align: center;

    font-size: 10px;
}

/* =========================================
   MODAL — REGULAMIN
========================================= */

.modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background-color: rgba(50, 38, 31, 0.55);

    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}


/* =========================================
   OKNO REGULAMINU
========================================= */

.regulamin-modal {
    position: relative;

    width: min(900px, 100%);
    height: min(88vh, 800px);

    background-color: #f5eee8;

    border: 1px solid rgba(110, 88, 73, 0.25);

    border-radius: 14px;

    box-shadow:
        0 20px 60px rgba(50, 38, 31, 0.30);

    overflow: hidden;
}


/* =========================================
   TREŚĆ
========================================= */

.regulamin-content {
    height: 100%;

    overflow-y: auto;

    padding: 45px 55px 50px;
}


/* PASEK PRZEWIJANIA */

.regulamin-content::-webkit-scrollbar {
    width: 8px;
}

.regulamin-content::-webkit-scrollbar-track {
    background: #ebe0d5;
}

.regulamin-content::-webkit-scrollbar-thumb {
    background: #b49a83;

    border-radius: 10px;
}


/* =========================================
   TYTUŁ
========================================= */

.regulamin-content h2 {
    max-width: 750px;

    margin-bottom: 8px;

    padding-right: 35px;

    font-size: clamp(25px, 3vw, 38px);

    font-weight: 400;

    line-height: 1.1;

    letter-spacing: -1px;

    color: #49362d;
}


/* =========================================
   DATA
========================================= */

.regulamin-date {
    margin-bottom: 15px;

    font-size: 14px;

    color: #927964;
}


/* =========================================
   LINIA
========================================= */

.regulamin-line {
    width: 180px;

    height: 1px;

    margin-bottom: 30px;

    background-color: #927764;
}


/* =========================================
   PARAGRAFY
========================================= */

.regulamin-content p {
    margin-bottom: 11px;

    font-size: 14px;

    line-height: 1.55;

    color: #584238;
}

.regulamin-content strong {
    font-weight: 600;

    color: #503c32;
}


/* =========================================
   DANE FIRMY
========================================= */

.regulamin-company {
    padding-left: 18px;

    line-height: 1.6 !important;
}


/* =========================================
   PARAGRAFY — §
========================================= */

.regulamin-content h3 {
    margin-top: 29px;
    margin-bottom: 12px;

    font-size: 18px;

    font-weight: 400;

    color: #503c32;
}


/* =========================================
   ZAMYKANIE
========================================= */

.modal-close {
    position: absolute;

    top: 10px;
    right: 15px;

    z-index: 2;

    width: 38px;
    height: 38px;

    border: none;

    background: transparent;

    color: #6f5849;

    font-family: Arial, sans-serif;

    font-size: 32px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.modal-close:hover {
    color: #503c32;

    transform: scale(1.1);
}

/* =========================================
   POWRÓT NA GÓRĘ
========================================= */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(80, 60, 50, 0.35);
    border-radius: 50%;

    background-color: rgba(241, 231, 222, 0.95);
    color: #503c32;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    box-shadow: 0 5px 15px rgba(65, 45, 35, 0.18);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.25s ease;
}


/* POKAZANA */

.back-to-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* HOVER */

.back-to-top:hover {
    background-color: #a9917d;
    color: #fff;

    transform: translateY(-2px);
}



/* =========================================
   RESPONSYWNOŚĆ — 1100 PX
========================================= */

@media (max-width: 1100px) {

    .navigation {
        gap: 30px;
    }

    .navigation a {
        font-size: 18px;
    }

    .navigation .nav-button {
        font-size: 18px;
    }

    .training-types {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .price-cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

    /* FOOTER */

    .footer-container {
        grid-template-columns:
            1.2fr
            1.2fr
            1.5fr
            0.8fr;

        column-gap: 25px;
    }

    .footer-decoration {
        display: none;
    }

}


/* =========================================
   RESPONSYWNOŚĆ — 900 PX
========================================= */

@media (max-width: 900px) {

    .header-container {
        flex-direction: column;

        gap: 25px;
    }

    .navigation {
        flex-wrap: wrap;

        justify-content: center;

        gap: 20px;

        margin-top: 0;
    }

    .filters-container {
        flex-direction: column;

        align-items: flex-start;
    }


    /* FOOTER */

    .footer {
        background-image: url("../images/footer-bg-tablet.png");

        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .footer-container {
        width: 100%;
        max-width: 1024px;

        padding: 25px 4vw 20px;

        display: grid;

        grid-template-columns:
            1.2fr
            1.2fr
            1.5fr
            0.8fr;

        column-gap: 25px;

        min-height: auto;
    }

    .footer-decoration {
        display: none;
    }

    .footer-contact {
        padding-left: 0;
    }

    .socials {
        height: auto;
        min-height: 0;

        display: flex;

        align-items: center;
        justify-content: center;

        gap: 12px;
    }

    .modal-overlay {
        padding: 20px;
    }

    .regulamin-modal {
        width: 100%;
        height: 88vh;

        border-radius: 12px;
    }

    .regulamin-content {
        padding: 40px 40px 45px;
    }

    .regulamin-content p {
        font-size: 14px;
    }

}


/* =========================================
   RESPONSYWNOŚĆ — 600 PX
========================================= */

@media (max-width: 600px) {

    .header {
        padding: 20px;
    }

    .logo {
        width: 210px;
    }

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 14px;
    }

    .navigation .nav-button {
        font-size: 14px;
    }


    /* INTRO */

    .pricing-intro {
        padding: 25px 15px 20px;
    }

    .intro-text {
        margin-bottom: 30px;

        font-size: 15px;
    }


    /* RODZAJE TRENINGÓW */

    .training-types {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .training-type {
        min-height: auto;

        padding: 20px;
    }


    /* FILTRY */

    .filters-section {
        padding: 20px 15px 30px;
    }

    .filters-container {
        padding: 18px;

        gap: 15px;
    }

    .filters {
        width: 100%;

        gap: 8px;
    }

    .filter-button {
        padding: 8px 14px;

        font-size: 13px;
    }


    /* CENNIK */

    .pricing-section {
        padding: 0 15px 50px;
    }

    .pricing-group {
        margin-bottom: 50px;
    }

    .pricing-group-heading {
        margin-bottom: 20px;
    }

    .pricing-group-heading h2 {
        font-size: 25px;
    }

    .price-cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .price-image {
        height: 230px;
    }

    .price-content {
        padding: 22px;
    }

    .price-description {
        min-height: auto;
    }


    /* FOOTER */

    .footer {
        background-image: url("../images/footer-bg-mobile.png");

        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;

        padding: 30px 25px 22px;

        display: grid;

        grid-template-columns: 1fr 1fr;

        grid-template-areas:
            "navigation information"
            "contact contact"
            "socials socials";

        column-gap: 25px;
        row-gap: 25px;

        min-height: auto;
    }

    .footer-navigation {
        grid-area: navigation;
    }

    .footer-information {
        grid-area: information;
    }

    .footer-contact {
        grid-area: contact;

        padding-left: 0;
    }

    .footer-decoration {
        display: none;
    }

    .socials {
        grid-area: socials;

        width: 100%;

        min-height: auto;
        height: auto;

        margin-top: 0;

        display: flex;
        flex-direction: row;

        align-items: center;
        justify-content: center;

        gap: 22px;
    }

    .footer-column h3 {
        margin-bottom: 10px;

        font-size: 13px;
    }

    .footer-column a {
        margin-bottom: 7px;

        font-size: 13px;
    }

    .contact-item {
        margin-bottom: 8px;

        font-size: 13px;
    }

    .contact-icon {
        width: 25px;
        min-width: 25px;
    }

    .copyright {
        min-height: 30px;

        padding: 7px 15px;

        font-size: 9px;
        line-height: 1.3;
    }

    .modal-overlay {
        padding: 12px;
    }

    .regulamin-modal {
        width: 100%;
        height: 92vh;

        border-radius: 11px;
    }

    .regulamin-content {
        padding: 38px 20px 35px;
    }

    .regulamin-content h2 {
        font-size: 25px;

        line-height: 1.15;
    }

    .regulamin-date {
        font-size: 12px;
    }

    .regulamin-line {
        width: 130px;

        margin-bottom: 25px;
    }

    .regulamin-content h3 {
        margin-top: 25px;

        font-size: 16px;
    }

    .regulamin-content p {
        margin-bottom: 10px;

        font-size: 13px;

        line-height: 1.55;
    }

    .regulamin-company {
        padding-left: 10px;
    }

    .modal-close {
        top: 7px;
        right: 9px;

        width: 34px;
        height: 34px;

        font-size: 29px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;

        width: 42px;
        height: 42px;

        font-size: 22px;
    }

}