:root {
    --accent-100: #efffc3;
    --accent-500: #c8ff00;
    --accent-600: #9fc300;
    --accent-700: #829801;
    --shark-50: #f6f7f9;
    --shark-100: #ebeef3;
    --shark-200: #d3dbe4;
    --shark-500: #607a97;
    --shark-800: #364456;
    --shark-950: #232a35;
    --alto-50: #fafafa;
    --alto-100: #f5f5f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--shark-950);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Nawigacja */
header {
    background-color: rgba(35, 42, 53, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.85rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(200, 255, 0, 0.15);
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.45rem;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon-svg {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(200, 255, 0, 0.4));
}

nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

nav a {
    color: var(--shark-100);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition:
        color 0.2s,
        text-shadow 0.2s;
}

nav a:hover {
    color: var(--accent-500);
    text-shadow: 0 0 8px rgba(200, 255, 0, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--shark-800);
    color: var(--accent-500);
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
}

/* Sekcja Hero */
.hero {
    position: relative;
    background-color: var(--shark-950);
    background-image: radial-gradient(circle at 80% 20%, rgba(200, 255, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(130, 152, 1, 0.2) 0%, transparent 50%),
        linear-gradient(rgba(35, 42, 53, 0.94), rgba(35, 42, 53, 0.94)), url("assets/bitovoPattern1.svg");
    background-size: auto, auto, cover, cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 5% 7rem;
    text-align: center;
    border-bottom: 1px solid var(--shark-800);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(200, 255, 0, 0.12);
    color: var(--accent-500);
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-500);
    box-shadow: 0 0 20px rgba(200, 255, 0, 0.2);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--accent-500);
    text-shadow: 0 0 25px rgba(200, 255, 0, 0.35);
}

.hero p {
    font-size: 1.15rem;
    color: var(--shark-200);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-500);
    color: var(--shark-950);
    padding: 0.9rem 2rem;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(200, 255, 0, 0.3);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--accent-600);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(200, 255, 0, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-500);
    border: 2px solid var(--accent-500);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: rgba(200, 255, 0, 0.1);
    color: var(--accent-500);
    box-shadow: 0 0 15px rgba(200, 255, 0, 0.3);
}

.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--shark-200);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.target-card {
    background: rgba(54, 68, 86, 0.35);
    padding: 2.25rem 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--shark-800);
    border-top: 4px solid var(--accent-500);
    transition:
        border-color 0.3s,
        transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.target-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-500);
}

.target-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-500);
}

.target-card p {
    color: var(--shark-100);
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
}

.target-card ul {
    list-style: none;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.target-card ul li {
    padding: 0.4rem 0;
    color: var(--shark-200);
    font-size: 0.95rem;
}

.target-card ul li::before {
    content: "✓ ";
    color: var(--accent-500);
    font-weight: bold;
}

.courses-section {
    background-color: rgba(35, 42, 53, 0.4);
    padding: 5rem 5%;
    border-top: 1px solid var(--shark-800);
    border-bottom: 1px solid var(--shark-800);
}

.courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--shark-800);
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-500);
}

.course-card .tag {
    background-color: rgba(200, 255, 0, 0.15);
    color: var(--accent-500);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.25rem;
    border: 1px solid var(--accent-500);
}

.course-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.course-card p {
    color: var(--shark-200);
    margin-bottom: 1.5rem;
    font-size: 0.96rem;
}

.course-card ul {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

.course-card ul li {
    padding: 0.5rem 0;
    color: var(--shark-100);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-card ul li::before {
    content: "/>";
    color: var(--accent-500);
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(54, 68, 86, 0.3);
    border: 1px solid var(--shark-800);
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(54, 68, 86, 0.65) 0%, rgba(35, 42, 53, 0.95) 100%);
    border-color: var(--accent-500);
    box-shadow: 0 0 30px rgba(200, 255, 0, 0.15);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-500);
    color: var(--shark-950);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--accent-500);
    margin: 1.25rem 0 0.5rem;
}

.pricing-card .price span {
    font-size: 0.9rem;
    color: var(--shark-200);
    font-weight: 400;
    display: block;
}

.pricing-card .old-price {
    text-decoration: line-through;
    color: var(--shark-500);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: -0.75rem;
}

.pricing-card p.subtitle {
    color: var(--shark-200);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 45px;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    color: var(--shark-100);
    font-size: 0.95rem;
}

.pricing-card ul li::before {
    content: "✓ ";
    color: var(--accent-500);
    font-weight: bold;
    margin-right: 0.5rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    max-width: 950px;
    margin: 2rem auto 0;
}

.tech-badge {
    background-color: var(--shark-800);
    color: #ffffff;
    padding: 0.65rem 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid rgba(200, 255, 0, 0.3);
    transition:
        border-color 0.2s,
        transform 0.2s;
}

.tech-badge:hover {
    border-color: var(--accent-500);
    transform: scale(1.05);
    color: var(--accent-500);
}

.contact-section,
.career-section {
    background-color: var(--shark-950);
    padding: 5rem 5%;
    border-top: 1px solid var(--shark-800);
}

