/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* CSS Custom Properties - Nowa paleta kolorów z logo */
:root {
    /* Główne kolory */
    --color-orange: #F58320;
    --color-orange-dark: #E5731A;
    --color-green: #8CC63F;
    --color-blue: #00A7E1;
    --color-blue-dark: #2E7DB2;
    --color-yellow-orange: #FBB040;
    
    /* Kolory pomocnicze */
    --color-dark: #333333;
    --color-gray: #666666;
    --color-light-gray: #F8F9FA;
    --color-white: #FFFFFF;
    
    /* Kolory dla gradientów */
    --gradient-hero-start: #F58320;
    --gradient-hero-mid: #8CC63F;
    --gradient-hero-end: #00A7E1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.nav__logo {
    display: block;
    height: 90px;
    max-width: 320px;
    text-decoration: none;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.nav__logo:hover {
    transform: scale(1.03);
}

.nav__logo img {
    height: 120%;
    width: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    margin-top: -10%;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-blue);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav__toggle-line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Nowoczesny design z subtelnym akcentem */
.hero {
    padding: 150px 0 120px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-green) 50%, var(--color-blue) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 131, 32, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 500px;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero__title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--color-dark);
    letter-spacing: -0.03em;
}

.hero__highlight {
    color: var(--color-orange);
    position: relative;
}

.hero__highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.2em;
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-green) 100%);
    opacity: 0.3;
    z-index: -1;
}

.hero__description {
    font-size: 1.15rem;
    color: var(--color-gray);
    margin-bottom: 2.25rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 540px;
}

.hero__description strong {
    color: var(--color-blue-dark);
    font-weight: 600;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-left: 2rem;
}

.hero__logo {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 0;
}

.hero__placeholder {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-orange);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-orange-dark);
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--color-white);
    color: var(--color-blue-dark);
    border: 2px solid var(--color-blue);
    box-shadow: 0 2px 8px rgba(0, 167, 225, 0.15);
}

.btn--secondary:hover {
    background: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 225, 0.25);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Sections */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Misja Section */
.misja {
    padding: 80px 0;
    background: #fff;
}

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

.misja__card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.misja__card:hover {
    transform: translateY(-5px);
}

.misja__icon {
    margin-bottom: 1.5rem;
}

.misja__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
}

.misja__card-description {
    color: var(--color-gray);
    line-height: 1.6;
}

/* Projekty Section */
.projekty {
    padding: 80px 0;
    background: #f8f9fa;
}

.projekty__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.projekt__card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.projekt__card:hover {
    transform: translateY(-5px);
}

.projekt__image {
    padding: 2rem;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
}

.projekt__placeholder {
    background: white;
    border-radius: 12px;
    padding: 1rem;
}

.projekt__content {
    padding: 2rem;
}

.projekt__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
}

.projekt__description {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.projekt__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.projekt__tag {
    background: rgba(0, 167, 225, 0.1);
    color: var(--color-blue-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.projekt__links {
    display: flex;
    gap: 1rem;
}

.projekt__link {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
}

.projekt__link:hover {
    text-decoration: underline;
}

/* Zespół Section */
.zespol {
    padding: 80px 0;
    background: white;
}

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

.zespol__card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
}

.zespol__avatar {
    margin-bottom: 1.5rem;
}

.zespol__placeholder {
    background: white;
    border-radius: 50%;
    padding: 1rem;
    display: inline-block;
}

.zespol__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-blue-dark);
    margin-bottom: 0.5rem;
}

.zespol__role {
    color: var(--color-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}

.zespol__description {
    color: var(--color-gray);
    line-height: 1.6;
}

/* Wspieraj Section */
.wspieraj {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.wspieraj__card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wspieraj__icon {
    margin-bottom: 1.5rem;
}

.wspieraj__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
}

.wspieraj__description {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.wspieraj__link {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
}

.wspieraj__link:hover {
    text-decoration: underline;
}

/* Kontakt Section */
.kontakt {
    padding: 80px 0;
    background: white;
}

.kontakt__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.kontakt__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kontakt__icon {
    flex-shrink: 0;
}

.kontakt__details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-blue-dark);
    margin-bottom: 0.5rem;
}

.kontakt__details p {
    color: var(--color-gray);
}

/* Form */
.form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-blue);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--color-blue-dark);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__logo {
    display: block;
    height: 70px;
    max-width: 250px;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer__logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.footer__logo:hover img {
    opacity: 0.85;
    transform: scale(1.02);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.8);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer__social-link:hover {
    color: var(--color-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__logo {
        height: 75px;
        max-width: 260px;
    }
    
    .nav__logo img {
        height: 120%;
        margin-top: -10%;
    }
    
    .footer__logo {
        height: 50px;
        max-width: 180px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero__content {
        max-width: 100%;
    }
    
    .hero__image {
        padding-left: 0;
        order: -1;
    }
    
    .hero__logo {
        max-height: 300px;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__description {
        max-width: 100%;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .nav__menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .kontakt__content {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }

    .footer__links {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 0.75rem 0;
    }
    
    .nav__logo {
        height: 65px;
        max-width: 220px;
    }
    
    .nav__logo img {
        height: 120%;
        margin-top: -10%;
    }
    
    .footer__logo {
        height: 45px;
        max-width: 160px;
    }

    .hero {
        padding: 110px 0 60px;
    }
    
    .hero__image {
        padding-left: 0;
    }
    
    .hero__logo {
        max-height: 250px;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero__description {
        font-size: 1rem;
        max-width: 100%;
    }

    .section__title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.btn:focus,
.form__input:focus,
.form__select:focus,
.form__textarea:focus,
.nav__link:focus {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero__title,
    .section__title {
        color: #000;
    }
    
    .btn--primary {
        background: #000;
        border-color: #000;
    }
    
    .btn--secondary {
        color: #000;
        border-color: #000;
    }
}
