/* Wspólne style podstron Graffo: Oferta, strony szkoleń, Cennik, Kontakt.
   Menu: menu.css, stopka: footer.css, formularz: zapis.css. */
:root { --muted: #d6dcf5; --soft: #aab3d6; --accent: #9fb6ff; --btn: #3d6bff; --shade: 8, 12, 32;
        --bg: #070914; --card: rgba(255, 255, 255, .045); --line: rgba(255, 255, 255, .1);
        --ps: #31a8ff; --ai: #ff9a00; --id: #ff3366; --cdr: #4cbb3c; --cut: #22d3ee; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: #fff; font-family: Montserrat, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1240px, 100% - 13vw); margin: 0 auto; }
.kick { font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--accent); margin: 0 0 16px; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0 0 20px; }
h1 { font-size: clamp(32px, 3.4vw, 54px); }
h2 { font-size: clamp(26px, 2.6vw, 42px); }
h3 { font-size: clamp(19px, 1.5vw, 24px); }
p { font-weight: 500; color: var(--muted); line-height: 1.6; margin: 0 0 18px; font-size: clamp(15px, 1.05vw, 18px); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--btn); color: #fff; font-weight: 700; font-size: 16px;
       padding: 15px 28px; border-radius: 999px; text-decoration: none; transition: background .2s, transform .2s; border: 0; cursor: pointer; }
