:root {  --bg: #53283c;
  --primary: #d33682;
  --primary-light: #a078d6;
  --accent: #ff66cc;
  --text: #222;
  --text-light: #555;
  --border: #bdbdbd;
  --white: #d1bcc6;
  --gray-bg: #e5e5f5;
  --highlight: #3d142d;
}

@font-face {
  font-family: 'CustomFont';
  src: url('customfont.woff2') format('woff2');
  font-display: swap;
}

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

body {
  font-family: Tahoma, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

header {
  background: #e84d98;
  background: linear-gradient(0deg, rgb(156, 20, 86) 0%, rgb(233, 122, 170) 100%);
  color: white;
  text-align: center;
}

header img {
  height: 80px;
  margin-bottom: 1rem;
}

nav {
  background: linear-gradient(#5f5f5f, #242424);
  border-top: 1px solid #818181;
  border-bottom: 1px solid #1d1d1d;
  width: 100%;
  opacity: 80%;
}

nav ul {  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0;
}

nav a {  display: block;
  width: 100%;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: var(--highlight);
  color: var(--accent);
}

main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 3rem;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

section h2 {
  color: #caa5b6;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  background: linear-gradient(#6d5665, #42333f);
  border-top: 1px solid #725a69;
  border-bottom: 1px solid #1d1d1d;
  padding-bottom: 0.5rem;
  text-align: center;
  border-radius: 10px 10px 0 0;
  font-weight: 400;
}

section p{
  padding: 1.5rem;
}

.cechy {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem;
}

.cechy li {
  flex: 1 1 220px;
  background: #cfcfcf;
  background: linear-gradient(0deg, rgba(207, 207, 207, 1) 0%, rgba(255, 255, 255, 1) 100%);
  padding: 1rem;
  border: 1px solid var(--border);
  position: relative;
}

.cechy li::before {
  content: "✔ ";
  color: var(--primary);
  font-weight: bold;
}

.katalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;

}

.karta {
  background: #cfcfcf;
  background: linear-gradient(0deg, rgba(207, 207, 207, 1) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
}

.karta:hover {
  background: #eee;
  border-color: #ffbae8;
}

.karta img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.karta h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.karta p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* === BANNER === */
#banner img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.polecane-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.polecane-grid img {
  width: 300px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.3s ease;
}

.polecane-grid img:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

footer {
  background: #000000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(69, 69, 69, 0) 100%);
  color: white;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  opacity: 70%;
}

.footer-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.3rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.4rem;
}

.footer-column a {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

button {
  background: linear-gradient(to bottom, #ff99cc, #ff66cc);
  color: white;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

button:hover {
  background: linear-gradient(to bottom, #ff66cc, #ff99cc);
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--border);
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.popup-buttons a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--border);
}

.popup-buttons a:hover {
  background: var(--accent);
}

@media (max-width: 768px) {

  .polecane-grid {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .footer-sections {
    flex-direction: column;
    align-items: center;
  }
}