:root {
    --color-bg-main: #171438;
    --color-bg-middle: #211c4f;
    --color-bg-alt: #11152b;
    --color-accent-blue: #3fa7ff;
    --color-accent-blue-hover: #238ef0;
    --color-accent-purple: #7c4dff;
    --color-text-main: #ffffff;
    --color-text-sub: #d8defa;
    --cta-background-start: #090b22;
    --cta-background-middle: #11184a;
    --cta-background-end: #0b122f;
    --cta-text-color: #d8defa;
    --contact-form-text-color: #e0e0e0;
    --contact-form-border-color: #ffffff;
    --featured-project-text-color: #d8defa;
    --featured-button-background: #3ea9ff;
    --featured-button-text-color: #62b4ff;
    --featured-button-hover-background: #349df4;
    --featured-button-hover-text-color: #ffffff;
    --color-glow-first: #5667b4;
    --color-glow-second: #1c55b4;
    --navbar-text-color: #ffffff;
    --navbar-hover-color: #794ec9;
    --navbar-position: sticky;
    --navbar-background: transparent;
    --footer-text-color: #ffffff;
    --footer-hover-color: var(--color-accent-blue);
    --footer-background: transparent;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgb(from var(--color-accent-blue) r g b / 0.2);
    --glass-hover-shadow: 0 0 25px rgb(from var(--color-accent-blue) r g b / 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    scrollbar-gutter: stable; 
    scroll-behavior: smooth;
}

:view-transition-old(root) {
  animation: 250ms ease-out both fade-out;
}

::view-transition-new(root) {
  animation: 250ms ease-in both fade-in;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    width:100%;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgb(from var(--color-glow-first) r g b / 0.55), transparent 35%),
        radial-gradient(circle at 80% 70%, rgb(from var(--color-glow-second) r g b / 0.35), transparent 35%),
        linear-gradient(135deg, var(--color-bg-main), var(--color-bg-middle), var(--color-bg-alt));
    color: var(--color-text-main);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   NAVBAR
========================= */
@keyframes shrink-navbar {
  to {
    height: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Dodajemy delikatny cień po przewinięciu */
  }
}

@keyframes scroll-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.navbar {
    width: 100%;
    padding: 30px 55px;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: var(--navbar-position);
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(14px);
    background: var(--navbar-background);
    transition: height 0.2s ease, box-shadow 0.2s ease; 
    
}

@supports (animation-timeline: scroll()) {
.navbar::after {
    content: "";
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 4px; 
    background: linear-gradient(90deg, #68b4ff, #5c0ad0); 
    transform-origin: left; 
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }
}



.logo {
    font-size: 30px;
    font-weight: bold;
}
.logo a{
    text-decoration: none;
    color: var(--navbar-text-color);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--navbar-text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--navbar-hover-color);
}


/* =================================
   ZMNIEJSZANIE NAVBARU PRZY SCROLLU
================================= */

.navbar {
    animation: shrink-navbar linear both;
    animation-timeline: scroll(root);
    animation-range-start: 0;
    animation-range-end: 140px;
}

.navbar .logo {
    animation: shrink-logo-text linear both;
    animation-timeline: scroll(root);
    animation-range-start: 0;
    animation-range-end: 140px;
}

.navbar .logo a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar .logo img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;

    animation: shrink-logo-image linear both;
    animation-timeline: scroll(root);
    animation-range-start: 0;
    animation-range-end: 140px;
}

@keyframes shrink-navbar {
    from {
        padding-top: 30px;
        padding-bottom: 30px;
        height: 120px;
/* 
        background: rgba(23, 20, 56, 0); */
        box-shadow: none;
    }

    to {
        padding-top: 12px;
        padding-bottom: 12px;
        height: 90px;

        /* background: rgba(23, 20, 56, 0.92); */
        /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18); */
    }
}

@keyframes shrink-logo-text {
    from {
        font-size: 30px;
    }

    to {
        font-size: 24px;
    }
}

@keyframes shrink-logo-image {
    from {
        width: 70px;
        height: 70px;
    }

    to {
        width: 48px;
        height: 48px;
    }
}


/* =================================
   MOBILNE MENU HAMBURGER
================================= */

.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-sidebar {
    display: none;
}

