/* ============================================================
   BALTIC DUAL USE HACKATHON — scalony arkusz stylów
   Sekcja 1: główny styl strony (marketing / landing)
   Sekcja 2: dodatki dla podstron prawnych (regulamin, polityka prywatności)
   ============================================================ */

:root {
    --bg: #150C26;
    --panel: #1E1338;
    --panel-2: #251742;
    --line: #382753;
    --text: #F1EEF7;
    --muted: #A79BC4;
    --green: #9CFF3D;
    --amber: #FF8A5C;
    --radius: 2px;
    --white: #fff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background-image:
        radial-gradient(ellipse 900px 600px at 12% 100px, rgba(156, 255, 61, 0.10), transparent 60%),
        radial-gradient(ellipse 800px 700px at 88% 0px, rgba(130, 70, 220, 0.35), transparent 55%),
        radial-gradient(ellipse 1000px 800px at 50% 800px, rgba(90, 40, 170, 0.20), transparent 60%),
        radial-gradient(ellipse 700px 600px at 90% 1600px, rgba(156, 255, 61, 0.07), transparent 55%),
        radial-gradient(ellipse 900px 700px at 8% 3200px, rgba(130, 70, 220, 0.22), transparent 58%),
        radial-gradient(ellipse 800px 650px at 92% 4600px, rgba(156, 255, 61, 0.09), transparent 55%),
        radial-gradient(ellipse 1000px 750px at 30% 6200px, rgba(90, 40, 170, 0.24), transparent 60%),
        radial-gradient(ellipse 850px 650px at 85% 7800px, rgba(156, 255, 61, 0.08), transparent 55%),
        radial-gradient(ellipse 900px 700px at 15% 9400px, rgba(130, 70, 220, 0.20), transparent 58%),
        radial-gradient(ellipse 800px 650px at 90% 11000px, rgba(156, 255, 61, 0.09), transparent 55%),
        radial-gradient(ellipse 950px 750px at 25% 12600px, rgba(90, 40, 170, 0.22), transparent 60%),
        radial-gradient(ellipse 800px 650px at 88% 14200px, rgba(156, 255, 61, 0.08), transparent 55%),
        radial-gradient(ellipse 900px 700px at 10% 15800px, rgba(130, 70, 220, 0.20), transparent 58%),
        radial-gradient(ellipse 850px 650px at 85% 17400px, rgba(156, 255, 61, 0.09), transparent 55%);
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.display {
    font-family: 'Space Grotesk', sans-serif;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
}

section.tight {
    padding: 56px 0;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 18px;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
}

p.lead {
    color: var(--muted);
    font-size: 17px;
    max-width: 640px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--green);
    color: #0B0E11;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

/* NAV */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 17, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

nav.wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.logo {
    width: 150px;
    height: auto;
}

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

.navlinks {
    display: flex;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
}

.navlinks a {
    text-decoration: none;
}

.navlinks a:hover {
    color: var(--text);
}

.navcta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
}

.lang-toggle a {
    padding: 6px 10px;
    text-decoration: none;
    color: var(--muted);
}


.lang-toggle a.active {
    color: var(--bg);
    background: var(--green);
    font-weight: 600;
}


