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

body {
    font-family: 'Inter', sans-serif;
    color: #1E2A2E;
    background-color: #FFFFFF;
    line-height: 1.5;
}

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

/* Typografia */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Nawigacja */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E2A2E;
    text-decoration: none;
}

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

.nav-menu a {
    text-decoration: none;
    color: #2d3e44;
    font-weight: 500;
}

.btn-outline {
    border: 1px solid #CC6A2C;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    color: #CC6A2C !important;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #CC6A2C;
    color: white !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Przyciski */
.btn-primary {
    display: inline-block;
    background-color: #CC6A2C;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #b55a24;
    transform: translateY(-2px);
}

.btn-secondary {
    background: none;
    border: 1px solid #CC6A2C;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    color: #CC6A2C;
    font-weight: 500;
    cursor: pointer;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero-sub {
    font-size: 1.2rem;
    color: #4A5568;
    margin: 1rem 0 2rem;
}

/* Kafelki – strona główna (szablon siatki) */
.kafelki {
    padding: 4rem 0;
}

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

/* Karty – układ wertykalny (ikona nad tekstem) z dużymi ikonami */
.card {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 1.8rem;
    transition: 0.2s;
    text-align: center;
}

.card-icon {
    margin-bottom: 1.2rem;
}

.card-icon-emoji {
    font-size: 72px;   /* duże ikony – możesz zwiększyć do 80px lub 96px */
    display: inline-block;
    line-height: 1;
}

.card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.4rem;
}

.card p {
    margin: 0 0 1rem 0;
    color: #4A5568;
}

.card-link {
    display: inline-block;
    color: #CC6A2C;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Stary styl karty (dla ewentualnych innych miejsc) – zachowany dla kompatybilności */
.card:not(.with-emoji) {
    text-align: left; /* domyślnie nie wyśrodkowuje, ale nic nie psuje */
}

/* Kalkulator Testu MŚP */
.kalkulator-msp {
    background: #F2F4F7;
    padding: 4rem 0;
}

.quiz-box {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.quiz-question {
    font-weight: 500;
    margin: 1.5rem 0 0.5rem;
}

.quiz-buttons {
    display: flex;
    gap: 1rem;
}

.quiz-ans {
    background: #EDF2F7;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.1s;
}

.quiz-ans:hover {
    background: #CC6A2C;
    color: white;
}

.quiz-result {
    margin: 1.5rem 0;
    font-weight: 500;
    text-align: center;
}

.inline-lead {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.inline-lead input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid #CBD5E0;
    border-radius: 40px;
}

/* Opinie */
.opinie {
    padding: 4rem 0;
}

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

.opinion-card {
    background: #F1F5F9;
    padding: 1.5rem;
    border-radius: 20px;
    font-style: italic;
}

/* CTA ciemne tło */
.cta-dark {
    background: #1E2A2E;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

/* Stopka */
footer {
    background: #F8F9FA;
    padding: 2rem 0 1rem;
    border-top: 1px solid #E2E8F0;
    margin-top: 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-note {
    font-size: 0.85rem;
    color: #4A5568;
    max-width: 400px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: #718096;
    border-top: 1px solid #E2E8F0;
    padding-top: 1rem;
}

/* Akordeony (dla podstron) */
.accordion-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    background: #F8FAFC;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 1rem 1.5rem;
}

/* Kalkulator innowacji (podstrona) */
.kalkulator-card {
    background: #E8F0FE;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
}

/* Responsywność */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-top: 1rem;
    }
    .nav-menu.active {
        display: flex;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .opinie-grid {
        grid-template-columns: 1fr;
    }
    .quiz-buttons {
        flex-direction: column;
    }
    /* Na małych ekranach karty pozostają wertykalne, ale ikonę można nieco zmniejszyć */
    .card-icon-emoji {
        font-size: 60px;
    }
}