/* Base Styles */
:root {
    --primary-color: #dc143c;    /* Polish flag red */
    --primary-color-light: rgba(220, 20, 60, 0.1);
    --secondary-color: #f8f8f8;  /* Light background */
    --text-color: #333333;
    --text-light-color: #777777;
    --white-color: #ffffff;
    --border-color: #dddddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-primary: 'Arial', sans-serif;
    --font-heading: 'Arial', sans-serif;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

h6 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 2rem;
}

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

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

ul, ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section:nth-child(even) {
    background-color: var(--secondary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    height: 5rem;
    display: flex;
    align-items: center;
}

.logo svg {
    height: 100%;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 0.3rem;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 1rem;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 15rem 0 10rem;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900"><rect width="1600" height="900" fill="%23dc143c"/><rect y="450" width="1600" height="450" fill="%23ffffff"/></svg>') center/cover no-repeat;
    color: var(--white-color);
    text-align: center;
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 4rem;
}

/* Content Sections */
.about-content, .contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-text, .contact-info {
    flex: 1;
    min-width: 30rem;
    padding-right: 4rem;
}

.about-image, .contact-map {
    flex: 1;
    min-width: 30rem;
    text-align: center;
}

.about-image svg, .contact-map svg {
    max-width: 100%;
    height: auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.grid-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.grid-item svg {
    margin-bottom: 2rem;
}

.grid-item h3 {
    margin-bottom: 1.5rem;
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    background-color: var(--primary-color-light);
}

.newsletter p {
    max-width: 60rem;
    margin: 0 auto 4rem;
}

.form-group {
    margin-bottom: 2rem;
}

input, select, textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-family: var(--font-primary);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox {
    display: flex;
    align-items: center;
    text-align: left;
}

.checkbox input {
    width: auto;
    margin-right: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-small {
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
}

/* Social Media */
.social-media ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.social-media ul li {
    margin-right: 2rem;
}

.social-media ul li a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-media ul li a:hover {
    color: var(--primary-color);
}

.social-media ul li a svg {
    margin-right: 0.8rem;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white-color);
    padding: 5rem 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

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

.footer-column ul li a {
    color: var(--white-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 2rem;
}

.cookie-content {
    max-width: 120rem;
    margin: 0 auto;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-buttons button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-buttons button:hover {
    background-color: var(--text-color);
}

.cookie-settings {
    max-width: 120rem;
    margin: 2rem auto 0;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-option input {
    margin-right: 1rem;
    width: auto;
}

.hidden {
    display: none;
}

/* Thank You Page */
.thank-you {
    padding: 15rem 0 8rem;
}

.thank-you-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.thank-you-content svg {
    margin-bottom: 3rem;
}

.thank-you-info {
    margin: 4rem 0;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    text-align: left;
}

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

/* Legal Pages */
.legal-content h1 {
    margin-top: 10rem;
    margin-bottom: 4rem;
}

.last-updated {
    margin-bottom: 4rem;
    color: var(--text-light-color);
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    margin-bottom: 2rem;
    font-size: 2.4rem;
}

.legal-section p, .legal-section ul, .legal-section ol {
    margin-bottom: 1.5rem;
}

.cookie-settings-container {
    margin-top: 6rem;
    padding: 3rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
}

.cookie-description {
    margin-left: 2.5rem;
    font-size: 1.4rem;
    color: var(--text-light-color);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    nav {
        position: fixed;
        top: 7rem;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        padding: 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .about-text, .contact-info {
        padding-right: 0;
        margin-bottom: 4rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .newsletter {
        padding: 6rem 0;
    }
    
    input, select, textarea {
        padding: 1rem;
    }
    
    .btn {
        padding: 1rem 2rem;
    }
}
