@import url('https://fonts.googleapis.com/css2?family=TASA+Orbiter:wght@400..800&display=swap');

/* ============================================
   ZMIENNE GLOBALNE
   ============================================ */
:root {
    --primary-color: #eb5729;
    --primary-hover: #c94e22;
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --text-main: #0f0f0f;
    --border-color: #cccccc;
    --transition-speed: 0.3s;
    --font: 'TASA Orbiter', sans-serif;
    --header-height: 90px;
    --footer-bg: #0f0f0f;
    --footer-link: #e3702b;
    --footer-radius: 60px;
}

/* ============================================
   RESET I BAZA
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* Tło — obraz z delikatną warstwą przyciemniającą */
    background-color: var(--bg-color);
    background-image: url('../img/background.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Warstwa overlay — sprawia że treść jest czytelna na zdjęciu */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(247, 247, 247, 0.82);
    z-index: 0;
    pointer-events: none;
}

/* Wszystkie dzieci body muszą być nad overlayem */
body > * {
    position: relative;
    z-index: 1;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(240, 240, 240, 0.8);
    transition: box-shadow var(--transition-speed);
}

.site-header.header-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.header-inner {
    width: 100%;
    height: 100%;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--transition-speed);
}

.header-logo-link:hover {
    opacity: 0.8;
}

.logo {
    height: 40px;
    width: auto;
    display: block;
}

.header-contact {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.header-phone-pill {
    background: #fcfcfc;
    border-radius: 50px;
    padding: 4px 5px;
    display: flex;
    align-items: center;
}

.header-phone {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 10px 16px;
    transition: all var(--transition-speed) ease-in-out;
    white-space: nowrap;
    display: block;
}

.header-phone:hover {
    background-color: #ebebea;
    border-color: #e3e3e3;
    color: var(--text-main);
}

/* ============================================
   GŁÓWNA TREŚĆ
   ============================================ */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 80px;
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* ============================================
   FOOTER — jednolity format dla wszystkich stron
   ============================================ */
.site-footer {
    background-color: var(--footer-bg, #0f0f0f);
    color: #ffffff;
    border-radius: var(--footer-radius, 60px) var(--footer-radius, 60px) 0 0;
    font-family: var(--font);
    margin-top: auto;
}

@media (max-width: 600px) {
}

/* ============================================
   FOOTER — DUAL (mini na kroku 1-7, full na success)
   ============================================ */
.site-footer {
    background-color: var(--footer-bg, #0f0f0f);
    color: #ffffff;
    border-radius: var(--footer-radius, 60px) var(--footer-radius, 60px) 0 0;
    font-family: var(--font);
    margin-top: auto;
}

/* ---------- Mini footer ---------- */
.footer-mini {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 30px;
    text-align: center;
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
}

.footer-mini a {
    color: var(--footer-link, #e3702b);
    text-decoration: none;
    transition: color 0.2s ease-out;
}

.footer-mini a:hover {
    color: #ffffff;
}

.footer-sep {
    color: #555555;
    margin: 0 6px;
}

/* ---------- Full footer (na success) ---------- */
.footer-full {
    display: none;  /* domyślnie ukryty, pokazuje się przez body.is-success */
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px 28px;
    text-align: center;
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
}

.footer-full p {
    margin: 0;
}

.footer-full .footer-company {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px !important;
}

.footer-full .footer-address {
    color: #cccccc;
    margin-bottom: 2px !important;
}

.footer-full .footer-links {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

.footer-full .footer-links a {
    color: var(--footer-link, #e3702b);
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.2s ease-out;
}

.footer-full .footer-links a:hover {
    color: #ffffff;
}

.footer-full .footer-copyright {
    color: #777777;
    font-size: 12px;
    padding-top: 14px;
    border-top: 1px solid #2a2a2a;
}

/* Body.is-success — przełącz na full footer */
body.is-success .footer-mini {
    display: none;
}
body.is-success .footer-full {
    display: block;
}

@media (max-width: 600px) {
    .footer-mini {
        padding: 16px 18px;
        font-size: 12px;
    }
    .footer-full {
        padding: 32px 20px 22px;
        font-size: 13px;
    }
}

/* ============================================
   INLINE LINK (Datenschutz w checkboxie)
   ============================================ */
.link-inline {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    display: inline !important;
    padding: 0 !important;
    position: static !important;
}

.link-inline::after { display: none !important; }

.link-inline:hover {
    color: var(--primary-hover) !important;
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */
@media (max-width: 960px) {
    :root { --header-height: 80px; }
    .header-inner { padding: 0 20px; }
    .logo { height: 30px; }
}

@media (max-width: 768px) {
.main-content {
        padding: 40px 16px 60px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    :root { --footer-radius: 30px; }
    .logo { height: 26px; }
    .header-phone { font-size: 14px; padding: 8px 12px; }
}