/* ---------- Sekcje funkcji (tekst | zdjęcie) ---------- */

.feat {
    width: 100%;
    background: #ffffff;
    padding: 80px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.feat-inner {
    width: 100%;
    max-width: 1060px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;              /* kolumna tekstu ma tę samą wysokość co zdjęcie */
}

.feat-reverse .feat-text  { order: 2; }
.feat-reverse .feat-media { order: 1; }

/* ---------- Tekst ---------- */

/* Góra: tag, nagłówek, opis, przycisk. Dół: punkty dociśnięte do dolnej krawędzi. */
.feat-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.feat-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feat-tag {
    padding: 5px 12px;
    border: 1px solid #dfe7e1;
    border-radius: 999px;
    background: #F1F5ED;
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1.5px;
    color: #101c19;
}

.feat .feat-title { margin: 16px 0 0; }
.feat .feat-desc  { margin: 18px 0 0; max-width: 480px; }

.feat-actions { margin-top: 36px; }

/* Punkty z ptaszkami (sekcja A) */
.feat-checks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.feat-checks li {
    position: relative;
    padding-left: 34px;
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #101c19;
}

.feat-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #087443 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Funkcje z ikonami (sekcja B) */
.feat-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.feat-point-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #dcefe3;
    border: 1px solid #c3e2cf;
    color: #087443;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-point-icon svg { width: 20px; height: 20px; }

.feat-point-title {
    margin: 20px 0 0;
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.3px;
    color: #101c19;
}

.feat-point-desc {
    margin: 8px 0 0;
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
    font-size: 15px;
    line-height: 23px;
    color: #6b7671;
}

/* ---------- Zdjęcie ---------- */

.feat-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    /* tło zastępcze, dopóki nie dodasz zdjęcia */
    background:
        radial-gradient(ellipse at 20% 10%, #9ed27a 0%, transparent 45%),
        radial-gradient(ellipse at 90% 80%, #2f8f4e 0%, transparent 50%),
        radial-gradient(ellipse at 60% 40%, #5fb35a 0%, transparent 60%),
        linear-gradient(135deg, #3f9a45, #1f6b3a);
}

.feat-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Okno aplikacji (sekcja A) – wychodzi poza prawą i dolną krawędź */
.feat-window {
    position: absolute;
    left: 8%;
    top: 8%;
    width: 112%;
    background: #ffffff;
    border-radius: 12px 0 0 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feat-media:hover .feat-window {
    transform: translate(-6px, -6px);
}

.feat-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid #eef2ef;
    background: #fafbfa;
}

.feat-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.feat-window-bar span:nth-child(2) { background: #febc2e; }
.feat-window-bar span:nth-child(3) { background: #28c840; }

.feat-window-url {
    margin-left: 16px;
    padding: 3px 12px;
    border-radius: 6px;
    background: #f0f3f1;
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
    font-style: normal;
    font-size: 11px;
    color: #7d8783;
}

.feat-window-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Pigułki z zespołem (sekcja B) ---------- */

.feat-people {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
}

.feat-row {
    display: flex;
    gap: 14px;
    width: max-content;
}

.feat-row.is-looping {
    animation: feat-scroll 28s linear infinite;
}

.feat-row-reverse.is-looping {
    animation-direction: reverse;
    margin-left: -120px;               /* rzędy przesunięte względem siebie jak w oryginale */
}

.feat-people:hover .feat-row {
    animation-play-state: paused;
}

@keyframes feat-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }   /* JS dubluje zawartość rzędu → -50% = płynna pętla */
}

.feat-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 22px 7px 7px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    font-family: 'Inter', 'Inter Fallback', Arial, sans-serif;
    white-space: nowrap;
}

.feat-person b {
    display: block;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #101c19;
}

.feat-person small {
    display: block;
    font-size: 12px;
    line-height: 16px;
    color: #6b7671;
}

.feat-av {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dcefe3;
    color: #087443;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-person:nth-child(3n+2) .feat-av { background: #101c19; color: #ffffff; }
.feat-person:nth-child(3n+3) .feat-av { background: #087443; color: #ffffff; }

/* ---------- Responsywność ---------- */

@media (max-width: 900px) {
    .feat {
        padding: 56px 16px;
    }

    .feat-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* telefon: tekst na górze, zdjęcie pod nim, w obu sekcjach */
    .feat-reverse .feat-text  { order: 1; }
    .feat-reverse .feat-media { order: 2; }

    .feat-text { gap: 28px; }

    .feat-media { aspect-ratio: 4 / 3.4; }

    .feat-person { padding: 5px 16px 5px 5px; gap: 10px; }
    .feat-av { width: 38px; height: 38px; font-size: 12px; }
    .feat-person b { font-size: 13px; line-height: 17px; }
    .feat-person small { font-size: 11px; }
    .feat-people, .feat-row { gap: 10px; }
}

@media (max-width: 480px) {
    .feat-points {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feat-row.is-looping { animation: none; }
    .feat-window { transition: none; }
}