/*
Theme Name: Ekspert Kredytowy KR
Theme URI: https://ekspert.homerge.pl
Author: homerge
Description: Dedykowany motyw dla strony Ekspert Kredytowy – Erwina Król (Bolesławiec).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ekspert-kr
*/

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --bg: #f5f1ea;
  --bg-alt: #ffffff;
  --ink: #171717;
  --muted: #545454;
  --primary: #0b3a3a;
  --primary-2: #115151;
  --accent: #c49a4a;
  --accent-2: #a97828;
  --accent-soft: rgba(196, 154, 74, 0.16);
  --line: #e8dfd1;
  --shadow: 0 18px 40px rgba(15, 59, 59, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 59, 59, 0.08);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 12% -10%, #ffffff 0%, var(--bg) 58%, #efe8de 100%),
    radial-gradient(800px 600px at 90% 0%, rgba(196, 154, 74, 0.12), transparent 60%),
    linear-gradient(180deg, #fdfbf7 0%, var(--bg) 100%);
}
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, #ffffff 0%, #faf6f0 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid rgba(196, 154, 74, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 59, 59, 0.2);
}

.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(15, 59, 59, 0.24); }

.btn.ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(246, 243, 238, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 59, 59, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
}

.brand span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.hero {
  padding: 80px 0 96px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/hero-bg.png") center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 300px at 80% 30%, rgba(196, 154, 74, 0.16), transparent 60%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 42px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 223, 211, 0.8);
  animation: fadeUp 0.7s ease both;
}

.hero-card h1 {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 14px 0 16px;
  color: var(--primary);
}

.hero-card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: var(--primary-2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.hero-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 12px;
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-proof {
  margin-top: 26px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-proof__title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-proof__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.hero-proof__item strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
}

.hero-proof__item span {
  font-size: 14px;
  color: var(--muted);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 223, 211, 0.9);
  animation: fadeUp 0.9s ease both;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: linear-gradient(180deg, #ffffff 0%, #f9f5ef 100%);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--primary);
}

.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf6 100%);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease both;
}

.grid-3 .card:nth-child(1) { animation-delay: 0.05s; }
.grid-3 .card:nth-child(2) { animation-delay: 0.12s; }
.grid-3 .card:nth-child(3) { animation-delay: 0.18s; }
.grid-3 .card:nth-child(4) { animation-delay: 0.24s; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; color: var(--primary); }

.section-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
  color: var(--primary);
  font-family: "Playfair Display", "Georgia", serif;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.cta-band h3 { margin: 0; font-size: 26px; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-item h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--primary);
}

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  background: linear-gradient(180deg, #ffffff 0%, #fdf9f2 100%);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 15px;
}

.footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.footer-brand img {
  height: 26px;
  width: auto;
  display: block;
}

.review-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #fdf9f2 100%);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.reviews {
  display: grid;
  gap: 16px;
}

.reviews__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reviews__rating {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
}

.reviews__list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.review {
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f0 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.trust-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 24px 0;
}

.trust-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9f5ef 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.bank-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.bank-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.bank-card__logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f4efe7;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.bank-card__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.bank-card__name {
  font-weight: 600;
  color: var(--text);
}

.bank-placeholder {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.bank-tag {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(188, 132, 60, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.bank-tag--muted {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.bank-card--muted {
  opacity: 0.75;
}

.bank-subtitle {
  margin-top: 20px;
  font-weight: 600;
  color: var(--text);
}

.trust-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.trust-value span {
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.trust-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.logo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 20px;
}

.logo-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  filter: grayscale(1);
  opacity: 0.7;
}

.logo-item:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

.logo-item__label {
  font-size: 12px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item img {
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.fx-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.fx-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.fx-card strong {
  display: block;
  font-size: 18px;
  color: var(--primary);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.history-table th,
.history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.history-table th {
  background: #f8f4ec;
  color: var(--primary);
  font-weight: 700;
}

.history-table tr:last-child td {
  border-bottom: none;
}

.history-scroll {
  max-height: 420px;
  overflow: auto;
  margin-top: 16px;
}

.review__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 40px; }
  .hero-grid { gap: 24px; }
  .cta-band { align-items: stretch; }
}

@media (max-width: 700px) {
  .navbar-inner { flex-wrap: wrap; }
  .nav-cta { width: 100%; justify-content: space-between; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .card,
  .hero-card,
  .hero-photo {
    opacity: 1 !important;
    transform: none !important;
  }
}
