/* ── Variables ──────────────────────────────────────────────── */
:root {
  --violet:     #6c63ff;
  --violet-dim: #5549e8;
  --lavender:   #f3f2ff;
  --charcoal:   #2d2d2d;
  --apricot:    #ff9a5c;
  --apricot-bg: #fff4ec;
  --green:      #27ae60;
  --red:        #c0392b;
  --muted:      #6c757d;
  --border:     #dde3ea;
  --bg:         #f4f6f9;
  --white:      #ffffff;
  --radius:     8px;
  --shadow:     0 1px 4px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 840px; margin: 0 auto; padding: 0 1.25rem; }
.main { flex: 1; padding: 2rem 0 3.5rem; }

/* ── Header ─────────────────────────────────────────────────── */
.header {
  background: #ffffff !important;
  border-bottom: 1px solid #eee;
  color: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: none;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none !important;
  flex-shrink: 0;
}
.logo-shield {
  width: 28px;
  height: 32px;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a !important;
  letter-spacing: 4px;
  line-height: 1;
}
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav-link {
  color: #555;
  font-size: .875rem;
  font-weight: 500;
  transition: color .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--violet); text-decoration: none; }
.nav-cta { font-size: .875rem; padding: .5rem 1.1rem; white-space: nowrap; }
.nav-user-group { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav-user-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--violet);
  white-space: nowrap;
}
@media (max-width: 680px) {
  .nav { display: none; }
  .nav-user-name { display: none; }
  .header-inner { padding: .9rem 1.25rem; }
}

/* ── Escalation button in cases table ───────────────────────── */
.btn-escalate {
  background: var(--apricot-bg);
  color: var(--apricot);
  border: 1.5px solid var(--apricot);
  font-weight: 600;
}
.btn-escalate:hover { background: var(--apricot); color: white; }

/* ── Escalation form ─────────────────────────────────────────── */
.esc-summary { background: var(--lavender); border-color: #c5c2ff; }
.esc-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem .75rem;
}
@media (max-width: 500px) { .esc-summary-grid { grid-template-columns: 1fr; } }
.esc-label { font-size: .75rem; font-weight: 600; text-transform: uppercase;
             letter-spacing: .05em; color: var(--muted); display: block; margin-bottom: .1rem; }
.esc-val { font-size: .9rem; font-weight: 600; color: var(--charcoal); }

.esc-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: .5rem;
}
@media (max-width: 640px) { .esc-type-grid { grid-template-columns: 1fr; } }

