/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.btn-secondary:hover {
    background: #e53e3e;
    color: white;
}

/* Icon Classes */
.icon-location::before { content: "📍"; }
.icon-phone::before { content: "📞"; }
.icon-clock::before { content: "🕐"; }
.icon-email::before { content: "✉️"; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: #2d3748;
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: #e53e3e;
    border-color: #e53e3e;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #2d3748;
}

.logo-text {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.logo-full {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    color: #2d3748;
}

.brand-sub {
    font-weight: 400;
    font-size: 1rem;
    color: #718096;
}

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

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

.nav-menu a:hover {
    color: #e53e3e;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e53e3e;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2d3748;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(45, 55, 72, 0.85), rgba(74, 85, 104, 0.85)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 140px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.03"><path d="M0,0 L1000,0 L1000,100 C800,50 600,80 400,60 C200,40 100,70 0,50 Z"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(229, 62, 62, 0.15), rgba(197, 48, 48, 0.15));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 8rem 0 2rem 0;
    width: 100%;
}

.hero-text {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.title-main {
    display: block;
    letter-spacing: 0.1em;
}

.title-sub {
    display: block;
    font-weight: 300;
    font-size: 0.8em;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(rgba(247, 250, 252, 0.95), rgba(247, 250, 252, 0.95)), url('../images/about-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #4a5568;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(229, 62, 62, 0.15);
    border-color: rgba(229, 62, 62, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #718096;
    margin: 0;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}

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

.service-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #f7fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(229, 62, 62, 0.2);
    border-color: #e53e3e;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.service-item .service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.service-item p {
    color: #718096;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.pricing-note {
    color: #718096;
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.price-table th {
    background: #2d3748;
    color: white;
    padding: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.price-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.price-table tbody tr:hover {
    background: #f7fafc;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

/* Location Section */
.location {
    padding: 6rem 0;
    background: #f7fafc;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.address h4 {
    font-size: 1.2rem;
    color: #e53e3e;
    font-weight: 500;
}

.map-container {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.google-map {
    width: 100%;
    height: 100%;
    border: none;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 1.1rem;
}

.google-map::before {
    content: "🗺️ Mapa zostanie załadowana";
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-card {
    background: #f7fafc;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item a {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e53e3e;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #718096;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:not([value=""]) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: #e53e3e;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

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

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

.footer-left p {
    color: #a0aec0;
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom a {
    color: #a0aec0;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-info {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .header-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .service-card,
    .feature {
        text-align: center;
    }

    .feature {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 1rem 0;
        background-attachment: scroll;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .title-main {
        font-size: 2rem;
    }

    .title-sub {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .hero-services {
        grid-template-columns: 1fr;
    }

    .about,
    .services,
    .location,
    .contact {
        padding: 4rem 0;
    }

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

    .price-table th,
    .price-table td {
        padding: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

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

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}