/* ==========================================================================
   Goldmania: wspólne style podstron (usługi, blog, artykuły)
   Strona główna i oferty.html mają własne style w <style>.
   ========================================================================== */

:root {
  --bg-dark: #0c0a07;
  --bg-dark-2: #15120c;
  --bg-dark-3: #1d1912;
  --gold: #d4af37;
  --gold-light: #f2de9b;
  --gold-deep: #a67c1b;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --white-soft: #efe9dc;
  --font-display: "Cormorant", "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --radius: 4px;
  --transition-fast: 200ms cubic-bezier(0.33, 1, 0.68, 1);
  --transition-med: 350ms cubic-bezier(0.33, 1, 0.68, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white-soft);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--bg-dark); }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container--narrow { max-width: 820px; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 2000;
  background: var(--gold); color: #171204;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ NAPISY OZDOBNE ============ */
/* Kreski mają stałą szerokość (flex: 0 0 42px), więc nigdy nie znikają
   ani nie wchodzą pod tekst. Gdy brakuje miejsca, ustępuje napis. */
.eyebrow {
  display: inline-flex; align-items: center; gap: clamp(8px, 1vw, 14px);
  font-size: clamp(10px, 1.05vw, 12px);
  letter-spacing: clamp(0.16em, 0.28vw, 0.34em);
  text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  max-width: 100%;
}
.eyebrow > span { min-width: 0; }
.eyebrow::before, .eyebrow::after { content: ""; flex: 0 0 42px; height: 1px; }
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
@media (max-width: 480px) {
  .eyebrow { gap: 10px; letter-spacing: 0.16em; }
  .eyebrow::before, .eyebrow::after { flex-basis: 22px; }
}

.gold-text {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 28%, var(--gold-light) 50%, var(--gold) 72%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============ PRZYCISKI ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 34px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius); cursor: pointer; border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  touch-action: manipulation; overflow: hidden; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 55%, #e8c96a);
  color: #171204;
  box-shadow: 0 8px 28px -8px rgba(212, 175, 55, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(212, 175, 55, 0.7); }
.btn-gold .shine {
  position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { left: -80%; } 75%, 100% { left: 130%; } }
.btn-ghost {
  background: transparent; color: var(--gold-light);
  border: 1px solid var(--gold-dim); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.08); transform: translateY(-2px); }
.btn svg { flex-shrink: 0; }
@media (max-width: 430px) { .btn { white-space: normal; padding: 12px 22px; text-align: center; } }

/* ============ NAWIGACJA ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--transition-med), box-shadow var(--transition-med), padding var(--transition-med);
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(12, 10, 7, 0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.18), 0 12px 40px -18px rgba(0, 0, 0, 0.8);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 3vw, 48px); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-dim); }
.nav-brand span {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--gold-light);
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: rgba(239, 233, 220, 0.78); padding: 8px 2px;
  position: relative; transition: color var(--transition-fast); white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 2px; left: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition-med);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--gold-light); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 20px;
  border: 1px solid var(--gold-dim); border-radius: var(--radius); text-decoration: none;
  color: var(--gold-light); font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap; flex-shrink: 0;
}
.nav-phone:hover { background: rgba(212, 175, 55, 0.1); border-color: var(--gold); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--gold-dim); border-radius: var(--radius);
  color: var(--gold-light); cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.nav-toggle:hover { background: rgba(212, 175, 55, 0.1); border-color: var(--gold); }
.nav-toggle .bars { position: relative; width: 20px; height: 14px; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 1px;
  background: currentColor; transition: transform var(--transition-med), opacity var(--transition-fast);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 998;
  padding: 92px 0 18px;
  background: rgba(12, 10, 7, 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(-105%);
  transition: transform var(--transition-med);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block; padding: 14px clamp(20px, 4vw, 48px);
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: rgba(239, 233, 220, 0.85);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-menu a:hover { color: var(--gold-light); background: rgba(212, 175, 55, 0.07); }

@media (max-width: 1180px) { .nav-links { gap: 18px; } .nav-brand span { font-size: 21px; letter-spacing: 0.1em; } }
@media (max-width: 1000px) { .nav-links { display: none; } .nav-toggle { display: inline-flex; } }
@media (min-width: 1001px) { .mobile-menu { display: none; } }
@media (max-width: 520px) { .nav-brand span { display: none; } }

/* ============ NAGŁÓWEK PODSTRONY ============ */
.page-head {
  position: relative;
  padding: clamp(120px, 16vw, 170px) 0 clamp(30px, 4vw, 48px);
  background: radial-gradient(900px 420px at 50% 0%, rgba(212, 175, 55, 0.1), transparent 62%), var(--bg-dark);
}
.page-head--center { text-align: center; }
.breadcrumb {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(239, 233, 220, 0.45); margin-bottom: 20px;
}
.breadcrumb a { text-decoration: none; transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--gold-light); }
.page-title {
  font-size: clamp(32px, 4.6vw, 52px);
  margin: 14px 0 18px;
  color: var(--white-soft);
}
.page-title em { font-style: italic; color: var(--gold-light); }
.page-lead {
  max-width: 680px; color: rgba(239, 233, 220, 0.75);
  font-weight: 300; font-size: 17px;
}
.page-head--center .page-lead { margin-left: auto; margin-right: auto; }

