:root {
    --primary-color: #FF5722FF;
    --primary-light: #FF7043;
    --primary-dark: #E64A19;
    --secondary-color: #009688FF;
    --secondary-light: #4DB6AC;
    --secondary-dark: #00796B;
    --cta-color: #2196F3FF;
    --cta-light: #42A5F5;
    --cta-dark: #1976D2;
    --dark-color: #1a535c;
    --light-color: #f7fff7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: #333;
    line-height: 1.6;
}

header {
    background-color: var(--light-color);
    color: #333;
    padding: 0.5rem 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.logo a {
    margin: 0;
    padding: 0;
    height: 3.4rem;
}

.logo img {
    width: 55px;
    height: auto;
    margin-right: 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-button {
    display: inline-block;
    padding: 8px 8px 8px 0;
    background-color: var(--light-color);
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    border-right: 1px solid #e0e0e0;
}

.nav-button:last-child {
    border-right: none;
}

.nav-button:hover {
    background-color: #f0f0f0;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-left: 20px;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-text h1 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.header-text p {
    margin: 0;
    font-size: 0.9rem;
}

.content {
    background-color: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

h2 {
    font-size: 1.6rem;
    margin: 0 0 1rem;
    color: var(--dark-color);
}

p, ul, ol {
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.back-btn {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: var(--secondary-dark);
}

/* Styles specific to index.html */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 0;
    background-color: var(--secondary-light);
    color: white;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 0.2rem;
    color: white;
}

.hero-steps {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    width: 100%;
    justify-content: center;
}

.hero-step {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    color: #333;
    border-radius: 20px;
    font-weight: bold;
    transform: translateY(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-step:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
    cursor: default;
}

.hero-arrow {
    color: white;
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.app-buttons {
    /* display: flex; */
    display: none; /* Tymczasowo ukryte */
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.app-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-button:hover {
    transform: scale(1.05);
    background-color: #333;
}

.app-button img {
    width: 24px;
    margin-right: 8px;
}

.app-screenshots {
    flex: 1;
    position: relative;
    min-width: 300px;
    max-width: 500px;
    height: 600px;
}

.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.screenshot.active {
    opacity: 1;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.features {
    padding: 4rem 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--secondary-light);
    transition: transform 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.how-it-works {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.testimonials {
    padding: 4rem 0;
    background-color: white;
    cursor: grab;
}

.testimonials:active {
    cursor: grabbing;
}

.testimonial-slider {
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.testimonial-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--dark-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--secondary-color);
}

.cta {
    padding: 4rem 0;
    background-color: var(--secondary-light);
    color: white;
    text-align: center;
}

.cta .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-content {
    flex: 1;
    min-width: 300px;
}

.cta-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.cta-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sib-form {
    background-color: transparent !important;
    padding: 0 !important;
}

/* Style dla formularza newslettera */
.sib-container {
    text-align: center;
    padding: 2rem !important;
    margin: 2rem auto !important;
    width: 100% !important;
    max-width: 600px !important;
    color: #000 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.sib-form-container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.form__entry {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

.sib-form .entry__field {
    border: 0 !important;
}

.sib-form .entry__label {
    font-weight: 700;
    text-align: left;
    font-size: 16px;
    font-family: Helvetica, sans-serif;
    color: #3c4858;
}

.sib-form .checkbox__label {
    font-size: 14px;
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #3C4858;
    background-color: transparent;
}

.sib-form .entry__specification {
    font-size: 12px;
    text-align: center;
    font-family: Helvetica, sans-serif;
    color: #8390A4;
}

.sib-form .entry__error {
    font-size: 16px;
    text-align: center;
    font-family: Helvetica, sans-serif;
    color: #661d1d;
    background-color: #ffeded;
    border-radius: 8px;
    border-color: #ff4949;
}

.sib-form h1 {
    font-size: 32px;
    text-align: center;
    font-weight: 700;
    font-family: Helvetica, sans-serif;
    color: #3C4858;
    background-color: transparent;
    margin-bottom: 0 !important;
}

.sib-form h2 {
    font-size: 24px;
    font-weight: 700;
    color: #3C4858;
    text-align: center;
}

.sib-form p {
    font-size: 16px;
    color: #3C4858;
    margin-bottom: 20px;
    text-align: center;
}

.sib-form li {
    font-size: 14px;
    color: #3C4858;
    margin: 0;
    text-align: left;
    width: 100% !important;
}

.input {
    border: 1px solid var(--secondary-light) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    width: 100% !important;
    height: 52px !important;
    max-width: 400px !important;
    color: #000 !important;
    box-sizing: border-box !important;
}

.sib-form-block-submit {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 18px !important;
}

.sib-form-block__button {
    background-color: var(--primary-color) !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    transition: transform 0.2s, background-color 0.2s !important;
    color: white !important;
    font-weight: 700;
    margin: 0 auto !important;
}

.sib-form-block__button:hover {
    transform: scale(1.05);
    background-color: #333 !important;
}

.entry__choice {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000 !important;
}

.sib-form-message-panel {
    color: #000 !important;
}

.sib-form-message-panel__text {
    color: #000 !important;
}

.form__label-row {
    color: #000 !important;
}

/* Language dropdown styles */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.dropdown-button:hover {
    background-color: #f0f0f0;
}

.current-lang {
    margin-right: 5px;
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 20px;
    height: 12px;
    margin-right: 8px;
    border: 1px solid #e0e0e0;
}

.dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown-button.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background-color: #f0f0f0;
}

.lang-option.active {
    background-color: var(--secondary-color);
    color: white;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }

    .hero .container {
        flex-direction: column;
    }

    .app-screenshots {
        height: 400px;
        order: -1;
    }

    .newsletter-form {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid, .steps {
        grid-template-columns: 1fr;
    }

    .cta .container {
        flex-direction: column;
    }

    .cta-image {
        order: -1;
        width: 100%;
    }

    .nav-buttons {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-buttons.active {
        right: 0;
    }

    .nav-button {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        padding: 15px 0;
    }

    .hamburger-menu {
        display: flex;
    }

    .header-text {
        max-width: 200px;
    }

    .language-dropdown {
        margin-left: 0;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-button {
        width: 100%;
        justify-content: center;
        border: none;
        border-radius: 0;
        padding: 15px 0;
    }

    .dropdown-content {
        position: relative;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid #e0e0e0;
    }

    .lang-option {
        text-align: center;
        padding: 12px 0;
        justify-content: center;
    }
}
