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

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Poppins', sans-serif;
    background: #f6f8fc;
    color: #333;
    line-height: 1.6;
}

header {
    background: #ffffff;
    color: #810947;
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #f6f8fc;
    border-radius: 50% 50% 0 0;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #810947;
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

nav a:hover {
    color: #5f8cff;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* logo po lewej, menu po prawej */
    max-width: max-content;
    margin: 0 auto;
    gap: 20vh;
}

nav .logo img {
    height: 14vh;
    /* dopasuj rozmiar logo */
}

.logo-icon {
    height: 60px;
    /* rozmiar logo */
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    display: flex;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    height: 100%;
    /* zajmuje całą wysokość li */
    line-height: normal;
    /* pozwala flexowi wycentrować tekst pionowo */
    transition: color 0.3s;
    text-align: center;
}


nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s;
}

section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    scroll-margin-top: 180px;
    /* wysokość Twojego menu */
}


h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #444;
}

.address {
    text-align: center;
    /* wyśrodkowanie adresu */
    font-size: 1.6rem i !important;
    /* zwiększona czcionka */
    font-weight: 600;
    /* pogrubienie, opcjonalnie */
    padding: 10px;
}

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

}

.card {
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #810947, #e40478);
}

.card h3 {
    margin-bottom: 10px;
    color: #444;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
}

.about img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.card a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2vh;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    transition: transform 0.3s;
    /* animacja powiększenia */
    cursor: pointer;
    /* zmiana kursora przy hover */
}


/* Responsywność: jedna kolumna na małych ekranach */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
        /* jedna kolumna na telefonie */
    }

    header h1 {
        font-size: 2rem;
    }

    .nav-container {
        flex-direction: column;
        /* logo nad menu */
        align-items: flex-start;
        /* wszystko wyrównane do lewej */
        gap: 15px;
        /* mniejszy odstęp między logo a menu */
        padding: 10px 20px;
    }

    nav ul {
        flex-direction: column;
        /* menu pionowo */
        gap: 15px;
        /* mniejsze odstępy między zakładkami */
        margin-left: 0;
        /* usuń odsunięcie od logo */
        width: 100%;
    }

    nav .logo img {
        height: 40px;
    }

    nav a {
        font-size: 16px;
        /* mniejszy tekst */
    }

    .logo img {
        height: 40px;
        /* dopasuj rozmiar logo do telefonu */
    }


    .nav-links {
        position: fixed;
        /* stałe względem ekranu */
        top: 0;
        /* zaczyna się od góry */
        left: 0;
        /* od lewej krawędzi */
        width: 100vw;
        /* pełna szerokość ekranu */
        height: 100vh;
        /* pełna wysokość ekranu */
        background: #810947;
        /* lekko przezroczyste, możesz zmienić kolor */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        display: none;
        /* ukryte na start */
        z-index: 100;
        /* nad całą stroną */
        padding-top: 60px;
        /* trochę miejsca od góry (np. pod logo) */
    }

    .nav-links.show {
        display: flex !important;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
    }

    .nav-links li {
        margin: 20px 0;
        font-size: 1.2rem;
        text-align: center;
    }

}

footer {
    text-align: center;
    padding: 40px 20px;
    background: #222;
    color: white;
    margin-top: 60px;
}

.map-container {
    width: 100%;
    height: 40vh;
    border: 0;
    border-radius: 18px;
}

.contact-item {
    margin-top: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

.contact-link i {
    font-size: 24px;
    line-height: 1;
}

/* Hover */
.contact-link:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Kolory platform */
.contact-link.phone i {
    color: #000000;
}

.contact-link.email i {
    color: #000000;
}

.contact-link.facebook i {
    color: #1877f2;
}

.contact-link.instagram i {
    color: #e1306c;
}


/* stan początkowy */
.scroll-animate {
    opacity: 0;
    /* początkowo niewidoczna */
    transform: translateY(50px);
    /* lekko w dół */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    transform: translateY(0);
    opacity: 1;
}


#pricing {
    padding: 100px 20px;
    background: #f9fafc;
    text-align: center;
}

.pricing-cards {
    max-width: 1100px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.price-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.price-card h3 {
    margin-bottom: 15px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #5f8cff;
    margin-bottom: 15px;
}

.price-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.4;
}


.contact-note {
    display: block;
    color: #000;
    font-size: 14px;
    margin-top: 4px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #5f8cff;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.5;
}

.main-photo {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
}

.pricing-note {
    margin-top: 30px;
    text-align: center;
    color: #555;
    font-size: 15px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

#glossary {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

#glossary h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.section-intro {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
  font-size: 16px;
}

.glossary-cards {
  display: flex;
  flex-direction: column; /* jeden pod drugim */
  gap: 20px; /* odstęp między kafelkami */
}

.glossary-card {
  background: white;
  padding: 25px 30px; /* trochę większe paddingi, żeby były szersze */
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: 0.3s;
  width: 100%; /* pełna szerokość kontenera */
}

.glossary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.1);
}

.glossary-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #333;
}

.glossary-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}
