/* Base & Reset */
:root {
    --primary-color: #00695c;
    /* Teal */
    --accent-color: #ff5722;
    /* Deep Orange */
    --text-color: #37474f;
    /* Blue Grey */
    --bg-light: #e0f2f1;
    /* Light Teal Tint */
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --padding-container: 2rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page-body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Common Styles via Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-container);
}

.text-center {
    text-align: center;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Top Ad Bar */
.top-ad-bar {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
}

.top-ad-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: default;
}

.logo-icon-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
}

.logo-icon-wave span {
    display: block;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 4px;
    animation: wave-animation 1.2s ease-in-out infinite;
}

.logo-icon-wave span:nth-child(1) {
    height: 12px;
    animation-delay: 0.1s;
}

.logo-icon-wave span:nth-child(2) {
    height: 24px;
    animation-delay: 0.2s;
}

.logo-icon-wave span:nth-child(3) {
    height: 16px;
    animation-delay: 0.3s;
}

.logo-icon-wave span:nth-child(4) {
    height: 8px;
    animation-delay: 0.4s;
}

@keyframes wave-animation {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }
}

.logo-text-group {
    display: flex;
    align-items: baseline;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-text-main {
    color: var(--primary-color);
}

.logo-text-accent {
    color: var(--accent-color);
}

/* Loader specific adjustments */
.loader-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.loader-logo .logo-icon-wave {
    height: 40px;
    gap: 5px;
}

.loader-logo .logo-icon-wave span {
    width: 6px;
}

.loader-logo .logo-icon-wave span:nth-child(1) {
    height: 20px;
}

.loader-logo .logo-icon-wave span:nth-child(2) {
    height: 40px;
}

.loader-logo .logo-icon-wave span:nth-child(3) {
    height: 28px;
}

.loader-logo .logo-icon-wave span:nth-child(4) {
    height: 14px;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 200;
    padding: 2rem;
    transition: right 0.4s ease;
}

.mobile-menu.active {
    right: 0;
}

.close-icon {
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-nav-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
}

.mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e0f2f1 0%, #ffffff 100%);
    padding: 4rem 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features */
.features-section {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-desc {
    color: #555;
}

.feature-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.feature-gallery-img {
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.feature-gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Why Us */
.why-us-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.section-title-light {
    color: var(--white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.reason-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 700;
}

.reason-desc {
    color: #ddd;
    line-height: 1.5;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-light);
    text-align: center;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    flex: 1;
    scroll-snap-align: center;
    border: 1px solid #eee;
}

.stars {
    color: #f1c40f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
    font-weight: 500;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* FAQ */
.faq-section {
    padding: 5rem 0;
    background: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: #555;
}

/* Footer */
.site-footer {
    background: #050d18;
    color: #aaa;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
}

.footer-link {
    cursor: pointer;
    transition: var(--transition);
    color: #aaa;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-info {
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    margin: 0 2rem 2rem;
    border-radius: 5px;
}

.disclaimer-text {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.5;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
}

.copyright-text {
    color: #777;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px 5px 0 0;
    transform-origin: center;
}

#floating-impressum {
    right: -35px;
}

#floating-privacy {
    left: -60px;
    /* Adjusted for longer text "Polityka Prywatności" */
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 3rem;
    width: 90%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

.modal-title {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-subheading {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-text {
    margin-bottom: 1rem;
    color: #444;
}

.modal-list {
    padding-left: 20px;
    list-style: disc;
    color: #444;
    margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
}

.cookie-text {
    font-size: 0.9rem;
    flex: 1;
    min-width: 250px;
}

.cookie-link {
    text-decoration: underline;
    color: inherit;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nav-desktop,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .floating-btn {
        display: none;
    }
}