/* ========================================================= */
/* 0. ZMIENNE, RESET, BAZA                                  */
/* ========================================================= */

:root {
    --color-bg-main: #050910;
    --color-bg-alt: #0b111d;
    --color-section: #0f172a;
    --color-accent: #00e5ff;
    --color-accent-soft: rgba(0, 229, 255, 0.16);
    --color-text-main: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-border-soft: rgba(148, 163, 184, 0.3);
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);

    --radius-lg: 16px;
    --radius-md: 12px;

    --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-alt: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --header-height: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #67ffe8;
}

/* ========================================================= */
/* 1. LAYOUT I SEKCJE                                       */
/* ========================================================= */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--color-text-main);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 56px;
}

/* ========================================================= */
/* 2. HEADER I MENU NAWIGACYJNE                              */
/* ========================================================= */

#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(14px);
}

#main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 44px;
    width: auto;
}

.menu-toggle {
    display: none;
    border-radius: 999px;
    border: 1px solid var(--color-border-soft);
    background: rgba(15, 23, 42, 0.9);
    color: var(--color-text-main);
    padding: 6px 14px;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 26px;
}

#main-nav a {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 4px;
}

#main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), #00ffb3);
    transition: width 0.2s ease;
}

#main-nav a:hover {
    color: var(--color-text-main);
}

#main-nav a:hover::after {
    width: 100%;
}

/* ========================================================= */
/* 3. HERO Z WIDEO                                            */
/* ========================================================= */

.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 40px) 0 90px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) saturate(1.2);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 2.9rem);
    line-height: 1.15;
    text-transform: uppercase;
}

.neon-text {
    color: var(--color-accent);
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.7);
}

.hero-subtitle {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 640px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

/* ========================================================= */
/* 4. BUTTONY                                                 */
/* ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #00ffb3);
    color: #020617;
    box-shadow: 0 18px 38px rgba(56, 189, 248, 0.48);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 55px rgba(56, 189, 248, 0.65);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--color-border-soft);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========================================================= */
/* 5. SEKCJA WIARYGODNOŚCI                                   */
/* ========================================================= */

.trust-section {
    background: radial-gradient(circle at top, #111827 0, #020617 100%);
}

.trust-section h2 {
    text-align: left;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.stat-item {
    padding: 18px 18px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: var(--shadow-soft);
    font-size: 0.92rem;
}

.stat-number {
    font-size: 1.6rem;
    color: var(--color-accent);
    font-weight: 600;
}

.stat-unit {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

/* ========================================================= */
/* 6. USŁUGI / FILARY                                        */
/* ========================================================= */

.services-section {
    background: var(--color-bg-alt);
}

.service-filar {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
}

.service-filar:last-of-type {
    margin-bottom: 0;
}

.filar-img-container {
    flex: 0 0 220px;
}

.filar-img-container img {
    border-radius: 12px;
    object-fit: cover;
}

.filar-content {
    flex: 1 1 auto;
}

.filar-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.filar-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.filar-content ul {
    list-style: none;
    padding-left: 0;
}

.filar-content li {
    color: var(--color-text-main);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.icon-check {
    display: inline-block;
    margin-right: 8px;
    color: #4ade80;
    font-size: 0.9rem;
}

.service-filar.right-aligned .filar-img-container {
    order: 2;
}

/* ========================================================= */
/* 7. O NAS                                                  */
/* ========================================================= */

#about {
    background: var(--color-section);
}

.about-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.about-text {
    flex: 1 1 100%;
}

.about-text .highlight {
    font-size: 0.96rem;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}

.about-text ul {
    list-style: none;
    margin-top: 10px;
}

.about-text li {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 6px;
}

/* ========================================================= */
/* 8. KONTAKT: FORMULARZ + MAPA                              */
/* ========================================================= */

#contact {
    background: #020617;
}

#contact h2 {
    margin-bottom: 40px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Formularz */

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px 22px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: var(--shadow-soft);
}

#contact-form input,
#contact-form textarea {
    background: #020617;
    border-radius: 10px;
    border: 1px solid var(--color-border-soft);
    padding: 10px 11px;
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-family: var(--font-alt);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #6b7280;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
    background: #020617;
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Mapa */

.map-placeholder {
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: var(--shadow-soft);
    background-color: #1f2937;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ========================================================= */
/* 9. STOPKA                                                 */
/* ========================================================= */

#main-footer {
    background: #020617;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 16px 0 22px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

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

#main-footer a {
    color: var(--color-accent);
    font-weight: 500;
}

#main-footer a:hover {
    opacity: 0.9;
}

/* ========================================================= */
/* 10. MEDIA QUERIES                                         */
/* ========================================================= */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .service-filar {
        flex-direction: column;
        text-align: left;
    }

    .service-filar.right-aligned .filar-img-container {
        order: 0;
    }

    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    #main-header .container {
        gap: 10px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    #main-nav {
        position: absolute;
        top: var(--header-height);
        right: 0;
        width: 100%;
        background: #020617;
        border-bottom: 1px solid rgba(31, 41, 55, 0.9);
        display: none;
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    #main-nav li {
        margin: 0;
    }

    #main-nav a {
        display: block;
        padding: 10px 22px;
    }

    .hero-section {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 70px;
        min-height: auto;
    }

    .hero-layout {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.96rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {

    section {
        padding: 64px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.94rem;
    }

    #contact-form {
        padding: 18px 14px 20px;
    }

    #main-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}
