/* ============================================
   KOLORY I ZMIENNE
   ============================================ */

:root {
  --fg: #1a1a1a;
  --subtle: #6b6b6b;
  --accent: #4da3ff;
  --accent-soft: #6ec9a5;
  --card: rgba(255, 255, 255, 0.65);
  --card-border: rgba(255, 255, 255, 0.35);
}

/* ============================================
   RESET + BODY
   ============================================ */

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

body {
  font-family: 'Outfit', sans-serif;


  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background: url("img/landscape_02.png") center/cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
}

/* półprzezroczysty gradient na wierzchu tła */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.4)
  );
  z-index: -1;
}

/* ============================================
   TYPOGRAFIA
   ============================================ */

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
}

h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 26px;
  line-height: 1.3;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
}

p {
  font-size: 16px;
  color: var(--subtle);
  margin-bottom: 16px;
  max-width: 600px;
}

/* ============================================
   HEADER + NAV
   ============================================ */

header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 1;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 16px;
  text-align: center;
}

.hero p {
  margin: 0 auto;
}

/* ============================================
   BUTTON
   ============================================ */

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ============================================
   SEKCJE
   ============================================ */

section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 16px;
}

/* ============================================
   GRID
   ============================================ */

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

/* ============================================
   KARTY – GLASSMORPHISM
   ============================================ */

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card .title {
  font-size: 18px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--fg);
}

.card button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  font-size: 15px;
  transition: background 0.2s ease;
}

.card button:hover:not(:disabled) {
  background: #3a8de0;
}

.card button:disabled {
  background: #aaa;
  cursor: default;
}

/* ============================================
   CENNIK
   ============================================ */

.price {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ============================================
   STOPKA
   ============================================ */

footer {
  text-align: center;
  padding: 40px 0;
  opacity: 0.6;
  font-size: 13px;
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */

@media (max-width: 720px) {
  .hero {
    margin: 60px auto;
  }

  h1 {
    font-size: 32px;
  }

  nav a {
    margin-left: 12px;
    font-size: 13px;
  }
}

/* LICZNIK KREDYTÓW */

.credits-box {
  display: inline-block;
  margin-left: 20px;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  backdrop-filter: blur(8px);
}

.credits-box:empty {
  display: none !important;
}


.logout {
  margin-left: 16px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  cursor: pointer;
  text-decoration: none;
  color: var(--fg);
  padding: 6px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  transition: 0.2s ease;
}

.logout:hover {
  opacity: 1;
  background: rgba(255, 140, 0, 0.15); /* pomarańczowe podświetlenie */
  border-color: rgba(255, 140, 0, 0.4); /* delikatna pomarańczowa ramka */
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  font-size: 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  color: var(--fg);
}

/* MOBILE MENU PANEL */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
  position: absolute;
  top: 70px;
  right: 16px;
  width: 200px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(14px);
  animation: fadeIn 0.25s ease;
  z-index: 999;
}

.mobile-menu a,
.mobile-menu span {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 750px) {
  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }

  header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
  }
}
