/* Global Styles */
:root {
    --bg-color: #10161A;
    --text-color: #F3F7F0;
    --accent-1: #E83F6F;
    --accent-2: #6EEB83;
    --accent-3: #227C9D;
    --header-bg: #1a252c;
    --footer-bg: #1a252c;
    --card-bg: #192229;
    --input-bg: #141e25;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(#menu-toggle:checked) {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.container > h2, .container > p {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-2);
}

.btn {
    display: block;
    background-color: var(--accent-1);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 30px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: auto;
    max-width: max-content;
}

.btn:hover {
    background-color: var(--accent-1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 63, 111, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-1);
}

.btn-secondary:hover {
    background-color: var(--accent-1);
}

.btn-nav {
    background-color: var(--accent-1);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.menu-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle-label span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 5px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav li {
    position: relative;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--accent-2);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 22, 26, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Zalety Section */
.zalety-section {
    padding: 5rem 0;
}

.zalety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.zaleta-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.zaleta-card:hover {
    transform: translateY(-10px);
}

.zaleta-icon {
    margin-bottom: 1.5rem;
}

.zaleta-card h3 {
    color: var(--accent-2);
    margin-bottom: 1rem;
}

/* Opis usług Section */
.opis-section {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.opis-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.opis-text {
    flex: 1;
}

/* Usługi Section */
.uslugi-section {
    padding: 5rem 0;
}

.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.usluga-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: grid;
}

.usluga-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.usluga-content {
    padding: 1.5rem;
    display: grid;
}

.usluga-details {
    display: grid
;
    grid-template-columns: 1fr 2fr;
    margin: 1rem 0;
}

.usluga-price {
    font-weight: 700;
    color: var(--accent-1);
    font-size: 1.2rem;
}

/* Galeria Section */
.galeria-section {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.galeria-item {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.galeria-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-image {
    transform: scale(1.05);
}

/* Opinie Section */
.opinie-section {
    padding: 5rem 0;
}

.opinie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.opinia-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.opinia-stars {
    color: var(--accent-2);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.opinia-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.opinia-author {
    font-weight: 700;
    color: var(--accent-1);
}

/* Formularz Section */
.formularz-section {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.contact-form {
    background: var(--bg-color);
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-family: inherit;
}

.form-group select option {
    background-color: white;
    color: black;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check label {
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    display: block;
    background: var(--card-bg);
    padding: 1rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    border-radius: 5px;
}

.faq-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-arrow::before {
    content: '+';
    font-size: 1.5rem;
}

.faq-checkbox:checked + .faq-question .faq-arrow::before {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: var(--bg-color);
    transition: max-height 0.3s ease;
}

.faq-checkbox:checked + .faq-question + .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-2);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 90%;
    width: 600px;
    min-width: 300px;
    display: none;
}

.cookie-content {
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-2);
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Thank you page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 5rem auto;
    border: 1px solid var(--accent-2);
}

/* Legal Pages */
.legal-section {
    padding: 5rem 0;
}

.legal-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-container h1 {
    color: var(--accent-1);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-container p {
    margin-bottom: 1.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .opis-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .menu-toggle-label {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--card-bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    #menu-toggle:checked ~ .nav {
        right: 0;
        max-height: 100vh;
    }
    
    #menu-toggle:checked ~ .menu-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    #menu-toggle:checked ~ .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .menu-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .zaleta-card, .opinia-card, .usluga-card {
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .thanks-section {
        height: auto;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .zalety-grid, .uslugi-grid, .galeria-grid, .opinie-grid {
        grid-template-columns: 1fr;
    }
}
