/* STYLE DLA STRONY O NAS */

/* Szare tło dla strony */
.about-page {
    background: #6f6f6f !important;
}

/* HEADER - identyczny jak w kontakcie */
.about-header {
    background: linear-gradient(170deg, #000000, #6F6F6F) !important;
    backdrop-filter: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.about-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* LOGO - identyczne jak w kontakcie */
.logo-container {
    flex: 0 0 auto;
}

.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* MENU - z wszystkimi efektami hover */
.about-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
}

.about-navigation .nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-block;
}

.about-navigation .nav-menu li a:hover {
    color: #ffa113;
    transform: scale(1.1);
}

.about-navigation .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffa113;
    transition: width 0.3s ease;
}

.about-navigation .nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a.active {
    color: #ffa113;
}

/* HAMBURGER MENU */
.about-navigation .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.about-navigation .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* HERO IMAGE - z stałymi wysokościami jak w kontakcie */
.hero-image-section {
    width: 100%;
    margin-top: 80px; /* Taki sam jak w kontakcie */
    position: relative;
    z-index: 100;
}

.hero-image-container {
    width: 100%;
    height: 250px; /* STAŁA WYSOKOŚĆ zamiast auto - jak w kontakcie na tablet */
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%; /* 100% wysokości kontenera zamiast auto */
    object-fit: cover; /* Pokrywa kontener zachowując proporcje */
    object-position: center; /* Centruje obraz */
    border-radius: 0; /* Bez zaokrąglonych rogów */
}

/* RESPONSYWNE WYSOKOŚCI - dokładnie jak w kontakcie */
@media screen and (max-width: 1024px) {
    .hero-image-container {
        height: 250px; /* Taki sam jak w kontakcie */
    }
    
    .hero-image-section {
        margin-top: 75px;
    }
}

@media screen and (max-width: 768px) {
    .hero-image-container {
        height: 200px; /* Taki sam jak w kontakcie */
    }
    
    .hero-image-section {
        margin-top: 75px; /* Taki sam jak w kontakcie */
    }
}

@media screen and (max-width: 480px) {
    .hero-image-container {
        height: 150px; /* Taki sam jak w kontakcie */
    }
    
    .hero-image-section {
        margin-top: 80px;
    }
}