.esc-type-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.esc-type-card:hover { border-color: var(--violet); box-shadow: 0 2px 12px rgba(108,99,255,.12); }
.esc-type-card.selected {
  border-color: var(--violet);
  border-width: 2px;
  background: var(--lavender);
  box-shadow: 0 2px 16px rgba(108,99,255,.15);
}
.esc-radio { position: absolute; opacity: 0; pointer-events: none; }
.esc-type-icon { font-size: 1.75rem; line-height: 1; }
.esc-type-title { font-size: .95rem; font-weight: 700; color: var(--charcoal); }
.esc-type-desc { font-size: .8rem; color: var(--muted); line-height: 1.55; flex: 1; }
.esc-type-badge {
  display: inline-block;
  margin-top: .4rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .18rem .6rem;
  border-radius: 20px;
  background: var(--apricot-bg);
  color: var(--apricot);
  align-self: flex-start;
}
.esc-badge-violet { background: var(--lavender); color: var(--violet); }
.esc-badge-apricot { background: var(--apricot-bg); color: var(--apricot); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #ffffff;
  border-top: 1px solid #eee;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 1.25rem; }
.footer-logo { text-decoration: none !important; }
.footer-copy { font-size: .8rem; color: var(--muted); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav-link { font-size: .8rem; color: var(--muted); transition: color .15s; }
.footer-nav-link:hover { color: var(--charcoal); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 1.75rem; }
.hero h1 { font-size: 1.7rem; font-weight: 700; color: var(--violet); }
.hero p  { color: var(--muted); margin-top: .4rem; font-size: .95rem; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.card-success  { border-color: var(--green); border-width: 2px; }
.card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--violet);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.success-title { color: var(--green); }
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  background: var(--violet);
  color: white;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-icon { font-size: 1rem; }
.optional-label { font-size: .8rem; font-weight: 400; color: var(--muted); }

/* ── Form grid ──────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Inputs ─────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .25rem; }
label { font-size: .83rem; font-weight: 500; color: var(--charcoal); }
.opt { color: var(--muted); font-weight: 400; }

input, select, textarea {
  width: 100%;
  padding: .48rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .92rem;
  font-family: inherit;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(108,99,255,.18);
}
input.autofilled { background: var(--lavender); border-color: var(--violet); }
textarea { resize: vertical; min-height: 96px; }

/* ── Upload area ────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  background: var(--bg);
  user-select: none;
}
.upload-area:hover,
.upload-area.drag-over { border-color: var(--violet); background: var(--lavender); }
.upload-area input[type="file"] { display: none; }
.upload-icon { font-size: 2.2rem; margin-bottom: .4rem; }
.upload-hint     { font-size: .88rem; color: var(--muted); }
.upload-hint strong { color: var(--violet); }
.upload-hint-sub { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.upload-status   { min-height: 1.4rem; margin-top: .6rem; font-size: .85rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary  { background: var(--violet); color: white; }
.btn-primary:hover  { background: var(--violet-dim); }
.btn-secondary { background: var(--bg); color: var(--charcoal); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: #e4e8ed; }
.btn-sm { padding: .28rem .65rem; font-size: .78rem; border: 1.5px solid var(--border); background: var(--bg); color: var(--charcoal); border-radius: 4px; }
.btn-sm:hover { background: #e4e8ed; }
.btn-full  { width: 100%; justify-content: center; padding: .78rem; font-size: 1rem; margin-top: .5rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .7rem 1rem;
  border-radius: 6px;
  font-size: .88rem;
  margin-bottom: .9rem;
}
.alert-info    { background: var(--lavender); color: var(--violet);  border: 1px solid #c5c2ff; }
.alert-success { background: #d4edda;         color: #155724;         border: 1px solid #c3e6cb; }
.alert-error   { background: #fde8e8;         color: #7b1c1c;         border: 1px solid #f5c6c6; }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 1em; height: 1em;
  border: 2px solid rgba(0,0,0,.12);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin .55s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Letter output ──────────────────────────────────────────── */
.letter-output { margin-top: 1.25rem; }
.letter-text {
  white-space: pre-wrap;
  font-family: "Courier New", Courier, monospace;
  font-size: .83rem;
  line-height: 1.75;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.15rem 1.25rem;
  max-height: 420px;
  overflow-y: auto;
}
.letter-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ── Table ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th {
  text-align: left;
  padding: .55rem .75rem;
  border-bottom: 2px solid var(--border);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  white-space: nowrap;
}
td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }
tr.row-escalated td { background: var(--apricot-bg); }
tr.row-escalated:hover td { background: #ffe8d4; }

.id-cell    { font-weight: 600; color: var(--muted); white-space: nowrap; }
.date-cell  { white-space: nowrap; color: var(--muted); font-size: .82rem; }
.text-truncate { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-footer { padding: .7rem .75rem 0; font-size: .82rem; color: var(--muted); }

/* ── Status select ──────────────────────────────────────────── */
.status-select {
  padding: .22rem .55rem;
  font-size: .8rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  color: var(--charcoal);
}
.status-select:focus { outline: none; border-color: var(--violet); }

/* ── Deadline badges ────────────────────────────────────────── */
.days { font-weight: 700; font-size: .85rem; }
.days-ok      { color: var(--green); }
.days-warn    { color: var(--apricot); }
.days-urgent  { color: var(--red); }
.days-overdue { color: var(--apricot); font-weight: 800; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--charcoal);
  color: white;
  padding: .65rem 1.1rem;
  border-radius: 6px;
  font-size: .88rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 1;
  transition: opacity .3s;
  z-index: 999;
}
.toast.fade-out { opacity: 0; }

/* ── Misc ───────────────────────────────────────────────────── */
.hidden      { display: none !important; }
.text-muted  { color: var(--muted); }
.link        { color: var(--violet); }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }

/* ── Alert warn ──────────────────────────────────────────────── */
.alert-warn { background: #fff8e1; color: #7d5a00; border: 1px solid #ffe082; }

/* ── Email send widget ───────────────────────────────────────── */
.btn-send {
  background: var(--apricot);
  color: #fff;
  border: none;
  white-space: nowrap;
}
.btn-send:hover { background: #e88848; color: #fff; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  padding: 1.75rem;
  width: 100%;
  max-width: 440px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0 .25rem;
  line-height: 1;
}
.modal-close:hover { color: var(--charcoal); }

/* ══ Landing page ═══════════════════════════════════════════════ */
.main-landing { padding: 0; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #6c63ff 0%, #5a52e0 100%);
  padding: 4.5rem 1.25rem 5rem;
  text-align: center;
  color: white;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-headline {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .85rem;
  letter-spacing: -.01em;
}
.hero-sub {
  font-size: 1.05rem;
  opacity: .85;
  margin-bottom: 2.25rem;
  font-weight: 400;
}
.search-bar {
  display: flex;
  max-width: 560px;
  margin: 0 auto 1.25rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
}
.search-bar input {
  flex: 1;
  padding: .9rem 1.25rem;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  color: var(--charcoal);
  min-width: 0;
}
.search-bar input::placeholder { color: #aaa; }
.search-bar button {
  padding: .9rem 1.6rem;
  background: var(--apricot);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.search-bar button:hover { background: #e88848; }
.hero-trust {
  font-size: .82rem;
  opacity: .72;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── Stats ──────────────────────────────────────────────────── */
.stats-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 1.25rem;
}
.stats-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat { text-align: center; padding: .4rem 2.5rem; }
.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}
@media (max-width: 540px) { .stat-divider { display: none; } .stat { padding: .6rem 1.25rem; } }
.stat-value { font-size: 1.35rem; font-weight: 700; color: var(--violet); }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: .1rem; }

/* ── Shared section helpers ─────────────────────────────────── */
.section-inner { max-width: 840px; margin: 0 auto; }
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: .4rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2rem;
}

/* ── Categories ─────────────────────────────────────────────── */
.categories-section {
  background: var(--lavender);
  padding: 3.5rem 1.25rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
@media (max-width: 600px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
.category-tile {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem .75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, color .15s;
  text-decoration: none !important;
  display: block;
  color: var(--charcoal);
}
.category-tile:hover {
  border-color: var(--violet);
  box-shadow: 0 2px 14px rgba(108,99,255,.16);
  color: var(--violet);
  text-decoration: none;
}
.category-emoji { font-size: 1.85rem; margin-bottom: .4rem; display: block; line-height: 1; }
.category-name  { font-size: .85rem; font-weight: 500; }

/* ── How it works ───────────────────────────────────────────── */
.how-section {
  background: var(--white);
  padding: 4rem 1.25rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(16.66% + 1.5rem);
  right: calc(16.66% + 1.5rem);
  height: 2px;
  background: var(--lavender);
  z-index: 0;
}
@media (max-width: 580px) { .steps-grid { grid-template-columns: 1fr; } .steps-grid::before { display: none; } }
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--lavender);
  color: var(--violet);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .9rem;
  border: 2px solid var(--violet);
}
.step-title { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.step-desc  { font-size: .87rem; color: var(--muted); line-height: 1.55; }

/* ── Why Reklo ──────────────────────────────────────────────── */
.why-section {
  background: var(--lavender);
  padding: 4rem 1.25rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow .15s;
}
.why-card:hover { box-shadow: 0 2px 12px rgba(108,99,255,.1); }
.why-icon  { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: .1rem; }
.why-title { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; color: var(--charcoal); }
.why-desc  { font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #6c63ff 0%, #5a52e0 100%);
  padding: 4rem 1.25rem;
  text-align: center;
  color: white;
}
.cta-heading { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; margin-bottom: .5rem; }
.cta-sub { opacity: .82; font-size: .95rem; margin-bottom: 1.75rem; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .9rem 2.25rem;
  background: var(--apricot);
  color: white;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s, transform .12s;
  box-shadow: 0 4px 16px rgba(255,154,92,.35);
}
.btn-cta:hover { background: #e88848; transform: translateY(-2px); }

/* ══ Featured category tile ════════════════════════════════════ */
.categories-featured-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  margin-bottom: .85rem;
}
@media (max-width: 540px) { .categories-featured-wrap { grid-template-columns: 1fr; } }
.category-tile-featured {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.75rem;
  border: 2px solid var(--apricot);
  background: var(--apricot-bg);
  border-radius: var(--radius);
  position: relative;
  color: var(--charcoal);
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.category-tile-featured:hover {
  box-shadow: 0 4px 20px rgba(255,154,92,.28);
  border-color: #e88848;
  color: var(--charcoal);
  text-decoration: none;
}
.category-featured-body { display: flex; flex-direction: column; gap: .2rem; }
.category-featured-name { font-size: 1.2rem; font-weight: 700; }
.category-featured-desc { font-size: .83rem; color: var(--muted); }
.popular-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--apricot);
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}

/* ══ Turystyka landing page ════════════════════════════════════ */
.new-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--violet);
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.category-tile-new {
  border-color: var(--violet);
  background: var(--lavender);
}
.category-tile-new:hover {
  box-shadow: 0 4px 20px rgba(108,99,255,.22);
  border-color: var(--violet-dim);
  color: var(--charcoal);
}

.hero-tourism { background: linear-gradient(135deg, #5a52e0 0%, #4a42c8 60%, #3a3ab0 100%); }
.hero-med { background: linear-gradient(135deg, #6c63ff 0%, #7b5ea7 55%, #8b4e9e 100%); }
.tourism-badge-row { margin-bottom: 1rem; }
.tourism-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: white;
  font-size: .82rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 20px;
  letter-spacing: .04em;
}

/* ── Legal section ──────────────────────────────────────────── */
.legal-section {
  background: var(--white);
  padding: 3.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 680px) { .legal-grid { grid-template-columns: 1fr; } }
.legal-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: var(--lavender);
  border: 1px solid #c5c2ff;
  border-radius: var(--radius);
}
.legal-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: .1rem; line-height: 1; }
.legal-body { display: flex; flex-direction: column; gap: .3rem; }
.legal-title { font-size: .92rem; font-weight: 700; color: var(--violet); }
.legal-desc  { font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* ── Problems grid ──────────────────────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
@media (max-width: 600px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .problems-grid { grid-template-columns: 1fr; } }
.problem-tile {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none !important;
  color: var(--charcoal);
  transition: border-color .15s, box-shadow .15s;
}
.problem-tile:hover {
  border-color: var(--violet);
  box-shadow: 0 2px 14px rgba(108,99,255,.16);
  color: var(--violet);
}
.problem-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.problem-name { font-size: .88rem; font-weight: 600; margin-bottom: .15rem; }
.problem-hint { font-size: .76rem; color: var(--muted); }

/* ── Tourism form breadcrumb ────────────────────────────────── */
.tourism-crumb { font-size: .82rem; color: var(--muted); margin-bottom: .4rem; }
.tourism-crumb a { color: var(--violet); }

/* ── Autocomplete ────────────────────────────────────────────── */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  z-index: 300;
  top: 100%;
  left: 0;
  right: 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1.5px solid var(--violet);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(108,99,255,.18);
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-list li {
  padding: .55rem .9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover,
.autocomplete-list li[aria-selected="true"] { background: var(--lavender); }
.ac-name { font-size: .9rem; font-weight: 600; }
.ac-meta { font-size: .76rem; color: var(--muted); margin-top: .1rem; }

/* ══ Landing page — Omnilexia-inspired redesign ═════════════════ */

/* ── Eyebrow label ──────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}

/* ── Shared section layout ──────────────────────────────────── */
.lp-section-inner {
  max-width: 840px;
  margin: 0 auto;
}
.lp-section-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.lp-section-sub {
  font-size: .95rem;
  color: #666;
  margin-bottom: 2.75rem;
  line-height: 1.6;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-lg { padding: .75rem 1.6rem; font-size: 1rem; }
.btn-outline-gray {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .72rem 1.4rem;
  border: 1.5px solid #d5d5d5;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 500;
  color: #444;
  background: transparent;
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-outline-gray:hover { border-color: #888; color: #1a1a1a; text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────── */
.lp-hero {
  background: #ffffff;
  padding: 6rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.lp-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.lp-hero-h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
}
.lp-hero-sub {
  font-size: 1.1rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  font-weight: 400;
}
.lp-hero-actions {
  display: flex;
  gap: .85rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.lp-search {
  display: flex !important;
  flex-direction: row;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: border-color .15s, box-shadow .15s;
}
.lp-search:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(108,99,255,.1);
}
.lp-search input {
  flex: 1;
  padding: .9rem 1.1rem;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  color: #1a1a1a;
  background: transparent;
  min-width: 0;
  width: auto !important;
}
.lp-search input::placeholder { color: #aaa; }
.lp-search button {
  display: inline-block;
  flex-shrink: 0;
  padding: .9rem 1.4rem;
  background: var(--violet);
  color: white;
  border: none;
  border-radius: 0;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.lp-search button:hover { background: var(--violet-dim); }
.lp-hero-trust {
  font-size: .8rem;
  color: #999;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── Stats (vertical) ───────────────────────────────────────── */
.lp-stats-section {
  background: #ffffff;
  padding: 5rem 2rem;
  border-bottom: 1px solid #eee;
}
.lp-stats-inner { max-width: 640px; margin: 0 auto; }
.lp-stat {
  padding: 2.5rem 0;
  border-bottom: 1px solid #eee;
}
.lp-stat:last-child { border-bottom: none; }
.lp-stat-number {
  display: block !important;
  font-size: clamp(3rem, 7vw, 4rem) !important;
  font-weight: 700;
  color: var(--violet) !important;
  line-height: 1;
  margin-bottom: .35rem;
  letter-spacing: -.02em;
}
.lp-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: .55rem;
}
.lp-stat-desc { font-size: .93rem; color: #666; line-height: 1.6; max-width: 480px; }

/* ── Categories section ─────────────────────────────────────── */
.lp-categories-section {
  background: #fafafa;
  padding: 5rem 2rem;
  border-bottom: 1px solid #eee;
}

/* ── How it works (vertical) ────────────────────────────────── */
.lp-how-section {
  background: #ffffff;
  padding: 5rem 2rem;
  border-bottom: 1px solid #eee;
}
.lp-steps-v { max-width: 640px; margin: 0 auto; }
.lp-step-v {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid #eee;
}
.lp-step-v:last-child { border-bottom: none; }
.lp-step-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--violet);
  opacity: .18;
  line-height: 1;
  flex-shrink: 0;
  width: 2.75rem;
  text-align: right;
  letter-spacing: -.02em;
}
.lp-step-content { flex: 1; }
.lp-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: .45rem;
}
.lp-step-desc { font-size: .9rem; color: #666; line-height: 1.65; }

/* ── Why Reklo (2×2 grid) ───────────────────────────────────── */
.lp-why-section {
  background: #fafafa;
  padding: 5rem 2rem;
  border-bottom: 1px solid #eee;
}
.lp-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.75rem;
}
@media (max-width: 560px) { .lp-why-grid { grid-template-columns: 1fr; } }
.lp-why-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color .15s, box-shadow .15s;
}
.lp-why-card:hover {
  border-color: #c8c3ff;
  box-shadow: 0 4px 20px rgba(108,99,255,.07);
}
.lp-why-icon { margin-bottom: 1rem; line-height: 0; }
.lp-why-icon svg {
  width: 28px !important;
  height: 28px !important;
  display: block;
  flex-shrink: 0;
}
.lp-why-title { font-size: 1rem; font-weight: 700; color: #1a1a1a; margin-bottom: .4rem; }
.lp-why-desc { font-size: .875rem; color: #666; line-height: 1.65; }

/* ── Testimonials ───────────────────────────────────────────── */
.lp-testimonials-section {
  background: #ffffff;
  padding: 5rem 2rem;
  border-bottom: 1px solid #eee;
}
.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}
@media (max-width: 560px) { .lp-testimonials-grid { grid-template-columns: 1fr; } }
.lp-testimonial {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem 1.75rem;
}
.lp-testimonial-quote {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.lp-testimonial-quote::before { content: '\201C'; }
.lp-testimonial-quote::after  { content: '\201D'; }
.lp-testimonial-author { display: flex; flex-direction: column; gap: .25rem; }
.lp-testimonial-name { font-size: .9rem; font-weight: 600; color: #1a1a1a; }
.lp-testimonial-role {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--violet);
}

/* ── CTA section ────────────────────────────────────────────── */
.lp-cta-section {
  background: var(--violet);
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}
.lp-cta-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: white;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.lp-cta-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 2rem;
}

/* ══ Porady — article list page ═══════════════════════════════ */
.porady-hero {
  background: linear-gradient(135deg, var(--lavender) 0%, #fff 100%);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.porady-hero-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(108,99,255,.1);
  padding: .28rem .85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.porady-hero-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.porady-hero-sub {
  font-size: .95rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.porady-grid-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.porady-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 680px) { .porady-grid { grid-template-columns: 1fr; } }

.porady-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  box-shadow: var(--shadow);
}
.porady-card:hover {
  border-color: var(--violet);
  box-shadow: 0 4px 24px rgba(108,99,255,.13);
  transform: translateY(-3px);
  text-decoration: none !important;
}
.porady-card-cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--violet);
}
.porady-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
}
.porady-card-summary {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.porady-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: #999;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.porady-card-read { color: var(--violet); font-weight: 600; }

/* ══ Artykuł — single article page ════════════════════════════ */
.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.article-breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--violet); }
.article-breadcrumb-sep { color: #ccc; }

.article-header { margin-bottom: 2rem; }
.article-meta-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.article-cat-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(108,99,255,.1);
  padding: .2rem .7rem;
  border-radius: 20px;
}
.article-date { font-size: .78rem; color: var(--muted); }
.article-readtime {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.article-h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.025em;
  line-height: 1.3;
  margin-bottom: .75rem;
}
.article-summary-intro {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  border-left: 3px solid var(--violet);
  padding-left: 1rem;
  margin-bottom: 0;
}

.article-body {
  font-size: .95rem;
  line-height: 1.75;
  color: #2d2d2d;
}
.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 2rem 0 .75rem;
  letter-spacing: -.015em;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 1.5rem 0 .5rem;
}
.article-body p { margin-bottom: 1rem; }
.article-intro {
  font-size: 1.05rem !important;
  color: #3d3d3d;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-body li { margin-bottom: .4rem; }
.article-steps { list-style: decimal; }
.article-steps li {
  padding-left: .25rem;
  margin-bottom: .85rem;
  line-height: 1.7;
}

.article-cta-box {
  background: var(--lavender);
  border: 1.5px solid rgba(108,99,255,.3);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.75rem;
  margin-top: 2.5rem;
  text-align: center;
}
.article-cta-box p {
  font-size: .95rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.article-cta-box .btn-primary { display: inline-flex; }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (max-width: 860px) { .article-sidebar { position: static; } }

.sidebar-cta-box {
  background: var(--violet);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.25rem;
  color: white;
  text-align: center;
}
.sidebar-cta-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
}
.sidebar-cta-box p {
  font-size: .82rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.sidebar-cta-btn {
  display: block;
  background: var(--apricot);
  color: white;
  text-decoration: none !important;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  transition: background .15s;
  text-align: center;
}
.sidebar-cta-btn:hover { background: #e88848; color: white; }

.sidebar-related {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem;
}
.sidebar-related-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sidebar-related-item {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.4;
  transition: color .15s;
}
.sidebar-related-item:hover { color: var(--violet); text-decoration: none; }
.sidebar-related-cat {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-top: .1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Related articles bottom section */
.related-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-bottom-title {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.related-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.related-bottom-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.related-bottom-card:hover {
  border-color: var(--violet);
  box-shadow: 0 2px 12px rgba(108,99,255,.1);
  text-decoration: none !important;
}
.related-bottom-cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--violet);
  display: block;
  margin-bottom: .3rem;
}
.related-bottom-ttl {
  font-size: .88rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
}
.related-bottom-time {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .4rem;
  display: block;
}
