:root {
    --primary: #d64555;
    --primary-dark: #b83746;
    --bg: #0b0718;
    --light: #F9FAFB;
    --gray: #9CA3AF;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --premium-gradient: linear-gradient(135deg, #d64555, #b83746);
    --verified-color: #10B981; /* Zielony kolor dla zweryfikowanych firm */
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(11, 7, 24, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(214, 69, 85, 0.3);
}

/* Menu mobilne */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light);
    z-index: 200;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: rgba(11, 7, 24, 0.98);
    backdrop-filter: blur(10px);
    z-index: 150;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-nav-links a i {
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--light);
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 149;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    height: 50vh; /* Zmniejszona wysokość */
    min-height: 400px; /* Minimalna wysokość, aby zawartość się nie ściskała */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 80px; /* Zmniejszony padding z góry */
    padding-bottom: 30px; /* Dodany padding z dołu */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(214, 69, 85, 0.1), transparent 70%);
    z-index: 1;
}

/* Premium Cards - ZAKTUALIZOWANE */
.premium-section {
    margin: 3rem 0 4rem; /* Zmniejszony górny margin */
    background: transparent; /* Usunięte tło, bo sekcja jest teraz w kontenerze */
}

.premium-section h2 {
    text-align: left; /* Zmienione z wyśrodkowania na wyrównanie do lewej */
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--light);
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.premium-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    color: var(--light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(214, 69, 85, 0.3);
}

.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.premium-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    padding-right: 70px; /* Miejsce dla oznaczenia TOP */
}

/* Styl dla oznaczenia "Zweryfikowany" */
.verified-company {
    color: var(--verified-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.verified-company i {
    font-size: 1rem;
}

.premium-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.premium-card .tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.premium-card .tech-badge {
    background: rgba(214, 69, 85, 0.2);
    color: var(--light);
    border: 1px solid rgba(214, 69, 85, 0.5);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Style dla danych kontaktowych w kartach premium */
.premium-card .company-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.premium-card .company-contact div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-card .company-contact a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.premium-card .company-contact a:hover {
    color: var(--light);
    text-decoration: underline;
}

.premium-card .card-footer {
    margin-top: auto;
}

.premium-card .cta-button {
    width: 100%;
    text-align: center;
}

/* Search & Filters */
.search-filters {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 4rem 0 2rem; /* Zmniejszony dolny margin */
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 69, 85, 0.2);
}

.filter-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--light);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

/* Separator między sekcjami filtrów */
.filter-options:not(:last-of-type) {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* Style dla filtrów - wspólne dla checkboxów i radio buttons */
.filter-checkbox {
    display: none;
}

.filter-label {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--gray);
}

.filter-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-checkbox:checked + .filter-label {
    background: var(--primary);
    color: var(--light);
    border-color: transparent;
}

/* Style dla filtra lokalizacji */
.location-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Specjalny styl dla przycisku "Wszystkie" */
#filter-loc-all:checked + .filter-label {
    background: var(--primary-dark);
}

/* Specjalny styl dla przycisku "Online" - lekkie wyróżnienie */
.filter-label[for="filter-loc-online"] {
    border-color: rgba(214, 69, 85, 0.3);
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.company-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(214, 69, 85, 0.3);
}

.company-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.company-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.company-location {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    background: rgba(214, 69, 85, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.company-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.company-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
}

.company-contact div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.company-contact a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-contact a:hover {
    color: var(--light);
    text-decoration: underline;
}

.company-website {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.company-website:hover {
    color: var(--light);
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-size: 1.2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Add Your Company Section */
.add-company-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(11, 7, 24, 0.9), rgba(11, 7, 24, 0.9)), url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    position: relative;
}

.add-company-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(214, 69, 85, 0.2), transparent 70%);
    z-index: 1;
}

.add-company-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.add-company-text {
    flex: 1;
}

.add-company-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.add-company-text p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.add-company-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.add-company-benefits li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--light);
    font-size: 1.05rem;
}

.add-company-benefits li i {
    color: var(--verified-color);
    font-size: 1.1rem;
}

.add-company-cta {
    flex: 0 0 auto;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    background: rgba(11, 7, 24, 0.8);
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary);
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .add-company-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .add-company-benefits li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 350px;
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .premium-grid {
        grid-template-columns: 1fr;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .add-company-text h2 {
        font-size: 2rem;
    }
    
    .add-company-text p {
        font-size: 1rem;
    }
    
    .add-company-content {
        padding: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
}