/* ============ TREŚĆ ============ */
.section { padding: clamp(50px, 7vw, 86px) 0; }
.section--alt { background: var(--bg-dark-2); }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(25px, 3vw, 33px); color: var(--white-soft);
  margin-top: 2em; margin-bottom: 0.1em; scroll-margin-top: 100px;
}
.prose h3 {
  font-family: var(--font-body); font-size: 18px; font-weight: 600;
  color: var(--gold-light); margin-top: 1.7em; margin-bottom: 0.1em;
}
.prose p { color: rgba(239, 233, 220, 0.82); font-weight: 300; }
.prose strong { color: var(--white-soft); font-weight: 500; }
.prose a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-dim); }
.prose a:hover { text-decoration-color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3em; color: rgba(239, 233, 220, 0.82); font-weight: 300; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  border-left: 2px solid var(--gold-dim); padding: 4px 0 4px 20px;
  font-family: var(--font-display); font-size: 20px; font-style: italic;
  color: var(--gold-light);
}
.prose figure { margin-top: 2em; }
.prose figure img { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(212, 175, 55, 0.16); }
.prose figcaption { font-size: 12px; color: rgba(239, 233, 220, 0.5); margin-top: 8px; }

.table-wrap { overflow-x: auto; margin-top: 1.6em; }
table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18); border-radius: 6px; overflow: hidden;
}
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(212, 175, 55, 0.12); }
th {
  background: rgba(212, 175, 55, 0.08); color: var(--gold-light);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
td { color: rgba(239, 233, 220, 0.82); font-weight: 300; }
tr:last-child td { border-bottom: none; }

/* ============ KARTY ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.015) 55%);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 10px; padding: 26px 24px;
  transition: border-color var(--transition-med), transform var(--transition-med);
}
.card:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-3px); }
.card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--gold-light); margin-bottom: 8px; }
.card p { font-size: 14px; color: rgba(239, 233, 220, 0.75); font-weight: 300; }
.card .num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--gold-dim); line-height: 1; margin-bottom: 12px;
}

/* ============ FAQ ============ */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-size: 16px; font-weight: 500; color: var(--white-soft);
  transition: color var(--transition-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 26px; color: var(--gold); line-height: 1;
  transition: transform var(--transition-med);
}
.faq details[open] summary { color: var(--gold-light); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--gold-light); }
.faq .answer { padding: 0 34px 20px 0; color: rgba(239, 233, 220, 0.78); font-weight: 300; }
.faq .answer > * + * { margin-top: 0.8em; }
.faq .answer a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ============ BLOK KONTAKTOWY / CTA ============ */
.cta-box {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.09), rgba(212, 175, 55, 0.02) 60%);
  border: 1px solid var(--gold-dim); border-radius: 12px;
  padding: clamp(28px, 4vw, 44px); text-align: center;
}
.cta-box h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.cta-box p { color: rgba(239, 233, 220, 0.78); font-weight: 300; max-width: 560px; margin: 0 auto 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.nap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(212, 175, 55, 0.14);
  font-size: 13px; color: rgba(239, 233, 220, 0.66);
}
.nap a { color: var(--gold-light); text-decoration: none; }
.nap a:hover { text-decoration: underline; }

/* ============ OPINIE ============ */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.review {
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 10px; padding: 22px 22px 20px;
}
.review .stars { color: var(--gold); letter-spacing: 3px; font-size: 13px; margin-bottom: 10px; }
.review p { font-size: 14px; color: rgba(239, 233, 220, 0.82); font-weight: 300; font-style: italic; }
.review .who { margin-top: 12px; font-size: 12px; color: rgba(239, 233, 220, 0.55); font-style: normal; }

/* ============ LISTA WPISÓW BLOGA ============ */
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.015) 55%);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 10px; padding: 26px 24px 24px;
  transition: border-color var(--transition-med), transform var(--transition-med);
}
.post-card:hover { border-color: rgba(212, 175, 55, 0.42); transform: translateY(-3px); }
.post-card .tag {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.post-card h2, .post-card h3 {
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  line-height: 1.4; margin-bottom: 10px;
}
.post-card h2 a, .post-card h3 a { color: var(--white-soft); text-decoration: none; }
.post-card:hover h2 a, .post-card:hover h3 a { color: var(--gold-light); }
.post-card p { font-size: 14px; color: rgba(239, 233, 220, 0.72); font-weight: 300; flex: 1; }
.post-card .meta { margin-top: 16px; font-size: 12px; color: rgba(239, 233, 220, 0.5); }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 12px; color: rgba(239, 233, 220, 0.55);
  letter-spacing: 0.04em;
}

.related {
  margin-top: clamp(40px, 6vw, 64px); padding-top: 28px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}
.related h2 { font-family: var(--font-body); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.related ul { list-style: none; }
.related li + li { margin-top: 10px; }
.related a { color: rgba(239, 233, 220, 0.85); text-decoration: none; font-size: 15px; }
.related a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ============ STOPKA ============ */
.footer-nav {
  background: var(--bg-dark-2); border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: clamp(38px, 5vw, 56px) 0 clamp(30px, 4vw, 40px);
}
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
.footer-cols h3 {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.footer-cols ul { list-style: none; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a, .footer-cols p {
  font-size: 14px; color: rgba(239, 233, 220, 0.68);
  text-decoration: none; font-weight: 300;
}
.footer-cols a:hover { color: var(--gold-light); }

footer {
  background: #080604; border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: 26px 0; font-size: 13px; color: rgba(239, 233, 220, 0.62);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-inner a { color: rgba(239, 233, 220, 0.65); text-decoration: none; }
.footer-inner a:hover { color: var(--gold-light); }

/* ============ MOBILNY PASEK POŁĄCZENIA ============ */
.mobile-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  display: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 10, 7, 0.9); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}
.mobile-call a { width: 100%; }
@media (max-width: 640px) { .mobile-call { display: block; } body { padding-bottom: 78px; } }

/* ============ ZIARNO ============ */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 700; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
