/* Meet Your Fortune — wspólny wygląd stron ogólnych (strona główna, cennik, konto, kontakt, regulamin, polityka).
   Ten sam język co podstrony systemów: papier, Cormorant Garamond + Manrope, szmaragd i złoto. */
:root {
  --ink: #1A1712; --muted: #6b665a; --line: #E4E0D0; --card: #ffffffcc; --gold: #A8842E; --gold-soft: #D9B65C;
  --tarot: #0E4F3C; --iching: #7A1F1C; --number: #1E2B55; --emerald: #0E4F3C; --emerald-deep: #0A3B2C;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --sans: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans);
  background: linear-gradient(180deg, #FCFBF9 0%, #FAF8ED 45%, #F3EFDE 100%); line-height: 1.6; }
.f-wrap { max-width: 1040px; margin: 0 auto; padding: 48px 16px 24px; }
.f-narrow { max-width: 760px; }
h1, h2, h3, .f-plan .name, .f-plan .price { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 12px; text-align: center; letter-spacing: .01em; }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 56px 0 12px; text-align: center; }
.f-lead { text-align: center; color: var(--muted); font-size: 17px; margin: 0 auto 36px; max-width: 620px; }
.f-kicker { text-align: center; font: 600 12px/1 var(--sans); letter-spacing: .18em; color: var(--gold); margin-bottom: 14px; }
a { color: var(--gold); }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.f-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--gold)); border-radius: 4px;
  padding: 26px 24px; display: flex; flex-direction: column; }
