/* ===== Resetowanie styli ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
}

a {
    color: #2056a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0f3b78;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Kontenery i układy ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Klasa dla animowanych elementów */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2056a0;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #f58220;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.section-header.light h2 {
    color: #fff;
}

.section-header.light h2::after {
    background-color: #fff;
}

.section-header.light p {
    color: #ddd;
}

.section-content {
    margin-bottom: 40px;
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.column {
    flex: 1;
    min-width: 300px;
}

.section-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.bg-light {
    background-color: #f9f9f9;
}

.bg-dark {
    background-color: #333;
    color: #fff;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ===== Nagłówek ===== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 500;
    color: #333;
    position: relative;
}

nav a:hover {
    color: #2056a0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2056a0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ===== Baner ===== */
.banner {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2056a0;
    background-image: url('../assets/banner-bg.svg');
    background-position: center;
    background-size: cover;
    z-index: -1;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== Przyciski ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f58220;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e06c00;
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #2056a0;
    border: 2px solid #2056a0;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2056a0;
    color: #fff;
}

/* ===== Sekcja usług ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2056a0;
}

/* ===== Sekcja porównania firm ===== */
.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background-color: #2056a0;
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-table tr:hover {
    background-color: #f0f0f0;
}

/* ===== Sekcja sprzętu ===== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.equipment-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.equipment-card h3 {
    color: #2056a0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ===== Sekcja bloga ===== */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2056a0;
}

.blog-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #f58220;
}

.read-more:hover {
    color: #e06c00;
}

/* ===== Sekcja opinii ===== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    text-align: center;
    padding: 20px;
    display: none; /* Ukryj domyślnie, JavaScript pokaże aktywny */
}

.testimonial-slide:first-child {
    display: block; /* Pokaż pierwszy slajd domyślnie */
}

.testimonial-content {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 2rem;
    color: #f58220;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2056a0;
}

.testimonial-author p {
    color: #666;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.testimonial-prev::before,
.testimonial-next::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #2056a0;
    border-right: 3px solid #2056a0;
}

.testimonial-prev::before {
    left: 15px;
    transform: translateY(-50%) rotate(-135deg);
}

.testimonial-next::before {
    right: 15px;
    transform: translateY(-50%) rotate(45deg);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #2056a0;
}

/* ===== Sekcja newsletter ===== */
.newsletter-box {
    background-color: #2056a0;
    border-radius: 10px;
    padding: 40px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 10px;
}

.form-group {
    flex: 1;
}

input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* ===== Sekcja kontaktu ===== */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #f58220;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #f58220;
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-form .form-group:nth-child(3),
.contact-form .form-group:nth-child(4) {
    grid-column: span 2;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form button {
    grid-column: span 2;
    justify-self: start;
    margin-top: 10px;
}

/* ===== Stopka ===== */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 160px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #f58220;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
}

/* ===== Responsywność ===== */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
    
    .banner {
        height: 500px;
    }
    
    .banner h1 {
        font-size: 2.8rem;
    }
    
    .banner h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s ease;
        z-index: 10;
    }
    
    nav ul.open {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner h1 {
        font-size: 2.2rem;
    }
    
    .banner h2 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-group:nth-child(3),
    .contact-form .form-group:nth-child(4),
    .contact-form button {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 350px;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }
    
    .banner h2 {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-box {
        padding: 25px;
    }
}
