/* ===== PODSTAWOWE STYLE ===== */
:root {
    --primary-color: #0055A4;
    --secondary-color: #D7141A;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    margin: 0;
    padding: 0;
}

/* ===== TYPOGRAFIA ===== */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

strong {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== LISTY ===== */
ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul.list-styled li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

ol.list-numbered {
    counter-reset: item;
    padding-left: 0;
}

ol.list-numbered li {
    display: block;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

ol.list-numbered li:before {
    content: counter(item);
    counter-increment: item;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-color);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.875rem;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--gray-100);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-300);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 400px;
    max-height: 220px;
    height: auto;
    width: auto;
}

.logo-link {
    text-decoration: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.contact-item i {
    color: var(--primary-color);
}

/* ===== HLAVNÉ MENU ===== */
.main-nav {
    background-color: var(--primary-color);
    min-height: 60px;
    padding: 0;
}

.main-nav .navbar-nav {
    justify-content: space-between;
}

.main-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.main-nav .nav-link.active {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

/* ===== MEGA MENU ===== */
.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    background: var(--white);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-top: 0;
    z-index: 1050;
}

.mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-nav {
    background-color: var(--gray-100);
    padding: 0.75rem 0;
}

.breadcrumb {
    background: none;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* ===== HERO SEKCIA ===== */
.hero-section {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    max-height: 450px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 85, 164, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== BUTTONY ===== */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #003d7a;
    border-color: #003d7a;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-apply {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

.btn-apply:hover {
    background-color: #b8111a;
    border-color: #b8111a;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Przycisk na hero sekcji - jaskrawy czerwony dla lepszej widoczności */
.hero-section .btn-danger {
    background-color: #D7141A !important;
    color: #fff !important;
    border: 2px solid #D7141A !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(215, 20, 26, 0.4) !important;
    font-size: 1.2rem !important;
}

.hero-section .btn-danger:hover {
    background-color: #fff !important;
    color: #D7141A !important;
    border: 2px solid #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* ===== PULSE ANIMÁCIA ===== */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(215, 20, 26, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(215, 20, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(215, 20, 26, 0);
    }
}

/* ===== DODATKOWE STYLE PRZYCISKÓW ===== */
.btn-custom-app-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8111a 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(215, 20, 26, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-custom-app-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-custom-app-cta:hover::before {
    left: 100%;
}

.btn-custom-app-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 20, 26, 0.4);
    color: var(--white);
    text-decoration: none;
}

.btn-custom-app-cta:focus {
    outline: 3px solid rgba(215, 20, 26, 0.5);
    outline-offset: 2px;
}

.btn-pulse {
    animation: btn-pulse 2s infinite;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 85, 164, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 85, 164, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 85, 164, 0);
    }
}

/* Poprawione style dla btn-apply */
.btn-apply {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b8111a 100%);
    border: 2px solid var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(215, 20, 26, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-apply:hover::before {
    left: 100%;
}

.btn-apply:hover {
    background: linear-gradient(135deg, #b8111a 0%, #a00e16 100%);
    border-color: #b8111a;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 20, 26, 0.4);
}

/* Poprawione style dla wszystkich przycisków Bootstrap */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
    border: 2px solid var(--primary-color);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 85, 164, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #003d7a 0%, #002a54 100%);
    border-color: #003d7a;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 85, 164, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
    border: 2px solid var(--gray-600);
    color: var(--white);
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
    border-color: var(--gray-700);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 85, 164, 0.3);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
    font-weight: 500;
}

.btn-outline-success:hover {
    background: #28a745;
    border-color: #28a745;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-outline-warning {
    border: 2px solid #ffc107;
    color: #ffc107;
    background: transparent;
    font-weight: 500;
}

.btn-outline-warning:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.btn-outline-info {
    border: 2px solid #17a2b8;
    color: #17a2b8;
    background: transparent;
    font-weight: 500;
}

.btn-outline-info:hover {
    background: #17a2b8;
    border-color: #17a2b8;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 2px solid #dc3545;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    border-color: #c82333;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border: 2px solid #28a745;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    border-color: #218838;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Większe przyciski */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 0.75rem;
}

/* Mniejsze przyciski */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.4rem;
}

/* Dodatkowe efekty dla przycisków z pulse */
.pulse-button {
    animation: pulse 2s infinite;
    position: relative;
}

.pulse-button:hover {
    animation: none;
}

/* ===== SEKCIE ===== */
.section {
    padding: 4rem 0;
}

.section-primary {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 50px 0px;
}

.section-primary *,
.section-primary h1,
.section-primary h2,
.section-primary h3,
.section-primary h4,
.section-primary h5,
.section-primary h6,
.section-primary p,
.section-primary span,
.section-primary div {
    color: #fff !important;
}

.bg-light {
    background-color: var(--gray-100) !important;
}

.bg-dark {
    background-color: var(--gray-800) !important;
    color: #fff !important;
}

.bg-dark *,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p,
.bg-dark span,
.bg-dark div {
    color: #fff !important;
}

/* ===== KAFELKI/TILES ===== */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tile p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ===== ACCORDEONY ===== */
.accordion-item {
    border: 1px solid var(--gray-300);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--gray-100);
    color: var(--gray-800);
    font-weight: 500;
    padding: 1rem 1.25rem;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23495057'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--white);
}

/* ===== KARTY ===== */
.card {
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header *,
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header p,
.card-header span,
.card-header i {
    color: #fff !important;
}

.card-body {
    padding: 1.25rem;
}

/* ===== TABUĽKY ===== */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-300);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--gray-100);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-info i {
    width: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.company-info h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.legal-info p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
}

.copyright p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

/* ===== OBRÁZKY ===== */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.5rem;
}

.shadow {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSÍVNOSŤ ===== */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 1rem;
    }
    
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 1rem !important;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: 250px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .logo {
        max-width: 200px;
        max-height: 80px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.bg-primary * {
    color: #fff !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.bg-secondary * {
    color: #fff !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* ===== LOADING LAZY ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .main-nav,
    .breadcrumb-nav,
    .footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}