/*
* Majster Plus - Style główne
* Autor: Majster Plus
* Wersja: 1.0
*/

/* === RESET I ZMIENNE === */
:root {
    /* Kolory podstawowe */
    --primary-color: #3a86ff;
    --primary-dark: #2a60c8;
    --secondary-color: #ff9e00;
    --text-color: #333333;
    --text-light: #666666;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Fonty */
    --font-main: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Rozmiary */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 80px 0;
    --element-padding: 15px;
    --border-radius: 8px;
    --card-border-radius: 12px;
    
    /* Shadows */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

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

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

/* === PRZYCISKI === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}

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

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

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

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-text {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.btn-text i {
    margin-left: 8px;
    transition: transform var(--transition-speed) ease;
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* === HEADER I NAWIGACJA === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 0 20px;
    transition: all var(--transition-speed) ease;
}

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

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

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

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

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* === BANNER === */
.banner {
    position: relative;
    padding: 180px 0 100px;
    background-color: #f0f4ff;
    overflow: hidden;
}

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

.banner-bg-img {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 1;
    opacity: 0.6;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

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

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

.banner-buttons {
    display: flex;
    gap: 15px;
}

/* === SEKCJE === */
section {
    padding: var(--section-padding);
}

/* Sekcja Usługi */
.services {
    background-color: white;
}

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

.service-card {
    background-color: white;
    border-radius: var(--card-border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-icon img {
    width: 40px;
    height: 40px;
}

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

.service-card p {
    margin-bottom: 1.5rem;
}

/* Sekcja O nas */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-text {
    font-size: 1rem;
    color: var(--text-light);
}

/* Sekcja Testimonials */
.testimonials {
    background-color: white;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    overflow-x: visible;
}

.testimonial-card {
    flex: 0 0 calc(33.33% - 20px);
    background-color: white;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.testimonial-stars {
    display: flex;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.testimonial-stars i {
    margin-right: 5px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--text-light);
    font-size: 1.5rem;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

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

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

/* Sekcja Blog */
.latest-blog {
    background-color: #f8f9fa;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
    background-color: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

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

/* Sekcja Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.newsletter-form {
    flex: 1;
}

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

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--secondary-color);
}

.newsletter-form button:hover {
    background-color: #e58e00;
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-privacy input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-privacy a {
    color: white;
    text-decoration: underline;
}

/* Sekcja Kontakt */
.contact {
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 5px;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form-container {
    flex: 1;
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

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

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

/* Mapa */
.map {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === FOOTER === */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1 1 300px;
    margin-bottom: 30px;
}

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

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
}

.footer-links-column {
    flex: 1 1 200px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-links-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

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

.footer-links-column ul li a:hover {
    color: white;
}

.footer-links-column ul li i {
    margin-right: 10px;
    width: 16px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px 30px;
    z-index: 1000;
    animation: slideUp 0.5s forwards;
}

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

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.cookie-settings {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.cookie-option {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

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

.cookie-option label {
    font-weight: 500;
    margin-right: 15px;
}

.cookie-option p {
    flex: 0 0 100%;
    margin-left: 25px;
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.cookie-settings button {
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* === THANK YOU PAGE === */
.thank-you {
    padding: 180px 0 100px;
    background-color: #f0f4ff;
    text-align: center;
}

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

.thank-you-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 30px;
}

.thank-you h1 {
    margin-bottom: 20px;
}

.thank-you p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.thank-you-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.additional-info {
    background-color: white;
}

.additional-info-content {
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background-color: #f8f9fa;
    border-radius: var(--card-border-radius);
    padding: 30px;
    text-align: center;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.step-card h3 {
    margin-bottom: 15px;
}

.step-card p {
    margin-bottom: 0;
}

/* === BLOG === */
.blog-header {
    padding: 150px 0 80px;
    background-color: #f0f4ff;
    text-align: center;
}

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

.blog-post {
    margin-bottom: 80px;
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post-title {
    font-size: 2.5rem;
    margin: 15px 0;
}

.blog-post-content {
    line-height: 1.8;
}

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

.blog-post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
}

.blog-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.7rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.blog-post-content ul li,
.blog-post-content ol li {
    margin-bottom: 10px;
}

.blog-post-content img {
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.blog-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.blog-nav-button {
    display: flex;
    align-items: center;
}

.blog-nav-button.prev {
    flex-direction: row-reverse;
}

.blog-nav-button i {
    margin: 0 10px;
}

/* === LEGAL PAGES === */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 20px 80px;
}

.legal-content h1 {
    margin-bottom: 30px;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

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

.legal-content ul,
.legal-content ol {
    padding-left: 20px;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

/* === ANIMATIONS === */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
