/* Resetowanie marginesów i paddingów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scroll i lepszy rendering */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Styl dla całej strony */
body {
    font-family: "Luxurious Roman", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #183C28;
    color: #dbbe69;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Nagłówek */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #183C28;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Pasek nawigacyjny */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #183C28;
    padding: 15px 30px;
    flex-wrap: nowrap;
    max-width: 1600px;
    margin: 0 auto;
}

.navbar-links {
    background-color: #183C28;
    list-style-type: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.navbar-links li {
    text-transform: uppercase;
}

.navbar-links a {
    text-decoration: none;
    color: #183C28;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 25px;
    background: linear-gradient(135deg, #dbbe69, #c4a855);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-links a:hover {
    background: linear-gradient(135deg, #c4a855, #a89045);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 190, 105, 0.4);
}

.navbar .icon {
    display: none;
}

.logo img {
    max-width: 120px;
    width: auto;
    height: auto;
    border-radius: 50%;
    border: 3px solid #dbbe69;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Ikony social media */
.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.navbar-text {
    color: #dbbe69;
    font-size: 0.85rem;
    margin-right: 8px;
}

.social-icon {
    color: #dbbe69;
    font-size: 1.4em;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #fff;
    transform: scale(1.2);
}

/* ========== KAFELEK ŚWIĄTECZNY ========== */
.christmas-section {
    padding: 40px 20px;
    background-color: #E7E9F5;
}

.christmas-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 35px;
    background-color: #183C28;
    border-radius: 20px;
    border: 3px solid #dbbe69;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.christmas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dbbe69, #fff, #dbbe69);
}

.christmas-decoration {
    margin-bottom: 15px;
}

.christmas-decoration.bottom {
    margin-bottom: 0;
    margin-top: 20px;
}

.snowflake {
    font-size: 1.8rem;
    color: #fff;
    margin: 0 12px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    will-change: transform, opacity;
    animation: snowfall 3s ease-in-out infinite;
}

.snowflake:nth-child(2) {
    animation-delay: 0.5s;
    font-size: 2.2rem;
}

.snowflake:nth-child(3) {
    animation-delay: 1s;
}

@keyframes snowfall {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-8px); opacity: 0.8; }
}

.star {
    font-size: 2rem;
    color: #dbbe69;
    display: inline-block;
    will-change: transform;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Wyłącz animacje dla osób preferujących reduced motion */
@media (prefers-reduced-motion: reduce) {
    .snowflake, .star {
        animation: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

.christmas-title {
    font-size: 2.2rem;
    color: #dbbe69;
    margin-bottom: 15px;
    font-family: "Yeseva One", serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.christmas-message {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e8d9b5;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== SEKCJA HOME ========== */
#home {
    text-align: center;
    padding: 60px 20px;
    background-color: #E7E9F5;
    color: #dbbe69;
}

.home-content {
    max-width: 1400px;
    margin: 0 auto;
}

#home h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#home p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}


.message-box {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px 25px;
    background-color: #dbbe69;
    color: #183C28;
    border-left: 6px solid #948147;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: "Luxurious Roman", serif;
    transition: transform 0.3s ease;
  }
  
  .message-box:hover {
    transform: scale(1.02);
  }
  
  .message-box h3 {
    margin-top: 0;
    font-size: 1.6rem;
  }
  
  .message-box p {
    margin: 10px 0 0;
    font-size: 1.1rem;
  }


/* Opis właściciela salonu (przesunięcie na prawą stronę) */
/* Kontener dla zdjęć */
.owner-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Pozwala na zawijanie elementów */
    margin-top: 40px;
    padding: 0 20px;
}

/* Kontener dla zdjęć właściciela */
.owner-photo-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Pierwszy obrazek */
.owner-photo.first {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;

    top: 120px;
    left: -20px;

    z-index: 1;
}



.owner-description {
    flex: 2;
    max-width: 550px;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #183C28;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(219, 190, 105, 0.2);
}

.owner-description h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #dbbe69;
    font-family: "Yeseva One", serif;
}

.owner-description p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #dbbe69;
    text-align: justify;
}

/* Złoty pasek dekoracyjny */
.gold-bar {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dbbe69, #c4a855, #dbbe69);
    margin: 15px auto 30px;
    border-radius: 2px;
}

/* ========== GALERIA ========== */
.wrapper {
    position: relative;
    flex-grow: 1;
    margin: 30px auto;
    max-width: 1200px;
    max-height: 1200px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-gap: 2vmin;
    justify-items: center;
    align-items: center;
    border-radius: 15px;
    contain: layout style;
}

.wrapper img {
    z-index: 1;
    grid-column: span 2;
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: -52%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border-radius: 15px;
    transition: transform 0.3s ease, clip-path 0.3s ease, filter 0.3s ease;
    will-change: transform;
    contain: layout;
}

.wrapper img:nth-child(7n + 1) {
    grid-column: 2 / span 2;
}

.wrapper img:hover {
    z-index: 10;
    transform: scale(1.5);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    border-radius: 12px;
}

.wrapper:has(img:hover) img:not(:hover) {
    filter: brightness(0.5);
}

/* ========== SEKCJA CELÓW I ZAŁOŻEŃ ========== */
#cele-i-zalozenia {
    background-color: #E7E9F5;
    color: #dbbe69;
    padding: 70px 20px;
    text-align: center;
}

#cele-i-zalozenia h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: "Yeseva One", serif;
}

