/* Linija učenja: kratka uvodna koreografija, napredak i ritam beležnice. */
.pl-progress {
    --pl-progress: 0;
    position: fixed;
    inset: 0 0 auto;
    z-index: 11000;
    height: 3px;
    background: linear-gradient(90deg, #2857e8, #f05a42 68%, #f5c84c);
    transform: scaleX(var(--pl-progress));
    transform-origin: left;
    pointer-events: none;
}

.pl-intro {
    position: fixed;
    inset: 0;
    z-index: 10990;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 11px;
    color: #0b1533;
    background: #fff;
    pointer-events: none;
    animation: pl-intro-izlaz 220ms cubic-bezier(.65, 0, .35, 1) 300ms both;
}

.pl-intro__ime {
    font-size: clamp(1.1rem, 3vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -.025em;
    animation: pl-intro-ime 330ms cubic-bezier(.16, 1, .3, 1) both;
}

.pl-intro__olovka {
    width: 44px;
    height: 12px;
    border-radius: 2px 7px 7px 2px;
    background: linear-gradient(90deg, #f5c84c 0 70%, #f05a42 70% 84%, #2857e8 84%);
    transform: rotate(-8deg);
    animation: pl-intro-olovka 380ms cubic-bezier(.16, 1, .3, 1) both;
}

.pl-intro__linija {
    width: 132px;
    height: 2px;
    background: #2857e8;
    transform-origin: left;
    animation: pl-intro-linija 380ms cubic-bezier(.65, 0, .35, 1) both;
}

@keyframes pl-intro-ime { from { opacity: 0; transform: translateY(7px); } }
@keyframes pl-intro-olovka { from { opacity: 0; transform: translate(-34px, 9px) rotate(-8deg); } }
@keyframes pl-intro-linija { from { transform: scaleX(0); } }
@keyframes pl-intro-izlaz { to { opacity: 0; visibility: hidden; transform: translateY(-9px); } }

.pl-vodic {
    --pl-progress: 0;
    position: fixed;
    top: 16vh;
    left: max(20px, calc((100vw - 1280px) / 2));
    z-index: 80;
    display: none;
    width: 34px;
    height: 68vh;
    pointer-events: none;
}

.pl-vodic__margina {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: linear-gradient(to bottom, #f05a42 calc(var(--pl-progress) * 100%), rgba(40, 87, 232, .16) 0);
}

.pl-vodic__margina::after {
    content: '';
    position: absolute;
    inset: 0 -9px;
    background: repeating-linear-gradient(to bottom, transparent 0 28px, rgba(40, 87, 232, .12) 28px 29px);
}

.pl-vodic__olovka {
    position: absolute;
    top: calc(var(--pl-progress) * 100%);
    left: 5px;
    width: 22px;
    height: 7px;
    border-radius: 2px 5px 5px 2px;
    background: linear-gradient(90deg, #f5c84c 0 72%, #f05a42 72%);
    box-shadow: 0 3px 12px rgba(11, 21, 51, .2);
    transform: translateY(-50%) rotate(-18deg);
}

.pl-motion-ready [data-pl-motion] {
    opacity: 0;
    transition: opacity .48s ease var(--pl-delay, 0ms), transform .62s cubic-bezier(.16, 1, .3, 1) var(--pl-delay, 0ms), clip-path .62s cubic-bezier(.16, 1, .3, 1) var(--pl-delay, 0ms);
}

.pl-motion-ready [data-pl-motion="papir-levo"] { transform: translate3d(-18px, 12px, 0) rotate(-.7deg); }
.pl-motion-ready [data-pl-motion="papir-desno"] { transform: translate3d(18px, 12px, 0) rotate(.7deg); }
.pl-motion-ready [data-pl-motion="naslov"] { clip-path: inset(0 0 100%); transform: translateY(10px); }
.pl-motion-ready [data-pl-motion="linije"] { clip-path: inset(0 0 0 100%); }
.pl-motion-ready [data-pl-motion].pl-motion-in { opacity: 1; clip-path: inset(0); transform: none; }

form :where(input, textarea, select)[data-pl-popunjeno] {
    border-color: #2857e8 !important;
    box-shadow: inset 3px 0 0 #f5c84c;
}

@media (min-width: 1280px) {
    .pl-vodic { display: block; }
}

@media (max-width: 700px) {
    .pl-motion-ready [data-pl-motion="papir-levo"],
    .pl-motion-ready [data-pl-motion="papir-desno"] { transform: translateY(11px); }
}

@media (prefers-reduced-motion: reduce) {
    .pl-intro,
    .pl-progress,
    .pl-vodic { display: none !important; }

    .pl-motion-ready [data-pl-motion] {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
    }

    .stat-item,
    [data-parallax] {
        transform: none !important;
    }
}

/* Radni sto, papir i beleške čine prepoznatljiv okvir početne strane. */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background:
        linear-gradient(120deg, rgba(40, 87, 232, .08), transparent 42%),
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(40, 87, 232, .055) 31px 32px),
        #fbfcff;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(24px, 8vw, 128px);
    z-index: -1;
    width: 2px;
    background: rgba(240, 90, 66, .32);
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 7.2vw, 5.75rem);
    line-height: .96;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.hero-copy h1 em {
    color: #d84532;
    background: none;
    font-style: normal;
    -webkit-text-fill-color: currentColor;
    text-decoration: underline;
    text-decoration-color: rgba(245, 200, 76, .9);
    text-decoration-thickness: .12em;
    text-underline-offset: .08em;
}

.study-sheet {
    border: 1px solid rgba(11, 21, 51, .17);
    border-radius: 5px 24px 5px 5px;
    box-shadow: 14px 18px 0 rgba(40, 87, 232, .09), 0 34px 70px rgba(11, 21, 51, .14);
    transform: rotate(1.1deg);
}

.services-section {
    position: relative;
    overflow: clip;
    background: linear-gradient(180deg, #ffffff, #f5f7ff 82%);
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: repeating-linear-gradient(115deg, #2857e8 0 20px, #f5c84c 20px 28px, transparent 28px 42px);
    opacity: .62;
}

.service-card {
    position: relative;
    border: 1px solid rgba(40, 87, 232, .18);
    border-radius: 5px 25px 5px 5px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 46px rgba(11, 21, 51, .08);
}

.service-card::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 34px;
    height: 2px;
    background: #f05a42;
    transform: rotate(-7deg);
    transform-origin: right;
}

.service-card__signal {
    color: #123fbf;
    background: #edf2ff;
    border-color: rgba(40, 87, 232, .18);
}

.pl-button--primary,
.contact-btn {
    border-radius: 5px 15px 5px 5px;
    box-shadow: 0 12px 28px rgba(40, 87, 232, .22);
}

.contact-form-card {
    position: relative;
    border-radius: 5px 28px 5px 5px;
    box-shadow: 12px 14px 0 rgba(245, 200, 76, .18), 0 28px 64px rgba(11, 21, 51, .11);
}

.section-heading h2 {
    max-width: 18ch;
    text-wrap: balance;
}

@supports (content-visibility: auto) {
    .stats-section,
    .contact-section {
        content-visibility: auto;
        contain-intrinsic-size: auto 720px;
    }
}

@media (min-width: 900px) {
    .services-grid .service-card:nth-child(2) {
        transform: translateY(24px);
    }
}

@media (max-width: 700px) {
    .hero-section::after {
        left: 13px;
    }

    .hero-copy h1 {
        font-size: clamp(2.75rem, 13vw, 4rem);
    }

    .study-sheet {
        transform: none;
        box-shadow: 8px 10px 0 rgba(40, 87, 232, .08), 0 24px 46px rgba(11, 21, 51, .12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-grid .service-card:nth-child(2),
    .study-sheet {
        transform: none;
    }
}