.f-card h3 { margin: 0 0 8px; font-size: 26px; color: var(--c); }
.f-card p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.f-card .f-fit { font-style: italic; }
.f-card ul { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.f-card .f-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.f-btn { display: block; text-align: center; text-decoration: none; padding: 12px 16px; border-radius: 2px; font: 600 14px/1.2 var(--sans);
  border: 1px solid var(--c, var(--ink)); color: var(--c, var(--ink)); background: transparent; }
.f-btn.primary { background: var(--c, var(--emerald)); color: #fff; border-color: var(--gold-soft); }
.f-btn:hover, .f-btn:focus-visible { filter: brightness(.92); }
.f-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; padding: 0; list-style: none; }
.f-steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 22px 20px; color: var(--muted); font-size: 15px; }
.f-steps li::before { content: counter(step); display: block; font: 500 32px var(--serif); color: var(--gold); margin-bottom: 4px; }
.f-steps strong { display: block; color: var(--ink); font: 500 22px var(--serif); margin-bottom: 4px; }
.f-note { max-width: 680px; margin: 28px auto; padding: 16px 20px; background: #fff8; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 14px; }
.f-center { text-align: center; }
.f-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.f-plan { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 26px 22px; text-align: center; }
.f-plan.featured { border-color: var(--gold); box-shadow: 0 10px 30px -20px rgba(0,0,0,.4); }
.f-plan .name { font: 500 28px var(--serif); }
.f-plan .note { color: var(--muted); font-size: 15px; }
.f-plan .price { font: 500 44px var(--serif); margin: 10px 0; }
.f-plan .badge { font: 600 11px/1 var(--sans); letter-spacing: .15em; color: var(--gold); margin-bottom: 8px; }
.f-plan ul { list-style: none; padding: 0; margin: 12px 0 18px; color: var(--muted); font-size: 15px; }
.f-plan button { width: 100%; padding: 12px; border-radius: 2px; border: 1px solid var(--line); background: #0000000a; color: var(--muted); font: 600 14px var(--sans); cursor: not-allowed; }
table.f-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15.5px; background: var(--card); border-radius: 10px; overflow: hidden; }
table.f-table caption { text-align: left; font: 500 26px var(--serif); padding: 18px 0 8px; color: var(--c); }
table.f-table th, table.f-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); }
table.f-table td.cost { text-align: right; white-space: nowrap; font-family: var(--sans); font-weight: 600; }
.f-doc h2 { text-align: left; font-size: 28px; margin: 36px 0 8px; }
.f-doc p, .f-doc li { color: #3a362c; font-size: 16px; line-height: 1.7; }
.f-doc .f-draft { background: #fff3cf; border: 1px solid #e6cf86; border-radius: 8px; padding: 10px 14px; font: 14px/1.5 var(--sans); color: #5a4a12; }
footer.f-foot { margin-top: 56px; padding: 40px 16px 36px; text-align: center; border-top: 1px solid var(--line); color: #b3ac9c; font: 12px/1.8 var(--sans); }
footer.f-foot a { color: #8a8478; font-size: 12.5px; text-decoration: none; margin: 0 8px; }
footer.f-foot a:hover { color: var(--emerald); }
@media (max-width: 520px) {
  .f-wrap { padding-top: 32px; }
  table.f-table th, table.f-table td { padding: 8px 10px; font-size: 14.5px; }
}

/* ───────── Strona główna ───────── */
.h-hero { position: relative; max-width: 1080px; margin: 0 auto; padding: 8px 32px 8px; text-align: center; overflow: hidden; }
.h-rings { position: absolute; left: 50%; top: 58%; width: min(860px, 130vw); transform: translate(-50%, -50%); opacity: .5; pointer-events: none; -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 68%); mask-image: radial-gradient(circle, #000 35%, transparent 68%); }
.h-hero > *:not(.h-rings) { position: relative; }
.h-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.005em; }
.h-lead { max-width: 560px; margin: 0 auto 8px; color: var(--muted); font-size: 17px; }
.h-deal { list-style: none; margin: 26px 0 0; padding: 0 0 10px; display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); }
.h-deal li { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.h-pick { transform: translateY(var(--y)) rotate(var(--r)); transition: transform .35s ease; }
.h-pick:hover, .h-pick:focus-within, .h-pick.open { transform: translateY(-8px) rotate(0); }
.h-pick { display: block; width: clamp(100px, 20vw, 196px); aspect-ratio: 230 / 340; perspective: 1100px; text-decoration: none; border-radius: 6px; cursor: pointer; }
.h-pick:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.h-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.h-pick:hover .h-inner, .h-pick:focus-within .h-inner, .h-pick.open .h-inner { transform: rotateY(180deg); }
.h-face { position: absolute; inset: 0; border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; clip-path: inset(0); }
.h-back { background: var(--c); box-shadow: 0 26px 40px -26px rgba(26,23,18,.7); }
.h-back svg { display: block; width: 100%; height: 100%; }
.h-front { transform: rotateY(180deg); background: #fffdf7; border: 1px solid var(--gold-soft); box-shadow: 0 26px 40px -26px rgba(26,23,18,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; text-align: center; }
.h-front b { font: 500 clamp(20px, 2.6vw, 28px)/1.05 var(--serif); color: var(--c); }
.h-sentence { font: 500 clamp(13px, 1.7vw, 17px)/1.3 var(--serif); color: #4a453b; }
.h-enter { margin-top: 8px; font: 600 clamp(11px, 1.25vw, 13px)/1.2 var(--sans); color: #fff; background: var(--c); border: 1px solid var(--gold-soft); border-radius: 2px; padding: 9px 12px; text-decoration: none; }
.h-enter:hover, .h-enter:focus-visible { filter: brightness(.9); }
.h-hint { display: inline-block; margin: 26px 0 0; padding: 11px 22px; border: 1px solid var(--gold-soft); border-radius: 2px; background: #fffdf4; color: #5b4a16; font-size: 14px; font-weight: 500; }
.h-main { max-width: 1080px; margin: 0 auto; padding: 24px 32px 0; }
.h-ways h2, .h-account h2 { margin: 72px 0 8px; }
.h-ways h2 { text-align: left; }
.h-way { display: grid; grid-template-columns: 230px 1fr auto; gap: 8px 40px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.h-way:last-child { border-bottom: 1px solid var(--line); }
.h-way h3 { margin: 0; font-size: 38px; }
.h-way h3 a { color: var(--c); text-decoration: none; }
.h-way p { margin: 0; color: #4a453b; font-size: 15.5px; max-width: 560px; }
.h-go { font-size: 14px; font-weight: 600; color: var(--c); text-decoration: none; white-space: nowrap; border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; }
.h-account { text-align: center; }
.h-account p { max-width: 560px; margin: 0 auto 22px; color: var(--muted); }
.h-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.h-actions .f-btn { min-width: 160px; }
@media (max-width: 760px) {
  .h-hero { padding: 20px 16px 0; }
  .h-main { padding: 12px 20px 0; }
  .h-way { grid-template-columns: 1fr; gap: 6px; }
  .h-way h3 { font-size: 32px; }
}
@media (max-width: 520px) {
  /* Na wąskim telefonie karta po rozłożeniu (flip) ma tylko ok. 100px szerokości — za mało na
     nazwę systemu + zdanie opisu + przycisk, więc tekst wylewał się poza obramowanie karty.
     Układamy karty w kolumnie i poszerzamy je, żeby po dotknięciu tekst mieścił się w środku. */
  .h-deal { flex-direction: column; align-items: center; gap: 22px; }
  .h-pick { width: min(240px, 72vw); }
  .h-front { padding: 18px 16px; gap: 6px; }
  .h-sentence { font-size: 14px; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) {
  .h-inner, .h-deal li { transition: none; }
}