@media (max-width: 768px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .navbar {
        height: 80px;
        padding: 12px 18px;
        animation: none;
    }

    .navbar .logo {
        min-width: 0;
        font-size: 22px;
        animation: none;
    }

    .navbar .logo a {
        gap: 7px;
        white-space: nowrap;
    }

    .navbar .logo img {
        width: 50px;
        height: 50px;
        animation: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        width: 46px;
        height: 46px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.06);
        color: var(--navbar-text-color);
        cursor: pointer;
        transition: border-color 0.25s ease, background 0.25s ease;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus-visible {
        border-color: var(--color-accent-blue);
        background: rgba(255, 255, 255, 0.11);
        outline: none;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        border-radius: 999px;
        display: block;
        background: currentColor;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        border: 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(3, 5, 20, 0.66);
        cursor: pointer;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.is-visible {
        visibility: visible;
        opacity: 1;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 10001;
        width: min(84vw, 340px);
        height: 100vh;
        height: 100dvh;
        padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
        border-left: 1px solid rgba(255, 255, 255, 0.14);
        display: flex;
        flex-direction: column;
        visibility: hidden;
        transform: translateX(100%);
        background: linear-gradient(180deg, var(--color-bg-main), var(--color-bg-alt));
        box-shadow: -18px 0 45px rgba(0, 0, 0, 0.35);
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .mobile-sidebar.is-open {
        visibility: visible;
        transform: translateX(0);
    }

    .mobile-sidebar-header {
        min-height: 48px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--navbar-text-color);
        font-size: 24px;
        font-weight: 700;
    }

    .mobile-menu-close {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.07);
        color: var(--navbar-text-color);
        font-size: 34px;
        line-height: 1;
        cursor: pointer;
        transition: color 0.25s ease, background 0.25s ease;
    }

    .mobile-menu-close:hover,
    .mobile-menu-close:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        color: var(--navbar-hover-color);
        outline: none;
    }

    .mobile-nav-links {
        margin-top: 24px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-nav-links a {
        padding: 14px 16px;
        border: 1px solid transparent;
        border-radius: 12px;
        display: block;
        color: var(--navbar-text-color);
        font-size: 19px;
        font-weight: 600;
        transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a:focus-visible {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.07);
        color: var(--navbar-hover-color);
        outline: none;
    }
}

