/* === Zmienne i Reset === */
:root {
    --primary: #0066FF; 
    --primary-hover: #005ce6;
    --primary-light: #eff6ff;
    
    --bg-main: #ffffff;
    --bg-sec: #f8fafc;
    
    --text-dark: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    
    --border: #e5e7eb;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-muted);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit;}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Typografia === */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-blue { color: var(--primary); }
.text-center { text-align: center; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-tag {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: 2.25rem;
}
.section-header p {
    font-size: 1.1rem;
    margin-top: 8px;
}

/* === Efekty Hover === */
.hover-glow {
    transition: all 0.3s ease;
}
.hover-glow:hover {
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.12);
    transform: translateY(-4px);
}

/* === Przyciski === */
.btn-panel {
    background-color: var(--primary); 
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.btn-panel:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-outline:hover {
    background-color: var(--bg-sec);
    border-color: #d1d5db;
}

.w-100 { width: 100%; }
.mt-auto { margin-top: auto; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }

/* === Pasek Promo === */
.promo-banner {
    background-color: #10b981;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* === Navbar === */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo img {
    height: 30px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links li { position: relative; }
.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 24px 0;
}
.nav-links li a:hover, .nav-links li a.active {
    color: var(--text-dark);
}

/* Nav Dropdown */
.dropdown-nav:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}
.dropdown-content a {
    display: block !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
}
.dropdown-content a:hover { background: var(--bg-sec); }


.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* === Language Selector === */
.lang-selector {
    position: relative;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
    border: 1px solid var(--border);
}
.lang-btn:hover {
    background: var(--bg-sec);
}
.lang-btn i {
    font-size: 0.75rem;
    color: var(--text-light);
}
.lang-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 140px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}
.lang-selector.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: background 0.2s;
}
.lang-menu a:hover {
    background: var(--bg-sec);
}
.flag {
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    font-size: 1.25rem;
    color: var(--text-dark);
}

/* === Mobile Menu === */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: #fff;
    z-index: 1001;
    padding: 24px;
    transition: right 0.3s ease;
    display: flex; flex-direction: column;
}
.mobile-menu.open { right: 0; }
.close-menu { align-self: flex-end; font-size: 1.5rem; margin-bottom: 40px; color: var(--text-dark); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu ul li a { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); }
.mob-actions { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }

/* === Hero === */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 60px 24px;
    text-align: center;
    background-color: #fff;
}
.hero-content { width: 100%; }
.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 24px;
}
/* Animacja tekstu pod spodem */
.dynamic-text-wrapper {
    display: inline-grid;
    color: var(--primary);
    text-align: center;
}
.dynamic-text-wrapper span {
    grid-area: 1/1;
    opacity: 0;
    animation: textFade 9s infinite;
}
.dynamic-text-wrapper span:nth-child(1) { animation-delay: 0s; }
.dynamic-text-wrapper span:nth-child(2) { animation-delay: 3s; }
.dynamic-text-wrapper span:nth-child(3) { animation-delay: 6s; }

@keyframes textFade {
    0% { opacity: 0; transform: translateY(15px); }
    5% { opacity: 1; transform: translateY(0); }
    28% { opacity: 1; transform: translateY(0); }
    33% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 0; transform: translateY(-15px); }
}

.hero-desc {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* === Features === */
.features {
    padding: 80px 0;
    background-color: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}
.feat-icon-box {
    width: 40px; height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.feat-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feat-card p { font-size: 0.95rem; color: var(--text-muted); }


/* === Skrócona Oferta (Index) === */
.offer-preview-section {
    padding: 80px 0;
    background-color: #fff;
}
.offer-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.offer-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.offer-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.offer-box h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.offer-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}


/* === Pełna Oferta (oferta.html - 5 pakietów) === */
.pricing-page {
    padding: 80px 0 120px;
    background: #fff;
}
.pricing-5-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center;
}
.price-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}
.price-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}
.popular-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}
.price-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 16px;
}
.price-title { font-size: 1.4rem; margin-bottom: 4px; }
.price-subtitle { font-size: 0.9rem; color: var(--text-light); margin-bottom: 24px; }
.price-amount {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-amount .prefix { font-size: 1rem; color: var(--text-light); }
.price-amount .number { font-size: 3rem; font-weight: 800; color: var(--text-dark); line-height: 1;}
.price-amount .suffix { font-size: 0.9rem; color: var(--text-light); }
.price-features { margin-bottom: 32px; }
.price-features li {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.9rem; color: var(--text-dark);
}
.price-features li i { color: var(--primary); font-size: 0.8rem; }


/* === CTA Section === */
.cta-section { padding: 60px 0; background-color: #fff; }
.cta-box {
    background: var(--bg-sec);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cta-text h2 { font-size: 1.875rem; margin-bottom: 8px; }
.cta-text p { font-size: 1rem; color: var(--text-muted); }


/* === FAQ === */
.faq { padding: 60px 0 100px; background-color: #fff; }
.faq-list {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}
.faq-question i {
    color: var(--text-light);
    transition: transform 0.3s ease;
}
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.faq-answer-inner {
    overflow: hidden;
    padding: 0 24px;
    opacity: 0;
    transition: opacity 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-muted);
}
.faq-item.active { border-color: var(--primary); }
.faq-item.active .faq-question { color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-item.active .faq-answer-wrapper { grid-template-rows: 1fr; }
.faq-item.active .faq-answer-inner {
    opacity: 1;
    padding-bottom: 24px;
}


/* === Footer === */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    background: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { height: 24px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; max-width: 300px; }
.footer-col h4 {
    font-size: 0.875rem; text-transform: uppercase; color: var(--text-dark);
    margin-bottom: 16px; font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--text-dark); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* === RWD === */
@media(max-width: 900px) {
    .features-grid, .offer-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-box { flex-direction: column; text-align: center; gap: 24px; padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero { min-height: auto; padding: 80px 24px; }
}
@media(max-width: 768px) {
    .nav-links, .nav-actions .btn-panel, .lang-selector { display: none; }
    .hamburger { display: block; }
    .hero-title { font-size: 2.25rem; }
    .hero-buttons { flex-direction: column; }
    .features-grid, .offer-preview-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .pricing-5-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto;}
}
