:root { 
    --header-height: 100px; 
}

* {
    box-sizing: inherit;
}

@font-face {
    font-family: 'Smooch Sans';
    src: url('fonts/SmoochSans-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html {
    box-sizing: border-box;
    margin: 0;
    scrollbar-gutter: stable-both-edges;
}

.smooch-sans-uniquifier {
    font-family: "Smooch Sans";
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Smooch Sans", sans-serif;
    color: #222222;
    background-color: #faf7f5;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

main { 
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* --- 3. NAGŁÓWEK I TYTUŁ --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    box-sizing: border-box;
    background-color: #efece9;
    border-bottom: 1px solid #ffffff;
    z-index: 1000;
}

header h1 {
    margin: 0;
    padding: 0;
    position: static !important;
    line-height: normal;
    font-family: "Smooch Sans", sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #222222;
    order: 0;
}

#site-title-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: color 0.3s;
}

#site-title-link:hover {
    color: #555;
}

/* --- 4. NAWIGACJA I HAMBURGER --- */
nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #efece9;
    color: #222222;
    padding: 10px 20px;
}

header nav {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.hamburger {
    position: relative;
    margin-left: auto; 
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    gap: 6px;
    cursor: pointer;
    z-index: 999;
    background: transparent;
    border-radius: 6px;
    transition: background .18s ease;
    transform: rotate(0deg); 
}

.hamburger div {
    width: 26px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transform-origin: center; 
    transition: transform .28s ease, opacity .2s ease;
}

.hamburger.open {
    background: #efece9;
    animation: spin360 .7s ease forwards;
}

.hamburger.open div:nth-child(1) { 
    transform: translateY(4.5px) rotate(45deg); 
}

.hamburger.open div:nth-child(2) { 
    transform: translateY(-4.5px) rotate(-45deg); 
}

@keyframes spin360 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- 5. MENU ROZWIJANE --- */
.menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: calc(90px + 10px);
    right: 20px;
    background-color: #efece9cc; 
    backdrop-filter: blur(5px);
    padding: 20px;
    width: 220px;
    height: auto;
    z-index: 10002;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

.menu.active {
    display: flex;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 400;
    margin: 10px 0;
    text-align: center;
}

/* --- 6. SOCIAL ICONS (Header & Footer) --- */
.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-right: auto;
}

.social-icons a, 
.site-footer .social-icons a {
    text-decoration: none;
    color: #3a3a3a;
    font-size: 30px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, color .18s ease, color 0.3s ease;
}

.social-icons a:hover, 
.site-footer .social-icons a:hover {
    color: #555;
    transform: scale(1.08);
}

.site-footer .social-icons {
    justify-content: center;
    margin: 0;
    gap: 12px;
}

/* --- 7. SEKCJA PORTFOLIO --- */
.portfolio-section {
    width: 80%;
    margin: 0 auto 80px auto;
    padding: 20px 0;
}

/* --- 8. GALERIA I LIGHTBOX --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 8px;
    gap: 10px;
    align-items: start;
    box-sizing: border-box;
}

.gallery-row { display: contents; }

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(6px) scale(0.995);
    transition: opacity 2s ease, transform 2s ease;
    border-radius: 8px;
    object-fit: cover;
}

.gallery img.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery img:hover { transform: scale(1.03); }

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
    z-index: 20000;
}

.lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 92%;
    max-height: 86%;
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
    border-radius: 6px;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 20px;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 20001;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #afafaf;
    border: none;
    font-size: 42px;
    cursor: pointer;
    z-index: 20002;
    padding: 10px;
    transition: color 0.8s ease, transform 0.3s ease;
}

.lightbox-nav:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev { left: 70px; }
.lightbox-nav.next { right: 70px; }
.lightbox[aria-hidden="true"] .lightbox-nav { display: none; }

/*--- 9. SEKCJA OFERTA---*/
.offer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

@keyframes scaleIn {
    0%   { opacity: 0; transform: translateY(-24px); }
    70%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(0); }
}

.offer-content .offer-item {
    opacity: 0;
    transform: translateY(-24px);
    will-change: opacity, transform;
}

.offer-content.animate .offer-item {
    animation-name: scaleIn;
    animation-duration: 1.6s;
    animation-fill-mode: both;           
    animation-timing-function: cubic-bezier(.16,.84,.24,1);
    animation-delay: 0s;               
    }

.offer-title {
    text-align: center;
    margin: 0 0 30px;
    font-size: 36px;
    font-weight: 500;
}

.offer-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.offer-item {
    flex: 1 1 30%;
    min-width: 220px;
    text-align: center;
    margin: 0;
}

.offer-photo {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 12px;
    object-fit: cover;
}

.offer-caption {
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    font-size: 24px;
}

.offer-text {
    margin: 0 0 8px;
    color: #333;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
}

.offer-box {
    background: #efece9;
    padding: 28px;
    margin-top: 28px;
    border-radius: 10px;
    color: #222;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.offer-price-heading {
    text-align: center;
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 24px;
}

