/* ==========================================================================
   1. Variables & Root
   ========================================================================== */
:root {
    --primary-color: #ffffff;
    --text-dark: #262626;
    --text-gray: #606060;

    /* Kolory */
    --color-orange: #ff7043;
    --color-orange-dark: #E46038;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #F5F5F5;
    --color-red: #E4002B;
    --color-red-hover: #c40026;

    /* Typografia */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Source Sans Pro', sans-serif;
    --font-size-small: 12px;
    --font-size-base: 16px;
    --font-size-medium: 20px;
    --font-size-large: 24px;
    --font-size-xl: 32px;
    --font-size-xxl: 45px;
    --font-size-huge: 50px;

    /* Spacing */
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 40px;

    /* Layout */
    --container-max-width: 1280px;
    --container-padding: 15px;
    --navbar-height-desktop: 113px;
    --hero-content-height: 12vh; /* zmniejszamy wysokość każdej sekcji */
    --hero-element-width: 480px; /* nowa zmienna dla szerokości elementów */
}

/* ==========================================================================
   2. Layout & Container
   ========================================================================== */
.container {
    max-width: var(--container-max-width) !important;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid-custom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.header {
    background-color: var(--color-white);
    color: var(--color-white);
    padding: 0;
    margin: 0;
}

.hero-title {
    margin-top: var(--spacing-xl);
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: var(--font-size-xxl);
    font-weight: 700;
    line-height: 129%;
    text-align: left;
}

.hero-description {
    margin-top: var(--spacing-xl);
    color: var(--text-gray);
    font-family: var(--font-secondary);
    font-size: var(--font-size-medium);
    line-height: 30px;
    text-align: left;
}

.hero-image {
    float: right;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.hero-texts {
    text-align: left;
    padding-left: var(--spacing-xxl);
}

/* ==========================================================================
   4. Cards & Products
   ========================================================================== */
.card-title {
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: var(--font-size-large);
    font-weight: 500;
    line-height: 150%;
}

.card-prenumerata-rodzaj {
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 150%;
}

.card-price {
    color: var(--color-orange);
    text-align: right;
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: 800;
    line-height: 150%;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.footer {
    background-color: var(--color-gray-light);
    color: var(--text-dark);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.footer-szukasz-czegos-innego {
    margin-top: 10px;
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: var(--font-size-huge);
    font-weight: 700;
    line-height: 140%;
}

.footer-sprawdz-pozostale {
    margin-top: 15px;
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-size: var(--font-size-medium);
    font-weight: 500;
    line-height: 140%;
}

.footer-copyright {
    color: var(--text-gray);
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 500;
    line-height: 140%;
}

.footer-copyright span {
    color: var(--text-gray);
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 500;
    line-height: 140%;
    text-decoration-line: underline;
}

.footer-row {
    background-color: var(--color-white);
}

.footer-logo {
    height: 27px;
    position: relative;
    top: -15px;
}

.footer-socials a {
    color: var(--color-orange) !important;
}

.footer-container {
    margin-top: var(--spacing-xxl);
    flex-wrap: nowrap;
}

.footer-links-spacing {
    margin: 0 10px;
}

/* ==========================================================================
   6. Media Queries
   ========================================================================== */
@media (max-width: 575.99px) {
    .hero-texts {
        text-align: center;
        padding-left: 0;
        padding-bottom: var(--spacing-xxl);
    }

    .hero-title {
        margin-top: var(--spacing-xxl);
        font-size: var(--font-size-xl);
        text-align: center;
        line-height: normal;
        width: 100%;
        padding: 0 var(--spacing-lg);
    }

    .hero-description {
        font-size: var(--font-size-medium);
        text-align: center;
        line-height: normal;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 var(--spacing-lg);
    }

    .footer-szukasz-czegos-innego {
        font-size: 32px;
        padding: 0 20px;
    }

    .footer-sprawdz-pozostale {
        font-size: 16px;
        padding: 0 20px;
    }

    .hero-buttons {
        margin-top: var(--spacing-lg);
        gap: var(--spacing-lg);
        padding-bottom: var(--spacing-xxl);
    }

    .hero-buttons .d-lg-flex {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .hero-buttons img {
        max-width: 100%;
        height: auto;
    }

    .footer-container img {
        max-width: 100px;
        height: auto;
    }

    .footer-links-spacing {
        margin: 0 5px;
    }
}

/* ==========================================================================
   7. Navbar
   ========================================================================== */
.navbar {
    height: auto;
    padding: 1rem;
}

.navbar-code-text {
    color: var(--text-gray);
    font-family: var(--font-primary);
    text-transform: uppercase;
}

.navbar-code-container {
    display: inline;
}

.navbar-code-date {
    margin-left: 5px;
}

@media (max-width: 991px) {
    .navbar-code {
        width: 50%;
        justify-content: flex-end;
    }
    .navbar-code-text {
        font-size: var(--font-size-small);
    }
    .navbar-code-container {
        display: block;
    }
    .navbar-code-date {
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    .navbar {
        height: var(--navbar-height-desktop);
    }

    .navbar-brand {
        margin-left: var(--spacing-xxl);
    }

    .navbar-code {
        margin-right: var(--spacing-xxl);
    }
    .navbar-code-text {
        font-size: 12px;
        text-align: left;
    }
}

/* ==========================================================================
   8. Product Section
   ========================================================================== */
.products-section {
    padding: var(--spacing-xxl) 0;
}

.product-item-container {
    display: flex;
    justify-content: flex-end;
}

.product-item-container--left {
    justify-content: flex-start;
}

/* ==========================================================================
   9. Hero Section
   ========================================================================== */
.hero-container {
    background-color: var(--color-gray-light);
}

.hero-logos {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.hero-logos__image {
    max-width: 100%;
    height: auto;
}

/* Hover effects */
.hero-buttons img,
.product-item img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hero-buttons img:hover,
.product-item img:hover {
    transform: scale(1.1);
}

/* Modyfikacja sekcji Hero */
.hero-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .hero-content {
        height: calc(var(--hero-content-height) * 4);
    }
    
    .hero-content > * {
        height: var(--hero-content-height);
        display: flex;
        align-items: center;
        width: var(--hero-element-width);
    }
    
    .hero-title {
        padding-top: 60px;
    }
    
    .hero-description {
        font-size: 21px;
        color: #262626;
        padding-right: 100px;
        padding-top:20px;
        line-height: 30px;
    }

    .hero-title,
    .hero-description {
        width: var(--hero-element-width);
    }

    .hero-logos__image,
    .hero-buttons .d-lg-flex {
        width: var(--hero-element-width);
    }
}