/* --- CSS Variables & Design System --- */
:root {
    --primary-color: #D4AF37; /* Gold / warm accent */
    --primary-color-hover: #b5952f;
    --bg-dark: #121212;
    --bg-surface: #1E1E1E;
    --bg-surface-light: #2A2A2A;
    --text-main: #F2F2F2;
    --text-muted: #A0A0A0;
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 160px; /* Zabezpieczenie miejsca pod wysoki nagłówek */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.padding-section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

span {
    color: var(--primary-color);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-primary-outline {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-family);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-primary-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* --- Header / Navigation --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 0;
    transition: var(--transition);
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#header.scrolled {
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    padding: 5px 0 0 0; /* Mniejszy padding przy scrollu */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact-item .icon {
    font-size: 1rem;
    color: var(--primary-color);
}

.header-contact-item .text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.header-contact-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.header-contact-item a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    transition: var(--transition);
}

.phones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.phones a span {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 4px;
}

.phones .sep {
    display: none;
    color: rgba(255,255,255,0.15);
    font-size: 0.8rem;
}

.header-contact-item a:hover {
    color: var(--primary-color);
}


/* --- Sub-Navigation Bar --- */
.subnav-bar {
    position: relative;
    width: 100%;
    z-index: 100;
    background-color: rgba(0,0,0,0.2); /* Lekkie przyciemnienie dla odróżnienia */
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0;
    margin-top: 0; /* Usunięto margines */
}

.subnav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* Tylko bezpośrednie linki w kontenerze i trigger */
.subnav-container > a, 
.subnav-item .dropdown-trigger {
    display: inline-block;
    padding: 16px 25px;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.subnav-container > a::after,
.subnav-item .dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.subnav-container > a:hover,
.subnav-item .dropdown-trigger:hover {
    color: var(--primary-color);
}

.subnav-container > a:hover::after,
.subnav-item .dropdown-trigger:hover::after {
    width: 70%;
}

/* Dropdown Logic */
.subnav-item.dropdown {
    position: relative;
}

.dropdown-trigger .arrow {
    font-size: 0.6rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: none !important; /* Całkowite ukrycie */
    z-index: 9999;
}

.subnav-item.dropdown:hover .dropdown-menu {
    display: block !important; /* Pokaż tylko przy hover */
}

.subnav-item.dropdown:hover .dropdown-trigger .arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    color: #ccc !important;
    text-align: left !important;
    width: 100% !important;
    white-space: nowrap !important;
    border: none !important;
    background: none !important;
}

.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a:hover {
    background-color: rgba(212, 175, 55, 0.1) !important;
    color: var(--primary-color) !important;
}


.nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 0;
}

.logo {
    flex: 0 0 auto;
}

.header-contact-info {
    margin-left: auto;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 70px;
    width: auto;
    border-radius: 5px;
}

.logo-img-footer {
    height: 100px;
    width: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
}

.desktop-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1;
}

.desktop-nav .btn-primary-outline {
    min-height: 52px;
    align-items: center;
}

.desktop-nav a:not(.btn-primary-outline):hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* --- Hero Section with Slider --- */
.hero-section {
    height: clamp(540px, 82vh, 740px);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transform: scale(1.01);
    transform-origin: center;
    transition: opacity 1.4s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    animation: heroSlideZoom 5.4s ease-out forwards;
}

.slide.exit {
    opacity: 0;
    z-index: 0;
    transform: scale(1.065);
}

@keyframes heroSlideZoom {
    from {
        transform: scale(1.01);
    }
    to {
        transform: scale(1.065);
    }
}

/* Overlay over the slider */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18,18,18,0.48) 0%, rgba(18,18,18,0.26) 52%, rgba(18,18,18,0.08) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10; /* Powyżej slidera i overlay */
    max-width: 800px;
}