@media (max-width: 390px) {
    .navbar {
        padding-right: 14px;
        padding-left: 14px;
    }

    .navbar .logo {
        font-size: 19px;
    }

    .navbar .logo img {
        width: 44px;
        height: 44px;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        padding: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle span,
    .mobile-menu-overlay,
    .mobile-sidebar {
        transition: none;
    }
}



/* =========================
        FOOTER
========================= */

footer {
    border-top: 1px solid rgba(255,255,255,.15);
    width: 100%;
    padding: 20px 70px 12px;
    backdrop-filter: blur(12px);
    color: var(--footer-text-color);
    background: var(--footer-background);
    /* background:
        radial-gradient(circle at 20% 20%, rgba(86, 103, 180, 0.35), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(28, 85, 180, 0.25), transparent 35%),
        linear-gradient(135deg, #0d0b26, #171336, #1d1f26); */
}

.footer-hero {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    align-items: start;
}

.footer-socials-links,
.footer-contact,
.footer-location {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-socials-links h3,
.footer-contact h3,
.footer-location h3 {
    margin-bottom: 6px;
    font-size: 15px;
}

.footer-contact a{
    color: var(--footer-text-color);
    text-decoration: none;
}

.footer-location a,
.privacy a {
    color: var(--footer-text-color);
    text-decoration: none;
}

.footer-contact p:hover{
    color: var(--footer-hover-color);
    text-decoration: none;
}

.footer-socials-links a,
.footer-contact h3 a {
    color: var(--footer-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-socials-links a:hover,
.footer-contact a:hover, 
.footer-contact p:hover,
.footer-location a:hover,
.privacy a:hover{
    color: var(--footer-hover-color);
}

.footer-contact p,
.footer-location p,
.footer-socials-links a  {
    line-height: 1.4;
    font-size: 14px;
}

.privacy a{
    line-height: 1.4;
    font-size: 14px;
}

.icons {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.15);
    color: var(--footer-text-color);
    font-size: 14px;
}

.admin-part {
    position: fixed;
    right: 18px;
    bottom: 18px;
}

.admin-part a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
    font-size: 16px;
}

.admin-part a:hover {
    color: var(--footer-hover-color);
}


/* TABLET */
@media (max-width: 900px) {

    footer {
        padding: 20px 35px 12px;
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 45px;
    }

    /* Trzecia sekcja zajmuje cały kolejny wiersz */
    .footer-location {
        grid-column: 1 / -1;
    }

    .copyright {
        margin-top: 20px;
    }
}


/* TELEFON */
@media (max-width: 600px) {

    footer {
        padding: 20px 20px 12px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-location {
        grid-column: auto;
    }

    .footer-socials-links,
    .footer-contact,
    .footer-location {
        gap: 5px;
    }

    .footer-socials-links h3,
    .footer-contact h3,
    .footer-location h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .footer-contact p,
    .footer-location p,
    .footer-socials-links a,
    .privacy a {
        font-size: 13px;
    }

    /* Zapobiega wychodzeniu długiego maila / linku poza ekran */
    .footer-contact a,
    .footer-location a,
    .footer-socials-links a {
        overflow-wrap: anywhere;
    }

    .copyright {
        margin-top: 18px;
        padding-top: 12px;
        font-size: 12px;
    }

    .admin-part {
        right: 10px;
        bottom: 10px;
    }

    .admin-part a {
        font-size: 13px;
    }
}


/* BARDZO MAŁE TELEFONY */
@media (max-width: 400px) {

    footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-top {
        gap: 20px;
    }
}




/*====================================
    IKONY FA 
  ====================================*/

.fa,
.fas,
.far,
.fab {
    width: 18px;
    min-width: 18px;
    text-align: center;
}

.fa,
.fas,
.far,
.fab {
    width: 18px;
    min-width: 18px;
    text-align: center;
}


/* =========================
   POLITYKA PRYWATNOŚCI
========================= */

.PrivacyPolicy {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 50px auto;
    padding: 50px;

    background-color: #ffffff;
    color: #333333;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================
   GŁÓWNY NAGŁÓWEK
========================= */

.PrivacyPolicy > h1 {
    margin: 0 0 45px;
    padding-bottom: 20px;

    color: #20263a;

    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;

    border-bottom: 1px solid #e5e7eb;
}


/* =========================
   NAGŁÓWKI PARAGRAFÓW
========================= */

.PrivacyPolicy .paragraph-title {
    position: relative;

    margin: 50px 0 22px;
    padding: 14px 18px 14px 24px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #263156,
        #5942a8
    );

    border-radius: 10px;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.PrivacyPolicy .paragraph-title::before {
    content: "";

    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 10px;

    width: 5px;

    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}


/* =========================
   LISTY GŁÓWNE
========================= */

.PrivacyPolicy ol,
.PrivacyPolicy ul {
    margin-top: 0;
    margin-bottom: 25px;
    padding-left: 28px;
}

.PrivacyPolicy li {
    margin-bottom: 14px;
    padding-left: 8px;
}

.PrivacyPolicy li::marker {
    color: #5942a8;
    font-weight: 700;
}


/* =========================
   LISTY ZAGNIEŻDŻONE
========================= */

.PrivacyPolicy ol ol,
.PrivacyPolicy ol ul,
.PrivacyPolicy ul ol,
.PrivacyPolicy ul ul {
    margin-top: 15px;
    margin-bottom: 18px;
    padding: 20px 25px 8px 45px;

    background-color: #f7f7fb;

    border-left: 4px solid #5942a8;
    border-radius: 8px;
}


/* Litery a, b, c dla list z klasą list-type-latin */

.PrivacyPolicy .list-type-latin {
    list-style-type: lower-alpha;
}


/* =========================
   TEKST
========================= */

.PrivacyPolicy p {
    margin-bottom: 16px;
}

.PrivacyPolicy strong {
    color: #20263a;
    font-weight: 700;
}

.PrivacyPolicy .list-span-strong > li > span {
    display: block;

    margin-bottom: 5px;

    color: #20263a;
    font-weight: 700;
}


/* =========================
   WYRÓŻNIONE INFORMACJE
========================= */

.PrivacyPolicy .gpp-text-highlight {
    display: inline-block;

    padding: 1px 6px;

    color: #49348d;
    background-color: #eeeafd;

    border-radius: 4px;

    font-weight: 600;
}


/* =========================
   LINKI
========================= */

.PrivacyPolicy a {
    color: #5942a8;

    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;

    overflow-wrap: anywhere;
}

.PrivacyPolicy a:hover {
    color: #35236f;
    text-decoration: underline;
}

.PrivacyPolicy > a:last-of-type {
    font-weight: 700;
}

/* INFORMACJA O POLITYCE */

.privacy-info {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    pointer-events: none;
}

.privacy-info__content {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 24px;

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);

    background: rgba(18, 24, 38, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);

    pointer-events: auto;
}

.privacy-info p {
    margin: 0;
    color: #f1f5f9;
    font-size: 15px;
    line-height: 1.6;
}

.privacy-info a {
    color: #58b2ff;
    font-weight: 700;
    text-decoration: none;
}

.privacy-info a:hover {
    text-decoration: underline;
}

.privacy-info__button {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;
    min-width: 140px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(135deg, #4aa8ff, #2f80ed);
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 8px 22px rgba(47, 128, 237, 0.35);

    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.privacy-info__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(47, 128, 237, 0.42);
}

.privacy-info__button:active {
    transform: translateY(0);
}

/* usuwa wszystkie dziwne dodatki z globalnego stylowania */
.privacy-info__button::before,
.privacy-info__button::after {
    content: none !important;
    display: none !important;
}

/* jeśli globalnie button ma span/div/svg */
.privacy-info__button span,
.privacy-info__button svg,
.privacy-info__button i {
    display: none !important;
}

@media (max-width: 768px) {
    .privacy-info {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .privacy-info__content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 18px;
    }

    .privacy-info__button {
        width: 100%;
        min-width: 0;
    }
}



/* =========================
   RESPONSYWNOŚĆ
========================= */

@media (max-width: 992px) {
    .PrivacyPolicy {
        padding: 40px 35px;
    }

    .PrivacyPolicy > h1 {
        font-size: 34px;
    }

    .PrivacyPolicy .paragraph-title {
        font-size: 22px;
    }
}


@media (max-width: 768px) {
    .PrivacyPolicy {
        width: calc(100% - 24px);

        margin: 25px auto;
        padding: 28px 20px;

        font-size: 15px;
        line-height: 1.7;

        border-radius: 12px;
    }

    .PrivacyPolicy > h1 {
        margin-bottom: 20px;
    }
}