/* KONTENER Z TREŚCIĄ - szare tło z tekstami po lewej i zdjęciem po prawej */
.content-section {
    background-image: url('https://serwer381339.lh.pl/img/o-nas-background.jpg');
    padding: 4rem 0;
    background-size: 100%;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* DWA KONTENERY NA TEKST - 60% szerokości - PO LEWEJ */
.text-content {
    flex: 0 0 100%; /* 60% szerokości - PO LEWEJ STRONIE */
    display: flex;
    flex-direction: column;
    gap: 3rem;
    order: 1; /* Najpierw tekst */
}

.text-column {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-column ul {
    margin-left: 25px;
    	color: #e0e0e0;

}

.text-column a {
 color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-block;
}

.text-column a:hover {

color: #ffa113;
    transform: scale(1.1);

}

.text-column h2 {
    color: #ffa113;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ffa113;
    padding-bottom: 0.5rem;
}

.text-column p {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.text-column p:last-child {
    margin-bottom: 0;
}

/* MIEJSCE NA ZDJĘCIE - 40% szerokości - PO PRAWEJ */
.image-content {
    flex: 0 0 40%; /* 40% szerokości - PO PRAWEJ STRONIE */
    order: 2; /* Potem zdjęcie */
}

.content-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    
}

/* RESPONSYWNOŚĆ - zaktualizowana dla nowego layoutu */
@media screen and (max-width: 768px) {
    /* Content section - pionowy layout na mobile */
    .content-section {
        padding: 3rem 0;
    }
    
    .content-container {
        flex-direction: column; /* Pionowy układ na mobile */
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .text-content {
        flex: none;
        width: 100%;
        order: 1; /* Tekst na górze na mobile */
    }
    
    .image-content {
        flex: none;
        width: 100%;
        order: 2; /* Zdjęcie na dole na mobile */
    }
    .ul {
	margin-left: 25px;
    	color: #e0e0e0;
}

}

/* SEKCJA 5 KOLUMN - ikony SVG z opisami */
.features-section {
    background: #6f6f6f;
    padding: 4rem 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-title {
    color: #ffa113;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 3px solid #ffa113;
    padding-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

/* GRID 5 KOLUMN - responsywny */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 5px solid rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 161, 19, 0.2);
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    height: 60px;
}

.feature-icon .icon {
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon .icon {
    transform: scale(1.1);
}

.feature-item h3 {
    color: #ffa113;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* FOOTER - poprawiony jak w kontakcie */
.about-page .footer {
    position: relative !important;
    /*margin-top: 4rem;*/
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px);
}

.about-page .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.about-page .footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.about-page .footer-text {
    color: white;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.8;
}


/* RESPONSYWNOŚĆ - poprawiona sekcja grid */
@media screen and (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolumny na średnich ekranach */
    }
    
    /* Resetuj pozycjonowanie nth-child */
    .features-grid .feature-item:nth-child(4),
    .features-grid .feature-item:nth-child(5) {
        grid-column: auto; /* Resetuj do auto */
    }
}

@media screen and (max-width: 1024px) {
    .content-container {
        gap: 2rem;
    }
    
    .text-content {
        gap: 2rem;
    }
    
    .text-column {
        padding: 1.5rem;
    }
    
    .features-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(3, 1fr); /* Utrzymaj 3 kolumny */
    }
}

@media screen and (max-width: 768px) {
    /* Header responsive */
    .about-navigation {
        justify-content: space-between;
    }
    
    .about-navigation .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(170deg, #000000, #6F6F6F);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        backdrop-filter: blur(10px);
    }

    .about-navigation .nav-menu.active {
        right: 0;
    }

    .about-navigation .nav-menu li {
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-navigation .hamburger {
        display: flex;
    }
    
    .about-navigation .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .about-navigation .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .about-navigation .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero image */
    .hero-image-section {
        margin-top: 75px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    /* Content section - pionowy layout na mobile */
    .content-section {
        padding: 3rem 0;
    }
    
    .content-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .image-content,
    .text-content {
        flex: none;
        width: 100%;
    }
    
    /* Features - 2 kolumny na mobile - POPRAWIONE */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* USUŃ specjalne pozycjonowanie 5. elementu na mobile */
    .features-grid .feature-item:nth-child(5) {
        grid-column: auto; /* Pozwól na naturalne flow */
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    /* Footer */
    .about-page .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .about-page .footer-center {
        position: static;
        transform: none;
    }
    
    .social-media {
        order: -1;
    }
}

@media screen and (max-width: 480px) {
    .hero-image-section {
        margin-top: 70px;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .text-column {
        padding: 1rem;
    }
    
    .text-column h2 {
        font-size: 1.5rem;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .features-title {
        font-size: 1.7rem;
    }
    
    /* Features - 1 kolumna na bardzo małych ekranach - POPRAWIONE */
    .features-grid {
        grid-template-columns: 1fr; /* 1 kolumna */
    }
    
    /* USUŃ wszystkie specjalne pozycjonowanie */
    .features-grid .feature-item:nth-child(4),
    .features-grid .feature-item:nth-child(5) {
        grid-column: auto; /* Naturalne flow */
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }
}

/* RESPONSYWNE HERO IMAGES - metoda CSS background jak w kontakcie */

/* Domyślny obrazek desktop */
.hero-bg {
    background-image: url('https://serwer381339.lh.pl/img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 150px; /* Ustaw stałą wysokość */
    width: 100%;
}

/* Obrazek dla tabletów */
@media screen and (max-width: 1024px) {
    .hero-bg {
        background-image: url('https://serwer381339.lh.pl/img/hero-small.jpg'); /* Opcjonalnie inny obrazek */
        height: 250px;
    }
}

/* Obrazek dla mobile */
@media screen and (max-width: 768px) {
    .hero-bg {
        background-image: url('https://serwer381339.lh.pl/img/hero-small.jpg');
        height: 200px;
    }
}

/* Bardzo małe ekrany */
@media screen and (max-width: 480px) {
    .hero-bg {
        background-image: url('https://serwer381339.lh.pl/img/hero-small.jpg');
        height: 150px;
    }
}