/* =========================
   ZMIENNE KOLORÓW – spójne z resztą
   ========================= */
:root {
    --bg-main: #050816;
    --bg-navbar: #050816;
    --bg-hero: #020617;
    --bg-card: #0f172a;

    --accent: #2563eb;
    --accent-soft: #60a5fa;

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;

    --border-subtle: #1f2933;
}

/* =========================
   GLOBAL
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

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

/* =========================
   NAVBAR – jak na innych stronach
   ========================= */
.navbar-desktop {
    width: 100%;
    padding: 14px 0;
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-desktop .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: 0.2s;
}

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

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

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

@media (max-width: 768px) {
    .navbar-desktop .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================
   HERO KONTAKT – nagłówek pod stroną
   ========================= */
.subpage-hero {
    padding: 70px 0 40px;
    background: radial-gradient(circle at top left, #1e293b 0, var(--bg-hero) 50%, #020617 100%);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.subpage-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.subpage-hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

/* =========================
   GŁÓWNA SEKCJA KONTAKTU
   ========================= */
.contact-section {
    padding: 80px 0 90px;
    background: var(--bg-main);
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

/* kolumny */
.contact-form-col,
.contact-info-col {
    display: flex;
    flex-direction: column;
}

/* FORMULARZ – lewa karta */
.contact-form-col {
    flex: 1 1 60%;
}

.contact-form {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 28px 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.contact-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.contact-lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* INPUTY / TEXTAREA */
.custom-input,
.custom-textarea {
    background-color: #020617;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 0.95rem;
}

.custom-input::placeholder,
.custom-textarea::placeholder {
    color: #6b7280;
}

.custom-input:focus,
.custom-textarea:focus {
    background-color: #020617;
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 1px rgba(96,165,250,0.35);
    color: #fff;
}

/* checkbox RODO */
.custom-check {
    margin-top: 6px;
}

.custom-check .form-check-input {
    background-color: #020617;
    border-color: var(--border-subtle);
}

.custom-check .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent-soft);
}

.custom-check .form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* przycisk wysyłki */
.contact-submit-btn {
    margin-top: 6px;
    padding: 11px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    transition: 0.18s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

/* =========================
   KARTA INFORMACYJNA – prawa
   ========================= */
.contact-info-col {
    flex: 1 1 40%;
}

.contact-info-card {
    background: #020617;
    border-radius: 18px;
    padding: 24px 22px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    height: 100%;
}

.contact-info-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.contact-info-text {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info-list i {
    font-size: 1.2rem;
    color: var(--accent-soft);
    margin-top: 2px;
}

.contact-info-list .label {
    font-size: 0.82rem;
    color: #9ca3af;
}

.contact-info-list .value {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.contact-info-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================
   CTA NA DOLE
   ========================= */
.contact-cta-section {
    padding: 0 0 80px;
    background: var(--bg-main);
}

.contact-cta-box {
    max-width: 780px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 26px 24px;
    border: 1px solid var(--border-subtle);
    text-align: center;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.contact-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.contact-cta-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background: var(--bg-navbar);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-soft);
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-right {
    min-width: 200px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    transition: 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================
   BACK TO TOP – jeśli jest na tej stronie
   ========================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

.back-to-top i {
    font-size: 22px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    filter: brightness(1.15);
    transform: translateY(-3px);
}
/* =========================================
   FOOTER – NEUTRALNY GLOBALNY STYL
   ========================================= */

.footer {
    background-color: #050816;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* LEWA KOLUMNA */
.footer-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 12px 0 18px;
    line-height: 1.5;
}

/* DANE KONTAKTOWE */
.footer-contact {
    margin-top: 10px;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

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

.footer-contact-list li {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-contact-list a {
    color: #60a5fa;
    text-decoration: none;
}

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

/* PRAWA KOLUMNA */
.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

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

.footer-links li {
    margin-bottom: 6px;
}

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

.footer-links a:hover {
    color: #60a5fa;
}

/* DÓŁ STOPKI */
.footer-bottom {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #1e293b;
}

/* RWD – neutralne, nie ingeruje w resztę strony */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .footer-logo img {
        height: 28px;
    }
}
/* BAZA MODALA */
.modal-custom-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

/* --- BŁĄD (CZERWONY) --- */
.modal-custom-content.modal-error {
    background-color: rgba(220, 38, 38, 0.95) !important; /* Czerwony */
    border: 2px solid #ef4444 !important;
}

/* Teksty w błędzie na czarno */
.modal-custom-content.modal-error .modal-header,
.modal-custom-content.modal-error .modal-body,
.modal-custom-content.modal-error .modal-footer,
.modal-custom-content.modal-error h3,
.modal-custom-content.modal-error p,
.modal-custom-content.modal-error div {
    color: #000000 !important;
    border-color: transparent !important;
}

/* Przycisk dolny w błędzie */
.modal-custom-content.modal-error .btn-modal-action {
    background: rgba(0,0,0,0.2);
    color: #000;
    border: 1px solid rgba(0,0,0,0.3);
}

/* --- SUKCES (ZIELONY) --- */
.modal-custom-content.modal-success {
    background-color: rgba(22, 163, 74, 0.95) !important; /* Zielony */
    border: 2px solid #4ade80 !important;
}

/* Teksty w sukcesie na biało */
.modal-custom-content.modal-success .modal-header,
.modal-custom-content.modal-success .modal-body,
.modal-custom-content.modal-success .modal-footer,
.modal-custom-content.modal-success h3,
.modal-custom-content.modal-success p,
.modal-custom-content.modal-success div {
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Przycisk dolny w sukcesie */
.modal-custom-content.modal-success .btn-modal-action {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

/* Wspólny styl przycisku */
.btn-modal-action {
    font-weight: 600;
    padding: 8px 30px;
    border-radius: 30px;
    transition: 0.2s;
}
.btn-modal-action:hover {
    transform: scale(1.05);
}