:root {
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --accent: #2563eb;
    --accent-soft: #dbeafe;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* GÓRNE MENU */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent);
}

/* PRZYCISK HAMBURGER */

.nav-toggle {
    display: none;
    width: 40px;
    height: 32px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--text-main);
    border-radius: 999px;
    margin: 5px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* MENU DESKTOP */

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

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

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

/* OGÓLNY UKŁAD SEKCJI */

.section {
    padding: 4.5rem 0;
    opacity: 1;
    transform: none;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-hero {
    background: linear-gradient(135deg, #eef2ff, #f9fafb);
}

.section-light {
    background: var(--bg-white);
}

.section-cards {
    background: var(--bg-light);
}

.section h1,
.section h2 {
    margin-bottom: 1rem;
}

.section h1 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.section h2 {
    font-size: clamp(1.6rem, 3vw, 1.9rem);
}

.section p {
    color: var(--text-muted);
    max-width: 640px;
    font-size: 1rem;
}

/* ANIMACJE WJEŻDŻANIA (scroll) */

.section.animate-in-left,
.section.animate-in-right {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.animate-in-left {
    transform: translateX(-40px);
}

.section.animate-in-right {
    transform: translateX(40px);
}

.section.visible {
    opacity: 1;
    transform: translateX(0);
}

/* HERO SLIDER */

.hero-slider {
    position: relative;
    min-height: 280px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 0 4rem;
}

.hero-lead {
    margin-bottom: 0.8rem;
}

.hero-slogan {
    font-size: 0.98rem;
    margin-bottom: 0.3rem;
}

.hero-price {
    font-weight: 600;
}

.hero-cta {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* DRUGI PRZYCISK */

.btn-secondary {
    display: inline-block;
    background: #e5e7eb;
    color: #111827;
    border-radius: 999px;
    padding: 0.8rem 1.7rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

/* Nawigacja hero: strzałki + kropki */

.hero-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.hero-btn {
    background: rgba(15, 23, 42, 0.06);
    border: none;
    color: #0f172a;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
    background: rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.hero-dots {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
    background: var(--accent);
    width: 18px;
    transform: scale(1.05);
}

/* KARTY – GRID 3 i 4 kolumny */

.cards {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* mobile: 1 kolumna */
@media (max-width: 639px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

/* tablet: 2 kolumny */
@media (min-width: 640px) and (max-width: 1023px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* desktop: 4 kolumny */
@media (min-width: 1024px) {
    .cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* SPECJALNY GRID 3-KOLUMNOWY DLA FUNKCJI */

.cards-3 {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* mobile: 1 kolumna */
@media (max-width: 639px) {
    .cards-3 {
        grid-template-columns: 1fr;
    }
}

/* tablet: 2 kolumny */
@media (min-width: 640px) and (max-width: 1023px) {
    .cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* desktop: 3 kolumny */
@media (min-width: 1024px) {
    .cards-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* KARTA */

.card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

.card h3 {
    margin-bottom: 0.5rem;
}

/* SEK. Z JEDNYM KAFELKIEM – WYŚRODKOWANIE */

.cards-single {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* PORTFOLIO LISTA */

.portfolio-list {
    margin-top: 1.5rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.portfolio-list li {
    margin-bottom: 0.4rem;
}

/* FORMULARZ KONTAKTOWY */

.contact-form {
    margin-top: 1.5rem;
    max-width: 500px;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-row label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    padding: 0.7rem 0.9rem;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* PRZYCISKI */

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.7rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

/* STOPKA */

.footer {
    padding: 1.5rem 0;
    background: #020617;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
}

/* SCENARIUSZE – BOXY PROBLEM/ROZWIĄZANIE */

.scenarios-wide {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.scenario-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.problem-box,
.solution-box {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
}

.problem-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #dc2626;
}

.solution-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #059669;
}

.problem-box h4,
.solution-box h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}

/* CENNIK – SUWAK SLOTÓW */

.pricing-slider {
    margin-top: 2rem;
    max-width: 480px;
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
    background: #f3f4f6;
    border: 1px solid var(--border-soft);
}

.pricing-slider-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

#slotsRange {
    width: 100%;
    margin: 0.5rem 0 1.5rem;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    outline: none;
}

#slotsRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

#slotsRange::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.pricing-slider-values {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pricing-slider-value {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

.pricing-slider-value .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

#slotsValue,
#priceValue {
    font-weight: 600;
    color: var(--text-main);
}

.pricing-slider-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* UKŁAD 2-KOLUMNOWY DLA CENNIKA */

.pricing-layout {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .pricing-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: flex-start;
    }
}

.pricing-left,
.pricing-right {
    min-width: 0;
}

/* BOX ZAKUPU */

.pricing-checkout {
    padding: 1.6rem 1.4rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.pricing-checkout h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pricing-checkout-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.96rem;
}

.pricing-checkout-summary .label {
    color: var(--text-muted);
}

.pricing-checkout-note {
    margin: 0.9rem 0 1.1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-checkout-consent {
    margin-bottom: 1rem;
    font-size: 0.86rem;
    color: var(--text-main);
}

.pricing-checkout-consent input[type="checkbox"] {
    margin-right: 0.4rem;
}

.pricing-checkout-button {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.pricing-checkout-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.pricing-checkout-hint {
    margin-top: 0.7rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* RESPONSYWNOŚĆ */

@media (max-width: 768px) {
    .topbar-inner {
        padding: 0.7rem 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border-soft);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease-out;
        z-index: 90;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.75rem 1.25rem 1rem;
        gap: 0.75rem;
    }

    .main-nav a {
        display: block;
        font-size: 0.98rem;
        padding: 0.1rem 0;
    }

    /* stan otwartego menu – pełne okno + scroll w środku */
    .topbar-inner.nav-open .main-nav {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }

    .topbar-inner.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .topbar-inner.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    .topbar-inner.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-inner {
        padding: 0 1.25rem;
    }

    .hero-slider {
        min-height: 240px;
    }

    .hero-content {
        padding: 2rem 0 3rem;
    }

    .hero-slogan {
        font-size: 0.95rem;
    }

    .hero-nav {
        bottom: 1.1rem;
    }

    .scenario-item {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-inner {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 1.6rem 0 3rem;
    }

    .hero-slogan {
        font-size: 0.9rem;
    }

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

