#client-logos {
    display: flex;
    flex-direction: column;
    background-color: var(--background-alt);
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 26px 0;
    gap: 26px;
}

#client-logos img {
    max-height: 96px;
    max-width: 200px;
    transition: transform 0.1s linear;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#image-carousel {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 96px;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

#image-carousel::-webkit-scrollbar {
    display: none;
}

#catalogue {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
    gap: 60px;
}

.card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 350px);
    justify-content: center;
    gap: 60px;
    min-height: 580px;
    font-size: clamp(12px, 4.10vw, 16px);
    opacity: 1;
    transition: opacity 0.35s ease-in-out;
}

.card-grid.fade-out {
    opacity: 0;
}

.card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 35 / 58;
    flex-direction: column;
    background-color: var(--background);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.card > img {
    height: 12.5em;
    width: 100%;
    object-fit: cover;
    object-position: 50% 20%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    padding: 1em;
    padding-bottom: 5em;
}

.card-content > h3 {
    font-size: 1.5em;
    font-weight: 450;
    margin: 0;
}

.card-content > p {
    margin: 0;
    display: -webkit-box;
    line-clamp: 6;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content > button {
    position: absolute;
    height: 2.5em;
    left: 20%;
    right: 20%;
    bottom: 1.5em;
    font-size: 1em;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.card-content > a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background-color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    position: absolute;
    height: 2.5em;
    left: 20%;
    right: 20%;
    bottom: 1.5em;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease;
}

.card-content a:focus {
    transform: scale(1.12);
}

.tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5em;
}

.tags span {
    display: inline-block;
    align-self: flex-start;
    color: var(--dark);
    background-color: var(--primary);
    font-size: 0.875em;
    font-weight: bold;
    padding: 0.375em 1.125em;
    border-radius: 16px;
    line-height: 1.35em;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: transform 0.1s linear, color 0.2s ease-out, background-color 0.2s ease-out;
}

.tag-dla-kobiet {
    color: #E67371 !important;
    background-color: #F1DDD6 !important;
}

.tag-miejsce {
    color: #EDBC0E !important;
    background-color: #FBEDBB !important;
}

.tag-dla-mezczyzn {
    color: #718CE6 !important;
    background-color: #D7DDEF !important;
}

.tag-inactive {
    color: #9c9c9c !important;
    background-color: #e3e3e3 !important;
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
}

.hidden {
    display: none !important;
}

.tag-special {
    position: relative;
    overflow: hidden;
    background-color: var(--background-alt);
    color: var(--dark);
    z-index: 1;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.tag-special::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
    45deg,
    #bde9ff 25%,
    #ffa8bd 50%,
    #c1d0ff 75%,
    #ffe175 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 16s ease infinite;

    opacity: 1;
    transition: opacity 0.2s ease-out;
}

.tag-special::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 40%;
    height: 100%;

    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    filter: blur(4px);

    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.tag-special.tag-inactive {
    background-color: #e3e3e3 !important;
    color: #9c9c9c !important;
}

.tag-special.tag-inactive::before {
    animation-play-state: paused !important;
    opacity: 0 !important;
}

#picker {
    display: flex;
    flex-direction: column;
}

#picker > h2 {
    margin-bottom: 20px;
}

.learn-more {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: height 0.45s ease, margin-top 0.45s ease, opacity 0.45s ease;
}

.learn-more.visible {
    margin-top: 20px;
    height: 2em;
    opacity: 1;
    pointer-events: auto;
    transition: height 0.45s ease, margin-top 0.45s ease, opacity 0.45s ease, transform 0.2s ease, color 0.2s ease;
}

.tags-select {
    flex-direction: column !important;
}

.tags-select > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5em;
}

#dim {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99;
}

#dim.visible {
    opacity: 1;
}

.offer {
    width: 80%;
    height: 90%;
    max-width: 1500px;
    max-height: 1280px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 60px));
    background-color: var(--background);
    border-radius: 16px;
    box-shadow: 6px 6px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.offer.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.offer > hr {
    width: 0;
    height: 95%;
    align-self: center;
    border: 2px solid var(--background-alt);
    margin: 0 5px;
}

.offer h2 {
    font-size: 2.125em;
    font-weight: 400;
}

.offer h3 {
    font-size: 1.625em;
    font-weight: 350;
    margin: 0;
}

.offer h3 > strong {
    display: block;
    font-size: 1.5em;
    font-weight: 450;
    line-height: 1.25em;
}

.offer h4 {
    margin: 0;
}

.offer p, ul {
    margin: 0;
}

.offer .tags {
    margin-bottom: 32px;
}

.offer ::-webkit-scrollbar {
    width: 5px;
}

.offer ::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 8px;
}

.description {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    overflow-y: auto;
    overflow-x: hidden;
}

.details {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    margin-right: 5px;
    overflow-y: auto;
    overflow-x: hidden;
}

.details > img {
    max-height: 300px;
    object-fit: cover;
    align-self: center;
    border: 2px solid var(--background-alt);
    border-radius: 16px;
    box-shadow: 3px 3px 9px rgba(0, 0, 0, 0.4);
    aspect-ratio: 4 / 3;
}

