/* Reset i podstawowe style */
:root {
    --color-primary: #2D4B9A;
    --color-secondary: #D32F2F;
    --color-accent: #FF9800;
    --color-dark: #333333;
    --color-light: #F5F5F5;
    --color-gray: #777777;
    --color-white: #FFFFFF;
    
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

/* Importy czcionek z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

img, svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #1a3a7c;
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #b71c1c;
    color: var(--color-white);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
}

.btn-tertiary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* Nagłówki */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 1.5rem;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

/* Header i nawigacja */
header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

/* Hero */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(rgba(45, 75, 154, 0.8), rgba(45, 75, 154, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%23ffffff" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
    background-size: 20px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* Sekcje */
.section {
    padding: 80px 0;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.bg-primary h2::after {
    background-color: var(--color-white);
}

/* Content z obrazkiem */
.content-with-image {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.content-with-image .content,
.content-with-image .image {
    flex: 1;
}

.content-with-image.reverse {
    flex-direction: row-reverse;
}

.content-with-image .image {
    display: flex;
    justify-content: center;
}

/* Feature Lists */
.feature-list {
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list li i {
    margin-right: 10px;
    color: var(--color-secondary);
}

.eco-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.eco-features li {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--border-radius);
}

.eco-features li i {
    margin-right: 10px;
    color: var(--color-accent);
}

/* Comparison Grid */
.comparison-grid {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.comparison-item {
    flex: 1;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.comparison-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.comparison-item h3 {
    text-align: center;
    margin-bottom: 20px;
}

.comparison-item .image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Top Buildings */
.top-buildings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.building-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.building-image {
    background-color: var(--color-light);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.building-card h3 {
    padding: 20px 20px 10px;
    margin-bottom: 0;
}

.building-card p {
    padding: 0 20px;
    margin-bottom: 5px;
    color: var(--color-gray);
}

.building-card p:last-child {
    padding-bottom: 20px;
}

/* Newsletter */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.form-group button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
}

.form-check input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-check label {
    font-size: 0.9rem;
}

.form-check a {
    color: var(--color-white);
    text-decoration: underline;
}

.form-check a:hover {
    color: var(--color-accent);
}

/* Kontakt */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 10px;
}

.social-media {
    text-align: center;
    margin-top: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    margin-top: 15px;
    opacity: 0.8;
}

.footer-nav h3,
.footer-links h3 {
    margin-bottom: 20px;
    position: relative;
}

.footer-nav h3::after,
.footer-links h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-nav ul li,
.footer-links ul li {
    margin-bottom: 10px;
}

.footer-nav a,
.footer-links a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 15px 0;
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Cookie Settings Dialog */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    display: none;
}

.cookie-settings-content {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-light);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    font-weight: 500;
    margin-bottom: 5px;
    display: inline-block;
}

.cookie-option p {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Blog Cards */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.blog-card-image {
    height: 200px;
    background-color: var(--color-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-card-content {
    padding: 20px;
}

.blog-card h3 {
    margin-bottom: 10px;
}

.blog-meta {
    display: flex;
    align-items: center;
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-meta span {
    margin-right: 15px;
}

.blog-card p {
    margin-bottom: 20px;
}

/* Single Blog Post */
.blog-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
}

.blog-header h1 {
    max-width: 800px;
    margin: 0 auto;
}

.blog-meta-header {
    max-width: 800px;
    margin: 20px auto 0;
    display: flex;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.blog-meta-header span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.blog-meta-header i {
    margin-right: 5px;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2.5rem;
}

.blog-content h3 {
    margin-top: 2rem;
}

.blog-content ul, 
.blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content ul li, 
.blog-content ol li {
    margin-bottom: 0.5rem;
}

.blog-image {
    margin: 2rem 0;
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.blog-quote {
    border-left: 4px solid var(--color-secondary);
    padding: 1rem 0 1rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    background-color: var(--color-light);
}

.blog-author {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-light);
    display: flex;
    gap: 20px;
}

.blog-author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-author-info h3 {
    margin-bottom: 10px;
}

.blog-related {
    background-color: var(--color-light);
    padding: 60px 0;
}

.blog-related h2 {
    text-align: center;
    margin-bottom: 40px;
}

.blog-related h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 100px 0;
}

.thank-you i {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 30px;
}

.thank-you h1 {
    margin-bottom: 20px;
}

.thank-you p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    margin-bottom: 30px;
}

.legal-content h2 {
    margin-top: 40px;
}

.legal-content p, 
.legal-content ul, 
.legal-content ol {
    margin-bottom: 20px;
}

.legal-content ul, 
.legal-content ol {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-date {
    margin-top: 40px;
    font-style: italic;
    color: var(--color-gray);
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .content-with-image {
        flex-direction: column;
    }
    
    .content-with-image.reverse {
        flex-direction: column;
    }
    
    .comparison-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu li {
        margin: 10px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .form-group button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .top-buildings {
        grid-template-columns: 1fr;
    }
    
    .blog-cards {
        grid-template-columns: 1fr;
    }
}
