/* Globalne style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Nagłówek */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo span {
    color: #3498db;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Usługi */
.services {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 50px;
    color: #3498db;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* O nas */
.about {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Opinie */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: #3498db;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 10px;
}

.testimonial-card p {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.author-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    font-style: normal;
}

.rating {
    color: #f39c12;
    margin-top: 5px;
}

/* Aktualności */
.news {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.news-content p {
    margin-bottom: 15px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

/* Lokalizacja */
.location {
    padding: 80px 0;
    background-color: white;
}

.location-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 24px;
    color: #3498db;
    margin-right: 15px;
    width: 30px;
}

/* Stopka */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #3498db;
    bottom: 0;
    left: 0;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

/* Dodatkowe style dla karuzeli opinii */
.testimonials-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.testimonials-nav button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: all;
}

.testimonials-nav button:hover {
    background: rgba(0,0,0,0.8);
}

.testimonials-nav button[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .testimonial-card {
        flex: 0 0 50%;
    }
}

@media (max-width: 600px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

/* animacje dla kotwic */
a[href^="#"] {
  transition: all 0.3s ease;
}

a[href^="#"]:hover {
  color: #4a90e2;
  transform: translateY(-2px);
}
html {
  scroll-behavior: smooth;
}
