/* Brand Colors

primary: #0d6efd
secondary: #6c757d
success: #198754
info: #0dcaf0
warning: #ffc107
danger: #dc3545
light: #f8f9fa
dark: #212529
*/

@font-face {
    src: url('/static/fonts/AvenirNext-LT-Pro-Light.ttf');
    font-family: 'Avenir Next';
    font-weight: 300;
    /* Show system font while loading */
    font-display: swap;
}

@font-face {
    src: url('/static/fonts/AvenirNext-Regular.ttf');
    font-family: 'Avenir Next';
    font-weight: 400;
    font-display: swap;
}

@font-face {
    src: url('/static/fonts/Avenir-Roman.otf');
    font-family: 'Avenir Roman';
    font-weight: 500;
    font-display: swap;
}

@font-face {
    src: url('/static/fonts/AvenirNext-Medium.ttf');
    font-family: 'Avenir Next';
    font-weight: 500;
    font-display: swap;
}

@font-face {
    src: url('/static/fonts/AvenirNext-DemiBold.ttf');
    font-family: 'Avenir Next';
    font-weight: 600;
    font-display: swap;
}

@font-face {
    src: url('/static/fonts/AvenirNext-Bold.ttf');
    font-family: 'Avenir Next';
    font-weight: 900;
    font-display: swap;
}

/***************/
/* Image       */
/***************/

.image-black {
    filter: brightness(0%) opacity(100%);
}

.image-black-50 {
    filter: brightness(0%) opacity(50%);
}

/* New spacing classes */

@media (min-width: 768px) {

    .pt-md-6,
    .py-md-6 {
        padding-top: 6rem !important;
    }

    .pr-md-6,
    .px-md-6 {
        padding-right: 6rem !important;
    }

    .pb-md-6,
    .py-md-6 {
        padding-bottom: 6rem !important;
    }

    .pl-md-6,
    .px-md-6 {
        padding-left: 6rem !important;
    }
}

@media (min-width: 992px) {

    .pt-lg-6,
    .py-lg-6 {
        padding-top: 6rem !important;
    }

    .pr-lg-6,
    .px-lg-6 {
        padding-right: 6rem !important;
    }

    .pb-lg-6,
    .py-lg-6 {
        padding-bottom: 6rem !important;
    }

    .pl-lg-6,
    .px-lg-6 {
        padding-left: 6rem !important;
    }
}

@media (min-width: 1200px) {

    .pt-xl-6,
    .py-xl-6 {
        padding-top: 6rem !important;
    }

    .pr-xl-6,
    .px-xl-6 {
        padding-right: 6rem !important;
    }

    .pb-xl-6,
    .py-xl-6 {
        padding-bottom: 6rem !important;
    }

    .pl-xl-6,
    .px-xl-6 {
        padding-left: 6rem !important;
    }
}

/* Nadpisz ustawienia globalne dla lepszego renderingu tekstu */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Nagłówki wyglądają 2x lepiej, gdy są ciaśniejsze (tracking) */
h1,
h2,
h3,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
    letter-spacing: -0.03em;
    /* To robi ogromną różnicę w Avenirze */
}

/* Zapobiegaj "wdowom" (pojedynczym słowom w nowej linii) w nagłówkach */
h1,
h2,
h3,
h4,
h5,
.display-5 {
    text-wrap: balance;
}

