/* =========================================
   LIGHT THEME (Variant B) — calm corporate
   For: index.html provided earlier
========================================= */

/* -------------------------
   RESET / BASE
------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Arial, sans-serif;
    color: #111827;
    /* slate-900 */
    line-height: 1.65;

    /* soft "paper" background + very subtle blue/ink */
    background:
        radial-gradient(900px 520px at 18% 0%, rgba(29, 78, 216, 0.07), transparent 60%),
        radial-gradient(820px 520px at 92% 10%, rgba(17, 24, 39, 0.05), transparent 60%),
        linear-gradient(180deg, #f7f8fb 0%, #f3f5f9 100%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    padding-left: 1.2em;
}

/* -------------------------
   VARIABLES
------------------------- */
:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-2: #f2f5fb;

    --text: #111827;
    --muted: #4b5563;
    /* gray-600 */
    --muted-2: #6b7280;
    /* gray-500 */

    --border: rgba(17, 24, 39, 0.12);
    --border-soft: rgba(17, 24, 39, 0.08);

    --accent: #1d4ed8;
    /* blue-700 (pod logo) */
    --accent-soft: rgba(29, 78, 216, 0.10);
    --accent-softer: rgba(29, 78, 216, 0.06);

    --radius: 18px;
    --max-width: 1240px;

    --shadow: 0 24px 70px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 12px 34px rgba(17, 24, 39, 0.08);
}

/* -------------------------
   LAYOUT HELPERS
------------------------- */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    border-bottom: 1px solid var(--border-soft);
}

section[id] {
    scroll-margin-top: 32px;
}

.section:last-of-type {
    border-bottom: none;
}

.narrow {
    max-width: 780px;
}

.lead {
    font-size: 18px;
    color: var(--text);
}

.muted {
    color: var(--muted);
}

/* -------------------------
   TYPOGRAPHY
------------------------- */
.kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.06;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.16;
    margin: 0 0 16px;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 18px;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 16px;
    color: var(--muted);
}

.lead p {
    margin: 0 0 10px;
}

.lead p:last-child {
    margin-bottom: 0;
}

/* -------------------------
   HEADER / NAV
------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    /* frosted light header */
    backdrop-filter: blur(10px);
    background: rgba(247, 248, 251, 0.75);
    border-bottom: 1px solid var(--border-soft);
}

.brand-logo {
    height: 44px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
}

.mark {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(29, 78, 216, 0.12);
}

.brand-text strong {
    font-size: 14px;
    display: block;
    color: var(--text);
}

.brand-text span {
    font-size: 12px;
    color: var(--muted-2);
}

.menu-toggle {
    display: none;
}

.menu-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-link {
    font-size: 15px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.menu-link:hover {
    background: rgba(17, 24, 39, 0.04);
    color: var(--text);
}

/* JS adds .active on link */
.menu-link.active {
    color: var(--text);
    background: var(--accent-softer);
    border: 1px solid rgba(29, 78, 216, 0.18);
}

/* Right-side buttons */
.nav-cta {
    display: flex;
    gap: 10px;
}

/* -------------------------
   BUTTONS
------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 78, 216, 0.25);
    background: rgba(29, 78, 216, 0.06);
}

.btn-primary {
    background: var(--accent);
    border-color: rgba(29, 78, 216, 0.35);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.18);
}

.btn-primary:hover {
    background: #1e40af;
    /* blue-800 */
    border-color: rgba(29, 78, 216, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
}

.btn-block {
    width: 100%;
}

/* -------------------------
   HERO
------------------------- */
.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 36px;
}

.hero-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}

.hero-sub {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-proof {
    color: var(--muted);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted-2);
}

.hero-visual {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-height: 420px;
}

.menu-list {
    z-index: 999;
}

/* gentle grid */
.gridlines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(17, 24, 39, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(17, 24, 39, 0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.25;
    mask-image: radial-gradient(closest-side at 65% 35%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.orbit {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(29, 78, 216, 0.22);
    top: -180px;
    left: -200px;
    transform: rotate(14deg);
}

.dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 10px rgba(29, 78, 216, 0.12);
    top: 35%;
    left: 70%;
}

.mini {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.mini strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text);
}

.mini span {
    color: var(--muted);
    font-size: 13px;
}

/* -------------------------
   SPLIT / PHILOSOPHY
------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.big-quote {
    font-size: 26px;
    line-height: 1.25;
    color: var(--text);
}

.big-quote strong {
    color: var(--text);
}

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

.pill {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.pill b {
    color: var(--text);
    font-weight: 650;
}

.pill small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.pill i {
    width: 15px;
    height: 15px;
    min-width: 15px;
    margin-top: 6px;
    /* optyczne wyrównanie do tekstu */
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 6px rgba(29, 78, 216, 0.12);
}

.pill:hover i {
    box-shadow:
        0 0 0 10px rgba(29, 78, 216, 0.14);
    transition: box-shadow 0.25s ease;
}

