/* ======== OGÓLNE RESETY ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #1b1b1b;
    font-weight: 400;
    line-height: 1.6;
}

body {
    margin-top: 0 !important;
}

.ubesoo-header {
    top: 0;
    margin-top: 0;
    padding-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ======== HEADER ======== */
.ubesoo-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.ubesoo-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ======== LOGO ======== */
.ubesoo-logo img {
    height: 48px;
}

/* ======== MENU GŁÓWNE ======== */
.ubesoo-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.ubesoo-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.ubesoo-menu>li {
    position: relative;
}

.ubesoo-menu>li>a {
    font-size: 15px;
    font-weight: 500;
    color: #1b1b1b;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.ubesoo-menu>li>a:hover {
    color: #732fff;
}

/* ======== DROPDOWN ======== */
.ubesoo-menu li ul {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: all 0.25s ease;
    position: absolute;
    top: 100%;
    left: 50%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 220px;
    padding: 12px 0;
    z-index: 999;
    list-style: none;
    text-align: left;
}
.has-dropdown .dropdown-toggle i {
  transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.has-dropdown .fa-chevron-down {
  font-size: 12px; /* np. z 12px na 10px */
  margin-left: 4px; /* odstęp od tekstu */
  vertical-align: middle; /* lepsze wyrównanie */
}



.ubesoo-menu li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.ubesoo-menu li ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    transition: background 0.2s ease;
    white-space: nowrap;
    color: #1b1b1b;
    position: relative;
}

.ubesoo-menu li ul li a:hover {
    background: #f8f8f8;
    color: #732fff;
}

/* ======== KOLOROWE KROPKI wg nazwy ======== */
.ubesoo-menu li ul li {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 6px;
}

.ubesoo-menu li ul li:hover {
    background: #f8f8f8;
}

.ubesoo-menu li ul li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Tekst */
.ubesoo-menu li ul li a {
    font-size: 14px;
    color: #1b1b1b;
    transition: color 0.2s ease;
    display: inline-block;
}

.ubesoo-menu li ul li:hover a {
    color: #732fff;
}
/* Kolory wg klas */
.komunikacyjne::before {
    background-color: #732fff;
}

.nieruchomosci::before {
    background-color: #00c19c;
}

.na-zycie::before {
    background-color: #f67ab1;
}

.firmowe::before {
    background-color: #5eddfd;
}
/* ======== CTA BUTTON ======== */
.ubesoo-cta {
    margin-left: auto;
}

.ubesoo-btn {
    position: relative;
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    border: none;
    border-radius: 32px;
    background: linear-gradient(135deg, #6a11cb, #ff4dc0);
    background-size: 200% 200%;
    box-shadow: 0 4px 14px rgba(115, 47, 255, 0.25);
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ubesoo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    z-index: 1;
    animation: none;
}

.ubesoo-btn:hover::before {
    animation: shineMove 1.2s ease-in-out forwards;
}

.ubesoo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(115, 47, 255, 0.4);
    animation: gradientShift 3s ease-in-out forwards;
}

@keyframes shineMove {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ======== RESPONSYWNOŚĆ (mobilna podstawa) ======== */
@media (max-width: 991px) {
    .ubesoo-nav {
        display: none;
    }

    .ubesoo-cta {
        margin-left: auto;
    }
}

/* ======== KROPKA NAD LINKIEM MENU ======== */
.ubesoo-menu>li>a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: #1b1b1b;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    z-index: 1;
}



.ubesoo-menu>li>a:hover::before,
.ubesoo-menu>li>a.active::before {
    transform: translateX(-50%) scale(1);
}

.ubesoo-menu {
    position: relative;
}

