/* Ogólny reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* Kolory */
:root {
    --primary-color: #e63946;
    --secondary-color: #457b9d;
    --accent-color: #f1faee;
    --dark-color: #1d3557;
    --light-color: #a8dadc;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.5s ease;
}

/* Header */
header {
    background: var(--dark-color);
    color: var(--accent-color);
    padding: 20px 0;
}

header .logo img {
    width: 150px;
    display: block;
    margin: 0 auto;
}

header ul.menu {
    list-style: none;
    text-align: center;
    margin-top: 20px;
}

header ul.menu li {
    display: inline-block;
    margin-right: 20px;
}

header ul.menu li a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

header ul.menu li a:hover {
    color: var(--primary-color);
}

/* Hero section */
#hero {
    background: url('images/piano-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

#hero .hero-content {
    animation: fadeInUp 1.5s ease;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cta-button {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sekcje */
.section {
    padding: 60px 0;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* O mnie */
#about .about-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

#about img {
    width: 300px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Oferta edukacyjna */
#offer .offer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.offer-card {
    background: var(--light-color);
    padding: 20px;
    width: 30%;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: scale(1.05);
}

.offer-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Aktualności */
#news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Galeria */
#gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

#gallery .gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s;
}

#gallery .gallery-grid img:hover {
    transform: scale(1.05);
}

/* Kontakt */
#contact .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact input, #contact textarea {
    width: 80%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.submit-button {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
}