.contact-container,
.career-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: rgba(54, 68, 86, 0.35);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--shark-800);
}

.contact-info h3,
.career-info h3 {
    font-size: 1.9rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.contact-info p,
.career-info p {
    color: var(--shark-200);
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
}

.career-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.career-benefits li {
    color: var(--shark-100);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.career-benefits li::before {
    content: "/>";
    color: var(--accent-500);
    font-weight: 700;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-500);
    margin-top: 0.2rem;
}

.contact-text-box {
    display: flex;
    flex-direction: column;
}

.contact-detail strong {
    display: block;
    color: var(--accent-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-detail p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shark-100);
}

.form-group textarea {
    resize: none;
}

.form-group input:not([type="file"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background-color: var(--shark-950);
    border: 1px solid var(--shark-800);
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-group input:not([type="file"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-500);
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.2);
}

.custom-error-tooltip {
    position: absolute;
    bottom: calc(100% - 10px);
    left: 10px;
    background-color: var(--shark-950);
    border: 1px solid var(--accent-500);
    color: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    z-index: 10;
}

.custom-error-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-8px);
}

.custom-error-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 15px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--accent-500) transparent transparent transparent;
}

.custom-error-tooltip::before {
    content: "";
    position: absolute;
    top: calc(100% - 1.5px);
    left: 15px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--shark-950) transparent transparent transparent;
    z-index: 2;
}

.error-icon {
    background-color: var(--accent-500);
    color: var(--shark-950);
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    font-weight: 800;
    font-size: 0.75rem;
}

.form-group input.error-highlight,
.form-group select.error-highlight,
.form-group textarea.error-highlight {
    border-color: var(--accent-500);
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.2);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.4rem;
    background-color: var(--shark-950);
    border: 1px solid var(--accent-600);
    border-radius: 8px;
    color: var(--shark-200);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s;
}

.form-group input[type="file"]:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.2);
}

.form-group input[type="file"]::file-selector-button {
    background-color: #f6f7f9;
    color: #232a35;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    margin-right: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: "Inter", sans-serif;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: #d3dbe4;
}

.file-hint {
    font-size: 0.8rem;
    color: var(--shark-500);
    margin-top: -0.2rem;
}

/* Checkboxy */
.checkbox-group {
    margin-bottom: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--shark-100);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: var(--shark-950);
    border: 1px solid var(--shark-800);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-500);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-500);
    border-color: var(--accent-500);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--shark-950);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    line-height: 1.5;
    padding-top: 2px;
}

.privacy-link {
    color: var(--accent-500);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.privacy-link:hover {
    color: var(--accent-600);
}

.checkbox-container input.error-highlight ~ .checkmark {
    border-color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
}

/* Modale */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 42, 53, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--shark-950);
    border: 1px solid var(--shark-800);
    border-top: 4px solid var(--accent-500);
    border-radius: 16px;
    width: 100%;
    max-width: 750px;
    max-height: 85vh; /* Ograniczenie wysokości do 85% ekranu */
    overflow-y: auto; /* Włączenie suwaka wewnątrz treści modala */
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    /* Styl suwaka dla Firefoxa */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-500) var(--shark-950);
}

/* --- STYLIZACJA SUWAKA W MODALU DLA CHROME/EDGE/SAFARI --- */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--shark-950);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-500);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-600);
}
/* --------------------------------------------------------- */

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--shark-800);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.modal-close:hover {
    background-color: var(--accent-500);
    color: var(--shark-950);
}

.privacy-text-body h3 {
    font-size: 1.2rem;
    color: var(--accent-500);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.privacy-text-body p {
    color: var(--shark-100);
    font-size: 0.93rem;
    margin-bottom: 0.75rem;
}

.privacy-text-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--shark-200);
}

.privacy-text-body ul li {
    font-size: 0.9rem;
    padding: 0.2rem 0;
}

footer {
    background-color: #1a1f27;
    color: var(--shark-500);
    text-align: center;
    padding: 2.5rem 5%;
    font-size: 0.9rem;
    border-top: 1px solid var(--shark-800);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

footer a {
    color: var(--shark-200);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-500);
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    .contact-container,
    .career-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.25rem;
    }
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* PŁYNNE POJAWIANIE SIĘ MENU ZAMIAST SKOKOWEGO DISPLAY:NONE */
    nav {
        display: flex;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background-color: var(--shark-950);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--shark-800);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
        /* Właściwości animacji */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    .hero {
        padding: 4rem 1.25rem 5rem;
    }
    .hero-badge {
        font-size: 0.82rem;
        padding: 0.4rem 0.9rem;
        margin-bottom: 1.25rem;
    }
    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 1.25rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section {
        padding: 3.5rem 1.25rem;
    }
    .section-title {
        margin-bottom: 2.5rem;
    }
    .section-title h2 {
        font-size: 1.75rem;
    }

    .target-grid,
    .courses-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-container,
    .career-container {
        padding: 1.5rem 1.25rem;
    }

    .btn,
    .btn-outline {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    .pricing-card .price {
        font-size: 2rem;
    }
}