.cele-i-zalozenia-kafelki {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cele,
.zalozenia {
    flex: 1;
    min-width: 320px;
    max-width: 550px;
    background-color: #003d26;
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(219, 190, 105, 0.15);
}

.cele:hover,
.zalozenia:hover {
    transform: translateY(-3px);
}

.cele h3,
.zalozenia h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #dbbe69;
    font-family: "Yeseva One", serif;
}

.cele ul,
.zalozenia ul {
    list-style-type: none;
    padding: 0;
}

.cele li,
.zalozenia li {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.cele li::before,
.zalozenia li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #dbbe69;
    font-weight: bold;
}

/* ========== SEKCJA CENNIKA ========== */
#cennik {
    margin: 0 auto;
    padding: 70px 20px;
    text-align: center;
    background-color: #E7E9F5;
}

#cennik h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: "Yeseva One", serif;
}

/* Tabela (na dużych ekranach) */
#existing-table {
    margin: 0 auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Na małych ekranach, tabela jest ukryta, a widoczna jest wersja rozwijana */
#dynamic-table {
    display: none;
    padding: 0 15px;
}

/* Ukrywanie detali przy mniejszych ekranach */
.table-details {
    display: none;
    padding: 15px 20px;
    background: linear-gradient(145deg, #003d26, #002a1a);
    color: #dbbe69;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Pokazuje szczegóły, gdy klikniemy na nazwę usługi */
.table-row .table-cell.first-column {
    font-weight: bold;
    background: linear-gradient(135deg, #003922, #002a1a);
    color: #dbbe69;
    padding: 18px 20px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.table-row .table-cell.first-column:hover {
    background: linear-gradient(135deg, #004d30, #003922);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.table-row .table-details p {
    font-size: 1rem;
    margin: 12px 0;
    padding-left: 10px;
    border-left: 3px solid #dbbe69;
}

th {
    padding: 15px 12px;
    text-align: center;
    color: #dbbe69;
    background: linear-gradient(135deg, #003922, #002a1a);
    font-weight: bold;
    font-size: 0.95rem;
}

td {
    padding: 14px 10px;
    text-align: center;
    color: #dbbe69;
    transition: background-color 0.2s ease;
}

tr:nth-child(even) {
    background-color: #003d26;
}

tr:nth-child(odd) {
    background-color: #002a1a;
}

tr:hover td {
    background-color: #004d30;
}

/* ========== SEKCJA USŁUG ========== */
#usługi {
    margin: 0 auto;
    padding: 70px 20px;
    text-align: center;
}

#usługi h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: "Yeseva One", serif;
}

table {
    width: 90%;
    max-width: 1200px;
    margin: 15px auto;
    border-collapse: collapse;
    background-color: #003d26;
    border-radius: 15px;
    overflow: hidden;
}

/* ========== ZDJĘCIE SALONU ========== */
.salon-photo-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #183C28;
}

.salon-photo.large {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 70vh;
    aspect-ratio: 16 / 9;
}

/* ========== SEKCJA FRYZJERÓW ========== */
#fryzjerzy {
    display: flex;
    justify-content: center;
    padding: 70px 20px;
    flex-wrap: wrap;
    text-align: center;
    background-color: #E7E9F5;
    gap: 30px;
}

#fryzjerzy h2 {
    width: 100%;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #dbbe69;
    font-family: "Yeseva One", serif;
}

.fryzjer-card {
    background-color: #003922;
    color: #dbbe69;
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(219, 190, 105, 0.15);
}

.fryzjer-card:hover {
    transform: translateY(-5px);
}

.fryzjer-card h3 {
    font-size: 1.8rem;
    margin: 15px 0;
    font-family: "Yeseva One", serif;
}

.fryzjer-card p {
    line-height: 1.7;
    text-align: justify;
}

.fryzjer-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* ========== SEKCJA REJESTRACJI ========== */
#rejestracja {
    text-align: center;
    padding: 70px 20px;
    background-color: #183C28;
}

