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

:root {
    --accent: #C96B6F;
    --accent-hover: #A8484C;
    --accent-soft: rgba(201, 107, 111, 0.10);
    --highlight: #E8A87C;
    --bg: #fffaf6;
    --bg-alt: #fbeee5;
    --card: #ffffff;
    --text: #2d2a36;
    --text-soft: #5a5563;
    --text-muted: #897f8f;
    --border: #ecdfd4;
    --nav-bg: rgba(255, 250, 246, 0.92);
    --shadow-sm: 0 2px 8px rgba(45, 42, 54, 0.04);
    --shadow-md: 0 12px 32px rgba(45, 42, 54, 0.08);
    --radius: 14px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Lora', Georgia, serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1f1820;
        --bg-alt: #2a2129;
        --card: #2a2129;
        --text: #f5ecef;
        --text-soft: #c9b9c0;
        --text-muted: #8a7c84;
        --border: #3a2f37;
        --nav-bg: rgba(31, 24, 32, 0.92);
        --accent-soft: rgba(232, 168, 124, 0.14);
        --accent: #E8A87C;
        --accent-hover: #f0b890;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 600;
}

a { color: inherit; text-decoration: none; }

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

/* Nav */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: inline-flex;
    align-items: center;
}
.brand img {
    display: block;
    height: 48px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 28px;
    font-size: 15px;
    color: var(--text-soft);
}
.nav-links a:hover { color: var(--accent); }
@media (max-width: 640px) {
    .nav-links { display: none; }
}

/* Hero */
.hero {
    padding: 96px 0 80px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, var(--accent-soft), transparent 60%),
        var(--bg);
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
}
.hero p {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto 36px;
}
.cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-store {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-store:hover { transform: translateY(-2px); filter: brightness(0.95); }
.btn-store img {
    display: block;
    height: 56px;
    width: auto;
}
.hero .btn-store img { height: 75px; }
@media (max-width: 480px) {
    .btn-store img { height: 48px; }
    .hero .btn-store img { height: 60px; }
}
.badge {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Sections */
section { padding: 80px 0; }
.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}
.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}
.section-head p {
    color: var(--text-soft);
    font-size: 17px;
}

/* Features */
.features {
    background: var(--bg-alt);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.card p {
    color: var(--text-soft);
    font-size: 15px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.step {
    text-align: center;
}
.step-num {
    counter-increment: step;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step-num::before { content: counter(step); }
.step h3 {
    font-size: 19px;
    margin-bottom: 8px;
}
.step p {
    color: var(--text-soft);
    font-size: 15px;
}

/* Final CTA */
.final-cta {
    background: var(--bg-alt);
    text-align: center;
}
.final-cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}
.final-cta p {
    color: var(--text-soft);
    margin-bottom: 32px;
    font-size: 17px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact */
.contact-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.contact-icon svg { width: 28px; height: 28px; }
.contact-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.contact-card > p {
    color: var(--text-soft);
    font-size: 16px;
    margin-bottom: 28px;
}
.contact-card .btn-primary {
    gap: 10px;
    color: #fff;
}
.contact-card .btn-primary svg { width: 18px; height: 18px; }
.contact-extra {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
}
.contact-extra h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 17px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}
.contact-extra p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}
@media (max-width: 520px) {
    .contact-card { padding: 28px 20px; }
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a:hover { color: var(--accent); }

/* Legal prose (polityka prywatności) */
.legal {
    max-width: 760px;
    margin: 0 auto;
}
.legal-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}
.legal h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin: 44px 0 14px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
    font-size: 18px;
    margin: 28px 0 10px;
}
.legal p,
.legal li {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
}
.legal p { margin-bottom: 14px; }
.legal ul {
    margin: 0 0 18px 22px;
}
.legal li { margin-bottom: 8px; }
.legal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 15px;
}
.legal th,
.legal td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    vertical-align: top;
}
.legal th {
    color: var(--text);
    font-weight: 600;
}
.legal-table-wrap { overflow-x: auto; }
