/* POJAL web v1 — shared styles, mobile-first */
:root {
  --bg: #0B1220;
  --bg-2: #141E2E;
  --bg-3: #1A2438;
  --text: #F2F5FA;
  --muted: #A8B3C7;
  --amber: #FF8A3D;
  --teal: #3DD6C6;
  --route: linear-gradient(90deg, #FF8A3D 0%, #3DD6C6 100%);
  --line: rgba(168, 179, 199, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --header-h: 68px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--bg-3);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 36px;
  width: auto;
}
.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 0;
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  color: #0B1220;
  background: var(--route);
  box-shadow: 0 8px 24px rgba(255, 138, 61, 0.22);
}
.btn-primary:hover { color: #0B1220; filter: brightness(1.06); }
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }
.header-cta { padding: 0.55rem 0.95rem; font-size: 0.92rem; }

/* Language switcher and compact header tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  line-height: 1;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] {
  color: var(--amber);
}

/* Optional language hint (PL page only) */
.lang-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  padding: 0.5rem 2.4rem 0.5rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0; }
.lang-hint a { color: var(--text); }
.lang-hint button {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.lang-hint button:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  padding: 2.4rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% 30% 40%;
  height: 280px;
  background: radial-gradient(closest-side, rgba(61, 214, 198, 0.12), transparent 70%),
              radial-gradient(closest-side, rgba(255, 138, 61, 0.14), transparent 70%);
  background-position: 80% 40%, 20% 60%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--route);
}
h1, h2, h3, .section-title, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0;
}
h1 {
  font-size: clamp(2.35rem, 8vw, 4.15rem);
  max-width: 16ch;
}
.lead {
  margin: 1.1rem 0 1.6rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.phones {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  position: relative;
}
.phone {
  background: #070c16;
  border-radius: 28px;
  padding: 8px;
  border: 1px solid rgba(242, 245, 250, 0.08);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 138, 61, 0.08);
  width: min(46%, 220px);
  flex: 0 1 auto;
}
.phone img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 420 / 800;
  object-fit: cover;
  object-position: top;
  background: var(--bg-2);
}
.phone figcaption {
  margin: 0.45rem 0 0.15rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Sections */
section { padding: 3.2rem 0; }
.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.section-head h2,
.section-head .section-title {
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
}
.section-head p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}
.section-head .section-title {
  color: inherit;
  margin: 0;
}
.alt { background: var(--bg-2); }
.route-rule {
  height: 4px;
  border: 0;
  margin: 0;
  background: var(--route);
  border-radius: 999px;
}

/* Benefits */
.benefits {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
}
.card h2,
.card h3 {
  font-size: 1.45rem;
  margin: 0.15rem 0 0.45rem;
}
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(61, 214, 198, 0.16);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  background: rgba(255, 138, 61, 0.12);
  color: var(--amber);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.icon-dot.teal {
  background: rgba(61, 214, 198, 0.12);
  color: var(--teal);
}
.card-soon {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}
.card-soon h3 { margin: 0; }
.card-soon p { flex: 1 1 16rem; }

/* Countries */
.countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.chip b {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* Download */
.download-cta { margin: 0 0 1.15rem; }
.btn-download {
  width: 100%;
  max-width: 28rem;
  padding: 1.05rem 1.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}
.install-steps {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
  max-width: 32rem;
  color: var(--muted);
}
.install-steps li { margin: 0.4rem 0; }
.download-note {
  margin: 0 0 0.45rem;
  font-weight: 600;
  color: var(--text);
}
.download-meta {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-all;
}
.download-meta code {
  font-size: 0.86em;
}
.download-mail {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* FAQ */
.faq { display: grid; gap: 0.65rem; }
details {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.15rem 1rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.2;
}
details[open] summary::after { content: "–"; }
details p { margin: 0 0 1rem; color: var(--muted); }

/* Contact */
.mail {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}
.mail:hover { color: var(--amber); }

/* Footer & legal */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.osm-attr {
  margin: 0.35rem auto 0;
  font-size: 0.88rem;
}
.osm-attr a { color: var(--muted); text-decoration: none; }
.osm-attr a:hover { color: var(--text); }

.legal { padding: 2rem 0 3.5rem; }
.legal-flag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.16);
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: none; margin-bottom: 0.5rem; }
.legal .meta { color: var(--muted); margin: 0 0 1.75rem; }
.legal h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.7rem;
}
.legal h3 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.45rem;
  color: var(--text);
}
.legal p, .legal li { color: var(--muted); }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li { margin: 0.35rem 0; }
.legal li strong, .legal p strong { color: var(--text); font-weight: 600; }
.legal-note {
  background: rgba(255, 138, 61, 0.08);
  border-left: 3px solid var(--amber);
  padding: 0.9rem 1rem;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

@media (max-width: 419px) {
  .logo img { height: 28px; }
  .header-inner { gap: 0.45rem; }
  .header-tools { gap: 0.3rem; }
  .header-cta { padding: 0.45rem 0.58rem; font-size: 0.8rem; }
  .lang-switch a { padding: 0.24rem 0.3rem; font-size: 0.72rem; }
}

@media (min-width: 720px) {
  .nav { display: flex; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .phone { width: min(42%, 260px); }
}

@media (min-width: 960px) {
  .hero { padding: 3.4rem 0 4.2rem; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .phones { justify-content: flex-end; }
  .phone:first-child { transform: translateY(18px); }
  .phone:last-child { transform: translateY(-8px); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  section { padding: 4.2rem 0; }
}

.card-note { margin-top: .75rem; font-size: .85rem; color: #A8B3C7; }
