* {
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-bottom: 60px;
    padding-top: 90px;
    position: relative;
    z-index: 1;
}

h1,
h2,
h3 {
    font-family: 'Lobster Two', cursive;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/old-paper.jpeg");
    background-size: cover;
    background-position: center;
    opacity: 0.26;
    z-index: 4;
    pointer-events: none;
}

/* menu ---------------------------------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(255, 252, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
    box-sizing: border-box;
    transition: top 0.3s ease;
    font-family: 'Lobster Two', cursive;
}

.logo img {
    height: 100px;
    object-fit: contain;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #8b0000;
}

.navbar.hidden {
    top: -100px;
}

.navbar:hover {
    top: 0 !important;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: black;
}

@media (max-width: 768px) {
    .menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(255, 252, 240, 0.9);
        padding: 10px 0;
        text-align: center;
    }

    .menu.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

/* main ---------------------------------- */

#main {
    height: 84vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 30px;
    margin: 0 auto;
    max-width: 1300px;
    border-radius: 0;
    box-shadow: none;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/pracownia.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border-radius: 10px;
}

#main h1 {
    font-size: 2.8em;
    letter-spacing: 1px;
}

#main h3 {
    margin-bottom: 1.2em;
    margin-top: 1.2em;
}

#main p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 11px;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #6b4c2d;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #5a3d23;
    transform: translateY(-2px);
}

#image-row-pht {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

#image-row-pht img {
    max-height: 450px;
    width: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
    #main {
        border-radius: 0;
    }

    #image-row-pht {
        flex-direction: column;
        align-items: center;
    }

    #image-row-pht img {
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 0;
    }
}

/* about ---------------------------------- */

#about {
    text-align: center;
    padding: 60px 30px;
    background-color: rgba(255, 252, 240, 0.9);
    margin: 40px auto;
    max-width: 1300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#about h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

#about #image-row-about {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#about #image-row-about img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

#about .btn {
    display: inline-block;
    background-color: #7a5a2a;
    color: #fffdf7;
    padding: 12px 24px;
    font-size: 1r
}

/* services --------------------------------- */

#services {
    padding: 60px 20px 40px;
    background-color: #fdfaf5;
    text-align: center;
}

#services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 20px;
}

.service-card {
    background-color: #fefbf5;
    border: 1.5px solid #d6cbb3;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 320px;
    padding: 25px 30px;
    color: #3a2b1c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.service-card p.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #7a5a2a;
    margin-top: auto;
}

/* gallery ---------------------------------- */

#gallery {
    padding: 60px 20px;
    background-color: #fdfaf5;
    text-align: center;
}

#gallery h1 {
    font-size: 2rem;
    color: #3a2b1c;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

#gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 58px;
}

.image-container {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    position: relative;
}

.image-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

#gallery-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

#gallery-box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    opacity: 0.85;
}

#gallery h3 {
    margin-top: 30px;
}

#gallery-box img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* location -------------------------------- */

#location-container {
    padding: 60px 20px;
    background-color: rgba(255, 252, 240, 0.9);
    text-align: center;
    color: #3a2b1c;
    max-width: 1300px;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#location-container h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

#map-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

#map-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* contact ---------------------------------- */

#contact {
    background-color: #f7f3eb;
    padding: 60px 20px;
    text-align: center;
    color: #3a2b1c;
}

#contact h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

#contact p {
    font-size: 0.9rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

#contact-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 250px;
    min-height: 220px;
    padding: 20px;
    background-color: #fffdf7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    box-sizing: border-box;

    a {
        text-decoration: none;
        color: black;
    }
}

.contact-img:hover {
    transform: translateY(-5px);
}

.contact-img img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.contact-img p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

#contact-form {
    margin-top: 50px;
    background: rgba(0,0,0,0.05);
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#contact-form h2 {
    text-align: center;
    margin-bottom: 15px;
}

#contact-form #messageForm .btn {
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

#form-status {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

/* footer ---------------------------------- */

footer {
    background-color: #6b4c2d;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-height: 25px;
    z-index: 1;
    cursor: pointer;
    opacity: 0.7;
    font-family: 'Lobster Two', cursive;
}

footer a {
    text-decoration: none;
    color: white;
}

footer a:hover {
    color: pink;
}