@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --bg-main: #030712; 
    --bg-surface: #0f172a; 
    --border-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #1d4ed8, #38bdf8); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.15), transparent 60%);
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo img {
    height: 40px;
    display: block;
    border-radius: 6px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1.2rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex: 1;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.hero {
    text-align: center;
    padding: 8rem 0;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 0;
}

.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--border-color);
    transition: background 0.4s ease;
}

.price-card:hover {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    background: var(--bg-surface); 
}

.price-card:hover::before {
    background: var(--accent-gradient);
}

.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.price-card .price span {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-card ul {
    list-style: none;
    margin-bottom: 3rem;
    text-align: left;
    flex-grow: 1;
}

.price-card ul li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start !important;
    gap: 10px;
}

.price-card ul li i {
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 5px;
}

/* --- ZMNIEJSZONA KARTA MASTER --- */
.pricing-hero-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 1) 0%, rgba(3, 7, 18, 1) 100%);
    border: 2px solid var(--accent-color);
    padding: 2.2rem; /* było 3.5rem */
    border-radius: 20px; /* było 24px */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem; /* było 3rem */
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.pricing-hero-card:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.pricing-hero-info {
    flex: 1;
    min-width: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pricing-hero-features {
    flex: 1.2;
    min-width: 0 !important;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem; /* było 2rem */
    border-radius: 12px; /* było 16px */
    border: 1px solid rgba(255,255,255,0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 900px) {
    .pricing-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.8rem;
        gap: 1.5rem;
    }
    .pricing-hero-features {
        width: 100%;
    }
}

.badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background: var(--accent-gradient);
    padding: 0.4rem 1.2rem; /* było 0.5rem 1.5rem */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-size: 0.8rem; /* było 0.9rem */
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    letter-spacing: 1px;
}

.pricing-hero-title { font-size: 2.2rem; margin-bottom: 0.2rem; } /* było 2.5rem */
.pricing-hero-subtitle { color: var(--accent-color); font-weight: 500; font-size: 0.95rem; margin-bottom: 1rem; } /* mniejszy margines i dodany rozmiar */
.pricing-hero-price { font-size: 3.5rem; font-weight: 800; margin-bottom: 0.8rem; line-height: 1; } /* było 4.5rem */
.pricing-hero-price span { font-size: 1.2rem; color: var(--text-secondary); font-weight: 400; } /* było 1.5rem */
.btn-block { width: 100%; text-align: center; display: block; box-sizing: border-box; font-size: 1.05rem; padding: 1rem; margin-top: 1rem; } /* było 1.1rem i padding 1.2rem */
.features-title { margin-bottom: 1.2rem; font-size: 1.1rem; color: var(--text-primary); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; } /* było 1.2rem i mb 1.5rem */
.features-list { list-style: none; margin-bottom: 0; }
.features-item { margin-bottom: 0.85rem; color: var(--text-secondary); font-size: 0.95rem; display: flex; align-items: flex-start !important; gap: 10px; line-height: 1.5; } /* zmniejszone odstępy, dodany mniejszy font */
.features-item i { color: var(--accent-color); margin-top: 4px; flex-shrink: 0; }
.divider-container { text-align: center; margin: 4rem 0 2rem 0; position: relative; }
.divider-line { position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(255,255,255,0.1); z-index: 1; }
.divider-text { color: var(--text-secondary); font-weight: 400; font-size: 1.1rem; background: var(--bg-main); padding: 0 20px; display: inline-block; position: relative; z-index: 2; }
.btn-outline { width: 100%; background: rgba(255,255,255,0.1); color: white; text-align: center; display: block; box-sizing: border-box; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

.project-image {
    width: 100%;
    height: 220px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.project-info {
    padding: 1.8rem;
    flex-grow: 1;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.contact-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

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

.input-group {
    position: relative;
}

.select-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.select-group .input-group {
    flex: 1;
    min-width: 0;
}

.form-select { 
    width: 100%; 
    background-color: rgba(255,255,255,0.03); 
    border: 1px solid var(--border-color); 
    color: var(--text-primary); 
    padding: 1.2rem 2.8rem 1.2rem 3.2rem; 
    border-radius: 12px; 
    font-size: 1.05rem; 
    cursor: pointer; 
    appearance: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    font-family: 'Outfit', sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.form-select:hover, input:hover, textarea:hover { transform: translateY(-2px); background-color: rgba(255,255,255,0.05); }
.form-select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent-color); background-color: rgba(255,255,255,0.08); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); transform: translateY(-4px); }
.form-select option { background-color: var(--bg-surface); color: var(--text-primary); }

input, textarea {
    width: 100%;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.2rem 1.2rem 1.2rem 3.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.icon-left { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--accent-color); pointer-events: none; font-size: 1.1rem; z-index: 2; }
.icon-top-left { position: absolute; left: 1.2rem; top: 1.3rem; color: var(--accent-color); pointer-events: none; font-size: 1.1rem; z-index: 2; }
.form-icon-right { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }

.btn-primary:hover .fa-paper-plane { animation: fly 0.8s ease-in-out infinite alternate; }
@keyframes fly { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(4px, -4px) rotate(10deg); } }