#rejestracja h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: "Yeseva One", serif;
}

#rejestracja p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.rejestracja-link {
    background-color: #dbbe69;
    color: #183C28;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.rejestracja-link:hover {
    background-color: #c4a855;
    transform: translateY(-2px);
}

/* ========== SEKCJA KONTAKTU ========== */
#kontakt {
    padding: 70px 20px;
    text-align: center;
}

#kontakt h2 {
    font-size: 2.5rem;
    color: #dbbe69;
    margin-bottom: 30px;
    font-family: "Yeseva One", serif;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    max-width: 400px;
    text-align: left;
    background-color: #003922;
    padding: 30px;
    border-radius: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-top: 12px;
    line-height: 1.6;
}

.google-map {
    max-width: 600px;
    width: 100%;
}

.google-map iframe {
    width: 100%;
    height: 350px;
    border-radius: 15px;
}

/* ========== STOPKA ========== */
footer {
    background-color: #0c2e1e;
    text-align: center;
    color: #dbbe69;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-top: 2px solid rgba(219, 190, 105, 0.2);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-logo img {
    max-width: 80px;
    height: auto;
    border-radius: 50%;
    border: 2px solid #dbbe69;
}

/* Sekcja Regulaminu */
#regulamin {
    margin: 0 auto;
    padding: 50px;
    text-align: justify;
    width: 80%;
    max-width: 1200px;
}

/* Nagłówek */
#regulamin h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #dbbe69;
}

/* Nagłówki dla sekcji regulaminu */
#regulamin h2 {
    font-size: 1.8rem;
    color: #dbbe69;
    margin-top: 20px;
}

/* Tekst paragrafów */
#regulamin p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ========== RESPONSYWNOŚĆ ========== */

/* Duże tablety i małe laptopy */
@media screen and (max-width: 1200px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar-links a {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .cele-i-zalozenia-kafelki {
        gap: 20px;
    }
    
    .cele, .zalozenia {
        min-width: 280px;
    }
}

/* Tablety */
@media screen and (max-width: 1020px) {
    header {
        position: relative;
    }
    
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }
    
    .navbar-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .navbar-links a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .logo img {
        max-width: 80px;
    }
    
    .social-icons {
        order: 2;
    }
    
    .navbar-text {
        display: none;
    }
    
    .cele, .zalozenia {
        width: 100%;
        max-width: 100%;
    }
    
    .fryzjer-card {
        width: 100%;
        max-width: 100%;
    }
    
    .fryzjer-image {
        height: auto;
        max-height: 400px;
    }
    
    #existing-table {
        display: none;
    }
    
    #dynamic-table {
        display: block;
    }
    
    .table-row {
        margin-bottom: 15px;
    }
    
    .table-cell.first-column {
        border-radius: 10px;
    }
    
    .contact-container {
        gap: 30px;
    }
    
    .christmas-card {
        padding: 30px 25px;
    }
    
    .christmas-title {
        font-size: 1.8rem;
    }
    
    .christmas-message {
        font-size: 1.05rem;
    }
}

