/* === Reset i podstawowe style === */
:root {
    --primary-color: #1e5baf;
    --secondary-color: #f47c3c;
    --tertiary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --danger-color: #e74c3c;
    --body-font: 'Lato', 'Roboto', sans-serif;
    --heading-font: 'Montserrat', 'Open Sans', sans-serif;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

/* === Przyciski === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #184a8c;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #e0692f;
    color: white;
}

.btn-tertiary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--gray-color);
}

.btn-tertiary:hover {
    background-color: #dfe6e9;
}

/* === Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

/* === Nawigacja === */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* === Banner === */
.banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-bg object {
    width: 100%;
    height: 100%;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.banner-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* === Intro - informacje === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.info-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* === Porównanie firm === */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.comparison-table th, 
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-color);
}

.comparison-table th {
    background-color: var(--light-color);
    font-weight: 700;
}

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

.rating {
    display: flex;
}

.star {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ddd'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.star.filled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f39c12'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.star.half-filled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='50%25' style='stop-color:%23f39c12;stop-opacity:1' /%3E%3Cstop offset='50%25' style='stop-color:%23ddd;stop-opacity:1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23grad)' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.disclaimer {
    font-size: 0.9rem;
    color: var(--gray-color);
    text-align: center;
}

/* === Sprzęt i technologie === */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.equipment-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.equipment-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* === Rentowność firm === */
.chart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.chart-legend {
    list-style: none;
    margin-top: 1rem;
}

.chart-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
}

.profit-analysis {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
}

/* === Recenzje === */
.reviews-slider {
    position: relative;
    overflow: hidden;
}

.review-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--light-color);
    padding-bottom: 1rem;
}

.review-author {
    font-weight: 700;
}

.review-company {
    color: var(--primary-color);
    font-weight: 600;
}

.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.prev-review, 
.next-review {
    background-color: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.prev-review:hover, 
.next-review:hover {
    background-color: var(--gray-color);
    color: white;
}

/* === Newsletter === */
.newsletter-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.newsletter-form button {
    width: 100%;
}

/* === Blog === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: "→";
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 10px;
}

.blog-cta {
    text-align: center;
}

/* === Footer === */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--light-color);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-column address p {
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.social-icon.facebook::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M20,3H4C3.4,3,3,3.4,3,4v16c0,0.6,0.4,1,1,1h8.6v-6.9h-2.3v-2.7h2.3v-2c0-2.3,1.4-3.6,3.5-3.6c1,0,1.8,0.1,2.1,0.1v2.4h-1.4c-1.1,0-1.3,0.5-1.3,1.3v1.7h2.7l-0.4,2.7h-2.3V21H20c0.6,0,1-0.4,1-1V4C21,3.4,20.6,3,20,3z'/%3E%3C/svg%3E");
}

.social-icon.twitter::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M23,5.1c-0.8,0.4-1.7,0.6-2.6,0.7c0.9-0.6,1.6-1.5,2-2.5c-0.9,0.5-1.8,0.9-2.9,1.1c-0.8-0.9-2-1.4-3.3-1.4c-2.5,0-4.5,2-4.5,4.5c0,0.4,0,0.7,0.1,1C8.1,8.3,4.7,6.5,2.4,3.8C1.9,4.5,1.6,5.4,1.6,6.3c0,1.6,0.8,2.9,2,3.7c-0.7,0-1.4-0.2-2-0.6c0,0,0,0,0,0.1c0,2.2,1.6,4,3.6,4.4c-0.4,0.1-0.8,0.2-1.2,0.2c-0.3,0-0.6,0-0.9-0.1c0.6,1.8,2.2,3.1,4.1,3.1c-1.5,1.2-3.4,1.9-5.5,1.9c-0.4,0-0.7,0-1.1-0.1c2,1.3,4.3,2,6.8,2c8.1,0,12.6-6.7,12.6-12.6c0-0.2,0-0.4,0-0.6C21.6,6.8,22.4,6,23,5.1z'/%3E%3C/svg%3E");
}

.social-icon.linkedin::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z M9,17H6.5v-7H9V17z M7.7,8.7c-0.8,0-1.4-0.6-1.4-1.4s0.6-1.4,1.4-1.4c0.8,0,1.4,0.6,1.4,1.4S8.5,8.7,7.7,8.7z M18,17h-2.5v-3.9c0-2.5-3-2.3-3,0V17H10v-7h2.5v1.5c1-1.9,5.5-2,5.5,1.8V17z'/%3E%3C/svg%3E");
}

.social-icon:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Cookie Consent === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem;
    display: none;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-options {
    margin: 1.5rem 0;
}

.cookie-option {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
}

.cookie-option input {
    margin-right: 10px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* === Strona bloga === */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-header {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    color: white;
}

.blog-filters {
    margin-bottom: 2rem;
}

/* === Single Article === */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.article-image {
    margin-bottom: 2rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.share-article {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-color);
}

.share-article h3 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: var(--transition);
}

.share-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* === Kontakt === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 1rem;
    width: 24px;
    height: 24px;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* === Dzięki === */
.thanks-page {
    text-align: center;
    padding: 5rem 1rem;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.thanks-page h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.thanks-page p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

/* === O nas === */
.about-section {
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
}

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

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info {
    padding: 1.5rem;
}

.team-member-position {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

/* === Strony prawne === */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-page h1 {
    margin-bottom: 2rem;
}

.legal-page h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-page p,
.legal-page ul,
.legal-page ol {
    margin-bottom: 1.5rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.5rem;
}

.legal-page ul {
    list-style: disc;
}

.legal-page ol {
    list-style: decimal;
}

/* === RWD === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--light-color);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .info-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .banner-content {
        padding: 1.5rem;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
