/* Reset i zmienne CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #c6c6c6;
    --accent-color: #555555;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgb(63, 63, 63);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: padding 0.3s cubic-bezier(.23,1.02,.64,1);
}

header.scrolled .header-content {
    padding: 0.5rem 0;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 2.2rem;
    height: 2.2rem;
    margin-right: 0.5rem;
    background: url('logo.svg') no-repeat center center / contain;
    border-radius: 9px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

/* Video Hero Section */
.video-hero {
    margin-top: 0;
    height: 80vh; /* Zwiększone z 60vh na 80vh */
    min-height: 500px; /* Zwiększone z 400px na 500px */
    background: url('main_background.png') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.video-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.video-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.video-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.play-button {
    opacity: 20%;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    color: rgb(140, 140, 140);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.play-button:hover {
    background: var(--secondary-color);
    opacity: 90%;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.play-button::before {
    content: '▶';
    margin-left: 4px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-container {
    position: relative;
    width: 60vw;
    height: 34vw;
    max-width: 1000px;
    max-height: 80vh;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: #000;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
}

.close-modal:hover {
    color: rgba(255,255,255,0.2);
}

/* Hero Section - O witrynie */
.hero {
    margin-top: 24px;
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-left: 20px;
    margin-right: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 0 0 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    flex: 1 1 320px;
    min-width: 260px;
    text-align: center;
}

.hero-image img {
    max-width: 350px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(44, 90, 160, 0.18);
    background: #fff;
    display: block;
    text-align: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000 !important;
    text-shadow: none !important;
    position: relative;
    text-align: center;
}

.hero h1::after {
    content: "";
    display: block;
    margin: 1rem auto 0 auto;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    opacity: 0.7;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #000 !important;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    text-shadow: none !important;
}

.cta-button {
    display: inline-block;
    background: rgb(63, 63, 63) !important;
    color: #fff !important;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(63, 63, 63, 0.3) !important;
    border: none;
}

.cta-button:hover {
    background: #222 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 63, 63, 0.4) !important;
}

/* Main Content */
.main-content {
    background: var(--white);
    margin: 2rem 20px;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: none;
    border: none;
}

.section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(.23,1.02,.64,1), transform 0.8s cubic-bezier(.23,1.02,.64,1);
    will-change: opacity, transform;
    scroll-margin-top: 80px;
}

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

.section h2 {
    font-size: 2.5rem;
    padding-top: 3rem;
    margin-bottom: 1.5rem;
    color: #000 !important;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: "";
    display: block;
    margin: 1rem auto 0 auto;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    opacity: 0.7;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000 !important;
    text-shadow: none !important;
}

.service-card p {
    color: #000 !important;
    text-shadow: none !important;
    text-align: center !important;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Make the Usługi image round */
.services-grid .service-card .hero-image img {
    border-radius: 50% !important;
    object-fit: cover;
    background: #fff;
    border: 3px solid #eee;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

/* Remove hover effect from service cards in the section under Usługi */
#services .service-card,
#services .service-card:hover {
    transform: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Contact Section */
.contact-info-box {
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #222;
    font-size: 1.08rem;
    max-width: 600px;
    width: 100%;
    flex: 1 1 340px;
}

.contact-info-box div {
    margin-bottom: 1rem;
    color: #333;
}

.contact-info-box .contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.2rem 0;
}

.contact-info-box .contact-row a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-box .contact-row a:hover {
    color: var(--secondary-color);
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.contact-info-box .contact-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 2px;
}

.contact-ids {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #333;
    align-items: flex-start;
}

.contact-id-row {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    width: 100%;
    font-size: 1rem;
}

.contact-id-label {
    display: inline-block;
    min-width: 120px;
    max-width: 120px;
    font-weight: bold;
    text-align: right;
    margin-right: 12px;
    flex-shrink: 0;
}

.contact-id-value {
    color: #222 !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: text !important;
}

/* Footer */
footer {
    background: rgb(63, 63, 63) !important;
    color: #fff !important;
    padding: 0.8rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    flex: 1;
    min-width: 250px;
}

.footer-left h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer-left p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-center {
    flex: 1;
    min-width: 220px;
    text-align: center;
}

.footer-right {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

.footer-contact {
    margin-bottom: 0.5rem;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.3rem 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-contact-row a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-contact-row a:hover {
    color: #ccc;
    opacity: 1;
}

.footer-contact-icon {
    width: 14px;
    height: 14px;
    filter: invert(1);
    opacity: 0.8;
}

.footer-ids {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.3;
    opacity: 0.7;
}

.footer-id-row {
    display: flex;
    justify-content: flex-end;
    margin: 0.2rem 0;
}

.footer-id-label {
    font-weight: bold;
    margin-right: 0.5rem;
    min-width: 80px;
    text-align: right;
    opacity: 0.8;
}

.footer-id-value {
    color: #ccc;
    opacity: 0.7;
}

/* JEDNA reguła media query dla mobile */
@media (max-width: 768px) {
    footer {
        padding: 0.6rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact-row {
        justify-content: center;
        font-size: 0.8rem;
        opacity: 0.8;
    }
    
    .footer-ids {
        text-align: center;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.7rem;
        opacity: 0.7;
    }
    
    .footer-id-row {
        justify-content: center;
        text-align: center;
        margin: 0.2rem 0;
    }
    
    .footer-id-label {
        text-align: center;
        margin-right: 0.5rem;
    }
    
    .footer-id-value {
        text-align: center;
    }
    
    .footer-left h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        opacity: 0.9;
        text-align: center;
    }
    
    .footer-left p {
        font-size: 0.8rem;
        opacity: 0.7;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 0.8rem;
        padding: 0 10px;
        text-align: center;
    }
    
    .footer-contact-row {
        font-size: 0.75rem;
        margin: 0.2rem 0;
        justify-content: center;
    }
    
    .footer-ids {
        font-size: 0.65rem;
        align-items: center;
    }
    
    .footer-id-row {
        margin: 0.1rem 0;
        justify-content: center;
        text-align: center;
    }
    
    .footer-left h4 {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .footer-left p {
        font-size: 0.75rem;
        text-align: center;
    }
}

/* Dodatkowe wycentrowanie dla bardzo małych ekranów */
@media (max-width: 480px) {
    .footer-content {
        gap: 0.8rem;
        padding: 0 10px;
        text-align: center;
    }
    
    .footer-contact-row {
        font-size: 0.75rem;
        margin: 0.2rem 0;
        justify-content: center;
    }
    
    .footer-ids {
        font-size: 0.65rem;
        align-items: center;
    }
    
    .footer-id-row {
        margin: 0.1rem 0;
        justify-content: center;
        text-align: center;
    }
    
    .footer-left h4 {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .footer-left p {
        font-size: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 0.6rem 0; /* Zmienione z 1rem na 0.6rem */
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }
    
    .footer-contact-row {
        justify-content: center;
        font-size: 0.8rem;
        opacity: 0.8; /* Zachowana opacity na mobile */
    }
    
    .footer-id-row {
        justify-content: center;
    }
    
    .footer-ids {
        font-size: 0.7rem;
        opacity: 0.7; /* Zachowana opacity na mobile */
    }
    
    .footer-left h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        opacity: 0.9; /* Zachowana opacity na mobile */
    }
    
    .footer-left p {
        font-size: 0.8rem;
        opacity: 0.7; /* Zachowana opacity na mobile */
    }
}

/* Buttons */
.submit-btn,
.scroll-top {
    background: rgb(63, 63, 63) !important;
    color: #fff !important;
    border: none;
}

.submit-btn:hover,
.scroll-top:hover {
    background: #222 !important;
    color: #fff !important;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-2px);
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Contact form styling */
.contact-form {
    max-width: 540px;
    width: 100%;
    margin: 0;
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 2rem;
    flex: 1 1 340px;
}

.contact-flex {
    align-items: flex-start !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.4rem 0 !important;
    }
    
    .logo {
        font-size: 1.05rem;
    }
    
    nav ul {
        gap: 0.7rem;
        font-size: 0.95rem;
    }
    
    header {
        padding: 0;
    }
    
    .video-hero, .hero {
        margin-top: 35px;
    }
    
    .services-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-flex {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-image {
        margin-top: 1rem;
    }
}

/* Always slim header on desktop */
@media (min-width: 769px) {
    .header-content {
        padding: 0.5rem 0 !important;
    }
    
    .contact-info-box {
        margin-top: 0.5rem !important;
    }
    
    .contact-form {
        margin-top: 0 !important;
    }
}

/* Hide logo on scroll for mobile */
@media (max-width: 768px) {
    header.hide-logo .logo {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        height: 0;
        margin: 0;
        padding: 0;
        transition: opacity 0.3s, visibility 0.3s;
    }
}
/*
@media (max-width: 900px), (max-height: 700px) {
    .contact-form {
        max-width: 100%;
    }
    
    .contact-info_box {
        margin-top: 2rem !important;
        text-align: center !important;
    }
}*/

@media (max-width: 600px) {
    .contact-info-box {
        text-align: center !important;
    }
    
    /* Wymuszenie układu w jednej linii dla elementów kontaktowych */
    .contact-row {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin: 0.8rem 0 !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }
    
    .contact-row img.contact-icon {
        display: inline-block !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    .contact-row a {
        display: inline-block !important;
        white-space: nowrap !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }
    
    /* Specjalne traktowanie dla numeru telefonu */
    .contact-row a[href^="tel:"] {
        font-size: 16px !important;
        font-weight: 500 !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Dla bardzo małych ekranów - zmniejsz czcionkę jeśli potrzeba */
    @media (max-width: 360px) {
        .contact-row a {
            font-size: 12px !important;
        }
        
        .contact-row a[href^="tel:"] {
            font-size: 14px !important;
        }
    }
    
    .contact-ids {
        align-items: center !important;
        width: 100%;
    }
    
    .contact-id-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        width: 100%;
        gap: 0 !important;
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .contact-id-label {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        text-align: left !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        user-select: none !important;
        flex-shrink: 0 !important;
        font-size: 0.75rem !important;
    }
    
    .contact-id-value {
        text-align: left !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        -webkit-tap-highlight-color: transparent !important;
        text-decoration: none !important;
        font-size: 0.75rem !important;
        margin-left: 8px !important;
    }
}

/* Specjalne ustawienia dla iPhone SE i bardzo małych ekranów */
@media (max-width: 414px) and (max-height: 736px) {
    .video-hero {
        margin-top: 90px !important; /* Zwiększony margines dla małych ekranów */
        min-height: 350px !important;
        padding-top: 30px !important;
    }
    
    .video-hero-content {
        padding: 20px 15px !important;
    }
    
    .video-hero h1 {
        font-size: 2.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .video-hero p {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero {
        margin-top: 90px !important;
        padding-top: 20px !important;
    }
}

/* Dla iPhone SE (375x667) i podobnych */
@media (max-width: 375px) and (max-height: 667px) {
    .video-hero {
        margin-top: 100px !important;
        padding-top: 40px !important;
    }
    
    .hero {
        margin-top: 100px !important;
        padding-top: 30px !important;
    }
    
    .header-content {
        padding: 0.3rem 0 !important;
    }
    
    .logo {
        font-size: 1rem !important;
    }
    
    nav ul {
        gap: 0.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Ogólne poprawki dla małych ekranów - dostosowanie do iPhone 11 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.3rem; /* Zmniejszony gap */
        padding: 0.4rem 0 !important; /* Mniejszy padding */
    }
    
    .logo {
        font-size: 1.05rem;
    }
    
    nav ul {
        gap: 0.7rem;
        font-size: 0.95rem;
    }
    
    header {
        padding: 0;
        /* Dodaj lepsze dostosowanie wysokości */
        min-height: 60px;
    }
    
    .video-hero, .hero {
        margin-top: 70px; /* Ujednolicony margines */
        padding-top: 20px; /* Dodatkowy padding */
    }
    
    /* Poprawki dla sekcji */
    .section {
        scroll-margin-top: 90px; /* Zwiększony scroll offset */
    }
    
    .section h2 {
        padding-top: 2rem; /* Zmniejszony padding */
    }
}

/* Dla bardzo szerokich ale niskich ekranów (landscape) */
@media (max-width: 900px) and (max-height: 500px) {
    .video-hero {
        margin-top: 80px !important;
        min-height: 350px !important; /* Zmniejszone dla landscape */
        height: 70vh !important; /* Zmniejszone dla landscape */
    }
    
    .hero {
        margin-top: 80px !important;
    }
    
    .video-hero h1 {
        font-size: 2rem !important;
    }
    
    .video-hero p {
        font-size: 1rem !important;
    }
}

/* Specjalne ustawienia dla bardzo dużych ekranów desktop */
@media (min-width: 1200px) and (min-height: 800px) {
    .video-hero {
        height: 85vh; /* Jeszcze większe na dużych ekranach */
        min-height: 600px;
    }
    
    .video-hero h1 {
        font-size: 3.5rem; /* Większy tekst na dużych ekranach */
    }
    
    .video-hero p {
        font-size: 1.4rem;
    }
}

/* Dla bardzo wysokich ekranów */
@media (min-height: 1000px) {
    .video-hero {
        height: 90vh;
        min-height: 700px;
    }
}

/* Dodatkowe zabezpieczenia dla viewport units */
@media (max-width: 768px) {
    .video-hero {
        height: 50vh !important; /* Zmniejszone z 60vh */
        min-height: 350px !important;
    }
    
    /* Poprawka dla przycisków sticky */
    .scroll-top {
        bottom: 80px; /* Przesunięty wyżej żeby nie kolidował z UI przeglądarki */
    }
}

/* Safari iOS specyficzne poprawki */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .video-hero {
            margin-top: 80px !important;
            padding-top: 25px !important;
        }
        
        .hero {
            margin-top: 80px !important;
        }
        
        /* Poprawka dla viewport na iOS */
        .video-hero {
            height: calc(50vh - 20px) !important;
            min-height: 320px !important;
        }
    }
}

/* Sticky footer - dodaj to na końcu pliku */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content areas - każdy powinien mieć flex: 1 */
.video-hero,
.hero,
.main-content,
.contact-page,
.services-page {
    flex: 1;
}

/* Footer zostanie zawsze na dole */
footer {
    margin-top: auto;
}

/* Poprawki dla istniejących styli */
.contact-page {
    padding-top: 80px;
    /* Usuń min-height i margin-bottom */
    /* min-height: calc(100vh - 160px); */
    /* margin-bottom: 0; */
    /* padding-bottom: 0; */
}

.services-page {
    padding-top: 80px;
    /* Usuń min-height jeśli istnieje */
    /* min-height: calc(100vh - 80px); */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-page,
    .services-page {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center !important;
        padding: 2rem 1rem !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
    
    .hero-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center !important;
    }
    
    .hero-text {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero h1 {
        font-size: 2.2rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        text-align: center !important; /* Wymuś wycentrowanie na mobile */
        line-height: 1.6 !important;
        max-width: 100% !important;
        margin: 0 auto 2rem auto !important;
        padding: 0 10px !important;
    }
    
    .hero-image {
        margin-top: 1rem;
        text-align: center !important;
        width: 100% !important;
    }
    
    .hero-image img {
        max-width: 300px !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Dodatkowe reguły dla bardzo małych ekranów */
@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.5rem !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        padding: 0 5px !important;
    }
}

/* Specjalne reguły dla sekcji celów fundacji */
.foundation-goals {
    text-align: center !important;
}

.foundation-goals h2 {
    text-align: center !important;
}

.goals-list {
    text-align: left !important; /* Lista celów pozostaje justify */
}

.cta-button {
    display: inline-block !important;
    margin: 0 auto !important;
}

/* Mobile adjustments for foundation goals */
@media (max-width: 768px) {
    .foundation-goals {
        margin: 1.5rem auto !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    
    .foundation-goals h2 {
        font-size: 1.5rem !important;
        text-align: center !important;
    }
    
    .goal-item {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
        text-align: left !important; /* Cele pozostają wyjustowane do lewej */
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
        display: block !important;
        margin: 1.5rem auto !important;
        text-align: center !important;
        max-width: 200px !important;
    }
}