.pricing-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap; 
    overflow-x: auto;  
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.pricing-card {
    background: #f6f3f2; 
    border: 1px solid rgba(0,0,0,0.04);
    padding: 20px 18px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    box-sizing: border-box;
    text-align: center;
    flex: 1 1 300px;   
    min-width: 260px;
    max-width: 360px;
}

.pricing-card h3 { 
    margin: 0 0 8px; 
    font-size: 28px; 
}

.pricing-features { 
    text-align: left; 
    margin: 10px 0; 
    padding-left: 0px;
    list-style: none;
}

.pricing-features li { 
    margin-bottom: 8px; 
    font-size: 24px;
    position: relative;
    padding-left: 18px;
}

.pricing-features li::before {
    content: "–"; /* en dash */
    position: absolute;
    left: 0px;
    color: #333;
}

.pricing-price { 
    font-weight: 600; 
    font-size: 32px; 
    margin: 10px 0; 
}

.pricing-card { 
    display: flex; 
    flex-direction: column; 
}

.pricing-footer { 
    margin-top: auto; 
}

.pricing-heading {
    text-align: center;
    font-size: 36px;
    margin: 8px 0 18px;
    font-weight: 600;
}

.pricing-note {
    text-align: center;
    margin-top: 18px;
    font-size: 24px;
    color: #333;
}

.btn-contact {
    display: inline-block;
    background: #333; 
    color: #efece9;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;
    transition: background .18s ease, transform .12s ease, box-shadow .12s ease;
}
.btn-contact:hover,
.btn-contact:focus {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    outline: none;
}

/* --- 10. SEKCJA O MNIE --- */
.about-section {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #faf7f5;
    padding: 0 20px;
    flex: 1;
}

.about-box {
    display: flex;
    gap: 50px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 1;
    flex-wrap: nowrap;
}

.about-photo {
    flex: 0 0 40%;
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    object-fit: cover;
}

.about-text {
    flex: 0 1 40%;
    max-width: 720px;
    text-align: justify;
    font-size: 1.5em;
}

/* --- 10.1 SEKCJA KONTAKT --- */
.contact-section {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #faf7f5;
    padding: 0 20px;
    flex: 1;
    text-align: center;
    font-size: 1.5em;
}

.link a {
    text-decoration: none;
    color: inherit;
}

/* --- 11. STOPKA (FOOTER) --- */
.site-footer {
    width: 100vw;
    background: #efece9;
    border-top: 1px solid #ffffff;
    padding: 10px 0;
    text-align: center;
    box-sizing: border-box;
    margin-top: auto;
}

.site-footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    box-sizing: border-box;
}

.footer-name { font-size: 16px; }

/* --- 12. SCROLL TO TOP --- */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: none;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    text-decoration: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 0.7;
    visibility: visible;
    pointer-events: auto;
    animation: pulse 1.2s infinite;
}

.scroll-to-top:hover { opacity: 1; }

.scroll-to-top i {
    color: #333;
    font-size: 28px;
    transition: color 0.3s;
    margin-bottom: -15px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* --- 12. MEDIA QUERIES (Skonsolidowane) --- */
@media (max-width: 1200px) {
    .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(3, 1fr); }
    header h1 { font-size: 36px; }
    .offer-grid { gap: 16px; }
    .offer-item img { max-width: 280px; }
}

@media (max-width: 800px) {
    .about-content { flex-direction: column; gap: 18px; }
    .about-photo { max-width: 80%; flex: 0 0 auto; }
    .about-text { width: 100%; }
}

@media (max-width: 768px) {
    .social-icons a, .site-footer .social-icons a { font-size: 20px; padding: 6px; }
    .hamburger { z-index: 10003; }

    .menu {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        top: 0;
        right: 0;
        background-color: #efece9cc;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10002;
        transform: none;
        transition: opacity 0.3s ease;
    }

    .menu.active { display: flex; }

    .menu a { font-size: 32px; margin: 15px 0; width: 100%; }

    .pricing-card { width: 100%; max-width: 560px; }
    .pricing-grid { gap: 14px; flex-wrap: wrap; }
}

@media (max-width: 1024px) and (min-width: 561px) {
    .pricing-grid {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }
    .pricing-card {
        flex: 1 1 320px;
        max-width: 360px;
    }
}

@media (max-width: 600px) {
    header h1 { font-size: 28px; }
    .portfolio-section { margin-bottom: 40px; }
    .offer-title { font-size: 24px; margin: 0 0 15px;}
    .offer-grid { flex-direction: column; align-items: center; }
    .offer-item { width: 100%; }
    .offer-item img { max-width: 320px; }
    .btn-contact { width: 100%; display: inline-block; padding: 14px; text-align:center; }
    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto; 
    }
    .gallery img,
    .gallery-row img {
        width: 100%;
        flex: none;
        height: auto;
        display: block;
    }
    .lightbox-nav { width: 40px; height: 40px; font-size: 24px; }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
}

@media (max-width: 480px) {
    .social-icons a, .site-footer .social-icons a { font-size: 18px; padding: 4px; }
}

@media (max-width: 400px) {
    header h1 { font-size: 22px; }
}
