/* Strona yanastro.com: kolory marki YAN (yan-logo/), ciemne tlo jak w aplikacji */
:root {
  --bg: #0d1326;
  --bg-2: #141c33;
  --line: #24304f;
  --text: #eef1f8;
  --dim: #a9b3cc;
  --gold: #f4c95d;
  --sky: #8fb8ff;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--sky); }
a:hover { color: var(--gold); }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

/* ---------- naglowek ---------- */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 19, 38, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; font-size: 22px; line-height: 1.05; letter-spacing: 0.04em; }
.brand-name small { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky); }
nav.menu { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
nav.menu a { color: var(--dim); text-decoration: none; font-size: 15px; }
nav.menu a:hover { color: var(--text); }
.lang { border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; color: var(--dim); text-decoration: none; font-size: 14px; }

/* ---------- sekcje ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 19px; }
.lead { font-size: 19px; color: var(--dim); max-width: 680px; }
.kicker { color: var(--gold); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }

.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero .logo { width: 100%; max-width: 420px; justify-self: center; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; border: 1px solid var(--line); color: var(--text);
}
.btn.primary { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn.primary:hover { color: var(--bg); filter: brightness(1.06); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--dim); }
.card h3 { color: var(--text); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: baseline; }
.steps li::before {
  content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--bg); font-weight: 700;
}

.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.price .card .amount { font-size: 34px; font-weight: 700; color: var(--gold); margin: 8px 0; }
.price ul { padding-left: 20px; color: var(--dim); margin: 12px 0 0; }
.note { color: var(--dim); font-size: 14px; margin-top: 18px; }

/* ---------- tekst prawny ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--dim); }
.legal strong { color: var(--text); }

footer { padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--dim); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .logo { max-width: 280px; order: -1; }
  section { padding: 52px 0; }
  nav.menu { margin-left: 0; width: 100%; gap: 14px; }
}

/* ---------- panel klienta i administratora (assets/panel.js) ---------- */
.panel { max-width: 820px; display: grid; gap: 16px; }
.panel-form { display: grid; gap: 12px; max-width: 460px; }
.panel input, .panel select {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit;
}
.panel input.code { font-size: 22px; letter-spacing: 0.3em; text-align: center; font-family: ui-monospace, monospace; }
.panel .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.panel .check { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.panel .check input { width: auto; }
.panel .actions { margin-top: 0; }
.panel button.btn { cursor: pointer; background: transparent; font: inherit; }
.panel button.btn.primary { background: var(--gold); }
.panel button:disabled { opacity: 0.6; cursor: wait; }
.panel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head > :first-child { margin-right: auto; }
.panel-head h3 { margin: 0; }
.panel-error { color: #f85149; margin: 0; min-height: 0; }
.panel-error:empty { display: none; }
.licence-card p { margin: 6px 0 0; }
.mono { font-family: ui-monospace, monospace; letter-spacing: 0.03em; word-break: break-all; color: var(--text); }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); }
.badge.active { color: #3fb950; }
.badge.expired, .badge.revoked { color: #f85149; }
.admin-list { display: grid; gap: 8px; margin-top: 12px; }
.admin-row { display: grid; gap: 2px 12px; grid-template-columns: 1fr 1fr; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.admin-row .btn { justify-self: start; padding: 6px 14px; }
@media (max-width: 760px) { .admin-row { grid-template-columns: 1fr; } }

/* ---------- funkcje ze zrzutami (/funkcje/, /en/features/) i galeria ---------- */
.feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: center; padding: 56px 0;
  border-bottom: 1px solid var(--line); }
.feature:nth-child(even) { grid-template-columns: 1.15fr 0.85fr; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text p, .feature-text li { color: var(--dim); }
.feature-text ul { padding-left: 20px; margin: 12px 0 0; }
.shots { display: grid; gap: 10px; }
.shots.two { grid-template-columns: 1fr 1fr; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.shot figcaption { color: var(--dim); font-size: 13px; margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 32px; }
.gallery .shot img { aspect-ratio: 2772 / 1280; object-fit: cover; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--dim); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--text); border-color: var(--gold); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 18, 0.94); display: grid;
  grid-template-rows: 1fr auto; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox p { color: var(--dim); margin: 10px 0 0; text-align: center; }
.lightbox button { position: absolute; background: rgba(20, 28, 51, 0.8); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; top: 50%; }
.lightbox .next { right: 16px; top: 50%; }
@media (max-width: 760px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; padding: 40px 0; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .shots.two { grid-template-columns: 1fr; }
}
