/* Reset / baza */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #f3f4f6;
    line-height: 1.6;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top bar */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 24, 39, 0.95);
    color: #f9fafb;
    backdrop-filter: blur(8px);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;   /* powiększone */
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-image {
    height: 60px;      /* większe logo */
    width: auto;
    margin-bottom: 6px;
}

.logo-sub {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #e5e7eb;
}

/* Nawigacja */
.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 1rem;   /* większa czcionka */
}

.main-nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 8px 14px;   /* większy padding */
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover {
    background-color: rgba(249, 250, 251, 0.12);
    color: #ffffff;
}

.nav-icon {
    font-size: 20px;
    color: #f97316;
}

/* Ikony (Material Icons) */
.icon-inline {
    font-size: 22px;
    margin-right: 8px;
    vertical-align: text-bottom;
    color: #f97316;
}

.icon-inline-small {
    font-size: 18px;
    margin-right: 6px;
    vertical-align: text-bottom;
    color: #f97316;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary {
    background-color: #ea580c;
    color: #f9fafb;
    border-color: #ea580c;
    box-shadow: 0 10px 15px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    background-color: #c2410c;
    border-color: #c2410c;
    box-shadow: 0 20px 25px rgba(234, 88, 12, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #111827;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* mały przycisk w top barze – powiększony */
.btn-small {
    padding: 10px 18px;
    font-size: 0.95rem;
}

/* większy przycisk telefonu w hero */
.hero-cta .btn-primary {
    font-size: 1.05rem;
    padding: 14px 26px;
}

/* jasny przycisk „Dane kontaktowe” w hero */
.hero-cta .btn-secondary {
    background-color: #f9fafb;
    color: #111827;
    border-color: #f9fafb;
}

.hero-cta .btn-secondary:hover {
    background-color: #e5e7eb;
}

/* HERO */
.hero {
    background: linear-gradient(to right, #0f172a, #1d4ed8);
    color: #f9fafb;
    padding: 64px 0 56px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #e5e7eb;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-list {
    list-style: none;
    font-size: 0.9rem;
}

.hero-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.hero-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: #f97316;
}

.hero-media {
    display: flex;
    flex-direction: column;
}

/* Ogólny styl „slotu” na obraz */
.image-slot {
    width: 100%;
    display: block;
    border-radius: 16px;
    background: repeating-linear-gradient(
        45deg,
        #e5e7eb,
        #e5e7eb 10px,
        #d1d5db 10px,
        #d1d5db 20px
    );
    object-fit: cover;
    min-height: 220px;
}

.image-hint {
    font-size: 0.82rem;
    color: #4b5563;
    margin-top: 6px;
}

/* Sekcje – wyraźniejsze oddzielenie */
.section,
.section-alt {
    padding: 72px 0;
    border-top: 1px solid #e5e7eb;
}

.section {
    background-color: #f3f4f6;
}

.section-alt {
    background-color: #ffffff;
}

/* Nagłówki sekcji z akcentem – powiększone */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: 1.9rem;
    margin-bottom: 12px;
    position: relative;
    padding-top: 22px;
}

.section-header h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background-color: #f97316;
}

.section-header p {
    font-size: 1rem;
    color: #374151;
}

/* USŁUGI – 2 kolumny, ikona nad tytułem */
.services-layout {
    margin-top: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 22px 22px 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}

/* DUŻA ikona nad nagłówkiem – wyśrodkowana */
.service-icon {
    margin-bottom: 10px;
    text-align: center;
}

.service-icon .material-icons {
    font-size: 44px;
    color: #f97316;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #111827;
    text-align: center;
}

.service-card p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* efekt hover na kafelkach usług */
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

/* UPRAWNIENIA */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.credential-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 20px;
    border: 1px solid #e5e7eb;
}

.credential-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.credential-card ul {
    list-style: none;
    font-size: 0.9rem;
    color: #4b5563;
}

.credential-card li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 6px;
}

.credential-card li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: #f97316;
}

/* REFERENCJE */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    font-size: 0.9rem;
}

.client-group {
    background-color: #f9fafb;
    border-radius: 16px;
    padding: 18px 18px 20px;
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.client-group h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.client-group ul {
    list-style: none;
    color: #4b5563;
}

.client-group li {
    margin-bottom: 4px;
}

/* efekt hover na kafelkach referencji */
.client-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 20px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.contact-box h3 {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.contact-box a {
    color: #ea580c;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 20px 0 26px;
    font-size: 0.85rem;
}

.footer-inner {
    text-align: center;
}

.footer-inner p + p {
    margin-top: 4px;
}

/* Responsywność */
@media (max-width: 960px) {
    .top-bar-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        order: 3;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .credentials-grid,
    .clients-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 1 kolumna usług na telefonie */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 56px;
        padding-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}