@media(max-width:1050px) {
    .navlinks {
        display: none;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: rgba(11, 14, 17, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    box-sizing: border-box;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    text-decoration: none;
}

.mobile-menu-cta {
    margin-top: 16px;
    justify-content: center;
    border-bottom: none !important;
}

body.menu-open {
    overflow: hidden;
}

@media(max-width:1050px) {
    .navlinks {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .navcta .btn-primary {
        display: none;
    }


    .lang-toggle a {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* HERO */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(156, 255, 61, 0.16), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .split {
    color: var(--green);
}

.hero p.lead {
    margin-top: 24px;
    font-size: 19px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.urgency {
    margin-top: 16px;
    font-size: 13px;
    color: #C4A6FF;
    font-family: 'JetBrains Mono';
}

.statbar {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: 24px 20px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: none;
}

.stat .num {
    font-family: 'Space Grotesk';
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
}

.stat .label {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

@media(max-width:700px) {
    .statbar {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: none;
    }
}

.statbar-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media(max-width:900px) {
    .statbar-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .statbar-5 .stat:nth-child(3) {
        border-right: none;
    }
}

@media(max-width:700px) {
    .statbar-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .statbar-5 .stat:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .statbar-5 .stat:nth-child(even) {
        border-right: none;
    }
}

/* TRUST BAR */
.trust {
    padding: 40px 0;
}

.trust-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-label {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.trust-logos {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.85;
}

.trust-logos .tl {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-size: 16px;
    color: var(--muted);
}

/* WHY NOW */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 48px;
    background: var(--line);
}

.card {
    background: var(--bg);
    padding: 32px;
}

.card .idx {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--green);
    margin-bottom: 14px;
}

.card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 14.5px;
}

@media(max-width:700px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 48px;
    background: var(--line);
}

@media(max-width:800px) {
    .grid3 {
        grid-template-columns: 1fr;
    }
}

/* DUAL USE */
.dualuse-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.dualuse-intro {
    max-width: 480px;
}

@media(max-width:900px) {
    .dualuse-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.split-table {
    margin-top: 48px;
    border: 1px solid var(--line);
}

.split-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    border-bottom: 1px solid var(--line);
}

.split-row:last-child {
    border-bottom: none;
}

.split-row.head {
    background: var(--panel);
}

.split-row.head div {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 14px 20px;
}

.split-row.head .civ {
    color: var(--text);
}

.split-row.head .def {
    color: var(--amber);
}

.split-cell {
    padding: 20px;
    font-size: 14.5px;
}

.split-cell.track {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    background: var(--panel);
}

.split-cell.civ {
    border-right: 1px solid var(--line);
    color: var(--text);
}

.split-cell.def {
    color: #E9C9BC;
    position: relative;
}

.split-cell.def::before {
    content: "⚡";
    color: var(--amber);
    margin-right: 8px;
    font-size: 12px;
}

@media(max-width:700px) {
    .split-row {
        grid-template-columns: 1fr;
    }

    .split-cell.civ {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .split-row.head {
        display: none;
    }
}

.dualuse-close {
    margin-top: 36px;
    padding: 24px;
    border-left: 2px solid var(--green);
    background: var(--panel);
    font-size: 15px;
    max-width: 680px;
}

/* DUAL USE — single branching diagram */
.due-diagram {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.due-diagram svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.due-branch-line {
    stroke: var(--line);
    stroke-width: 1.5;
    fill: none;
}

.due-drone-icon {
    stroke: var(--text);
    fill: none;
    stroke-width: 1.3;
}

.due-diagram-label {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    letter-spacing: 0.08em;
    fill: var(--muted);
}

.due-dot {
    fill: var(--bg);
    stroke-width: 1.5;
}

.due-dot.civ {
    stroke: var(--green);
}

.due-dot.def {
    stroke: var(--amber);
}

.due-labels {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.due-label-block {
    width: 44%;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 16px 18px;
}

.due-tag {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.due-label-block.civ .due-tag {
    color: var(--green);
}

.due-label-block.def .due-tag {
    color: var(--amber);
}

.due-label-block h4 {
    font-family: 'Space Grotesk';
    font-size: 16px;
    margin-bottom: 6px;
}

.due-label-block p {
    font-size: 13.5px;
    color: var(--muted);
}

@media(max-width:600px) {
    .due-labels {
        flex-direction: column;
    }

    .due-label-block {
        width: 100%;
    }
}

.due-caption {
    margin-top: 32px;
    font-size: 13px;
    color: var(--muted);
    max-width: 600px;
}

/* TRACKS */
.track-banner {
    margin-top: 8px;
    margin-bottom: 40px;
    border: 1px dashed var(--line);
    padding: 20px 24px;
    font-family: 'JetBrains Mono';
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-banner b {
    color: var(--text);
    font-weight: 500;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

.track-card {
    background: var(--bg);
    padding: 28px;
}

.track-card .thead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.track-card h3 {
    font-size: 18px;
}

.track-card .tag {
    font-family: 'JetBrains Mono';
    font-size: 10px;
    color: var(--green);
    border: 1px solid var(--green);
    padding: 3px 8px;
    border-radius: 20px;
}

.track-card p {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 10px;
}

.track-card.expanded {
    grid-column: span 2;
}

.track-card .badge-inline {
    display: inline-block;
    font-family: 'JetBrains Mono';
    font-size: 10px;
    color: var(--bg);
    background: var(--green);
    padding: 3px 8px;
    margin-bottom: 12px;
}

.track-card .track-highlight {
    color: var(--green);
    font-weight: 600;
}

.track-highlight {
    color: var(--green);
    font-weight: 600;
}

.track-card .subfact b {
    color: var(--green);
}

@media(max-width:900px) {
    .tracks-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:600px) {
    .tracks-grid {
        display: flex;
        flex-direction: column;
    }
}

/* CHIPATHON */
.chipathon {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.chipathon .badge {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--bg);
    background: var(--green);
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 16px;
}

.chipathon .fact {
    text-align: center;
    padding-left: 40px;
    border-left: 1px solid var(--line);
}

.chipathon .fact .num {
    font-family: 'Space Grotesk';
    font-size: 44px;
    color: var(--green);
    font-weight: 700;
}

.chipathon .fact .label {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    max-width: 140px;
}

@media(max-width:700px) {
    .chipathon {
        grid-template-columns: 1fr;
    }

    .chipathon .fact {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 24px;
    }
}

/* PRIZES */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    /* background: var(--line); */
    margin-top: 48px;
}

.prize-card {
    background: var(--bg);
    padding: 28px;
}

.prize-card .icon {
    font-size: 22px;
    margin-bottom: 16px;
}

.prize-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.prize-card p {
    font-size: 13.5px;
    color: var(--muted);
}

.prize-card:hover {
    background: var(--panel);
}

/* .prize-card.highlight {
  background: var(--panel);  
} */

.prize-card.highlight .icon {
    color: var(--green);
}

@media(max-width:900px) {
    .prize-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:600px) {
    .prize-grid {
        grid-template-columns: 1fr;
    }
}

/* PERSONAS */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 48px;
}

.persona-card {
    background: var(--bg);
    padding: 26px;
}

.persona-card .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
}

.persona-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.persona-card p {
    font-size: 13.5px;
    color: var(--muted);
}

@media(max-width:900px) {
    .persona-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:600px) {
    .persona-grid {
        grid-template-columns: 1fr;
    }
}

/* COMFORT */
.comfort-list {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
}

.comfort-item {
    background: var(--bg);
    padding: 24px 18px;
    text-align: center;
}

.comfort-item .icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.comfort-item p {
    font-size: 12.5px;
    color: var(--muted);
}

@media(max-width:900px) {
    .comfort-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:600px) {
    .comfort-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TICKET */
.ticket-box {
    margin-top: 40px;
    border: 1px solid var(--green);
    background: var(--panel);
    padding: 40px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
}

.ticket-name {
    font-family: 'Space Grotesk';
    font-size: 17px;
    font-weight: 600;
}

.ticket-meta {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.ticket-price {
    font-family: 'Space Grotesk';
    font-size: 22px;
    color: var(--green);
    font-weight: 700;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-family: 'Space Grotesk';
    font-size: 16px;
    font-weight: 600;
}

.faq-q .plus {
    color: var(--green);
    font-family: 'JetBrains Mono';
    transition: transform .2s ease;
}

.faq-item.open .plus {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-a p {
    padding-bottom: 22px;
    color: var(--muted);
    font-size: 14.5px;
    max-width: 640px;
}

.faq-item.open .faq-a {
    max-height: 200px;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 40px;
}

.gallery-grid div {
    aspect-ratio: 1;
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono';
    font-size: 10px;
    color: var(--muted);
}

@media(max-width:700px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PARTNERS */
.partner-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 48px;
    margin-top: 40px;
}

.partner-row:has(.bg-light) {
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
   
}

.partner-row .tl {
    font-family: 'Space Grotesk';
    font-weight: 600;
    color: var(--muted);
    font-size: 17px;
    min-width: 180px;

    border: 1px solid var(--line);
    border-radius: 0.25rem;
    padding: 2rem;


    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}



.partner-row .tl a {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.partner-row .tl.bg-light {
    background-color: var(--white);
    height: 160px;
    overflow: hidden;
    padding: 1rem;


}


.partner-row .tl.bg-light a {
    min-height: 0;
    overflow: hidden;
    cursor: pointer;

}

.partner-row .tl.bg-light img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.partner-row .tl img {
  transition: transform 0.3s ease;
}

.partner-row .tl:hover img {
  transform: scale(1.1);
}




footer {
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer-grid h4 {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-grid a {
    display: block;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 10px;
    opacity: 0.85;
}

.footer-grid a:hover {
    color: var(--green);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 10px;
}

@media(max-width:700px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.note {
    display: inline-block;
    margin-top: 14px;
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    border: 1px dashed var(--line);
    padding: 8px 12px;
}

/* LOCATION */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    margin-top: 48px;
}

.location-info {
    background: var(--bg);
    padding: 36px;
}

.location-info .addr {
    font-family: 'Space Grotesk';
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.location-info .addr-sub {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 24px;
}

.location-facts {
    list-style: none;
}

.location-facts li {
    font-size: 14px;
    color: var(--muted);
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.location-facts li:first-child {
    border-top: none;
}

.location-facts b {
    color: var(--text);
    font-weight: 500;
}

.map-box {
    background: var(--panel);
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--muted);
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 32px 32px;
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* proporcje 16:9 */
    width: 100%;
}

.map-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-box::after {
    content: "📍";
    position: absolute;
    font-size: 28px;
}

@media(max-width:700px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* MENTORS */
.mentor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.mentor-photo {
    aspect-ratio: 1;
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.mentor-photo--placeholder {
  background: var(--line); 
   position: relative;
}

.mentor-photo--placeholder svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 30%;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}


.mentor-photo:has(img) {
    display: block;
    padding: 0;
}

.mentor-photo:has(img)::before {
    content: none;
}
.mentor-card:hover .mentor-photo img {
  transform: scale(1.08);
}



.mentor-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mentor-name {
    font-family: 'Space Grotesk';
    font-size: 15px;
    font-weight: 600;
}

.mentor-role {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--green);
    margin-top: 3px;
}

.mentor-org {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.mentor-specialization {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 8px;
}

.mentor-specialization strong {
    display: block;
    font-family: 'JetBrains Mono';
    font-size: 10.5px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}


.mentor-card {
    cursor: pointer;
  
}



.mentor-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 17, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.mentor-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mentor-modal {
    background: var(--panel);
    border: 1px solid var(--line);
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(12px);
    transition: transform .2s ease;
}

.mentor-modal-overlay.open .mentor-modal {
    transform: translateY(0);
}

.mentor-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.mentor-modal-close:hover {
    color: var(--text);
    border-color: var(--green);
}

.mentor-modal-photo {
    aspect-ratio: 1;
    width: 160px;
    background: var(--bg);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 20px;
    overflow: hidden;
}

.mentor-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mentor-modal-name {
    font-family: 'Space Grotesk';
    font-size: 22px;
    font-weight: 600;
}

.mentor-modal-role {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--green);
    margin-top: 6px;
}

.mentor-modal-org {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 2px;
}

.mentor-modal-specialization {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.mentor-modal-body {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.mentor-modal-body p {
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 14px;
}

.mentor-modal-body p:last-child {
    margin-bottom: 0;
}

.mentor-social-link {
    display: inline-block;
    font-family: 'JetBrains Mono';
    font-size: 12.5px;
    color: var(--green);
    text-decoration: none;
    margin-right: 20px;
    margin-bottom: 4px;
}

.mentor-social-link:hover {
    text-decoration: underline;
}

@media(max-width:900px) {
    .mentor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:500px) {
    .mentor-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* SIDE EVENTS */
.sideevent-subtitle {
    margin-top: 24px;
}
.sideevent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    /* background: var(--line); */
    margin-top: 24px;
}

.sideevent-card {
    background: var(--bg);
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.sideevent-card .se-date {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.sideevent-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.sideevent-card p {
    font-size: 13.5px;
    color: var(--muted);
    flex-grow: 1;
}

.sideevent-card a {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--text);
    margin-top: 16px;
    text-decoration: none;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.sideevent-card a:hover {
    color: var(--green);
}

@media(max-width:900px) {
    .sideevent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:500px) {
    .sideevent-grid {
        grid-template-columns: 1fr;
    }
}

/* AGENDA */
.day-tabs {
    display: flex;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.day-tab {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s ease;
}

.day-tab.active {
    border-color: var(--green);
    color: var(--green);
}

.day-panel {
    display: none;
    margin-top: 32px;
}

.day-panel.active {
    display: block;
}

.timeline {
    position: relative;
    padding-left: 150px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 130px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--line);
}

.tl-item {
    position: relative;
    padding-bottom: 32px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-time {
    position: absolute;
    left: -150px;
    top: 0;
    width: 120px;
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--green);
    text-align: right;
}

.tl-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--green);
}

.tl-item.minor .tl-dot {
    border-color: var(--muted);
}

.tl-item.minor .tl-time {
    color: var(--muted);
}

.tl-title {
    font-family: 'Space Grotesk';
    font-size: 16px;
    font-weight: 600;
}
.tl-title a {
    text-underline-offset: 2px;
}

.tl-title a:hover {
    color: var(--green)
}

.tl-desc {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 4px;
    max-width: 480px;
}

@media(max-width:600px) {
    .timeline {
        padding-left: 76px;
    }

    .timeline::before {
        left: 56px;
    }

    .tl-time {
        left: -76px;
        width: 52px;
        font-size: 11px;
    }

    .tl-dot {
        left: -20px;
    }
}


/* ============================================================
   SEKCJA 2 — STYLE STRON PRAWNYCH
   (regulamin.html, polityka-prywatnosci.html)
   ============================================================ */

/* ============================================================
   Dodatki stylów dla podstron prawnych: regulamin.html, polityka-prywatnosci.html
   Ładować PO style.css — ten plik tylko uzupełnia, nie powiela reguł głównych
   ============================================================ */


/* LEGAL HERO */
.legal-hero {
    padding-top: 72px;
    padding-bottom: 56px;
}

.legal-hero h1 {
    font-size: clamp(32px, 5vw, 50px);
    max-width: 780px;
    line-height: 1.08;
}

.legal-hero .meta-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 32px;
    font-family: 'JetBrains Mono';
    font-size: 12.5px;
    color: var(--muted);
}

.legal-hero .meta-row b {
    color: var(--text);
    font-weight: 500;
}

.factbar {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.factbar .fact {
    padding: 22px 20px;
    border-right: 1px solid var(--line);
}

.factbar .fact:last-child {
    border-right: none;
}

.factbar .fact .num {
    font-family: 'Space Grotesk';
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
}

.factbar .fact .label {
    font-family: 'JetBrains Mono';
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

@media(max-width:700px) {
    .factbar {
        grid-template-columns: repeat(2, 1fr);
    }

    .factbar .fact:nth-child(2) {
        border-right: none;
    }
}

.badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.badge-row .badge {
    font-family: 'JetBrains Mono';
    font-size: 11.5px;
    color: var(--text);
    border: 1px solid var(--line);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-row .badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* TOC (spis treści) */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 40px;
    border: 1px solid var(--line);
}

.toc-item {
    background: var(--bg);
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 22px;
    text-decoration: none;
    color: var(--text);
    transition: background .15s ease;
}

.toc-item:hover {
    background: var(--panel);
}

.toc-item .toc-idx {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--green);
    flex-shrink: 0;
}

.toc-item .toc-label {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-size: 14.5px;
}

@media(max-width:700px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }
}

/* STRUKTURA SEKCJI PRAWNYCH */
.legal-section .section-num {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--green);
    margin-bottom: 14px;
}

.legal-sub {
    margin-top: 56px;
}

.legal-sub:first-of-type {
    margin-top: 40px;
}

.legal-sub h3 {
    font-family: 'Space Grotesk';
    font-size: 19px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.legal-sub h4 {
    font-family: 'Space Grotesk';
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 10px;
}

.legal-sub h4 .h-num {
    color: var(--green);
    font-family: 'JetBrains Mono';
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
}

.legal-list {
    margin-left: 1rem;
}

.legal-list>li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 16px;
    color: var(--text);
    font-size: 15px;
}

/* .legal-list > li::before { content: "—"; position: absolute; left: 0; color: var(--muted); } */
.legal-list.compact>li {
    margin-bottom: 10px;
}

/* Zagnieżdżone listy z prefiksem numeracji, np. 2.3.1, 2.3.2... — ustaw --prefix:'2.3.' na <ol> */
.legal-list.prefixed {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
    margin-top: 20px;
}

.legal-list.prefixed>li {
    counter-increment: item;
    position: relative;
    padding-left: 50px;
    margin-bottom: 28px;
}

.legal-list.prefixed>li:last-child {
    margin-bottom: 0;
}

.legal-list.prefixed>li::before {
    content: var(--prefix) counter(item) ".";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--green);
    font-family: 'JetBrains Mono';
    font-size: 13px;
    font-weight: 600;
}

.legal-list.prefixed>li h4 {
    margin-top: 0 !important;
}

.legal-sublist {
    list-style: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.legal-sublist>li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14.5px;
}

.legal-sublist>li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

p.legal-p {
    color: var(--text);
    font-size: 15px;
    max-width: 760px;
    margin-bottom: 14px;
}

p.legal-p b {
    font-weight: 600;
    color: var(--text);
}

.legal-note {
    margin-top: 8px;
    padding: 20px 24px;
    border-left: 2px solid var(--green);
    background: var(--panel);
    font-size: 14.5px;
    color: var(--muted);
    max-width: 720px;
}

.legal-note b {
    color: var(--text);
    font-weight: 500;
}

/* ORGANIZATORZY (regulamin.html) */
.org-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 40px;
    border: 1px solid var(--line);
}

.org-card {
    background: var(--bg);
    padding: 28px;
}

.org-card .tag {
    font-family: 'JetBrains Mono';
    font-size: 10.5px;
    color: var(--green);
    border: 1px solid var(--green);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.org-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.org-card .org-line {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 5px;
    line-height: 1.6;
}

@media(max-width:800px) {
    .org-grid {
        grid-template-columns: 1fr;
    }
}

/* DEFINICJE (regulamin.html) */
.def-list {
    margin-top: 40px;
    border: 1px solid var(--line);
}

.def-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-bottom: 1px solid var(--line);
}

.def-item:last-child {
    border-bottom: none;
}

.def-term {
    font-family: 'Space Grotesk';
    font-weight: 600;
    font-size: 14.5px;
    color: var(--green);
    padding: 18px 22px;
    background: var(--panel);
    border-right: 1px solid var(--line);
}

.def-desc {
    padding: 18px 22px;
    font-size: 14.5px;
    color: var(--text);
}

@media(max-width:700px) {
    .def-item {
        grid-template-columns: 1fr;
    }

    .def-term {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
}

/* NAGRODY (regulamin.html) */
.prize-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 24px;
    border: 1px solid var(--line);
}

.prize-strip .p-card {
    background: var(--bg);
    padding: 26px;
    text-align: center;
}

.prize-strip .p-card.first {
    background: var(--panel);
}

.prize-strip .p-card .place {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.prize-strip .p-card .amount {
    font-family: 'Space Grotesk';
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
    margin-top: 8px;
}

@media(max-width:700px) {
    .prize-strip {
        grid-template-columns: 1fr;
    }
}

/* CELE PRZETWARZANIA — karty (2.3.x, polityka-prywatnosci.html) */
.purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 40px;
    border: 1px solid var(--line);
}

.purpose-card {
    background: var(--bg);
    padding: 28px;
}

.purpose-card .p-idx {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--green);
    margin-bottom: 10px;
}

.purpose-card h3 {
    font-size: 17px;
    margin-bottom: 18px;
    font-family: 'Space Grotesk';
}

.purpose-row {
    margin-bottom: 14px;
}

.purpose-row:last-child {
    margin-bottom: 0;
}

.purpose-row .p-label {
    font-family: 'JetBrains Mono';
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.purpose-row .p-value {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.5;
}

.purpose-row .legal-sublist {
    margin-top: 6px;
    margin-bottom: 0;
}

.purpose-row .legal-sublist li {
    font-size: 12.5px;
}

@media(max-width:800px) {
    .purpose-grid {
        grid-template-columns: 1fr;
    }
}

/* TWOJE PRAWA — akordeon (2.6.x, polityka-prywatnosci.html) */
.rights-list {
    margin-top: 40px;
}

.right-item {
    border-bottom: 1px solid var(--line);
}

.right-item:first-child {
    border-top: 1px solid var(--line);
}

.right-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 4px;
    cursor: pointer;
    font-family: 'Space Grotesk';
    font-size: 16px;
    font-weight: 600;
}

.right-q .r-num {
    font-family: 'JetBrains Mono';
    font-size: 12px;
    color: var(--green);
    margin-right: 14px;
    font-weight: 400;
}

.right-q .plus {
    color: var(--green);
    font-family: 'JetBrains Mono';
    transition: transform .2s ease;
    flex-shrink: 0;
}

.right-item.open .plus {
    transform: rotate(45deg);
}

.right-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.right-item.open .right-a {
    max-height: 700px;
}

.right-a-inner {
    padding: 0 4px 26px;
}

.right-a-inner p {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 700px;
    margin-bottom: 12px;
}

.right-a-inner ul {
    list-style: none;
    margin: 12px 0;
}

.right-a-inner ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
}

.right-a-inner ul li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--green);
}

.right-a-inner .contact-hint {
    display: inline-block;
    margin-top: 6px;
    font-family: 'JetBrains Mono';
    font-size: 12.5px;
    color: var(--green);
}

/* KONTAKT — pasek na dole obu podstron */
.contact-strip {
    margin-top: 40px;
    border: 1px solid var(--green);
    background: var(--panel);
    padding: 36px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.contact-strip .c-item .c-label {
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.contact-strip .c-item .c-value {
    font-family: 'Space Grotesk';
    font-size: 17px;
    font-weight: 600;
}