/* 
 * KubkiPlus - główny plik CSS
 * Autor: KubkiPlus Team
 * Wersja: 1.0
 */

/* === Reset i podstawowe style === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Typografia === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #222;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #1a73e8;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* === Przyciski === */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #1a73e8;
    color: #fff;
}

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

.btn-secondary {
    background-color: #f8f9fa;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

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

.btn-tertiary {
    background-color: transparent;
    color: #5f6368;
}

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

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

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

.logo a {
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #5f6368;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #1a73e8;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a73e8;
}

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

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #5f6368;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === Banner === */
.banner {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.banner-content {
    max-width: 600px;
}

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

.banner h1 {
    margin-bottom: 20px;
    font-size: 2.8rem;
    color: #1a73e8;
}

.banner p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #5f6368;
}

.banner-image {
    margin-left: 40px;
}

/* === Sekcje strony === */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
}

section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* === O Nas === */
.about-us {
    background-color: #fff;
}

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

.about-text {
    flex: 1;
    padding-right: 40px;
}

.about-image {
    flex: 1;
}

/* === Produkty === */
.products {
    background-color: #f8f9fa;
}

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

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-card p {
    color: #5f6368;
    margin-bottom: 15px;
}

.price {
    font-weight: 700;
    color: #1a73e8;
    font-size: 1.1rem;
}

/* === Dlaczego My === */
.why-us {
    background-color: #fff;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* === Opinie === */
.testimonials {
    background-color: #f8f9fa;
}

.testimonial-single {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial {
    padding: 20px;
}

.testimonial-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: #5f6368;
    font-size: 0.9rem;
}

/* === Newsletter === */
.newsletter {
    background-color: #1a73e8;
    color: #fff;
}

.newsletter h2 {
    color: #fff;
}

.newsletter h2:after {
    background-color: #fff;
}

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

.newsletter p {
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter .form-group .btn {
    border-radius: 0 4px 4px 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

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

.form-check label {
    font-size: 0.9rem;
}

.form-check a {
    color: #fff;
    text-decoration: underline;
}

/* === Kontakt === */
.contact {
    background-color: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-icon {
    margin-right: 15px;
}

.social-media {
    margin-top: 30px;
}

.social-icons {
    display: flex;
    margin-top: 10px;
}

.social-icons a {
    margin-right: 15px;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
    display: block;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: 10px;
}

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.footer-column p {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
}

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

.footer-column ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    color: #bbb;
    font-size: 0.9rem;
    margin: 0;
}

/* === Strona podziękowania === */
.thank-you {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.thank-you-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
    margin-bottom: 30px;
}

.thank-you h1 {
    margin-bottom: 20px;
    color: #1a73e8;
}

.email-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #e8f0fe;
    border-radius: 4px;
    color: #1a73e8;
}

.actions {
    margin-top: 30px;
}

/* === Co dalej === */
.what-next {
    background-color: #fff;
}

.what-next-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.what-next-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.what-next-item:hover {
    transform: translateY(-5px);
}

.what-next-icon {
    margin-bottom: 20px;
}

.what-next-item h3 {
    margin-bottom: 15px;
}

.what-next-item p {
    margin-bottom: 20px;
}

.social-icons-small {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.social-icons-small a {
    margin: 0 5px;
}

/* === Strony prawne === */
.legal-page {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.legal-page .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 20px;
}

.legal-last-updated {
    text-align: center;
    margin-bottom: 30px;
    color: #5f6368;
    font-style: italic;
}

.legal-content section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.legal-content section:last-child {
    border-bottom: none;
}

.legal-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cookie-management {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.cookie-management h3 {
    margin-bottom: 15px;
}

.cookie-management p {
    margin-bottom: 20px;
}

/* === Blog === */
.blog-header {
    background-color: #1a73e8;
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.blog-header h1 {
    color: #fff;
    margin-bottom: 20px;
}

.blog-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.blog-articles {
    background-color: #f8f9fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

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

.article-card:hover {
    transform: translateY(-5px);
}

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

.article-content {
    padding: 20px;
}

.article-date {
    display: block;
    color: #5f6368;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.article-card h2:after {
    display: none;
}

.article-card h2 a {
    color: #333;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: #1a73e8;
}

.article-card p {
    margin-bottom: 20px;
}

/* === Strona artykułu === */
.article-page {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.article-page .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 30px;
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 20px;
    color: #5f6368;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #1a73e8;
}

.article-header h1 {
    margin-bottom: 15px;
}

.article-meta {
    color: #5f6368;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-author {
    margin-left: 15px;
}

.article-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.article-content h2:after {
    left: 0;
    transform: none;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 5px;
}

.article-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-share h3 {
    margin-bottom: 15px;
}

.social-share {
    display: flex;
}

.share-btn {
    margin-right: 15px;
}

.article-related {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-related h3 {
    margin-bottom: 15px;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.related-article {
    display: block;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.related-article:hover {
    background-color: #e8f0fe;
}

.related-title {
    font-weight: 500;
}

/* === Responsywność === */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .banner .container {
        flex-direction: column;
    }
    
    .banner-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .banner-image {
        margin-left: 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .article-page .container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 60px 20px;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1010;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter .form-group .btn {
        border-radius: 4px;
        width: 100%;
    }
    
    .related-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .product-grid,
    .features,
    .what-next-items,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-page .container {
        padding: 20px;
    }
    
    .legal-navigation {
        flex-direction: column;
        gap: 10px;
    }
}
