/* ==========================================================================
   metodAI — arkusz stron marki: / (strona główna) i /reservations/
   --------------------------------------------------------------------------
   Paleta i krój wspólne z odzyskaną stroną /lead_dashboard/ (tło #0b0f14,
   akcent #7c8cff, Inter). Strona Reservations ma własny akcent (ciepły), żeby
   była rozpoznawalnie inna, ale wciąż z tej samej rodziny.
   Rytm sekcji jest celowo zwarty — bez dużych pustych obszarów między nimi.
   ========================================================================== */

/* ---------- Fonty (self-hosted, variable) — te same pliki co na /lead_dashboard/ ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0f14;
  --bg-2: #10151c;
  --bg-3: #151b23;
  --line: #232a34;
  --line-2: #2d3541;
  --text: #f2f5f8;
  --soft: #c3ccd8;
  --muted: #93a0b1;
  --fine: #8b95a3;
  --accent: #7c8cff;
  --accent-soft: #aab4ff;
  --warm: #e3a15e;
  --warm-soft: #f0c08a;
  --ok: #4bd39a;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  /* rytm sekcji — zwarty, wspólny dla / i /reservations/ */
  /* Odstępy między sekcjami zmniejszone o ok. 18% względem poprzednich wartości
     (46/4.6vw/72 → 38/3.8vw/59 i 34/3.4vw/54 → 28/2.8vw/44). Odstępy wewnątrz
     kart, --head-gap i formularz kontaktowy zostają bez zmian. */
  --section-y: clamp(38px, 3.8vw, 59px);
  --section-y-tight: clamp(28px, 2.8vw, 44px);
  --head-gap: clamp(22px, 2.4vw, 34px);
}

/* Strona Reservations: własny akcent (ciepły) — reszta tokenów wspólna. */
.is-reservations {
  --accent: #e3a15e;
  --accent-soft: #f0c08a;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #0b0f14; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Skip-link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 120;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: #0b0f14; font-weight: 600; text-decoration: none;
  transition: top 0.16s ease;
}
.skip-link:focus, .skip-link:focus-visible { top: 16px; outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Nagłówek i nawigacja ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 20, 0.86);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 15, 20, 0.96); background: color-mix(in srgb, var(--bg) 94%, transparent); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: 9px;
  font-size: 0.94rem; font-weight: 500; color: var(--soft);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: inherit; transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-list > li > a:hover, .menu-btn:hover { color: var(--text); background: var(--bg-3); }
.nav-list a[aria-current], .nav-list > li > a.is-active { color: var(--text); }
.menu-btn .caret { transition: transform 0.2s ease; }
.has-menu.is-open .menu-btn { color: var(--text); background: var(--bg-3); }
.has-menu.is-open .menu-btn .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 268px;
  list-style: none; margin: 0; padding: 8px;
  display: none; z-index: 110;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.has-menu.is-open .submenu { display: block; }
.submenu a { display: block; padding: 11px 13px; border-radius: 10px; text-decoration: none; transition: background-color 0.16s ease; }
.submenu a:hover, .submenu a:focus-visible { background: var(--bg-3); }
.submenu .sm-name { display: block; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.submenu .sm-desc { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer; color: var(--soft);
}
.nav-toggle:hover { color: var(--text); }
.nav-toggle .bars { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    display: none; margin: 0; padding: 14px var(--gutter) 22px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a, .menu-btn { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .submenu { position: static; display: none; min-width: 0; margin: 4px 0 8px; box-shadow: none; }
  .has-menu.is-open .submenu { display: block; }
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 0.97rem; font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: inherit; transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #0b0f14; }
.btn-primary:hover { background: var(--accent-soft); color: #0b0f14; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Przycisk demo: widoczny, ale nieaktywny, dopóki nie ma adresu demo. */
.btn-demo[aria-disabled="true"] {
  border-style: dashed; border-color: var(--line-2);
  color: var(--muted); background: transparent; cursor: not-allowed;
}
.btn-demo[aria-disabled="true"]:hover { transform: none; background: transparent; }

/* ---------- Hero ---------- */
.hero-brand { padding-block: clamp(43px, 5.3vw, 79px) clamp(25px, 2.6vw, 43px); position: relative; overflow: hidden; }
.hero-brand::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 460px; pointer-events: none;
  background: radial-gradient(46% 60% at 50% 30%, rgba(124, 140, 255, 0.16), transparent 70%);
}
.is-reservations .hero-brand::before { background: radial-gradient(46% 60% at 50% 30%, rgba(227, 161, 94, 0.14), transparent 70%); }
.hero-inner { position: relative; display: grid; gap: 20px; text-align: center; justify-items: center; }
.hero-brand h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 20ch; }
.hero-brand h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 1.35vw, 1.16rem); color: var(--soft); max-width: 66ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

.eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}