.indicator {
    position: absolute;
    top: -16px;
    width: 12px;
    height: 12px;
    background: #732fff;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    left: 0;
    opacity: 0;
    pointer-events: none;
    animation: none;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

@keyframes bounce {
    0% {
        top: -16px;
    }

    30% {
        top: -28px;
    }

    60% {
        top: -12px;
    }

    100% {
        top: -16px;
    }
}

/* === HAMBURGER BUTTON === */
.hamburger-toggle {
  display: none;
  font-size: 20px;
  cursor: pointer;
  padding: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.hamburger-toggle:hover {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .hamburger-toggle {
    display: block;
  }

  .ubesoo-nav,
  .ubesoo-cta {
    display: none;
  }
}

/* === SIDEBAR === */
.ubesoo-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 40%, #f4f0ff 100%);
  z-index: 1000;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.ubesoo-sidebar.open {
  right: 0;
}

/* === GÓRA: logo + zamknięcie === */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header img {
  height: 40px;
  max-width: 140px;
  object-fit: contain;
}

.sidebar-header button {
  background: #f3f3f7;
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  color: #1b1b1b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar-header button:hover {
  background: #eae7f8;
}

/* === MENU === */
.sidebar-nav {
  margin-top: 40px;
}

.sidebar-nav h3 {
  font-size: 17px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1b1b1b;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid #e1e1e1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  padding: 14px 0;
  color: #1b1b1b;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-nav a i {
  width: 22px;
  text-align: center;
  color: #732fff;
  font-size: 17px;
}

.sidebar-nav a:hover {
  color: #732fff;
}

/* === HAMBURGER BUTTON === */
.hamburger-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.hamburger-toggle:hover {
    background: #f4f0ff;
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .hamburger-toggle {
        display: block;
    }

    .ubesoo-nav,
    .ubesoo-cta {
        display: none;
    }
}

/* === SIDEBAR === */
.ubesoo-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 30%, #f9f6ff 100%);
    z-index: 1000;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.ubesoo-sidebar.open {
    right: 0;
}

/* === GÓRA === */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header img {
    height: 42px;
    max-width: 140px;
    object-fit: contain;
}

.sidebar-header button {
    background: #f3f3f7;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    color: #1b1b1b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.sidebar-header button:hover {
    background: #ede7fb;
    color: #732fff;
}

/* === MENU === */
.sidebar-nav {
    margin-top: 40px;
}

.sidebar-nav h3 {
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1b1b1b;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #eee;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15.5px;
    padding: 14px 0;
    color: #1b1b1b;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav a i {
    width: 22px;
    text-align: center;
    font-size: 16px;
    color: #777;
    transition: color 0.2s ease;
}

.sidebar-nav a:hover {
    color: #732fff;
}

.sidebar-nav a:hover i {
    color: #732fff;
}

/* === AKTYWNA OPCJA (opcjonalnie dodaj klasę .active ręcznie) === */
.sidebar-nav a.active {
    color: #732fff;
    font-weight: 600;
}

.sidebar-nav a.active i {
    color: #732fff;
}

/* ======== FOOTER ======== */
.ubesoo-footer {
    background: #f5f6fa;
    padding: 60px 40px 30px;
    font-size: 14px;
    color: #555;
}

.ubesoo-footer .footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
}

.ubesoo-footer .footer-column {
    flex: 1 1 220px;
    min-width: 200px;
}

.ubesoo-footer .footer-brand {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.ubesoo-footer .footer-brand img {
    height: 48px;
}

.ubesoo-footer h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1b1b1b;
    position: relative;
    padding-left: 14px;
}

.ubesoo-footer h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background: #732fff;
    border-radius: 50%;
}

.ubesoo-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ubesoo-footer ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 16px;
}

.ubesoo-footer ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #732fff;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 7px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ubesoo-footer ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ubesoo-footer ul li:hover::before {
    opacity: 1;
}

.ubesoo-footer ul li:hover a {
    color: #732fff;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 50%;
    color: #732fff;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(115, 47, 255, 0.1);
    position: relative;
}

.footer-socials a::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #732fff;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
    opacity: 0;
}

.footer-socials a:hover {
    background: #732fff;
    color: #fff;
    transform: scale(1.15);
}

.footer-socials a:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 50%;
    color: #732fff;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(115, 47, 255, 0.1);
    position: relative;
}

.footer-socials a::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #732fff;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
    opacity: 0;
}

.footer-socials a:hover {
    background: #732fff;
    color: #fff;
    transform: scale(1.15);
}

.footer-socials a:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.ubesoo-footer .footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #e2e2e2;
}

@media (max-width: 1024px) {
    .ubesoo-footer {
        padding: 50px 24px 24px;
    }

    .ubesoo-footer .footer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .ubesoo-footer .footer-brand {
        align-items: center;
        text-align: center;
        margin-bottom: 12px;
    }

    .footer-socials {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
        margin-bottom: 20px;
    }

    .ubesoo-footer .footer-column {
        width: 100%;
        padding: 0;
    }

    .ubesoo-footer h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .ubesoo-footer ul li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .ubesoo-footer .footer-bottom {
        margin-top: 30px;
        padding-top: 18px;
        font-size: 13px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ubesoo-footer {
        padding: 40px 16px 20px;
    }

    .footer-socials a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .ubesoo-footer h4 {
        font-size: 14px;
    }

    .ubesoo-footer ul li {
        font-size: 13.5px;
    }

    .ubesoo-footer .footer-bottom {
        font-size: 12.5px;
        margin-top: 24px;
    }
}

@media (max-width: 1024px) {
    .ubesoo-footer .footer-container {
        flex-direction: column;
        align-items: stretch;
    }

    .ubesoo-footer .footer-brand,
    .ubesoo-footer .footer-column {
        flex: 0 0 auto;
        /* NIE rozpychają się w pionie */
        width: 100%;
        max-width: 100%;
    }

    .ubesoo-footer .footer-brand {
        align-items: center;
        text-align: center;
        margin-bottom: 0;
        /* zmniejszone odstępy */
        padding-bottom: 0;
    }
}