.info-wrapper { max-width: 750px; }
.info-block { margin-bottom: 2.5rem; }
.info-block.bordered { border-top: 1px solid var(--border-color); padding-top: 2.5rem; }
.info-title { font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.info-title i { color: var(--accent-color); }
.info-text { color: var(--text-secondary); line-height: 1.8; font-size: 1.05rem; }
.info-btn-container { text-align: center; margin-top: 3rem; }
.info-btn-container i { margin-left: 8px; }

.order-wrapper { max-width: 800px; }

.package-details-box {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    margin-bottom: 2.5rem !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.package-details-title {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
}

.package-details-desc {
    color: var(--text-secondary) !important;
    line-height: 1.7 !important;
    font-size: 1.05rem !important;
    margin-bottom: 0.5rem !important;
}

.package-details-features-box {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.package-details-features-title {
    margin-bottom: 1rem !important;
    color: var(--text-primary) !important;
    font-size: 1.1rem !important;
}

.package-details-features-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.package-details-features-list li {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 0.8rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
}

.package-details-features-list li:last-child {
    margin-bottom: 0 !important;
}

.package-details-features-list i {
    color: var(--accent-color) !important;
    margin-right: 12px !important;
    margin-top: 4px !important;
    flex-shrink: 0 !important;
}

.options-title { margin-bottom: 1.5rem; font-size: 1.4rem; }
.options-container { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.option-desc { color: var(--text-secondary); margin-top: 5px; font-size: 0.95rem; }
.order-summary { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.order-summary-title { margin-bottom: 1rem; }
.order-summary-desc { color: var(--text-secondary); margin-bottom: 1.5rem; }
.order-summary i { margin-left: 8px; }

.radio-card { display: block; cursor: pointer; }
.radio-card input[type="radio"] { display: none; }
.card-content { background: rgba(255,255,255,0.02); border: 2px solid var(--border-color); border-radius: 12px; padding: 1.5rem; transition: all 0.3s ease; }
.card-content h4 { font-size: 1.2rem; color: var(--text-primary); }
.radio-card input[type="radio"]:checked + .card-content { border-color: var(--accent-color); background: rgba(59, 130, 246, 0.08); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15); }
.radio-card:hover .card-content { border-color: rgba(59, 130, 246, 0.5); }

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

@media (max-width: 768px) { 
    .select-group { flex-direction: column; } 
    nav {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    nav a { margin: 0 0.5rem; }
}

.radio-card input[type="checkbox"] { display: none; }
.radio-card input[type="checkbox"]:checked + .card-content { border-color: var(--accent-color); background: rgba(59, 130, 246, 0.08); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15); }
