/* Fitmat: kolory i czcionki marki (z prototypu „Fitmat Sklep”) */
:root {
  --navy: #0B2A5B;
  --cyan: #0FD2FF;
  --bg: #F5F7F7;
  --surface: #FFFFFF;
  --tile: #ECEEF1;
  --ink: #14171B;
  --muted: #5B636E;
  --line: #E1E4E8;
  --accent: #0FD2FF;
  --accent-text: #0B2A5B;
  --accent-soft: #E0F8FF;
  --ok: #1E7A3E;
  --ok-soft: #E4F2E7;
  --sale: #E11D48;
  --shadow: 0 12px 40px rgba(20, 23, 27, .14);
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1113; --surface: #171A1E; --tile: #1E2227; --ink: #EEF0F2; --muted: #9AA3AE; --line: #2A2F36;
    --accent-text: #0FD2FF; --accent-soft: #0A2A33; --ok: #4CC27F; --ok-soft: #14291D;
    --shadow: 0 12px 40px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1113; --surface: #171A1E; --tile: #1E2227; --ink: #EEF0F2; --muted: #9AA3AE; --line: #2A2F36;
  --accent-text: #0FD2FF; --accent-soft: #0A2A33; --ok: #4CC27F; --ok-soft: #14291D;
  --shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* nagłówek i stopka */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 64px; }
.logo { display: block; }
.logo img { height: 34px; width: auto; display: block; }
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .on-light { display: none; }
  :root:not([data-theme="light"]) .logo .on-dark { display: block; }
}
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; padding-block: 28px; margin-top: 56px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* strona tymczasowa (do czasu przeniesienia prototypu) */
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.hero { padding-block: 56px 48px; background: radial-gradient(1200px 400px at 85% 0%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hero { padding-block: 36px 32px; } }
.badge-soon { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--cyan); border-radius: 999px; padding: 6px 12px; }
.badge-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
h1 { font-weight: 700; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.035em; margin: 16px 0 16px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: .12em; text-underline-offset: .1em; }
.lede { color: var(--muted); font-size: 17px; max-width: 52ch; margin: 0 0 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 13.5px; }
.stats dd { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.finder { box-shadow: var(--shadow); }
.finder h2, .contact h2 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 16px; }
.finder-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 480px) { .finder-fields { grid-template-columns: 1fr; } }
.finder label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.finder select { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; height: 46px; padding: 0 12px; width: 100%; }
.finder select:disabled { opacity: .55; }
.finder-result { border-top: 1px solid var(--line); padding-top: 14px; }
.finder-result > p { margin: 0 0 12px; }
.finder-ok { font-weight: 700; color: var(--ok); }
.gen-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; }
.gen-list li { background: var(--tile); border-radius: 10px; padding: 10px 12px; }
.gen-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.section { padding-block: 48px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; margin: 0 0 24px; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .type-grid { grid-template-columns: minmax(0, 1fr); } }
.type-card h3 { margin: 12px 0 6px; font-size: 17px; }
.type-card p { margin: 0; color: var(--muted); }
.type-card .type-meta { margin-top: 14px; color: var(--ink); font-size: 14px; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--accent-soft); stroke: var(--accent-text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .perks { grid-template-columns: minmax(0, 1fr); } }
.perks li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 3px solid var(--cyan); }
.perks span { color: var(--muted); }

.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brands li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.brands small { color: var(--muted); font-weight: 500; margin-left: 4px; }

.contact { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--navy); border-color: var(--navy); color: #fff; }
.contact h2 { margin-bottom: 8px; }
.contact p { margin: 0; color: #C9D3E3; max-width: 60ch; }

/* strona błędu */
.error-page { padding-block: 80px; text-align: center; }
.error-page .code { font-family: var(--mono); color: var(--accent-text); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; max-width: 100%; overflow-wrap: anywhere; border: 0; border-radius: 10px; padding: 0 20px; font-weight: 600; cursor: pointer; background: var(--cyan); color: var(--navy); text-decoration: none; }
.btn-small { min-height: 40px; font-size: 14px; padding: 0 16px; }

/* odliczanie do otwarcia: zegar z klapkami i zegar ze wskazówkami */
.countdown { background: var(--navy); color: #fff; padding-block: 40px; overflow: hidden; position: relative; }
.countdown::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(15, 210, 255, .22), transparent 65%); pointer-events: none; }
.countdown-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.countdown-head { display: flex; align-items: center; gap: 20px; }
.countdown-kicker { margin: 0; color: var(--cyan); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.countdown-date { margin: 4px 0 0; font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.02em; }

.clock { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 0 18px rgba(15, 210, 255, .35)); }
.clock-face { fill: rgba(255, 255, 255, .06); stroke: var(--cyan); stroke-width: 3; }
.clock-tick { stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-linecap: round; }
.clock-tick.major { stroke: #fff; stroke-width: 3; }
.clock-hand { stroke-linecap: round; transform-origin: 50px 50px; transform-box: view-box; }
.clock-hand.hour { stroke: #fff; stroke-width: 5; }
.clock-hand.minute { stroke: #fff; stroke-width: 3.5; }
.clock-hand.second { stroke: var(--cyan); stroke-width: 2; }
.countdown-live .clock-hand.second { transition: transform .35s cubic-bezier(.4, 2.2, .5, 1); }
.countdown-live .clock-hand.minute, .countdown-live .clock-hand.hour { transition: transform .5s ease; }
.clock-pin { fill: var(--cyan); }

.flip-clock { display: flex; gap: 14px; }
.flip-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flip-unit small { color: #C9D3E3; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.flip { --h: 84px; position: relative; width: 76px; height: var(--h); perspective: 300px; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); font: 700 46px/var(--h) var(--body); font-variant-numeric: tabular-nums; text-align: center; }
.flip .half { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: #123A73; color: #fff; }
.flip .half > span { display: block; height: var(--h); }
.flip .upper { top: 0; border-radius: 12px 12px 0 0; background: #15427F; border-bottom: 1px solid rgba(0, 0, 0, .35); }
.flip .lower { bottom: 0; border-radius: 0 0 12px 12px; }
.flip .lower > span { transform: translateY(-50%); }
.flip .leaf-front { transform-origin: 50% 100%; animation: flip-down .3s ease-in forwards; z-index: 2; backface-visibility: hidden; }
.flip .leaf-back { transform-origin: 50% 0; transform: rotateX(90deg); animation: flip-up .3s ease-out .3s forwards; z-index: 2; backface-visibility: hidden; }
@keyframes flip-down { to { transform: rotateX(-90deg); } }
@keyframes flip-up { to { transform: rotateX(0); } }
.flip::after { content: ""; position: absolute; left: -3px; right: -3px; top: calc(50% - 1px); height: 2px; background: var(--navy); z-index: 3; }

@media (max-width: 560px) {
  .countdown { padding-block: 28px; }
  .flip-clock { width: 100%; justify-content: space-between; gap: 8px; }
  .flip-unit { flex: 1; }
  .flip { --h: 64px; width: 100%; max-width: 76px; font-size: 34px; }
  .clock { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .countdown-live .clock-hand { transition: none; }
}
