/* ============================================================
   KartaKlienta.com — Shared Theme
   Spójny z GabinetOnline / versum-theme: jasny, turkusowy akcent
   ============================================================ */

/* ── Zmienne — zgodne z versum-theme ─────────────────────── */
:root {
    --kk-bg:              #f7f7f7;
    --kk-surface:         #ffffff;
    --kk-card:            #ffffff;
    --kk-border:          #e8e8e8;
    --kk-border-light:    #f0f0f0;

    --kk-text:            #2d2d2d;
    --kk-text-muted:      #888888;
    --kk-text-light:      #aaaaaa;

    /* Akcent turkusowy — identyczny z app.kartaklienta.com */
    --kk-accent:          #4db6ac;
    --kk-accent-hover:    #3da89e;
    --kk-accent-light:    #e0f5f3;

    --kk-coral:           #e8674a;
    --kk-coral-hover:     #d95c40;

    --kk-success:         #27ae60;
    --kk-danger:          #e74c3c;

    --kk-shadow-sm:       0 1px 3px rgba(0,0,0,.06);
    --kk-shadow:          0 2px 8px rgba(0,0,0,.08);
    --kk-shadow-md:       0 4px 16px rgba(0,0,0,.10);
    --kk-shadow-lg:       0 8px 32px rgba(0,0,0,.12);

    --kk-radius-sm:       6px;
    --kk-radius:          10px;
    --kk-radius-lg:       16px;
    --kk-radius-xl:       24px;

    --kk-font:            'Manrope', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --kk-topbar-height:   60px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--kk-font);
    font-size: 15px;
    background: var(--kk-bg);
    color: var(--kk-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--kk-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--kk-accent-hover); }
strong { color: var(--kk-text); font-weight: 600; }

/* ── NAVIGATION ─────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--kk-topbar-height);
    background: var(--kk-surface);
    border-bottom: 1px solid var(--kk-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo a {
    font-family: var(--kk-font);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--kk-text);
    display: flex;
    align-items: center;
}

.logo a span { color: var(--kk-accent); }
.logo img { display: block; width: 160px; }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .15rem;
}

.nav-links li a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--kk-text-muted);
    padding: .45rem .75rem;
    border-radius: var(--kk-radius-sm);
    transition: color .15s, background .15s;
}

.nav-links li a:hover {
    color: var(--kk-text);
    background: var(--kk-bg);
}

.nav-links li a.active {
    color: var(--kk-accent);
    background: var(--kk-accent-light);
}

.nav-links .btn-outline {
    color: var(--kk-accent) !important;
    border: 1.5px solid var(--kk-accent) !important;
    border-radius: var(--kk-radius) !important;
    padding: .4rem 1rem !important;
}

.nav-links .btn-outline:hover {
    background: var(--kk-accent-light) !important;
}

/* ── HERO (podstrony) ────────────────────────────────────── */
.hero {
    padding: 4rem 2rem 3.5rem;
    text-align: center;
    background: var(--kk-surface);
    border-bottom: 1px solid var(--kk-border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%,
        rgba(77,182,172,.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--kk-font);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--kk-text);
    line-height: 1.2;
    margin-bottom: .9rem;
    position: relative;
}

.hero h1 em { color: var(--kk-accent); font-style: normal; }

.hero p {
    font-size: 1rem;
    color: var(--kk-text-muted);
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

/* ── SECTIONS ─────────────────────────────────────────────  */
.section { padding: 4rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
    font-family: var(--kk-font);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--kk-text);
    text-align: center;
    margin-bottom: .6rem;
    line-height: 1.2;
}

.section-title em { color: var(--kk-accent); font-style: normal; }

.section-subtitle {
    text-align: center;
    color: var(--kk-text-muted);
    font-size: .95rem;
    margin-bottom: 2.5rem;
}

/* ── CARDS ─────────────────────────────────────────────────  */
.card {
    background: var(--kk-surface);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius-lg);
    padding: 1.75rem;
    transition: border-color .2s, box-shadow .2s;
}

.card:hover {
    border-color: var(--kk-accent);
    box-shadow: var(--kk-shadow-md);
}

/* ── GRIDS ─────────────────────────────────────────────────  */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

/* ── STATS BAR ─────────────────────────────────────────────  */
.stats-section {
    background: var(--kk-surface);
    border-top: 1px solid var(--kk-border);
    border-bottom: 1px solid var(--kk-border);
    padding: 3rem 2rem;
}

