:root {
    --bg: #eef2ff;
    --bg-dark: #0f172a;
    --surface: #ffffff;
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --accent: #f472b6;
    --mint: #5eead4;
    --text: #1e1b4b;
    --muted: #64748b;
    --border: #c7d2fe;
    --font-sans: 'Sora', system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.ad-strip {
    background: #fef08a;
    border-bottom: 2px dashed #ca8a04;
    color: #713f12;
    font-size: 0.75rem;
}

.ad-strip-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem;
}

.ad-strip strong {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Brand */
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.05em;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-name span { color: var(--primary); }

.brand-tagline {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

/* Cards */
.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.08);
}

.tile:hover {
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.12);
}

/* Contact form module */
.contact-module {
    display: grid;
    gap: 0;
    border-radius: 2rem;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
}

@media (min-width: 900px) {
    .contact-module { grid-template-columns: 340px 1fr; }
}

.contact-module__panel {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, #6366f1 100%);
    color: #e0e7ff;
    padding: 2.5rem 2rem;
    position: relative;
}

.contact-module__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(94, 234, 212, 0.25), transparent 50%);
    pointer-events: none;
}

.contact-module__panel h2 {
    color: #fff;
    font-size: 1.75rem;
    margin: 0 0 1rem;
    position: relative;
    z-index: 1;
}

.contact-module__steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    position: relative;
    z-index: 1;
}

.contact-module__steps li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.contact-module__hotline {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.contact-module__hotline a {
    color: var(--mint);
    font-weight: 700;
    text-decoration: none;
}

.contact-form-body {
    background: #f8fafc;
    padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
    .contact-form-body { padding: 2.5rem 2.5rem; }
}

.contact-form-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .contact-form-grid--2 { grid-template-columns: 1fr 1fr; }
}

.field-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 3px solid #cbd5e1;
    background: #fff;
    border-radius: 0.5rem 0.5rem 0 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 0 rgba(79, 70, 229, 0.15);
}

.field-group textarea { min-height: 120px; resize: vertical; border-radius: 0.5rem; border: 2px solid #e2e8f0; border-bottom: 3px solid #cbd5e1; }

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.choice-pill {
    flex: 1;
    min-width: 120px;
}

.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }

.choice-pill label {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    transition: all 0.2s;
    margin: 0;
}

.choice-pill input:checked + label {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.consent-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    background: #fff;
    border-radius: 1rem;
    border: 2px dashed var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}

.btn-submit {
    width: 100%;
    padding: 1.1rem 2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(244, 114, 182, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.45);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #94a3b8;
    margin-top: 4rem;
    position: relative;
}

.footer-wave {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: -47px;
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 2rem;
}

.footer-top {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #334155;
}

@media (min-width: 768px) {
    .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-brand .brand-name { color: #f1f5f9; font-size: 1.5rem; }

.footer-brand .brand-name span { color: var(--mint); }

.footer-brand p {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-col h4 {
    color: #f8fafc;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 1rem;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.footer-contact-list a {
    color: var(--mint);
    text-decoration: none;
    word-break: break-all;
}

.footer-contact-list a:hover { text-decoration: underline; }

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
}

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

.footer-legal {
    padding: 1.5rem 0;
    font-size: 0.78rem;
    line-height: 1.7;
    color: #64748b;
}

.footer-legal p { margin: 0 0 0.75rem; }

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    font-size: 0.8rem;
}

.footer-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #1e293b;
    border-radius: 0.35rem;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.page-hero-sub {
    background: linear-gradient(120deg, #312e81 0%, #4f46e5 40%, #7c3aed 100%);
    color: #fff;
    padding: 4rem 1.25rem;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.page-hero-sub h1 {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-hero-sub p {
    text-align: center;
    color: #c7d2fe;
    max-width: 32rem;
    margin: 1rem auto 0;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal — potwierdzenie formularza */
.form-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.form-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 25px 80px rgba(79, 70, 229, 0.35);
    border: 3px solid var(--primary);
    transform: scale(0.9) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-modal-overlay.is-open .form-modal {
    transform: scale(1) translateY(0);
}

.form-modal__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #5eead4, #4f46e5);
    color: #fff;
    font-size: 1.75rem;
    line-height: 4rem;
    font-weight: 700;
}

.form-modal__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.form-modal__text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.form-modal__close {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-modal__close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
}

.form-modal__x {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.form-modal__x:hover {
    background: #e2e8f0;
    color: var(--text);
}

body.modal-open {
    overflow: hidden;
}
