:root {
    --primary-color: #ff6600;
    --header-grad: #ffffff;
    --nav-main-color: #333333;
    --social-main-color: #333333;
    --text-color: #333;
    --bg-color: #fff;
    --header-height: 80px;
    --top-bar-height: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Wiadomość na górze - Ticker */
.top-bar {
    height: var(--top-bar-height);
    background: linear-gradient(90deg, var(--primary-color) 0%, #000000 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    z-index: 1001;
}

.top-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66 3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-43c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm0-20c4.418 0 8 3.582 8 8s-3.582 8-8 8-8-3.582-8-8 3.582-8 8-8zm0 18c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm0-10c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zM78 7c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm0-4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm-56 2c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm0-2c.552 0 1 .448 1 1s-.448 1-1 1-1-.448-1-1 .448-1 1-1zm50 66c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm0-4c.552 0 1 .448 1 1s-.448 1-1 1-1-.448-1-1 .448-1 1-1zM25 29c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm58 33c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2zM9 44c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2zM78 70c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2zM42 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2zm-22-4c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm0-4c.552 0 1 .448 1 1s-.448 1-1 1-1-.448-1-1 .448-1 1-1zm54-46c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM6 2c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm12 40c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-3-11c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm20-7c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm58 45c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-2-39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-20-4c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM8 82c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm37 5c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm28-12c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-21-34c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-69 7c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm71 55c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-48-48c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm24-32c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM0 80c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm27-71c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM42 47c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm52 2c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM4 62c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm77 5c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-27 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-22-54c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-35 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm41 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM45 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-36 1c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-9 68c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm58 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-48-48c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm24-32c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM0 80c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm27-71c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM42 47c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm52 2c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM4 62c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm77 5c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-27 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-22-54c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-35 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm41 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM45 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-36 1c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-9 68c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm58 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-48-48c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm24-32c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM0 80c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm27-71c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM42 47c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm52 2c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM4 62c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm77 5c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-27 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-22-54c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-35 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm41 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM45 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-36 1c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-9 68c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm58 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-48-48c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm24-32c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM0 80c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm27-71c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM42 47c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm52 2c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM4 62c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm77 5c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-27 18c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-22-54c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-35 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm41 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zM45 3c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-36 1c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm-9 68c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1zm58 28c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1-1 .448-1 1-1z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.ticker-wrapper {
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    padding-left: 100%;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Header Base */
header {
    position: fixed;
    top: var(--top-bar-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, var(--header-grad) 0%, rgba(255,255,255,0) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

/* Scrolled Header - Half-Oval Style */
header.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    margin: 0 5%;
    width: 90%;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Layout Parts */
.header-left, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
    gap: 30px;
}

.secondary-menu {
    margin-left: 0 !important;
}

/* Logo Switching Logic */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.logo-wrapper {
    transition: 0.4s ease;
}

.scrolled-logo {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

header.scrolled .main-logo {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

header.scrolled .scrolled-logo {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.logo img {
    height: 45px;
    transition: all 0.4s ease;
}

header.scrolled .logo img {
    height: 35px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--nav-main-color);
    transition: 0.4s;
}

header.scrolled .logo-text {
    color: #000;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 20px;
    color: #333 !important;
    font-size: 0.9rem !important;
    text-decoration: none;
    transition: 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f8f8;
    color: var(--primary-color) !important;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 25px;
    margin-left: 20px;
}

.desktop-menu a {
    text-decoration: none;
    color: var(--nav-main-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

header.scrolled .desktop-menu a {
    color: var(--text-color);
}

.desktop-menu a:hover {
    color: var(--primary-color) !important;
}

/* Hamburger Icon */
.hamburger {
    cursor: pointer;
    display: none; /* Ukryty na desktop */
    flex-direction: column;
    gap: 6px;
    z-index: 1003;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: #fff; /* Domyślnie biały dla hero */
    transition: 0.3s ease;
    width: 100%;
}

header.scrolled .hamburger span {
    background-color: var(--text-color);
}

.hamburger .l1 { width: 100%; }
.hamburger .l2 { width: 100%; }
.hamburger .l3 { width: 100%; }

/* Socials in Header */
.header-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--social-main-color);
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: 0.3s;
}

header.scrolled .social-icon {
    background-color: #333; /* Ciemny kolor na białym, przewijanym headerze */
}

.social-icon:hover {
    background-color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 20px 40px;
    gap: 40px;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    left: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: absolute;
    transition: 0.3s;
}

.mobile-menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-menu-close:hover span {
    background-color: var(--primary-color);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.mobile-logo img {
    height: 50px;
    width: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-nav-links a {
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: bold;
}

.mobile-nav-dropdown {
    width: 100%;
    text-align: center;
}

.mobile-dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.mobile-dropdown-toggle .arrow-dropdown {
    font-size: 0.8rem;
    transition: 0.3s;
    display: inline-block;
}

.mobile-dropdown-toggle.active .arrow-dropdown {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 0;
    opacity: 0;
}

.mobile-dropdown-menu.active {
    max-height: 200px;
    padding-top: 20px;
    opacity: 1;
}

.mobile-dropdown-menu a {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    opacity: 0.8;
}

.mobile-socials {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-bottom: 20px;
}

.mobile-socials .social-icon {
    width: 35px;
    height: 35px;
    background-color: #333333 !important; /* Wymuszenie ciemnego koloru */
    display: block !important;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    overflow: visible;
    z-index: 10;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    z-index: 1;
    text-align: center;
    position: absolute;
    top: 85%;
    transform: translateY(-50%);
    width: 100%;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Slider Section */
.slider-section {
    position: relative;
    padding: 150px 0 100px;
    margin-top: -150px;
    background-image: var(--slider-bg-desktop);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.main-slider {
    width: 100%;
    max-width: calc(75vh * 16 / 9);
}

.swiper-slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.main-slider .swiper-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.swiper-slide img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    display: block;
}

.slide-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.main-slider {
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-radius: 30px;
    overflow: hidden;
}

.slide-info h2, .slide-info p {
    margin: 0 !important;
    padding: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.animate-on-scroll.appeared {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease, text-shadow 0.3s ease;
}

.animate-on-scroll.appeared:hover {
    transform: scale(1.05) translateY(-5px);
    text-shadow: 0 4px 10px color-mix(in srgb, var(--primary-color), black 10%);
}

/* Video Section */
.section-title-small {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.video-custom-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: var(--video-bg-desktop);
    background-size: cover;
    background-position: center center !important;
    background-repeat: no-repeat;
    background-attachment: fixed !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 1;
}

.video-container-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: center;
}

.video-player-box {
    position: relative;
    width: 100%;
    max-width: calc(75vh * 16 / 9);
    /*height: 75vh;*/
    aspect-ratio: 16 / 9;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin: 0 auto;
}

.video-player-box video {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    display: block;
    transform: scale(1.01); /* Lekkie powiększenie aby zakryć prześwity na krawędziach */
}

.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.video-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.video-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.video-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .video-custom-section {
        background-image: var(--video-bg-mobile) !important;
        height: 100vw;
        min-height: auto;
        padding: 0;
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-custom-section::before {
        display: none;
    }
    
    .section-title-small {
        font-size: 1.1rem;
        color: #333;
        margin-bottom: 20px;
    }

    .courses-home h2, .contact-section h2 {
        font-size: 1.1rem !important;
    }
    
    .video-container-wrapper {
        padding: 0;
        width: 85%;
        margin: 0 auto;
    }
    
    .video-player-box {
        aspect-ratio: 16 / 9;
        height: auto;
        max-width: 100%;
    }
    
    .video-controls {
        bottom: 15px;
        right: 15px;
    }
    
    .video-btn {
        width: 28px;
        height: 28px;
    }
    
    .video-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Courses Home Section */
.courses-home {
    padding: 80px 0 100px;
    background-color: #fff;
    text-align: center;
}

.other-courses-home-cta {
    margin-top: 60px;
    position: relative;
}

.cta-decorative-line {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 30px;
    border-radius: 3px;
    opacity: 0.6;
}

.other-courses-cta-text {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 25px;
}

.btn-more-dark {
    display: inline-block;
    padding: 12px 35px;
    background-color: #1e293b;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-more-dark:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.courses-home h2 {
    margin-bottom: 50px;
    font-size: 1.5rem;
}

.courses-selector-wrapper {
    margin-bottom: 40px;
}

.courses-desktop-grid {
    display: none;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.courses-mobile-slider {
    display: none;
    padding: 20px 40px;
}

.course-item {
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.course-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.course-icon-box {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: 0.3s;
    border: 2px solid transparent;
}

.course-item.active .course-icon-box {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.course-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-symbol {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-color);
}

.course-description-area {
    max-width: 800px;
    margin: 0 auto;
    min-height: 150px;
}

.course-details {
    display: none;
    animation: fadeIn 0.5s ease;
}

.course-details.active {
    display: block;
}

.course-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-more:hover {
    background-color: #333;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
    .courses-desktop-grid {
        display: flex !important;
    }
    .courses-mobile-slider {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .courses-mobile-slider {
        display: block !important;
    }
    .courses-desktop-grid {
        display: none !important;
    }
    .course-description-area {
        padding: 0 20px;
    }
    .course-details p {
        font-size: 0.8rem;
        text-align: justify;
    }
    .other-courses-cta-text {
        font-size: 0.8rem;
    }
}

.courses-mobile-slider .swiper-slide {
    width: auto !important;
    display: flex;
    justify-content: center;
}

.courses-mobile-slider .swiper-button-next,
.courses-mobile-slider .swiper-button-prev {
    color: var(--primary-color);
    transform: scale(0.6);
}

/* Contact Section */
.contact-section {
    padding: 120px 5% 100px;
    background-color: #f8fafc;
    text-align: center;
    position: relative;
}

.shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.shape-divider-top .shape-fill {
    fill: #FFFFFF;
}

.container {
    max-width: 80%;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.5rem;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

#contact-form > .form-row, 
#contact-form > .form-group,
#contact-form > .g-recaptcha {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    font-family: inherit;
    color: inherit;
}

.form-group textarea {
    height: 150px;
    resize: none;
    display: block;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    font-family: 'Inter', sans-serif;
    color: #999;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--footer-bg-color);
    background-image: var(--footer-bg-image);
    background-size: cover;
    background-position: center;
    color: var(--footer-text-color);
    padding: 80px 5% 40px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.home-page footer, .about-page footer {
    margin-top: -60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-buttons {
    display: flex;
    gap: 15px;
}

.btn-footer {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    color: var(--footer-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-footer:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-desc p {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-contact-details {
    margin-top: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-contact-details h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-contact-details p {
    margin-bottom: 5px;
}

.bank-account {
    margin-top: 10px;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    max-height: 120px;
    width: auto;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    text-align: right;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--footer-social-color);
    border-radius: 50%;
    transition: 0.3s;
}

.footer-icon-inner {
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--footer-social-color);
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: 0.3s;
}

.footer-social-icon:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-social-icon:hover .footer-icon-inner {
    background-color: #fff;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.payment-icons img {
    max-height: 30px;
}

.copyright-info {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
    text-align: center;
}

.realization a {
    color: inherit;
    text-decoration: none !important;
}

.realization a:visited {
    color: inherit;
}

.realization a:hover {
    color: var(--primary-color);
}

.realization strong {
    font-weight: bold;
}

/* Responsive Utilities */
.desktop-only { display: block !important; }
.mobile-only { display: none !important; }

/* Responsive Footer */
@media (max-width: 1250px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right {
        align-items: center;
        text-align: center;
    }

    .footer-left {
        display: none !important; /* Hide buttons on mobile as requested */
    }
    
    /* Zapewnienie widoczności ikon social w menu mobilnym mimo powyższego display:none dla footer-left */
    .mobile-menu .social-icon {
        display: block !important;
    }
    
    footer {
        padding: 50px 5% 30px;
    }

    .footer-logo img {
        width: auto;
        max-width: 200px;
        max-height: 80px;
    }

    .footer-center {
        order: -1;
        flex-direction: column;
        align-items: center;
    }

    .footer-buttons.mobile-only {
        display: flex !important;
        gap: 15px;
        justify-content: center;
        margin-top: 20px;
    }

    .footer-contact-details.mobile-only {
        margin-top: 30px;
        font-size: 1rem;
        display: block !important;
    }

    .copyright-info {
        text-align: center;
        align-items: center;
    }
}

@media (min-width: 1251px) {
    .hamburger { display: none; }
}

@media (max-width: 1250px) {
    .desktop-menu { display: none; }
    .hamburger { display: flex !important; }
    header.scrolled {
        width: 96%;
        margin: 0 2%;
    }
}

@media (max-width: 768px) {
    .container { max-width: 95%; }
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .form-row { flex-direction: column; gap: 20px; }
    
    .btn-cta {
        padding: 11px 30px;
        font-size: 0.9rem;
    }

    .contact-section h2, .courses-home h2 {
        font-size: 1.8rem;
    }

    .slider-section {
        background-image: var(--slider-bg-mobile);
        padding: 100px 0 0;
        margin-top: -100px;
        height: 120vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-slider {
        width: 85% !important;
        margin: 0 auto;
    }

    .swiper-slide img { height: auto; width: 100%; aspect-ratio: 16 / 9; }
    
    .slide-info {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .slide-info h2 {
        font-size: 0.8rem;
        margin: 0 0 3px 0;
        padding: 0;
        line-height: 1.2;
    }

    .slide-info p {
        font-size: 0.5rem;
        margin: 0;
        padding: 0;
        line-height: 1.3;
    }

    .main-slider .swiper-button-next,
    .main-slider .swiper-button-prev {
        transform: scale(0.6);
    }
    header { padding: 0 20px; }
    .logo img { height: 35px; }
    .cta-content p, .other-courses-cta-text { font-size: 0.8rem; }
}

/* Kursy - Podstrona Kategorii */
.courses-top-selector {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    z-index: 1010;
    transition: 0.4s;
}

header.scrolled + main .courses-top-selector {
    top: 50%;
}

@media (min-width: 1251px) {
    .courses-top-slider {
        overflow: visible !important;
        height: auto !important;
        max-height: 85vh;
    }
    .courses-top-slider .swiper-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2vh !important;
        height: auto !important;
        transform: none !important;
        justify-content: center;
        overflow: visible !important;
    }
    .top-course-item-wrapper {
        margin-bottom: 0 !important;
        flex: 0 0 auto !important; /* Zapobiega rozciąganiu odstępów */
        width: 100% !important;
        display: flex;
        justify-content: flex-end;
        min-height: 0;
        overflow: visible !important;
    }
    .top-course-item {
        display: flex !important;
        flex-direction: row-reverse !important; 
        align-items: center !important;
        gap: 15px !important;
        width: auto !important;
        text-decoration: none;
        background: none !important;
        border: none !important;
        padding: 5px 0 !important; /* Padding zapobiegający ścinaniu krawędzi przy transformacji */
    }
    .top-course-icon {
        width: clamp(35px, 5vh, 52px) !important; /* Zwiększone kółeczka */
        height: clamp(35px, 5vh, 52px) !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.85) !important; /* Zwiększone krycie do 85% */
        backdrop-filter: blur(10px);
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: 0.3s;
    }
    .top-course-icon img {
        width: 65% !important; /* Ikona wypełnia 65% kółeczka zamiast domyślnych 50% */
        height: 65% !important;
        object-fit: contain;
    }
    .top-course-item.active .top-course-icon {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        transform: scale(1.15);
    }
    .top-course-symbol {
        display: block !important;
        color: #fff !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        text-align: right;
        opacity: 1 !important; /* Pełna biel dla wszystkich */
        white-space: nowrap;
        text-shadow: 0 2px 8px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,1); /* Mocniejszy cień */
    }
    .top-course-item.active .top-course-symbol {
        opacity: 1;
    }
}

.top-course-item-wrapper {
    width: auto !important;
}

.top-course-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
    opacity: 0.7; /* Zwiększone z 0.5 dla lepszej widoczności */
}

.top-course-item.active, .top-course-item:hover {
    opacity: 1;
}

.top-course-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9) !important; /* Białe tło jak na desktop */
    backdrop-filter: blur(10px);
    border-radius: 50%; /* Okrągłe jak na głównej */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.top-course-item.active .top-course-icon {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.1);
}

.top-course-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(0%); /* Czarna ikona na białym tle */
}

.top-course-item.active .top-course-icon img {
    filter: brightness(0) saturate(100%) invert(100%); /* Biała ikona na pomarańczowym tle */
}

.top-course-symbol {
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.course-hero-wrapper {
    position: relative;
    width: 100%;
}

.course-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: #000;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%; /* Mniejsze tło zgodnie z projektem */
    height: 80%;
    z-index: 0;
    overflow: hidden;
}

.course-hero-bg img, .course-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top; /* Przesunięcie do prawego górnego rogu */
}

.course-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 15%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 80%),
                linear-gradient(0deg, #000 5%, rgba(0,0,0,0) 40%); /* Dolny gradient */
}

.course-hero-container {
    position: relative;
    z-index: 60; /* Wyżej niż galeria (50), aby selektor był zawsze na wierzchu */
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 0;
    max-width: 100%;
    width: 100%;
    pointer-events: none; /* Przelot kliknięć do galerii */
}

.course-hero-content {
    display: grid;
    grid-template-columns: 25% 40% 35%;
    gap: 0;
    width: 100%;
    align-items: center; /* Wyrównanie w pionie */
}

/* Przywrócenie interakcji dla dzieci */
.course-info, .course-selector-col, .course-large-symbol {
    pointer-events: all;
}

.course-selector-col {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    padding-right: 8%;
    height: 100%;
    align-items: center;
}

.courses-top-slider {
    height: 80vh;
    width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-large-symbol {
    grid-column: 1;
    font-size: 15vw; /* Domyślnie dla 2 i więcej znaków */
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    transform: rotate(-8deg);
    position: relative;
    user-select: none;
    width: 100%;
    text-align: center; /* Zmienione na center */
    padding-left: 0; /* Usunięty padding dla lepszego centrowania */
    /* Naprawa ucinania i tonalne wygaszanie */
    overflow: visible;
    background: linear-gradient(135deg, var(--primary-color) 75%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    
    /* Tekstura Grunge/Noise */
    position: relative;
}

.course-large-symbol.single-char {
    font-size: 30vw; /* Powiększony dla pojedynczego znaku */
}

.course-large-symbol::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.6) 1.5px, transparent 1.5px);
    background-size: 15px 15px; /* Rozmiar oczka siatki */
    opacity: 0.3;
    mix-blend-mode: overlay;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(135deg, black 75%, transparent 100%);
    mask-image: linear-gradient(135deg, black 75%, transparent 100%);
}

.grunge-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-image: url('../img/grunge.png'); /* Przyjmując że mamy taką teksturę lub symulując ją */
    background-size: cover;
    opacity: 0.4;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Symulacja grunge przez maskę jeśli brak pliku */
.grunge-effect {
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 100%), 
                        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="f"><feTurbulence type="fractalNoise" baseFrequency=".5" numOctaves="4"/></filter><rect width="100" height="100" filter="url(%23f)"/></svg>');
    mask-image: radial-gradient(circle, black 50%, transparent 100%);
}

.course-info {
    grid-column: 2;
    max-width: 100%;
    padding-bottom: 50px;
    position: relative;
    z-index: 20;
    text-shadow: 0 4px 15px rgba(0,0,0,1);
}

.course-label {
    color: var(--primary-color);
    letter-spacing: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
}

.course-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 15px;
}

.course-description {
    font-size: 0.75vw;
    line-height: 1.0;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}

.no-gallery .course-description {
    font-size: 0.90vw;
}

.no-gallery .course-hero-container {
    padding-bottom: 30px; /* Reset paddingu dolnego gdy brak galerii */
    min-height: calc(100vh - 120px); /* Wyśrodkowanie względem wysokości ekranu */
}

.other-courses-cta-text {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 20px;
}

.other-courses-cta {
    padding: 100px 0;
    background: #fff;
    color: #333;
    text-align: center;
    border-top: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.other-courses-cta::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -5%;
    width: 40%;
    height: 140%;
    background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.cta-content p {
    font-size: 1.2rem;
    font-weight: 500;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Galeria wewnątrz Hero */
.course-hero-gallery {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 50; /* Zwiększone, aby galeria była klikalna nad innymi elementami hero */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-slider-hero {
    width: 100%;
    max-width: 80vw;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-item-hero {
    width: 100%;
    max-width: 320px; /* Ograniczenie wielkości na desktop */
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s;
    opacity: 0.8;
}

.swiper-slide-active .gallery-item-hero {
    opacity: 1;
}

.gallery-item-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nagłówek GALERIA w Hero */
.gallery-hero-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-hero-label span {
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 5px;
    font-size: 0.9rem;
}

.gallery-hero-label .line {
    height: 1px;
    background: var(--primary-color);
    width: 60px;
}

@media (max-width: 992px) {
    .course-hero {
        height: auto;
        /*min-height: 100vh;*/
    }

    .course-hero-bg {
        width: 100%;
        height: 60%;
        position: absolute;
    }
    
    .course-hero-overlay {
        background: linear-gradient(0deg, #000 40%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%);
    }

    .course-hero-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0;
        height: auto;
        min-height: calc(100vh - 100px);
        justify-content: center;
        position: relative;
        padding-bottom: 40px;
    }

    .course-large-symbol, .course-large-symbol.single-char {
        grid-column: auto;
        font-size: clamp(8rem, 50vw, 15rem) !important;
        transform: rotate(-8deg) translateX(0);
        margin-right: 0;
        margin-bottom: -60px;
        opacity: 0.4;
        z-index: 5;
    }

    .course-info {
        grid-column: auto;
        max-width: 95%;
        padding-bottom: 0;
        margin: 0 auto;
        z-index: 10;
    }

    .course-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .course-description, .no-gallery .course-description {
        font-size: 3vw !important;
        line-height: 1 !important;
        margin-bottom: 25px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .course-actions {
        margin-bottom: 40px; /* Minimalny margines nad selektorem */
    }

    .course-selector-col {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0 40px;
        justify-content: center;
        height: auto;
        margin-top: auto; /* Pcha selektor na dół jeśli jest miejsce */
    }

    .courses-top-selector {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .selector-nav {
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
        padding: 0 5px;
        user-select: none;
        z-index: 10;
    }

    .selector-nav.swiper-button-disabled {
        opacity: 0.3;
        cursor: default;
    }

    .course-hero-container {
        padding-top: 100px;
        padding-bottom: 0;
        height: auto;
    }

    .courses-top-slider {
        display: flex;
        justify-content: center;
        height: auto;
        width: calc(100% - 60px);
    }

    .top-course-item-wrapper {
        padding: 5px;
    }

    /* Galeria poza 100vh na mobile */
    .course-hero-gallery {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 60px 0;
        background: #000; /* Tło pod galerią na mobile */
    }

    .gallery-slider-hero {
        width: 80vw !important;
        max-width: none;
        padding: 0;
    }

    .gallery-slider-hero .swiper-wrapper {
        /* Swiper handles centering */
    }
    
    .gallery-item-hero {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Animacja przełączania kategorii */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    z-index: 900;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    pointer-events: none;
}

body.page-transitioning .page-transition-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Zapewnienie widoczności selektorów i headera ponad zaciemnieniem */
.courses-top-selector,
.other-courses-nav-wrapper {
    position: relative !important;
    z-index: 1010 !important;
    pointer-events: all !important;
}

header {
    z-index: 1020 !important;
}

/* Ukrywanie pozostałych elementów podczas przejścia */
.course-info,
.course-hero-gallery,
.course-large-symbol,
.other-courses-cta,
footer,
section:not(.course-hero) {
    transition: opacity 0.5s ease-in-out;
}

body.page-transitioning .course-info,
body.page-transitioning .course-hero-gallery,
body.page-transitioning .course-large-symbol,
body.page-transitioning .other-courses-cta,
body.page-transitioning footer,
body.page-transitioning section:not(.course-hero) {
    opacity: 0;
    pointer-events: none;
}

/* Selektor musi pozostać widoczny */
body.page-transitioning .course-selector-col,
body.page-transitioning .other-courses-nav-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
}