.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--kk-accent);
    line-height: 1;
    margin-bottom: .3rem;
}

.stat-label { font-size: .82rem; color: var(--kk-text-muted); }

/* ── CTA SECTION ───────────────────────────────────────────  */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--kk-accent-light);
    border-top: 1px solid rgba(77,182,172,.2);
}

.cta-section h2 {
    font-family: var(--kk-font);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--kk-text);
    margin-bottom: .8rem;
}

.cta-section p { color: var(--kk-text-muted); font-size: .95rem; margin-bottom: 2rem; }

/* ── BUTTONS ────────────────────────────────────────────────  */
.btn-primary,
.btn-gold {
    display: inline-block;
    padding: .75rem 2rem;
    background: var(--kk-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: .9rem;
    border-radius: var(--kk-radius);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(77,182,172,.25);
    text-decoration: none;
}

.btn-primary:hover,
.btn-gold:hover {
    background: var(--kk-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(77,182,172,.35);
    color: #fff !important;
}

.btn-coral {
    display: inline-block;
    padding: .75rem 2rem;
    background: var(--kk-coral);
    color: #fff !important;
    font-weight: 700;
    font-size: .9rem;
    border-radius: var(--kk-radius);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
}

.btn-coral:hover { background: var(--kk-coral-hover); transform: translateY(-1px); color: #fff !important; }

.btn-outline-accent {
    display: inline-block;
    padding: .7rem 1.8rem;
    background: transparent;
    color: var(--kk-accent) !important;
    font-weight: 600;
    font-size: .9rem;
    border-radius: var(--kk-radius);
    border: 1.5px solid var(--kk-accent);
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}

.btn-outline-accent:hover {
    background: var(--kk-accent-light);
}

/* ── STORY / HIGHLIGHT BOX ─────────────────────────────────  */
.story-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.story-content p { color: var(--kk-text-muted); font-size: .95rem; }

.highlight-box {
    background: var(--kk-accent-light);
    border-left: 3px solid var(--kk-accent);
    border-radius: var(--kk-radius);
    padding: 1.25rem 1.5rem;
}

.highlight-box h3 { font-weight: 700; color: var(--kk-text); margin-bottom: .4rem; font-size: .95rem; }
.highlight-box p { color: var(--kk-text-muted); font-size: .9rem; margin-bottom: 0; }

/* ── VALUES GRID ───────────────────────────────────────────  */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

.value-card {
    background: var(--kk-surface);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius-lg);
    padding: 1.5rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.value-card:hover {
    border-color: var(--kk-accent);
    box-shadow: var(--kk-shadow-md);
    transform: translateY(-2px);
}

.value-icon { font-size: 1.5rem; margin-bottom: .75rem; }
.value-card h3 { font-size: .95rem; font-weight: 700; color: var(--kk-text); margin-bottom: .4rem; }
.value-card p { font-size: .85rem; color: var(--kk-text-muted); line-height: 1.65; }

/* ── CONTACT ───────────────────────────────────────────────  */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-cards { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
    background: var(--kk-surface);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius-lg);
    padding: 1.4rem;
    transition: border-color .2s, box-shadow .2s;
}

.contact-card:hover { border-color: var(--kk-accent); box-shadow: var(--kk-shadow); }

.contact-icon { font-size: 1.5rem; margin-bottom: .45rem; }
.contact-card h3 { font-size: .95rem; font-weight: 700; color: var(--kk-text); margin-bottom: .3rem; }
.contact-card p { color: var(--kk-text-muted); font-size: .87rem; margin-bottom: .5rem; }
.contact-link { color: var(--kk-accent); font-weight: 600; font-size: .92rem; }
.contact-link:hover { color: var(--kk-accent-hover); }

.hours-card {
    background: var(--kk-surface);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius-lg);
    padding: 1.4rem;
}

.hours-card h3 { font-size: .95rem; font-weight: 700; color: var(--kk-text); margin-bottom: .9rem; }
.hours-list { list-style: none; }

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: .45rem 0;
    border-bottom: 1px solid var(--kk-border-light);
    font-size: .87rem;
    color: var(--kk-text-muted);
}