.btn:hover { background: #2f5cf0; transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
section { padding: clamp(56px, 7vw, 110px) 0; }
section + section { border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: var(--bar); }   /* link z kotwicą (np. oferta.html#szkolenia) nie chowa nagłówka pod menu */
.lead { max-width: 760px; }
.note { font-size: 14px; color: var(--soft); }

/* Kafelki programów (umowne, nie logotypy) */
.apps { display: flex; gap: 8px; flex-wrap: wrap; }
.app { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 19px;
       letter-spacing: -.02em; border: 2px solid currentColor; flex: none; }
.app.ps { color: var(--ps); background: #001e36; }
.app.ai { color: var(--ai); background: #330000; }
.app.id { color: var(--id); background: #49021f; }
.app.cdr { color: #2e9e22; background: #f4fbf2; border-color: var(--cdr); font-size: 15px; }
.app.cut { color: var(--cut); background: #0b2230; }
.app svg { width: 26px; height: 26px; }
.apps.sm .app { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.apps.sm .app.cdr { font-size: 11px; }
.apps.sm .app svg { width: 19px; height: 19px; }

/* Nagłówek podstrony */
.phero { position: relative; padding: calc(var(--bar) + 56px) 0 64px; overflow: hidden;
         background: radial-gradient(90% 120% at 100% 0%, rgba(61, 107, 255, .22), transparent 60%),
                     radial-gradient(70% 100% at 0% 100%, rgba(255, 51, 102, .12), transparent 60%), var(--bg); }
.phero.foto { background: var(--foto) center / cover no-repeat var(--bg); min-height: min(78vh, 760px); display: flex; align-items: flex-end; }
.phero.foto::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--shade), .94) 0%, rgba(var(--shade), .8) 40%, rgba(var(--shade), .25) 72%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 20, 0) 35%); }
.phero .wrap { position: relative; }
.phero .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
            background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
            -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ai-info { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; font-size: 15px;
           background: linear-gradient(90deg, rgba(61, 107, 255, .18), rgba(159, 182, 255, .06)); border: 1px solid rgba(159, 182, 255, .35); }
.ai-info svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.ai-info b { color: #fff; }
.ai-info { color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.ai-info ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 14px; }
.ai-info li { position: relative; padding-left: 16px; }
.ai-info li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
       text-transform: uppercase; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--muted); margin-bottom: 16px; }
.media { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic a, .mosaic div { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.mosaic img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.06); }

/* Fakty i ceny */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.facts li { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.facts b { display: block; font-size: 20px; }
.facts span { font-size: 13px; color: var(--soft); font-weight: 600; }
.prices { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pbox { flex: 1 1 200px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(159, 182, 255, .35); background: rgba(61, 107, 255, .1); }
.pbox span { display: block; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.pbox b { font-size: 24px; }
.pbox small { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.pbox i { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; }

/* Karty */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
        text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .25); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.card .pic { aspect-ratio: 2 / 1; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.card:hover .pic img { transform: scale(1.05); }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { margin: 0; }
.card p { font-size: 15px; margin: 0; }
.card .meta { color: var(--soft); font-weight: 600; font-size: 14px; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 22px; }
.price small { font-size: 13px; font-weight: 600; color: var(--soft); margin-right: 4px; }
.more { font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; }

/* Boksy z listami */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.box { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.box h3 { font-size: 19px; display: flex; align-items: center; gap: 12px; }
.box p:last-child { margin-bottom: 0; }
.box b { color: #fff; }
.box svg.ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; display: block; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.check li { position: relative; padding-left: 30px; color: var(--muted); font-weight: 500; line-height: 1.5; font-size: 15px; }
.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Programy szkoleń (sylabusy) */
.progs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
.progs.one { grid-template-columns: 1fr; }
.prog { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 24px); }
.prog img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.prog .body { padding: 24px; }
.prog h3 { display: flex; align-items: center; gap: 12px; }
details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; margin-left: auto; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
.syl { columns: 2; column-gap: 28px; margin: 16px 0 0; padding: 0; list-style: none; }
.syl li { break-inside: avoid; margin-bottom: 14px; font-size: 14px; color: var(--soft); line-height: 1.5; }
.syl b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }

/* Tabela */
.table-wrap { overflow-x: auto; margin-top: 36px; border-radius: 22px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); background: rgba(255, 255, 255, .03); }
td { color: var(--muted); font-weight: 500; }
td:first-child { color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--accent); font-weight: 700; text-decoration: none; }
td .apps { flex-wrap: nowrap; }
table.mini { min-width: 0; margin: 4px 0 0; }
table.mini th, table.mini td { padding: 9px 0; font-size: 14px; background: none; }
table.mini th { font-size: 11px; }
table.mini td:not(:first-child), table.mini th:not(:first-child) { text-align: right; padding-left: 12px; white-space: nowrap; }
table.mini td:not(:first-child) { color: #fff; font-weight: 700; }
table.mini td:first-child { color: var(--muted); font-weight: 600; }

/* Najbliższe terminy (dane: /terminy.json, skrypt: terminy.js) */
.terminy { margin-top: 28px; }
.t-tabela { border-radius: 22px; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.t-tabela table { min-width: 0; }
.t-tabela th { padding: 14px 18px; }
.t-tabela td { padding: 16px 18px; vertical-align: middle; }
.t-tabela td span { display: block; font-size: 13px; color: var(--soft); font-weight: 600; margin-top: 2px; }
.t-tabela td b { color: #fff; font-size: 16px; }
.t-tabela td:first-child { white-space: nowrap; }
.t-status { display: inline-block !important; margin: 0 !important; padding: 6px 12px; border-radius: 999px; font-size: 12px !important; font-weight: 700 !important;
            letter-spacing: .03em; white-space: nowrap; border: 1px solid; }
.t-wolne { color: #7fe08a !important; background: rgba(76, 187, 60, .12); border-color: rgba(76, 187, 60, .45); }
.t-ostatnie { color: #ffb15c !important; background: rgba(255, 154, 0, .12); border-color: rgba(255, 154, 0, .45); }
.t-potwierdzona { color: #9fb6ff !important; background: rgba(61, 107, 255, .16); border-color: rgba(159, 182, 255, .5); }
.t-brak { color: var(--soft) !important; background: rgba(255, 255, 255, .05); border-color: var(--line); }
.t-akcja { text-align: right; }
.t-btn { padding: 11px 20px; font-size: 14px; white-space: nowrap; }
.t-pelne { color: var(--soft); font-size: 14px; font-weight: 600; }
.t-pokaz { margin-top: 16px; }
.t-nota { margin-top: 14px; }
.terminy-brak { padding: 26px; border-radius: 22px; border: 1px dashed rgba(159, 182, 255, .4); background: rgba(61, 107, 255, .06); }
.terminy-brak p { margin-bottom: 18px; }
@media (max-width: 760px) {
  /* telefon: każdy termin jako karta, nazwa kolumny nad wartością */
  .t-tabela { background: none; border: 0; }
  .t-tabela thead { display: none; }
  .t-tabela table, .t-tabela tbody, .t-tabela tr, .t-tabela td { display: block; width: 100%; }
  .t-tabela tr[hidden] { display: none; }   /* display:block powyżej nadpisywał atrybut hidden („Pokaż wszystkie terminy”) */
  .t-tabela tr { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 6px 4px; margin-bottom: 12px; }
  .t-tabela td { border: 0; padding: 8px 14px; }
  .t-tabela td[data-k]::before { content: attr(data-k); display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 2px; }
  .t-akcja { text-align: left; } .t-btn { width: 100%; justify-content: center; }
}

/* CTA końcowe */
.final { text-align: center; border-radius: 32px; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px);
         background: radial-gradient(120% 140% at 0% 0%, rgba(49, 168, 255, .35), transparent 55%),
                     radial-gradient(120% 140% at 100% 100%, rgba(255, 51, 102, .3), transparent 55%), #0d1230;
         border: 1px solid var(--line); }
.final p { max-width: 640px; margin: 0 auto 30px; }
.final .cta-row { justify-content: center; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.ways { display: grid; gap: 14px; }
.way { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
a.way:hover { border-color: rgba(255, 255, 255, .25); }
.way svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(61, 107, 255, .18); color: var(--accent); }
.way b { display: block; font-size: 18px; margin-bottom: 4px; }
.way span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.dane { font-size: 14px; color: var(--soft); line-height: 1.7; }
.dane b { color: #fff; }
.steps { counter-reset: k; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: k; position: relative; padding-left: 40px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.steps li::before { content: counter(k); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
                    display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--btn); color: #fff; }

@media (max-width: 1000px) {
  .phero .split, .cols, .cols.three, .kontakt { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .grid, .progs { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .syl { columns: 1; }
  .phero.foto { min-height: 0; }
  .phero.foto::before { background: linear-gradient(0deg, var(--bg) 8%, rgba(var(--shade), .85) 55%, rgba(var(--shade), .55)); }
}