/* ---------- Sekcje ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--flush { padding-top: 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 68ch; margin-bottom: var(--head-gap); }
.section-head h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
.section-head p { margin-top: 14px; color: var(--soft); }
.lead { font-size: 1.03rem; color: var(--soft); }
.prose p + p { margin-top: 14px; }
.prose { max-width: 74ch; }

/* ---------- Sekcja kompetencji ---------- */
.competence { display: grid; gap: clamp(24px, 3vw, 44px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .competence { grid-template-columns: 1fr; } }
.competence h2 { font-size: clamp(1.5rem, 2.9vw, 2.3rem); max-width: 24ch; }
/* Okna tego panelu używają tych samych komponentów co „Co automatyzujemy?”
   (.auto-grid--2 + .auto-item) — nie utrzymujemy drugiego zestawu stylów. */

/* ---------- Co automatyzujemy ---------- */
.auto-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .auto-grid { grid-template-columns: 1fr; } }
.auto-item { padding: 20px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); }
.auto-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.auto-item p { color: var(--muted); font-size: 0.93rem; }
.note { margin-top: 18px; padding: 16px 18px; border-left: 2px solid var(--accent); background: var(--bg-3); border-radius: 0 var(--radius) var(--radius) 0; color: var(--soft); font-size: 0.94rem; }

/* ---------- Produkty ---------- */
.system { display: grid; gap: clamp(24px, 3.2vw, 46px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; padding-block: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.system:first-of-type { border-top: 0; padding-top: 0; }
.system--flip .system-body { order: 2; }
.system--flip .system-media { order: 1; }
@media (max-width: 900px) {
  .system { grid-template-columns: 1fr; gap: 22px; }
  .system--flip .system-body, .system--flip .system-media { order: initial; }
}
.system-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.system-body h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 10px 0 12px; }
.system-body .system-problem { color: var(--soft); }
.benefit-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.benefit-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--soft); font-size: 0.95rem; }
.benefit-list li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.system-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--accent); font-weight: 600; text-decoration: none; }
.system-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Potok działania (realny przebieg w Lead Dashboard) */
.pipeline { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; }
.pipeline li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; font-size: 0.79rem; color: var(--soft); }
.pipeline li .p-n { font-size: 0.68rem; font-weight: 700; color: var(--accent); }
.pipeline li.hitl { border-color: var(--accent); color: var(--text); }

/* Prawdziwy zrzut produktu */
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.shot img { width: 100%; height: auto; }
.shot + .shot { margin-top: 14px; }
.shot-caption { padding: 12px 16px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }
.shots { display: grid; gap: 14px; }
@media (min-width: 760px) { .shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Proces w praktyce ---------- */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 20px 18px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); }
.steps .st-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #0b0f14; font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.steps h3 { font-size: 1rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Oferta / CTA ---------- */
.cta-band {
  display: grid; gap: 20px; grid-template-columns: minmax(0, 1.2fr) auto; align-items: center;
  padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: var(--bg-2);
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
.cta-band p { margin-top: 10px; color: var(--soft); max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Kontakt i formularz ---------- */
.contact-brand { padding-block: var(--section-y); }
.contact-grid { display: grid; gap: clamp(24px, 3vw, 44px); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 30px); background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--soft); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 0.95rem;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.18); }
.field.has-error input, .field.has-error textarea { border-color: #ff6b6b; }
.field .error { font-size: 0.83rem; color: #ff9b9b; }
.field .error:empty { display: none; }
.field--check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.field--check label { font-weight: 500; font-size: 0.9rem; color: var(--muted); }
.field--check .error { grid-column: 1 / -1; }

/* Odstępy pomocnicze (bez stylów inline w HTML) */
.prose--spaced { margin-top: 18px; }
.shot--spaced { margin-top: 14px; }
.fine--spaced { margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 13px 16px; border-radius: 10px; font-size: 0.92rem; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: rgba(75, 211, 154, 0.12); border: 1px solid rgba(75, 211, 154, 0.4); color: #a7f0cd; }
.form-status.is-error { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffc4c4; }
.fine { font-size: 0.82rem; color: var(--muted); }
.form .fine { margin-top: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.contact-aside { display: grid; gap: 14px; }
.contact-card { padding: 20px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h3 { font-size: 1rem; margin-bottom: 12px; }
.contact-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--soft); font-size: 0.92rem; }
.mail-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.mail-link:hover, .mail-link:focus-visible { text-decoration-thickness: 2px; }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(30px, 4vw, 48px); }
.footer-grid { display: grid; gap: 26px; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 0.9rem; max-width: 44ch; }
.footer-col h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--soft); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; color: var(--muted); font-size: 0.84rem; }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal,
.reveal-fallback .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Drobne ---------- */
.notice { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 15px 18px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); color: var(--soft); font-size: 0.93rem; }
.notice .mark { color: var(--accent); }
