/* ================================================
   KADRY I PŁACE SECTION - CSS
   Kolory: Seledyn (#1fb1c1) i Szary (#3e4f60)
   ================================================ */

.kadry-place-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    margin: 40px 0;
}

.kadry-place-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.kadry-place-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease-out;
}

.kadry-place-header h2 {
    font-size: 2.5rem;
    color: #1fb1c1;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.kadry-place-intro {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== MAIN CONTENT ===== */
.kadry-place-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(31, 177, 193, 0.1);
}

.kadry-place-content h3 {
    color: #1fb1c1;
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.kadry-place-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.kadry-place-services {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.kadry-place-services li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.kadry-place-services li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1fb1c1;
    font-weight: bold;
    font-size: 1.2rem;
}

.kadry-place-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(31, 177, 193, 0.15);
}

.kadry-place-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.kadry-place-image:hover img {
    transform: scale(1.05);
}

.kadry-place-closing {
    margin-top: 25px;
    padding: 20px;
    background: #e8f5f7;
    border-left: 4px solid #1fb1c1;
    border-radius: 4px;
    font-style: italic;
    color: #333;
}

/* ===== WHY CHOOSE US SECTION ===== */
.kadry-place-why {
    margin-bottom: 60px;
}

.kadry-place-why h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 50px;
    font-weight: 700;
}

.kadry-place-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ===== BOXES ===== */
.kadry-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
}

.kadry-box:hover {
    box-shadow: 0 8px 25px rgba(31, 177, 193, 0.2);
    border-color: #1fb1c1;
    transform: translateY(-5px);
}

.kadry-box-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1fb1c1 0%, #3e4f60 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    flex-shrink: 0;
}

.kadry-box-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.kadry-box h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.4;
}

.kadry-box-toggle {
    position: relative;
    background: #1fb1c1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    display: inline-block;
    margin-top: auto;
}

.kadry-box-toggle:hover {
    background: #3e4f60;
    transform: translateY(-2px);
}

.kadry-box-content {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e8f5f7;
    animation: slideDown 0.3s ease-out;
    text-align: justify;
    width: 100%;
}

.kadry-box.open .kadry-box-content {
    display: block;
}

.kadry-box-content p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.kadry-place-cta {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #1fb1c1 0%, #3e4f60 100%);
    border-radius: 12px;
    color: white;
    margin-top: 60px;
}

.kadry-place-cta-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 500;
}

.kadry-place-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #1fb1c1;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid white;
    cursor: pointer;
}

.kadry-place-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .kadry-place-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .kadry-place-header h2 {
        font-size: 2rem;
    }

    .kadry-place-why h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .kadry-place-section {
        padding: 40px 15px;
    }

    .kadry-place-header h2 {
        font-size: 1.8rem;
    }

    .kadry-place-intro {
        font-size: 1rem;
    }

    .kadry-place-main {
        padding: 20px;
    }

    .kadry-place-boxes {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .kadry-box {
        padding: 25px;
    }

    .kadry-box h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .kadry-place-cta {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .kadry-place-cta-text {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .kadry-place-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .kadry-place-section {
        padding: 30px 10px;
    }

    .kadry-place-header h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .kadry-place-intro {
        font-size: 0.9rem;
    }

    .kadry-place-main {
        padding: 15px;
        margin-bottom: 40px;
    }

    .kadry-place-content h3 {
        font-size: 1.1rem;
    }

    .kadry-place-services li {
        padding: 8px 0 8px 25px;
        font-size: 0.9rem;
    }

    .kadry-box {
        padding: 20px;
    }

    .kadry-box-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .kadry-box h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .kadry-place-why h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .kadry-place-cta {
        padding: 25px 15px;
    }

    .kadry-place-cta-text {
        font-size: 1rem;
    }
}


.kadry-box-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

/* Fix content overflow */
.kadry-box-content { max-height: 0; overflow: hidden; }
.kadry-box.open .kadry-box-content { max-height: 500px; }

.kadry-place-boxes {
    align-items: start !important;
}
