Cennik – Dworek Fantazja
/* Reset i podstawowe style */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: ‘Georgia’, serif;
background-color: #f5f2f0;
color: #2d1b14;
line-height: 1.6;
padding-top: 80px; /* Kompensacja dla fixed navbar */
}
/* Kontener główny */
.df-page-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Menu – białe tło */
.df-navbar {
background-color: #ffffff;
backdrop-filter: blur(10px);
padding: 15px 0;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 20px rgba(0,0,0,0.08);
border-bottom: 1px solid #eaeaea;
}
.df-nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
}
/* Logo – jako obrazek */
.df-logo-container {
height: 70px;
display: flex;
align-items: center;
}
.df-logo {
max-height: 70px;
max-width: 200px;
width: auto;
height: auto;
object-fit: contain;
}
/* Menu nawigacji */
.df-nav-links {
display: flex;
list-style: none;
gap: 30px;
align-items: center;
}
.df-nav-links a {
text-decoration: none;
color: #2d1b14;
font-weight: 500;
transition: color 0.3s ease;
font-size: 16px;
padding: 5px 0;
position: relative;
}
.df-nav-links a:hover {
color: #d4a574;
}
.df-nav-links a::after {
content: ”;
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background-color: #d4a574;
transition: width 0.3s ease;
}
.df-nav-links a:hover::after {
width: 100%;
}
/* Baner */
.df-header {
background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(‘
https://dworekfantazja.com/wp-content/uploads/2026/04/f2ccb-749870f2-acf4-4c4a-b80a-8afc952db0e6.jpg’);
background-size: cover;
background-position: center;
height: 300px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
position: relative;
margin-top: 0;
}
.df-header-content {
max-width: 800px;
padding: 0 20px;
}
.df-header h1 {
font-size: 42px;
margin-bottom: 15px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.df-header p {
font-size: 18px;
opacity: 0.9;
}
/* Główna treść */
.df-main-content {
flex: 1 0 auto;
width: 100%;
}
.df-content {
max-width: 1200px;
margin: 0 auto;
padding: 60px 20px;
}
/* Sekcja cennika */
.df-pricing-section {
background: white;
padding: 60px;
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0,0,0,0.1);
margin-bottom: 40px;
}
.df-pricing-section h2 {
color: #d4a574;
font-size: 36px;
margin-bottom: 40px;
text-align: center;
}
/* Karty pakietów */
.df-pricing-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin: 40px 0;
}
.df-pricing-card {
background: #f8f5f2;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
transition: transform 0.3s ease;
border: 1px solid #eae0d5;
}
.df-pricing-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.df-pricing-card.featured {
border: 2px solid #d4a574;
position: relative;
transform: scale(1.05);
}
.df-pricing-card.featured::before {
content: ‘POPULARNY’;
position: absolute;
top: 15px;
right: -30px;
background: #d4a574;
color: white;
padding: 5px 30px;
font-size: 12px;
font-weight: bold;
transform: rotate(45deg);
}
.df-pricing-header {
background: #2d1b14;
color: white;
padding: 30px;
text-align: center;
}
.df-pricing-title {
font-size: 24px;
margin-bottom: 10px;
color: #d4a574;
}
.df-pricing-price {
font-size: 42px;
font-weight: bold;
margin: 15px 0;
}
.df-pricing-period {
font-size: 16px;
opacity: 0.8;
}
.df-pricing-body {
padding: 30px;
}
.df-pricing-features {
list-style: none;
margin-bottom: 30px;
}
.df-pricing-features li {
padding: 10px 0;
border-bottom: 1px solid #eae0d5;
position: relative;
padding-left: 30px;
}
.df-pricing-features li:last-child {
border-bottom: none;
}
.df-pricing-features li::before {
content: ‘✓’;
position: absolute;
left: 0;
color: #d4a574;
font-weight: bold;
}
.df-pricing-button {
display: block;
width: 100%;
padding: 15px;
background: #d4a574;
color: white;
text-align: center;
text-decoration: none;
border-radius: 10px;
font-weight: bold;
font-size: 16px;
transition: background 0.3s ease;
border: none;
cursor: pointer;
}
.df-pricing-button:hover {
background: #b8935a;
}
/* Sekcja PDF */
.df-downloads-section {
background: white;
padding: 60px;
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0,0,0,0.1);
margin: 40px 0;
}
.df-downloads-section h2 {
color: #d4a574;
font-size: 36px;
margin-bottom: 40px;
text-align: center;
}
.df-downloads-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.df-download-card {
background: #f8f5f2;
padding: 30px;
border-radius: 15px;
text-align: center;
border-left: 5px solid #8b6f47;
transition: transform 0.3s ease;
}
.df-download-card:hover {
transform: translateY(-5px);
}
.df-download-icon {
font-size: 48px;
color: #d4a574;
margin-bottom: 20px;
}
.df-download-card h3 {
color: #2d1b14;
margin-bottom: 15px;
font-size: 22px;
}
.df-download-card p {
color: #666;
margin-bottom: 25px;
line-height: 1.6;
}
.df-download-button {
display: inline-block;
padding: 12px 30px;
background: #2d1b14;
color: white;
text-decoration: none;
border-radius: 10px;
font-weight: bold;
transition: all 0.3s ease;
border: 2px solid #2d1b14;
}
.df-download-button:hover {
background: transparent;
color: #2d1b14;
}
.df-download-size {
display: block;
margin-top: 10px;
font-size: 14px;
color: #888;
}
/* Sekcja dodatkowych usług */
.df-extras-section {
background: #f8f5f2;
padding: 60px;
border-radius: 20px;
margin: 40px 0;
}
.df-extras-section h2 {
color: #d4a574;
font-size: 36px;
margin-bottom: 40px;
text-align: center;
}
.df-extras-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
}
.df-extra-item {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
text-align: center;
}
.df-extra-icon {
font-size: 32px;
color: #d4a574;
margin-bottom: 15px;
display: block;
}
.df-extra-item h4 {
color: #2d1b14;
margin-bottom: 10px;
font-size: 18px;
}
.df-extra-price {
color: #d4a574;
font-size: 24px;
font-weight: bold;
margin-top: 10px;
}
/* Stopka */
.df-footer {
background-color: #2d1b14;
color: #f5f2f0;
text-align: center;
padding: 40px 20px;
flex-shrink: 0;
}
.df-footer-logo {
margin-bottom: 20px;
}
.df-footer-logo-img {
max-height: 60px;
width: auto;
filter: brightness(0) invert(1);
}
/* Responsywność */
@media (max-width: 768px) {
body {
padding-top: 70px;
}
.df-header h1 {
font-size: 32px;
}
.df-pricing-section,
.df-downloads-section,
.df-extras-section {
padding: 40px 20px;
}
.df-pricing-card.featured {
transform: none;
}
.df-pricing-card.featured::before {
top: 10px;
right: -25px;
padding: 5px 25px;
}
.df-nav-links {
gap: 15px;
}
.df-logo-container {
height: 40px;
}
.df-logo {
max-height: 40px;
}
}
@media (max-width: 480px) {
body {
padding-top: 60px;
}
.df-header {
height: 250px;
}
.df-nav-links {
gap: 10px;
}
.df-nav-links a {
font-size: 14px;
}
.df-pricing-grid,
.df-downloads-grid {
grid-template-columns: 1fr;
}
.df-pricing-price {
font-size: 36px;
}
}
/* Informacja kontaktowa */
.df-contact-info {
background: #d4a574;
color: #2d1b14;
padding: 40px;
border-radius: 15px;
margin-top: 40px;
text-align: center;
}
.df-contact-info h3 {
margin-bottom: 20px;
font-size: 24px;
}
.df-contact-button {
display: inline-block;
margin-top: 20px;
padding: 12px 30px;
background: #2d1b14;
color: white;
text-decoration: none;
border-radius: 10px;
font-weight: bold;
transition: all 0.3s ease;
}
.df-contact-button:hover {
background: white;
color: #2d1b14;
}
// Funkcja do łatwej zmiany logo
function changeLogo(newLogoUrl) {
const logoImage = document.getElementById(‘df-logo-image’);
if (logoImage && newLogoUrl) {
logoImage.src = newLogoUrl;
}
}
// Funkcja do zmiany linków PDF
function changePdfLinks(pdf1, pdf2, pdf3) {
const pdfLinks = document.querySelectorAll(‘.df-download-button’);
if (pdfLinks.length >= 3) {
if (pdf1) pdfLinks[0].href = pdf1;
if (pdf2) pdfLinks[1].href = pdf2;
if (pdf3) pdfLinks[2].href = pdf3;
}
}
// Przykładowe użycie – można usunąć:
// changeLogo(‘https://twoje-logo.pl/logo.png’);
// changePdfLinks(‘link1.pdf’, ‘link2.pdf’, ‘link3.pdf’);
// Obsługa kliknięcia przycisków pakietów
document.querySelectorAll(‘.df-pricing-button’).forEach(button => {
button.addEventListener(‘click’, function() {
const packageTitle = this.closest(‘.df-pricing-card’).querySelector(‘.df-pricing-title’).textContent;
alert(`Wybrano pakiet: ${packageTitle}\n\nDziękujemy za wybór! Skontaktujemy się z Tobą w ciągu 24 godzin w celu ustalenia szczegółów.`);
});
});
// Animacja kart przy scrollowaniu
const pricingCards = document.querySelectorAll(‘.df-pricing-card, .df-download-card, .df-extra-item’);
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry, index) => {
if (entry.isIntersecting) {
setTimeout(() => {
entry.target.style.opacity = ‘1’;
entry.target.style.transform = ‘translateY(0)’;
}, index * 100);
}
});
}, { threshold: 0.1 });
pricingCards.forEach((card, index) => {
card.style.opacity = ‘0’;
card.style.transform = ‘translateY(30px)’;
card.style.transition = ‘opacity 0.6s ease, transform 0.6s ease’;
observer.observe(card);
});
// Płynne przewijanie dla linków w menu
document.querySelectorAll(‘.df-nav-links a’).forEach(anchor => {
anchor.addEventListener(‘click’, function(e) {
const href = this.getAttribute(‘href’);
if (href.startsWith(‘#’)) {
e.preventDefault();
const targetElement = document.querySelector(href);
if (targetElement) {
window.scrollTo({
top: targetElement.offsetTop – 80,
behavior: ‘smooth’
});
}
}
});
});