.details > h2 {
    text-align: center;
}

.details > a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background-color: var(--primary);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease;
    width: 70%;
    align-self: center;
    padding: 9px;
    margin-bottom: 32px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--dark);
    transition: transform 0.3s ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding: 1em;
    font-style: italic;
    margin: 16px;
}

blockquote > b {
    display: block;
    color: var(--dark);
    font-weight: 550;
    text-align: right;
}

@keyframes gradientShift {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}

@keyframes shine {
    0%   { left: -120%; }
    50%  { left:  100%; }
    100% { left:  200%; }
}

@media (max-width: 1200px) {
    #heroImage img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 0%;
    }

    .card-grid {
        grid-template-columns: repeat(2, 350px);
    }

    .offer {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
        max-height: none;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .offer > hr {
        display: none;
    }

    .description,
    .details {
        flex: 0 0 auto;
        overflow: visible;
        width: auto;
        padding: 5%
    }

    .description {
        padding-top: 0;
    }

    .description ul,
    .description ol,
    .details ul,
    .details ol {
        padding-left: 7%;
    }

    .description img,
    .details img {
        max-width: 95%;
    }

    .close {
        position: sticky;
        top: 10px;
        margin: 10px;
        text-align: right;
    }

    .close:hover {
        transform: none;
    }
}

@media (max-width: 1085px) {
    .tags-select {
        flex-direction: row !important;
    }

    .tags > div {
        display: contents;
    }
}

@media (max-width: 768px) {
    #catalogue {
        padding: 60px 5%;
    }

    .card-grid {
        grid-template-columns: 100%;
        gap: 2.5em;
    }

    .card {
        aspect-ratio: auto;
    }
}

@media (hover: hover) and (pointer: fine) {
    .tag-inactive:hover {
        color: #6da2ca !important;
        background-color: #d4e9f2 !important;
    }

    .tag-special.tag-inactive:hover {
        color: #6da2ca !important;
        background-color: #d4e9f2 !important;
    }

    .offer ::-webkit-scrollbar-thumb:hover {
        background-color: var(--secondary);
    }

    .learn-more.visible:hover {
        color: var(--primary);
    }

    .dark-mode .tag-inactive:hover {
        color: #E5C6A8 !important;
        background-color: #6F6861 !important;
    }

    .dark-mode .tag-special.tag-inactive:hover {
        color: #E5C6A8 !important;
        background-color: #6F6861 !important;
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    #client-logos img:hover {
        transform: scale(1.12);
    }

    .card:hover {
        transform: scale(1.06);
        box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.3);
    }

    .card-content > button:hover {
        transform: scale(1.12);
    }

    .card-content > a:hover {
        transform: scale(1.12);
    }

    .tags span:hover {
        transform: scale(1.05);
    }

    .learn-more.visible:hover {
        transform: scale(1.12);
    }

    .close:hover {
        transform: scale(1.3);
    }
}

@media (prefers-color-scheme: dark) {
    html:not(.light-mode) .card {
        background-color: var(--background-alt);
    }

    html:not(.light-mode) .tag-dla-kobiet {
        color: #E67371 !important;
        background-color: #592D2B !important;
    }

    html:not(.light-mode) .tag-miejsce {
        color: #EDBC0E !important;
        background-color: #5c4908 !important;
    }

    html:not(.light-mode) .tag-dla-mezczyzn {
        color: #718CE6 !important;
        background-color: #324178 !important;
    }

    html:not(.light-mode) .tag-inactive {
        color: #a9a297 !important;
        background-color: #282b2d !important;
    }

    html:not(.light-mode) .tag-special {
        color: #282b2d !important;
    }

    html:not(.light-mode) .tag-special.tag-inactive {
        background-color: #282b2d !important;
        color: #a9a297 !important;
    }

    html:not(.light-mode) .tag-special.tag-inactive::before {
        animation-play-state: paused !important;
        opacity: 0 !important;
    }
}

@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
    html:not(.light-mode) .tag-inactive:hover {
        color: #E5C6A8 !important;
        background-color: #6F6861 !important;
    }

    html:not(.light-mode) .tag-special.tag-inactive:hover {
        color: #E5C6A8 !important;
        background-color: #6F6861 !important;
    }
}

.dark-mode .card {
    background-color: var(--background-alt);
}

.dark-mode .tag-dla-kobiet {
    color: #E67371 !important;
    background-color: #592D2B !important;
}

.dark-mode .tag-miejsce {
    color: #EDBC0E !important;
    background-color: #5c4908 !important;
}

.dark-mode .tag-dla-mezczyzn {
    color: #718CE6 !important;
    background-color: #324178 !important;
}

.dark-mode .tag-inactive {
    color: #a9a297 !important;
    background-color: #282b2d !important;
}

.dark-mode .tag-special {
    color: #282b2d !important;
}

.dark-mode .tag-special.tag-inactive {
    background-color: #282b2d !important;
    color: #a9a297 !important;
}

.dark-mode .tag-special.tag-inactive::before {
    animation-play-state: paused !important;
    opacity: 0 !important;
}