/* Footer */
.footer {
    background-color: #f8f5ef;
    padding: 60px 0 20px;
    font-family: 'Cinzel', serif;
    color: #565656;
}

.footer-top {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 120px;
    margin: 0 auto 20px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-title h3 {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #565656;
}

.footer-contact-bar {
    background-color: #f9f7f2;
    border: 1px solid #e9e5dc;
    border-radius: 50px;
    padding: 20px 30px;
    text-align: center;
    margin-bottom: 40px;
}

.footer-contact-bar h4 {
    font-size: 16px;
    color: #8a7f66;
    margin-bottom: 10px;
}

.contact-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.contact-label {
    color: #8a7f66;
}

.contact-item a {
    color: #565656;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.footer-locations {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.location-item h5 {
    font-size: 15px;
    color: #565656;
    margin-bottom: 15px;
    font-weight: 600;
}

.location-item h6 {
    font-size: 14px;
    color: #8a7f66;
    margin: 15px 0 5px;
    font-weight: 500;
}

.location-item p {
    font-size: 13px;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.location-item a {
    color: #565656;
    transition: color 0.3s;
}

.location-item a:hover {
    color: var(--primary-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f1eee7;
    border-radius: 50%;
    color: #8a7f66;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-info {
    margin-bottom: 40px;
}

.company-info h5 {
    font-size: 15px;
    color: #565656;
    margin-bottom: 15px;
    font-weight: 600;
}

.company-info p {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

.footer-links {
    margin-bottom: 50px;
}

.footer-links h5 {
    font-size: 15px;
    color: #565656;
    margin-bottom: 15px;
    font-weight: 600;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.links-container a {
    color: #565656;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
    padding: 5px 0;
}

.links-container a:hover {
    color: var(--primary-color);
}

.footer-partners {
    margin-bottom: 50px;
}

.footer-partners h5 {
    font-size: 15px;
    color: #565656;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.partners-slider {
    position: relative;
    padding: 0 40px;
}

.partners-track {
    display: flex;
    gap: 30px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.partner-item {
    text-align: center;
    padding: 15px;
    min-width: 120px;
}

.partner-item img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.partner-item span {
    display: block;
    font-size: 12px;
    color: #8a7f66;
}

.partners-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.partner-prev,
.partner-next {
    width: 36px;
    height: 36px;
    background-color: #f1eee7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8a7f66;
    transition: all 0.3s;
}

.partner-prev:hover,
.partner-next:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    /*display: flex;
    justify-content: space-between;
    align-items: center;*/
    padding-top: 20px;
    border-top: 1px solid #e9e5dc;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
}

.footer-bottom p {
    color: #8a7f66;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #8a7f66;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .farewell-container {
        max-width: 700px;
        padding: 50px 30px;
    }

    .testimonials-container {
        gap: 30px;
    }

    .testimonials-image {
        height: 450px;
    }

    .testimonial-item {
        padding: 25px;
    }

    .footer-locations {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .farewell-container {
        max-width: 600px;
        padding: 40px 20px;
        border-radius: 300px;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .testimonials-image {
        height: 400px;
        max-width: 700px;
        margin: 0 auto;
    }

    .testimonial-item.next {
        display: none;
    }

    .contact-items {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-contact-bar {
        padding: 15px;
        border-radius: 15px;
    }

    .links-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .farewell-container {
        max-width: 90%;
        padding: 40px 20px;
        border-radius: 50px;
    }

    .ribbon-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        top: -35px;
    }

    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-image {
        height: 350px;
    }

    .testimonial-item {
        padding: 20px;
    }

    .footer-locations {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .farewell-container {
        padding: 30px 15px;
        border-radius: 30px;
    }

    .ribbon-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        top: -30px;
    }

    .farewell-container p {
        font-size: 14px;
    }

    .testimonials-image {
        height: 300px;
    }

    .testimonial-item {
        padding: 15px;
        min-height: 320px;
    }

    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testimonial-content {
        font-size: 14px;
    }

    .links-container {
        grid-template-columns: 1fr;
    }

    .partner-item {
        min-width: 100px;
    }
}

/* Sekcja Opinie */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--background-gray);
    position: relative;
}

.testimonials-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
    align-items: center;
}

.testimonials-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 500px;
}

.testimonials-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-carousel {
    position: relative;
    padding: 40px 0;
    min-height: 380px;
}

.testimonial-items {
    display: flex;
    position: relative;
    gap: 30px;
}

.testimonial-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    opacity: 0;
    transition: all 0.5s ease;
    flex: 1;
    display: none;
}

.testimonial-item.current {
    display: block;
    opacity: 1;
    z-index: 10;
}

.testimonial-item.next {
    display: block;
    opacity: 0.5;
    filter: blur(1px);
    z-index: 5;
}

.testimonial-date {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.testimonial-content {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.testimonial-content p {
    margin-bottom: 0;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.testimonial-rating {
    color: var(--primary-color);
    font-size: 16px;
    letter-spacing: 2px;
}

.testimonial-controls {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    background-color: var(--background-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: white;
}

.testimonials-footer {
    text-align: center;
    margin-top: 60px;
}

.testimonials-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.testimonials-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.testimonials-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}