.hero-content {
    position: relative;
    z-index: 10; /* Teraz na pewno powyżej przyciemnienia */
    max-width: 800px;
    padding-left: 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.features-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    transform: translate(15px, 15px);
    z-index: -1;
    transition: var(--transition);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

/* --- Services Section (legacy - kept for compatibility) --- */
.services-section {
    background-color: var(--bg-surface);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.service-card {
    background-color: var(--bg-surface-light);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* --- Categories Section (Image Tiles) --- */
.categories-section {
    background-color: var(--bg-surface);
}

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

.category-tile {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.category-tile:hover .category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.category-overlay h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
}

.category-cta {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.category-tile:hover .category-cta {
    opacity: 1;
    transform: translateY(0);
}

/* --- Why Us Section --- */
.why-us-section {
    background-color: var(--bg-dark);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-us-card {
    text-align: center;
    padding: 50px 30px;
    background-color: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid #2a2a2a;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(212, 175, 55, 0.2);
}

.why-us-card:hover::before {
    opacity: 1;
}

.why-us-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
}

.why-us-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.why-us-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Client Reviews Section --- */
.projects-section {
    background-color: var(--bg-surface);
}

.reviews-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 18px;
    align-items: center;
}

.reviews-track {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 2px 24px;
    cursor: grab;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.reviews-track.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.review-card {
    flex: 0 0 min(860px, 82vw);
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    min-height: 360px;
    background-color: var(--bg-surface-light);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.review-image {
    min-height: 100%;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.review-card:hover .review-image img {
    transform: scale(1.04);
}

.review-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 38px;
}

.review-rating {
    color: var(--primary-color);
    font-size: 1.05rem;
    letter-spacing: 2px;
}

.review-quote {
    color: var(--text-main);
    font-size: 1.28rem;
    line-height: 1.55;
    font-weight: 400;
}

.review-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 22px;
}

.review-footer h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.review-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.review-footer span {
    max-width: 220px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.reviews-nav {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, 0.65);
    border-radius: 50%;
    background-color: rgba(18, 18, 18, 0.74);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.reviews-nav span {
    color: inherit;
    font-size: 2.4rem;
    line-height: 1;
    transform: translateY(-2px);
}

.reviews-nav:hover,
.reviews-nav:focus-visible {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
}

.reviews-helper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
}

.reviews-helper span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Order Process Section --- */
.process-section {
    background-color: var(--bg-dark);
}

.process-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-surface);
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
    border: 1px solid #2a2a2a;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(212, 175, 55, 0.2);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 10px;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.process-connector {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    padding-top: 60px;
    opacity: 0.5;
}


/* --- Gallery Section --- */
.project-block {
    margin-bottom: 60px;
}

.project-block:last-child {
    margin-bottom: 0;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.project-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 2002;
    background: transparent;
    border: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--primary-color);
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--bg-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item .icon {
    font-size: 1.5rem;
    background-color: var(--bg-surface-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-surface-light);
    border: 1px solid #333;
    border-radius: var(--radius);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    appearance: none;
    cursor: pointer;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 97%;
    background-position-y: center;
}

.submit-btn {
    width: 100%;
}

/* --- Advanced Contact Form Styles --- */
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.file-group {
    background-color: var(--bg-surface-light);
    border: 1px dashed var(--primary-color);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.file-label-title {
    font-weight: 600;
    margin-bottom: 15px !important;
    display: block;
}

.file-input {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: var(--text-muted) !important;
    cursor: pointer;
}

.file-input::file-selector-button {
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    transition: var(--transition);
}

.file-input::file-selector-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.file-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 0;
    appearance: none;
    background-color: var(--bg-surface-light);
    border: 1px solid #333;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
}

.checkbox-group input[type="checkbox"]::after {
    content: '';
    width: 8px;
    height: 14px;
    border: solid #000;
    border-width: 0 3px 3px 0;
    opacity: 0;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: var(--transition);
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"]:checked::after {
    opacity: 1;
}

.checkbox-group input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.checkbox-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- Footer --- */
footer {
    background-color: #0A0A0A;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: underline;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* --- Floating Phone --- */
.floating-phone {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-phone:hover {
    transform: scale(1.1);
    background-color: #fff;
    color: var(--bg-color);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@media (min-width: 769px) {
    .floating-phone {
        display: none;
    }
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* --- WordPress Native Gallery Block Styles --- */
.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 50px !important;
}

.wp-block-gallery .wp-block-image {
    position: relative;
    border-radius: var(--radius) !important;
    overflow: hidden;
    aspect-ratio: 4/3;
    margin: 0 !important;
    cursor: pointer;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    flex-basis: auto !important;
}

.wp-block-gallery .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-radius: 0 !important;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.1) !important;
}

.wp-block-gallery .wp-block-image figcaption {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2)) !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 30px !important;
    opacity: 0 !important;
    transition: var(--transition) !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    transform: translateY(20px) !important;
    margin: 0 !important;
    text-align: left !important;
}

.wp-block-gallery .wp-block-image:hover figcaption {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Content Block Styles (Gutenberg) --- */
.page-content {
    counter-reset: project-number;
}

.page-content h2, .page-content h3 {
    font-size: 1.8rem;
    margin-top: 60px;
    margin-bottom: 25px;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    counter-increment: project-number;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-content h2::after, .page-content h3::after {
    content: "Wzór nr " counter(project-number);
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.page-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.6;
}

/* --- Animations (Intersection Observer) --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .image-wrapper {
        order: -1;
        margin-bottom: 30px;
    }
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .reviews-carousel {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 12px;
    }
    .review-card {
        flex-basis: min(720px, 82vw);
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .review-image {
        aspect-ratio: 16/9;
    }
    .process-grid {
        flex-wrap: wrap;
    }
    .process-step {
        flex: 1 1 45%;
    }
    .process-connector {
        display: none;
    }
    .subnav-bar {
        overflow: visible; /* Naprawa dla rozwijanego menu */
    }
    .subnav-container {
        justify-content: center;
        flex-wrap: wrap; /* Zamiast scrolla, zawijamy jeśli trzeba */
    }
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        gap: 16px;
        min-height: 64px;
    }

    .desktop-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    .desktop-nav.active {
        right: 0;
    }

    .desktop-nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .padding-section {
        padding: 60px 0;
    }

    .categories-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .reviews-carousel {
        grid-template-columns: 1fr;
    }

    .reviews-nav {
        display: none;
    }

    .review-card {
        flex-basis: 86vw;
    }

    .review-content {
        padding: 26px;
    }

    .review-quote {
        font-size: 1.05rem;
    }

    .review-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-footer span {
        max-width: none;
        text-align: left;
    }

    .reviews-helper {
        align-items: flex-start;
        flex-direction: column;
    }

    .process-step {
        flex: 1 1 100%;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .subnav-bar {
        display: none;
    }

    .header-contact-info {
        display: none; /* Ukrywamy dodatkowe info w nagłówku na telefonach */
    }

    #header {
        top: 0; 
    }
}
/* Portfolio return */
.portfolio-back-link {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 214, 0, 0.34);
    border-radius: 999px;
    background: rgba(9, 18, 31, 0.86);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.portfolio-back-link:hover,
.portfolio-back-link:focus-visible {
    border-color: rgba(255, 214, 0, 0.72);
    background: rgba(9, 18, 31, 0.96);
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

@media (max-width: 520px) {
    .portfolio-back-link {
        right: 18px;
        bottom: 14px;
        width: calc(100% - 36px);
    }
}
