.piotr-header {
    background: linear-gradient(135deg, rgba(120, 151, 171, 0.1) 0%, rgba(54, 80, 91, 0.05) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.piotr-header__pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.piotr-header__pattern svg {
    width: 100%;
    height: 100%;
    transform: rotate(10deg);
}

.piotr-header__pattern path {
    fill: currentColor;
    transition: all 0.3s ease;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.piotr-header__pattern pattern > * {
    animation: floatIcons 6s ease-in-out infinite;
}

.piotr-header .container {
    position: relative;
    z-index: 1;
    max-width: 1200px; /* Zmniejszono z 1400px */
}

.piotr-search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 600px;  /* Węższy kontener wyszukiwania */
    margin: 3rem auto 0;
    margin-left: 0; /* Wyrównanie do lewej */
    padding: 30px; /* Zwiększono z 20px */
}

.piotr-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #E0DECF;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 8px;
}

.piotr-search-input-group i {
    color: #91A47A;
    font-size: 18px;
    margin: 0 12px;
}

.piotr-search-input {
    border: none;
    padding: 14px 8px;
    font-size: 16px;
    background: transparent;
    color: #36505B;
    width: 100%;
}

.piotr-search-input:focus {
    outline: none;
}

.piotr-search-button {
    background: #91A47A;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
}

.piotr-search-button:hover {
    background: #807E51;
    transform: translateY(-1px);
}

.piotr-title {
    color: #36505B;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.piotr-title .highlight {
    color: #91A47A;
}

.piotr-subtitle {
    color: #7897AB;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Autocomplete styles */
.pac-container {
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(54, 80, 91, 0.1);
}

.pac-item {
    padding: 8px 12px;
    color: #36505B;
}

.pac-item:hover {
    background-color: rgba(145, 164, 122, 0.1);
}

/* Animacja ikon */
@keyframes floatIcons {
    0% { transform: rotate(10deg) translateY(0); }
    50% { transform: rotate(10deg) translateY(-2px); }
    100% { transform: rotate(10deg) translateY(0); }
}

/* Service Illustrations */
.piotr-services-illustration {
    position: relative;
    width: 600px; /* Zwiększono z 500px */
    height: 500px; /* Zwiększono z 400px */
    margin: 0 auto;
    margin-left: auto; /* Przesunięcie w prawo */
    margin-right: -100px; /* Przesunięcie w prawo */
}

.services-circle {
    width: 100%;
    height: 100%;
    position: relative;
    animation: none; /* Wyłączenie rotacji */
}

.service-icon {
    position: absolute;
    width: 120px;  /* Zwiększono z 100px */
    height: 120px; /* Zwiększono z 100px */
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(54, 80, 91, 0.15);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center !important;
    transition: all 0.5s ease;
    transform: none !important; /* Wyłączenie rotacji */
}

.service-icon i {
    font-size: 30px;
    color: #91A47A;
    margin-bottom: 5px;
}

.service-icon span {
    font-size: 14px; /* Zwiększono z 12px */
    color: #36505B;
    font-weight: 500;
}

.service-icon small {
    font-size: 12px; /* Zwiększono z 11px */
    color: #7897AB;
    margin-top: 2px;
}

.service-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(54, 80, 91, 0.2);
}

.service-icon-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    transform: rotate(calc(-1 * var(--rotation-angle))); /* Przeciwna rotacja by tekst był poziomo */
    transform: none !important; /* Usunięcie rotacji tekstu */
}

.service-icon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    transition: all 0.5s ease;
    transform: none !important; /* Zawsze poziomo */
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Position icons in a circle - większe odstępy */
.service-icon[data-position="0"] { 
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}
.service-icon[data-position="1"] { 
    top: 20%; 
    right: -25px;
}
.service-icon[data-position="2"] { 
    bottom: 20%; 
    right: -25px;
}
.service-icon[data-position="3"] { 
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}
.service-icon[data-position="4"] { 
    bottom: 20%; 
    left: -25px;
}

.service-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Szybsza animacja */
}

.service-icon.fade-out {
    opacity: 0;
    transform: scale(0.8);
}

.service-icon.fade-in {
    opacity: 1;
    transform: scale(1);
}

.service-icon.changing .service-icon-content {
    animation: categoryExit 0.3s forwards;
}

.service-icon.changed .service-icon-content {
    animation: categoryEnter 0.3s forwards;
}

.center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: #91A47A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(145, 164, 122, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gentleFloat 2s ease-in-out infinite;
}

.center-icon i {
    font-size: 32px;
    color: white;
}

.center-icon:hover {
    transform: translate(-50%, -52%) scale(1.1); /* Delikatniejsze uniesienie */
}

/* Animation */
@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating effect for center icon */
.center-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -53%); } /* Zmniejszona amplituda */
    100% { transform: translate(-50%, -50%); }
}

/* Nowe animacje przejścia */
@keyframes categoryEnter {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes categoryExit {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
}

@keyframes gentleFloat {
    0% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -52%); }
    100% { transform: translate(-50%, -50%); }
}

/* Make it responsive */
@media (max-width: 991px) {
    .piotr-services-illustration {
        width: 300px;
        height: 300px;
        margin-top: 40px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon span {
        font-size: 11px;
    }
    
    .service-icon small {
        font-size: 10px;
    }
    
    .center-icon {
        width: 80px;
        height: 80px;
    }
    
    .center-icon i {
        font-size: 32px;
    }
}

.services-circle:hover {
    animation-play-state: paused;
}

.service-icon {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(54, 80, 91, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.service-icon-content {
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Pozycje ikon */
.service-icon[data-position="0"] { 
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
}
.service-icon[data-position="1"] { 
    top: 20%; 
    right: -25px;
}
.service-icon[data-position="2"] { 
    bottom: 20%; 
    right: -25px;
}
.service-icon[data-position="3"] { 
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
}
.service-icon[data-position="4"] { 
    bottom: 20%; 
    left: -25px;
}