/* -------------------------
   CARDS / ZAKRES
------------------------- */
.cards {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card {
    position: relative;
    padding: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card h3 {
    font-size: 19px;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    margin-bottom: 0;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 78, 216, 0.28);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.10);
}

.card:hover::before {
    opacity: 0.6;
}

/* -------------------------
   LIST BLOCK (Współpraca)
------------------------- */
.list-block {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.list-block h3 {
    margin-bottom: 8px;
    color: var(--text);
}

.list-block ul {
    margin: 10px 0 0;
    color: var(--muted);
}

.list-block li {
    margin-bottom: 6px;
}

/* inline CTA */
.inline-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* -------------------------
   DLA KOGO
------------------------- */
.two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 34px;
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
}

.ticks li {
    margin-bottom: 10px;
}

.ticks li::before {
    content: "– ";
    color: var(--accent);
    font-weight: 700;
}

.soft-warning {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px dashed rgba(17, 24, 39, 0.18);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.soft-warning p {
    color: var(--muted);
}

.soft-warning .muted {
    color: var(--muted);
}

/* -------------------------
   CONTACT
------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 34px;
}

.contact-points {
    margin-top: 16px;
}

.contact-points .point {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-softer);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid rgba(29, 78, 216, 0.14);
}

.point strong {
    color: var(--text);
}

.form {
    padding: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.form label {
    display: block;
    margin-bottom: 14px;
}

.form span {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

input,
textarea {
    font-size: 16px;
    width: 100%;
    padding: 12px 12px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 12px;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(29, 78, 216, 0.40);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.10);
}

textarea {
    resize: vertical;
}

.form-note {
    font-size: 13px;
    color: var(--muted-2);
    margin-top: 12px;
}

.form .btn-primary {
    font-size: 15px;
    padding: 14px 16px;
}

/* ===== Form success state ===== */
.form-success {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    text-align: left;
}

.form-success-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 650;
    color: var(--text);
}

.form-success-text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.form .form-success {
    margin-bottom: 16px;
}

.success-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.check-wrap {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

/* SVG check animation */
.checkmark {
    width: 26px;
    height: 26px;
    display: block;
}

.checkmark path {
    stroke: #10b981;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 550ms ease forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Little pop-in animation */
.form-success {
    opacity: 0;
    transform: translateY(6px);
    animation: popIn 320ms ease forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.form-loading {
    opacity: 0.75;
    pointer-events: none;
}

.btn.is-loading {
    position: relative;
}

.btn.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-top-color: rgba(255, 255, 255, 0.0);
    margin-left: 10px;
    display: inline-block;
    vertical-align: -2px;
    animation: spin 750ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------------
   FOOTER
------------------------- */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-left p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    font-size: 13px;
    color: var(--muted);
    margin-left: 16px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: 0.18s ease;
}

.footer-link:hover {
    background: rgba(17, 24, 39, 0.05);
    color: var(--text);
}

.footer-logo {
    height: 64px;
    width: auto;
    display: block;
}

.footer-grid-3 {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    align-items: center;
}


.footer-mid {
    padding-top: 2px;
    /* optyczne wyrównanie do linii tekstu po lewej */
}

.footer-address {
    margin: 0;
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.footer-address strong {
    color: var(--text);
    font-weight: 650;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 980px) {

    .hero-grid,
    .split,
    .cards,
    .two-col,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero {
        min-height: auto;
        padding-top: 24px;
    }

    .section {
        padding: 72px 0;
        /* było 96px 0 */
    }
}

@media (max-width: 830px) {

    .hero {
        min-height: auto;
        padding-top: 24px;
    }

    .section {
        padding: 72px 0;
        /* było 96px 0 */
    }

    /* Mobile menu basic support (JS toggles display) */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 14px;
        border: 1px solid var(--border-soft);
        background: rgba(255, 255, 255, 0.75);
        cursor: pointer;
    }

    .menu {
        position: relative;
    }

    .menu-list {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);

        width: min(280px, calc(100vw - 48px));
        flex-direction: column;
        gap: 6px;

        padding: 10px;
        margin: 0;
        list-style: none;

        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--border-soft);
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
        backdrop-filter: blur(10px);

        max-height: calc(100vh - 110px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-list.open {
        display: flex;
    }

    .menu-link {
        display: block;
        padding: 12px 12px;
        border-radius: 14px;
        font-size: 15px;
        color: var(--text);
    }

    .menu-link:hover {
        background: rgba(29, 78, 216, 0.06);
    }

    .menu-link.active {
        background: rgba(29, 78, 216, 0.10);
        border: 1px solid rgba(29, 78, 216, 0.18);
    }

    .nav {
        position: relative;
    }

    .nav-cta {
        display: flex;
        /* cleaner on mobile */
    }

    .footer-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-right {
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {

    .menu {
        display: none;
    }

    .brand-logo {
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}