.hours-item:last-child { border-bottom: none; }
.hours-item strong { color: var(--kk-text); font-weight: 600; }
.hours-open { color: var(--kk-success); font-weight: 600; font-size: .8rem; }

/* ── FORM ──────────────────────────────────────────────────  */
.form-panel {
    background: var(--kk-surface);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius-lg);
    padding: 2rem;
}

.form-panel h2 { font-size: 1.1rem; font-weight: 700; color: var(--kk-text); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--kk-text-muted);
    margin-bottom: .35rem;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: .65rem .9rem;
    border: 1.5px solid var(--kk-border);
    border-radius: var(--kk-radius);
    font-size: .9rem;
    font-family: var(--kk-font);
    color: var(--kk-text);
    background: var(--kk-bg);
    outline: none;
    transition: border-color .15s, background .15s;
}

.form-control:focus { border-color: var(--kk-accent); background: var(--kk-surface); }
.form-control::placeholder { color: var(--kk-text-light); }
textarea.form-control { resize: vertical; min-height: 140px; }

.form-submit {
    width: 100%;
    padding: .8rem;
    background: var(--kk-accent);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    border: none;
    border-radius: var(--kk-radius);
    cursor: pointer;
    font-family: var(--kk-font);
    transition: background .2s, transform .15s;
    margin-top: .5rem;
}

.form-submit:hover { background: var(--kk-accent-hover); transform: translateY(-1px); }

.rodo-check {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .8rem;
    color: var(--kk-text-muted);
    margin-top: .5rem;
}

.rodo-check input { margin-top: 2px; accent-color: var(--kk-accent); flex-shrink: 0; }

/* ── POLICY / REGULAMIN ────────────────────────────────────  */
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-section { margin-bottom: 2.5rem; }

.policy-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kk-text);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--kk-border);
}

.policy-section h3 { font-size: .9rem; font-weight: 700; color: var(--kk-text); margin: .9rem 0 .4rem; }
.policy-section p, .policy-section li { font-size: .88rem; color: var(--kk-text-muted); line-height: 1.75; margin-bottom: .5rem; }
.policy-section ul, .policy-section ol { padding-left: 1.4rem; }

.policy-toc {
    background: var(--kk-accent-light);
    border: 1px solid rgba(77,182,172,.2);
    border-radius: var(--kk-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.policy-toc h3 { font-size: .85rem; font-weight: 700; margin-bottom: .75rem; color: var(--kk-text); }
.policy-toc ol { padding-left: 1.2rem; }
.policy-toc li { margin-bottom: .3rem; }
.policy-toc a { font-size: .85rem; color: var(--kk-accent); }

/* ── ALERTS ─────────────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--kk-radius); font-size: .88rem; margin-bottom: 1rem; }
.alert-success { background: rgba(39,174,96,.1); color: #1a6b3a; border: 1px solid rgba(39,174,96,.25); }
.alert-danger   { background: rgba(231,76,60,.1);  color: #8b2219; border: 1px solid rgba(231,76,60,.25); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
    background: var(--kk-surface);
    border-top: 1px solid var(--kk-border);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand h4 { font-size: 1rem; font-weight: 800; color: var(--kk-text); margin-bottom: .6rem; }
.footer-brand h4 span { color: var(--kk-accent); }
.footer-brand p { font-size: .83rem; color: var(--kk-text-muted); line-height: 1.65; max-width: 240px; }

.footer-section h4 {
    font-size: .75rem;
    font-weight: 700;
    color: var(--kk-text);
    margin-bottom: .9rem;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.footer-section p { color: var(--kk-text-muted); font-size: .85rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: .45rem; }
.footer-section ul li a { color: var(--kk-text-muted); font-size: .85rem; }
.footer-section ul li a:hover { color: var(--kk-accent); }
.footer-section ul li span { color: var(--kk-text-muted); font-size: .85rem; }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--kk-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--kk-text-light);
    font-size: .8rem;
}

.footer-bottom a { color: var(--kk-text-muted); }
.footer-bottom a:hover { color: var(--kk-accent); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 2.5rem 1.25rem 2rem; }
    .section { padding: 2.5rem 1.25rem; }
    .stats-section { padding: 2rem 1.25rem; }
    .cta-section { padding: 3rem 1.25rem; }
    footer { padding: 2rem 1.25rem 1.25rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: .4rem; text-align: center; }
    .values-grid { grid-template-columns: 1fr; }
}
