/* Modern Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #e94e1a;
    --orange-dark: #d03e0e;
    --orange-light: #ff6b38;
    --black: #000000;
    --dark: #1a1a1a;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 50px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 35px;
}

/* Modern Header */
.header {
    background: var(--white);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 25px rgba(0,0,0,0.08);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--light-gray);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.header-content .nav {
    margin-left: auto;
    margin-right: 25px;
}

.logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.08);
}

.logo img {
    height: 85px;
    width: auto;
    transition: all 0.3s ease;
}

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

.nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    padding: 10px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--orange);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--orange);
}

/* Mobile header right - hidden on desktop */
.mobile-header-right {
    display: none;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.phone-button {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.phone-button:hover {
    background: var(--light-gray);
    color: var(--orange);
    border-color: var(--orange);
}

.phone-button svg {
    flex-shrink: 0;
}

.btn-header {
    background: var(--orange);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(233,78,26,0.3);
}

.btn-header:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233,78,26,0.4);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--black);
    transition: 0.3s;
}

/* Modern Hero */
.hero {
    background: linear-gradient(135deg, rgba(233,78,26,0.7) 0%, rgba(0,0,0,0.6) 100%),
                url('img/ogrodzenie-panelowe-montaz.webp') center/cover no-repeat;
    padding: 160px 35px 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 0;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5em;
    font-weight: 800;
    margin-bottom: 32px;
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -1.5px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.6);
}

.hero h1::after {
    content: '.';
    color: var(--orange);
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 55px;
    color: var(--white);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

/* Product Mini Grid */
.product-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-mini-card {
    background: rgba(255,255,255,0.95);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    transition: all 0.4s;
}

.product-mini-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(233,78,26,0.4);
}

.product-mini-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.product-mini-card h4 {
    font-size: 1.4em;
    margin-bottom: 8px;
    color: var(--black);
    font-weight: 700;
}

.product-mini-card p {
    color: var(--gray);
    font-size: 0.95em;
    margin: 0;
}

/* Image Slider */
.slider-section {
    background: var(--white);
    padding: 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 33.333%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.slide:hover img {
    transform: scale(1.08);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 45px 35px;
    color: var(--white);
}

.slide-overlay h3 {
    font-size: 1.9em;
    font-weight: 700;
    margin: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 35px 0;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--orange);
    width: 40px;
    border-radius: 7px;
}

/* Modern Buttons */
.btn {
    padding: 20px 55px;
    font-size: 1.1em;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(233,78,26,0.35);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(233,78,26,0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--white);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-4px);
}

.btn-large {
    width: 100%;
    justify-content: center;
    font-size: 1.15em;
    padding: 22px 40px;
}

/* Modern Sections */
.section {
    padding: 110px 35px;
}

.bg-light {
    background: var(--white);
}

.bg-dark {
    background: var(--light-gray);
}

.section-title {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 25px;
    color: var(--black);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 5px;
    background: var(--orange);
    margin: 30px auto 0;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25em;
    color: var(--gray);
    margin-bottom: 80px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    max-width: 1050px;
    margin: 0 auto;
    font-size: 1.2em;
    line-height: 2;
    color: var(--gray);
}

.about-content p {
    margin-bottom: 30px;
}

/* Modern Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.product-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0,0,0,0.04);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.product-header {
    background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange-light) 100%);
    color: var(--white);
    padding: 45px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -60%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.product-header h3 {
    font-size: 1.9em;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.product-body {
    padding: 42px 35px;
    background: var(--white);
}

.product-body p {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 20px;
}

.product-body strong {
    color: var(--black);
}

.product-usage {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid var(--light-gray);
    font-size: 0.98em;
}

/* Modern Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 45px;
    margin-top: 80px;
}

.feature-card {
    text-align: center;
    padding: 50px 35px;
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.feature-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    margin: 0 auto 35px;
    font-weight: 700;
    box-shadow: 0 12px 35px rgba(233,78,26,0.3);
}

.feature-card h3 {
    font-size: 1.7em;
    margin-bottom: 20px;
    color: var(--black);
    font-weight: 700;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.9;
}

/* Modern Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 35px;
    margin-top: 80px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Modern Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    margin-top: 80px;
}

.contact-info,
.contact-cta {
    background: var(--white);
    padding: 55px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(0,0,0,0.04);
}

.contact-info h3,
.contact-cta h3 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: var(--black);
    font-weight: 800;
}

.contact-item {
    margin-bottom: 35px;
}

.contact-item strong {
    display: block;
    color: var(--orange);
    margin-bottom: 14px;
    font-size: 1.15em;
    font-weight: 700;
}

.contact-item p {
    color: var(--gray);
    line-height: 1.8;
}

.contact-item a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

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

/* Contact CTA */
.contact-cta p {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 35px;
    font-size: 1.05em;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-highlight {
    background: linear-gradient(135deg, rgba(233,78,26,0.1) 0%, rgba(255,107,56,0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--orange);
}

.contact-highlight p {
    margin: 0 0 8px 0;
    color: var(--black);
}

.contact-highlight p:last-child {
    margin: 0;
    font-size: 0.95em;
}

/* Modern Footer */
.footer {
    background: var(--dark);
    color: #cccccc;
    padding: 90px 35px 45px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 55px;
    margin-bottom: 55px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 28px;
    font-size: 1.5em;
    font-weight: 800;
}

.footer-col p {
    line-height: 1.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 45px;
    border-top: 2px solid rgba(255,255,255,0.1);
    color: #999999;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5em;
    }

    .section-title {
        font-size: 2.8em;
    }

    .slide {
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav li {
        border-bottom: 1px solid var(--light-gray);
    }

    .nav a {
        display: block;
        padding: 15px 30px;
    }

    .header-right {
        display: none;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-phone-btn {
        color: var(--black);
        text-decoration: none;
        font-weight: 600;
        font-size: 13px;
        white-space: nowrap;
        transition: all 0.3s;
        padding: 8px 12px;
        border-radius: 6px;
        background: var(--light-gray);
    }

    .mobile-phone-btn:hover {
        background: var(--orange);
        color: var(--white);
    }

    .mobile-toggle {
        display: flex;
    }

    .logo img {
        height: 60px;
    }

    .hero {
        padding: 110px 20px 90px;
    }

    .hero h1 {
        font-size: 2em;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1.05em;
    }

    .product-mini-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .slide {
        min-width: 100%;
    }

    .slide-overlay h3 {
        font-size: 1.4em;
    }

    .section {
        padding: 80px 20px;
    }

    .section-title {
        font-size: 2.2em;
    }

    .products-grid,
    .features-grid,
    .gallery-grid,
    .contact-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    }

    .container {
        padding: 0 20px;
    }

    .contact-info,
    .contact-cta {
        padding: 40px 28px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.feature-card,
.gallery-item {
    animation: fadeInUp 0.7s ease-out;
}