/* Nowoczesny, ciemny pasek przewijania */
::-webkit-scrollbar {
    width: 10px;
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid #000;
    /* Margines wokół suwaka */
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Kolor zaznaczenia tekstu - dopasuj do swojego brandu (np. niebieski lub szary) */
::selection {
    background: rgba(13, 110, 253, 0.3);
    /* Twój primary color z przezroczystością */
    color: #fff;
}

/* Marquee */

.horizontal-mask {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-content li {
    display: flex;
    align-items: center;
    margin-right: 2em;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* iPhone */

.iphone {
    position: relative;
    /* border: 10px solid rgba(0, 0, 0, 0.7); */
    border-radius: 74px;
    user-select: none;
    overflow: hidden;
    box-shadow: 0 0 0 10px rgb(66 66 66), 0 8px 24px rgb(138 138 138 / 97%);
    /* box-shadow compensation */
    margin: 10px 10px 34px 10px;
}

.iphone17 {
    /* aspect-ratio: 1206 / 2622; */
    max-width: 402px;
    max-height: 874px;
}

.statusbar::after {
    content: "9:41";
    position: absolute;
    left: 60px;
    top: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    font-size: 17px;
    opacity: 0.95;
    pointer-events: none;
}

.island {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: clamp(10px, 2.6vw, 14px);
    width: clamp(110px, 28vw, 126px);
    height: clamp(28px, 7vw, 34px);
    background: #000;
    border-radius: 999px;
    z-index: 2;
    /* box-shadow:
        0 0.5px 0 rgba(255, 255, 255, 0.08) inset,
        0 8px 20px rgba(0, 0, 0, 0.45); */
}

/* Safari */

.safari {
    max-width: 1024px;
    border-top: 2em solid rgba(230, 230, 230, 0.7);
    position: relative;
    user-select: none;
    border-radius: 3px 3px 0 0;
}

.safari:before {
    display: block;
    position: absolute;
    content: '';
    top: -1.25em;
    left: 1em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background-color: #f44;
    box-shadow: 0 0 0 2px #f44, 1.5em 0 0 2px #9b3, 3em 0 0 2px #fb5;
}

.safari>* {
    display: block;
}

/* Animations */

/* Example: h1.fade-in Fade Me Down Scotty */
.fade-in {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 2s;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

sup {
    font-weight: 100;
    font-size: 10px;
}

a {
    text-decoration: none;
    font-weight: 400;
}

a.arrow {
    font-weight: 400;
}

.arrow::after {
    font-family: "Font Awesome 6 Pro";
    content: "\f061";
    display: inline-block;
    padding-left: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    font-size: 0.75em;
    font-weight: 500;
}

.arrow:hover::after {
    transform: translateX(6px) !important;
}

a.arrow-down::after {
    font-family: "Font Awesome 6 Pro";
    -webkit-font-smoothing: antialiased;
    content: "\f078";
    margin-left: 0.45em;
    font-size: 0.85em;
}

a.arrow-left::before {
    font-family: "Font Awesome 6 Pro";
    -webkit-font-smoothing: antialiased;
    content: "\f053";
    margin-right: 0.45em;
    font-size: 0.85em;
}

.appear .mask {
    top: 0;
    opacity: 1;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--action-color);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--action-color-secondary);
}

.desktop {
    display: block !important;
}

.mobile {
    display: none !important;
}

.animate {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    /* Dodaj minimalną zmianę skali */
    filter: blur(8px);
    /* Nowy trend: elementy wyostrzają się przy wejściu */
    /* Zamiast ease-out, użyj tej krzywej (cubic-bezier) */
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.growth {
    transform: translateY(10px) scale(0.95);
    transition: transform 0.5s ease-out;
}

.growth-visible {
    transform: translateY(0px) scale(1);
}

.indicator {
    width: 8px;
    height: 8px;
    background: rgb(27, 198, 81);
    border-radius: 8px;
    box-shadow: rgb(27, 198, 81) 0px 0px 0px 0px;
    transform: scale(1);
    animation: 1.6s ease 0s infinite normal none running indicator;
}

@keyframes indicator {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(27, 198, 81, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(27, 198, 81, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(27, 198, 81, 0);
    }
}

.support-gallery {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 1.5rem 1.5rem;
    margin: 2rem 0;
}

.support-gallery tr,
.support-gallery th,
.support-gallery td {
    border: none !important;
    padding: 0;
    text-align: center;
    vertical-align: top;
}

.support-gallery .support-screenshot {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

.support-gallery em {
    display: block;
    margin-top: 0.75rem;
    color: #6c757d;
    font-style: normal;
}

@media (max-width: 991.98px) {
    .support-gallery {
        border-spacing: 1.25rem 1.25rem;
    }

    .support-gallery tr {
        display: block;
    }

    .support-gallery td {
        display: block;
        width: 100%;
    }
}

/* Live Chat Widget */

/* #livechat-compact-container {
    bottom: 0%!important;
} */

/* Landscape phone to portrait tablet and down */

@media (max-width: 767px) {
    .desktop {
        display: none !important;
    }

    .mobile {
        display: block !important;
    }
}