/* Telefony */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .navbar-links {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .navbar-links a {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .logo img {
        max-width: 70px;
    }
    
    #home {
        padding: 40px 15px;
    }
    
    .owner-description {
        padding: 20px;
        margin: 0 10px 30px;
    }
    
    .owner-description h2 {
        font-size: 2rem;
    }
    
    .owner-description p {
        font-size: 1rem;
    }
    
    .christmas-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .christmas-title {
        font-size: 1.6rem;
    }
    
    .christmas-message {
        font-size: 1rem;
    }
    
    #cele-i-zalozenia {
        padding: 50px 15px;
    }
    
    #cele-i-zalozenia h2 {
        font-size: 2rem;
    }
    
    .cele li, .zalozenia li {
        font-size: 1rem;
        padding-left: 20px;
    }
    
    #cennik {
        padding: 50px 15px;
    }
    
    #cennik h2 {
        font-size: 2rem;
    }
    
    table {
        width: 95%;
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    #fryzjerzy {
        padding: 50px 15px;
    }
    
    #fryzjerzy h2 {
        font-size: 2rem;
    }
    
    .fryzjer-card {
        padding: 20px;
    }
    
    .fryzjer-image {
        height: auto;
    }
    
    #rejestracja {
        padding: 50px 15px;
    }
    
    #rejestracja h2 {
        font-size: 2rem;
    }
    
    #rejestracja p {
        font-size: 1.1rem;
    }
    
    .rejestracja-link {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    #kontakt {
        padding: 50px 15px;
    }
    
    #kontakt h2 {
        font-size: 2rem;
    }
    
    .contact-info {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .google-map {
        width: calc(100% - 20px);
        margin: 0 10px;
    }
    
    .google-map iframe {
        height: 280px;
    }
    
    footer {
        flex-direction: column-reverse;
        gap: 15px;
        padding: 20px;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    /* Galeria na telefonach - prosta siatka 3x3 */
    .wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
        grid-gap: 8px !important;
        max-height: none;
        padding: 10px;
        max-width: 100%;
    }
    
    .wrapper img {
        grid-column: span 1 !important;
        margin-bottom: 0 !important;
        clip-path: none !important;
        border-radius: 10px;
        aspect-ratio: 1;
        object-fit: cover;
        width: 100%;
        height: auto;
        transition: none;
        will-change: auto;
        z-index: 1;
    }
    
    .wrapper img:nth-child(n) {
        grid-column: span 1 !important;
    }
    
    .wrapper img:hover {
        transform: none !important;
        clip-path: none !important;
        z-index: 1;
    }
    
    .wrapper:has(img:hover) img:not(:hover) {
        filter: none !important;
    }
}

/* Małe telefony */
@media screen and (max-width: 480px) {
    .navbar-links a {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    
    .logo img {
        max-width: 60px;
    }
    
    .social-icon {
        font-size: 1.2em;
    }
    
    .owner-description h2 {
        font-size: 1.7rem;
    }
    
    .christmas-title {
        font-size: 1.4rem;
    }
    
    .snowflake {
        font-size: 1.4rem;
    }
    
    .snowflake:nth-child(2) {
        font-size: 1.6rem;
    }
    
    .cele h3, .zalozenia h3 {
        font-size: 1.5rem;
    }
    
    .cele, .zalozenia {
        padding: 20px 15px;
    }
}