/* RemiMat – wspólny wygląd strony (strona główna, sklep, panel)
   Kolorystyka: granat (tekst, przyciski) + indygo (akcent) – spójne z logo i zdjęciami.
   Motyw „kratki z zeszytu” (.grid-paper) w hero i sekcji kontaktu. */
:root {
  --bg: #F6F7FB;
  --bg-2: #EDF0F7;
  --surface: #FFFFFF;
  --ink: #0E1A3A;
  --ink-2: #1D2B57;
  --text: #3B4563;
  --muted: #6A7391;
  --line: #E2E6F0;
  --line-strong: #CBD2E1;
  --accent: #4C5FD5;
  --accent-2: #A9B3F4;
  --accent-ink: #3A4BC2;
  --accent-deep: #27348F;
  --accent-soft: #EDF0FD;
  --accent-softer: #F6F7FE;
  --violet: #7A5AF0;
  --gold: #F0B33C;
  --grad: linear-gradient(135deg, var(--accent-ink) 0%, var(--violet) 100%);
  --danger: #D2463F;
  --success: #2F8F57;
  --success-soft: #E7F4EC;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 58, .04), 0 2px 10px rgba(14, 26, 58, .05);
  --shadow: 0 1px 2px rgba(14, 26, 58, .04), 0 18px 40px rgba(14, 26, 58, .08);
  --shadow-lg: 0 2px 4px rgba(14, 26, 58, .04), 0 30px 60px -12px rgba(14, 26, 58, .18);
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body > main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.18; letter-spacing: -.018em; word-spacing: .03em; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
::selection { background: var(--accent-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* kratka z zeszytu – tło dekoracyjne */
.grid-paper { position: relative; isolation: isolate; }
.grid-paper::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line, rgba(58, 75, 194, .07)) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line, rgba(58, 75, 194, .07)) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%); }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.accent { color: var(--accent-ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(14, 26, 58, .2), 0 8px 18px -6px rgba(14, 26, 58, .35); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 1px 2px rgba(58, 75, 194, .25), 0 10px 22px -6px rgba(58, 75, 194, .5); }
.btn-primary:hover .ic { transform: translateX(2px); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -8px rgba(58, 75, 194, .55); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-outline, .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover, .btn-ghost:hover { border-color: var(--accent-2); background: var(--accent-softer); color: var(--accent-ink); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #27794A; }
.btn-link { padding: 12px 4px; background: none; color: var(--ink); }
.btn-link:hover { color: var(--accent-ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(226, 230, 240, .8); }
.nav { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.on { color: var(--accent-ink); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-link { position: relative; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); display: grid; place-items: center; transition: background .15s; }
.icon-link:hover { background: var(--bg-2); }
.icon-link .ic { width: 20px; height: 20px; }
.icon-link .avatar { width: 30px !important; height: 30px !important; font-size: 12px !important; }
.badge-count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent-ink); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.nav-actions .btn { margin-left: 8px; }
.burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; place-items: center; cursor: pointer; }
.burger:hover { background: var(--bg-2); }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 961px) { .nav-links .mobile-only { display: none; } }
@media (max-width: 960px) {
  .nav { gap: 12px; height: 64px; }
  .brand img { height: 40px; }
  .burger { display: grid; }
  .nav-actions .btn { display: none; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px rgba(14, 26, 58, .08); transform: translateY(-6px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); font-size: 16px; }
  .nav-links a:hover, .nav-links a.on { background: none; }
  .nav-links .btn { margin-top: 16px; border-bottom: 0; border-radius: 10px; color: #fff; justify-content: center; }
  .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- sekcje ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; line-height: 1.3; }
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(76, 95, 213, .15); flex-shrink: 0; }
.sec-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.025em; word-spacing: .05em; }
.sec-lead { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 16px; }
.sec-head { margin-bottom: 56px; }
.sec-head.center .sec-lead { margin-left: auto; margin-right: auto; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
@media (max-width: 760px) { .section { padding: 72px 0; } .sec-head { margin-bottom: 36px; } .sec-head-row { flex-direction: column; align-items: flex-start; margin-bottom: 32px; } }

/* ---------- animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- stopka ---------- */
.site-footer { --f-text: #A9B1CC; --f-line: rgba(255, 255, 255, .1); position: relative; overflow: hidden; background: radial-gradient(700px 320px at 100% 0%, rgba(122, 90, 240, .22), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(76, 95, 213, .18), transparent 60%), var(--ink); color: var(--f-text); padding: 64px 0 28px; font-size: 14px; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--violet) 70%, transparent); opacity: .8; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--f-text); margin-bottom: 9px; transition: color .15s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: var(--f-text); }
.footer-grid .brand { display: inline-flex; margin: 0; color: #fff; }
.footer-grid .brand span { font-size: 24px; }
.footer-grid .brand:hover { color: var(--accent-2); }
.footer-brand p { margin-top: 12px; max-width: 280px; }
.footer-grid .footer-contact a { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.footer-contact .ic { width: 16px; height: 16px; color: var(--accent-2); }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--f-line); border-radius: 10px; background: rgba(255, 255, 255, .04); display: grid; place-items: center; color: #fff; margin: 0; transition: background .15s, border-color .15s; }
.footer-social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.footer-social .ic { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--f-line); margin-top: 48px; padding-top: 22px; font-size: 13px; color: var(--f-text); }
.footer-bottom a { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- pływające ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

/* Ramka informacyjna z „i” w kółku: --warn pomarańczowa, --info niebieska */
.info-note { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; line-height: 1.55; text-align: left; }
.info-note__ic { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: Georgia, serif; font-size: 14px; font-style: italic; font-weight: 700; color: #fff; }
.info-note a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.info-note--warn { border-color: #F7C89B; background: #FFF1E3; color: #7A3C0A; }
.info-note--warn .info-note__ic { background: #C2570C; }
.info-note--info { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent-deep); }
.info-note--info .info-note__ic { background: var(--accent-ink); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 14px; padding: 13px 18px; display: flex; gap: 10px; align-items: center; box-shadow: 0 14px 34px rgba(14, 26, 58, .3); z-index: 60; font-weight: 600; font-size: 15px; }
.toast .ic { color: var(--accent-2); flex-shrink: 0; }
.toast--warn { width: min(560px, calc(100vw - 32px)); align-items: flex-start; background: #7A3C0A; font-size: 14px; font-weight: 500; line-height: 1.5; }
.toast--warn .ic { color: #FFD3A8; margin-top: 1px; }
