/* 
* Osserstreg - Główny arkusz stylów
* Wersja: 1.0
* Autor: Osserstreg
*/

/* ===== RESET I ZMIENNE ===== */
:root {
    /* Kolory */
    --primary-color: #4b57db;
    --secondary-color: #2a3174;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray-color: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Czcionki */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Rozmiary */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    --section-spacing: 5rem;
    --section-spacing-mobile: 3rem;
    
    /* Cienie */
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    
    /* Przejścia */
    --transition-speed: 0.3s;
}

/* Import fontów z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Roboto:wght@300;400;500;700&display=swap');

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* ===== UKŁAD I KONTENERY ===== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

.section {
    padding: var(--section-spacing) 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

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

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.content-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

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

.image-column {
    flex: 1;
    min-width: 290px;
    display: flex;
    justify-content: center;
}

.image-column img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.bg-light {
    background-color: var(--light-color);
}

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

/* ===== PRZYCISKI ===== */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== NAGŁÓWEK ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow-sm);
    padding: 1rem 0;
    z-index: 1000;
    transition: all var(--transition-speed);
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--box-shadow);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: height var(--transition-speed);
}

header.scrolled .logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

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

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: all var(--transition-speed);
}

/* ===== BANNER ===== */
.banner {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

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

.banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    max-width: 650px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.banner-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

/* ===== O NAS ===== */
#o-nas .content-columns {
    align-items: center;
}

#o-nas .text-column p {
    margin-bottom: 1.5rem;
}

/* ===== USŁUGI ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
}

/* ===== TECHNOLOGIE ===== */
.tech-tabs {
    margin-top: 2rem;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.tab-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.tab-content ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.tab-content ul li::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* ===== REFERENCJE ===== */
.testimonials-slider {
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #fff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-color);
}

.testimonial-author {
    text-align: center;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray-color);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.dot.active {
    background-color: var(--primary-color);
}

/* ===== ZESPÓŁ ===== */
#zespol .image-column img {
    border-radius: 8px;
}

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

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

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

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-content h3, .blog-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.blog-content p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-color);
}

/* ===== KONTAKT I FORMULARZ ===== */
.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.contact-info ul {
    margin-bottom: 2rem;
}

.contact-info ul li {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

.social-media h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    transition: all var(--transition-speed);
}

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

.social-icon svg path {
    transition: stroke var(--transition-speed);
}

.social-icon:hover svg path {
    stroke: #fff;
}

.subscription-form {
    flex: 1;
    min-width: 290px;
}

.subscription-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.subscription-form p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray-color);
    border-radius: 4px;
    transition: border-color var(--transition-speed);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-group.checkbox input {
    width: auto;
    margin-top: 5px;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--gray-color);
}

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

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

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

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer-column ul li a:hover, .footer-column ul li a.active {
    color: #fff;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== BLOG STRONA ===== */
.page-banner {
    background-color: var(--light-color);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.page-banner p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

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

.newsletter-section {
    padding: 4rem 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.newsletter-form .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray-color);
    border-radius: 4px;
    transition: border-color var(--transition-speed);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== ARTYKUŁ ===== */
.article-section {
    padding-top: 8rem !important;
}

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

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.article-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--dark-color);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

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

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

.article-content ul li, .article-content ol li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.article-image-small {
    margin: 2rem auto;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.article-author {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-author h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-share {
    margin-bottom: 3rem;
    text-align: center;
}

.article-share h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    text-align: center;
}

/* ===== STRONA PODZIĘKOWANIA ===== */
.thanks-section {
    padding: 8rem 0;
    text-align: center;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
}

.thanks-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.thanks-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.thanks-content p {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

/* ===== STRONY PRAWNE ===== */
.legal-banner {
    background-color: var(--light-color);
}

.legal-section {
    padding: 4rem 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content .last-updated {
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 2rem;
    text-align: right;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--dark-color);
}

.legal-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.legal-content ul li, .legal-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

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

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

/* ===== ANIMACJE ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .banner-content {
        padding: 2rem;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 90%;
    }
    
    .section {
        padding: var(--section-spacing-mobile) 0;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: var(--box-shadow);
        transition: all var(--transition-speed);
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .banner {
        height: auto;
        min-height: 500px;
    }
    
    .banner-content {
        max-width: 100%;
    }
    
    .content-columns {
        flex-direction: column;
    }
    
    .image-column {
        order: -1;
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .tabs-nav {
        flex-direction: column;
        width: max-content;
        margin: 0 auto;
        padding-bottom: 1rem;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .cookie-table {
        display: none;
    }
}
