/* =========================================================
   STUDIO MOON – ODSEK STORITVE
   Ta datoteka oblikuje samo <section id="storitve">.
   ========================================================= */

html {
    scroll-behavior: smooth;
}

/* Header ostane ves čas na vrhu zaslona. */
.glava {
    position: fixed !important;
    z-index: 9998 !important;
}

.storitve,
.storitve * {
    box-sizing: border-box;
}

.storitve {
    position: relative;
    width: 100%;
    min-height: 100svh;
    padding: clamp(100px, 9vw, 170px) clamp(24px, 7vw, 140px);
    overflow: hidden;
    scroll-margin-top: 0;
    background:
        radial-gradient(circle at 88% 8%, rgba(190, 143, 61, 0.14), transparent 28%),
        #181611;
    color: #f7f2e9;
}

.storitve::before {
    content: "";
    position: absolute;
    top: -310px;
    right: -260px;
    width: 680px;
    height: 680px;
    border: 1px solid rgba(198, 157, 80, 0.13);
    border-radius: 50%;
    pointer-events: none;
}

.storitve::after {
    content: "MOON";
    position: absolute;
    right: -45px;
    bottom: 120px;
    color: rgba(255, 255, 255, 0.018);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(150px, 22vw, 390px);
    line-height: 1;
    pointer-events: none;
}

.storitve-ovoj {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}


/* NASLOV ODSEKA */

.storitve-glava {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr);
    align-items: end;
    gap: clamp(45px, 8vw, 130px);
    margin-bottom: 65px;
}

.storitve-oznaka {
    margin: 0 0 24px;
    color: #c69d50;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.8px;
    line-height: 1.4;
    text-transform: uppercase;
}

.storitve-glava h2 {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 6vw, 104px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.storitve-glava h2 span {
    display: block;
    color: #c69d50;
    font-style: italic;
}

.storitve-uvod {
    max-width: 530px;
    margin: 0 0 5px;
    color: #bdb6aa;
    font-size: 16px;
    line-height: 1.8;
}


/* KVADRATI KATEGORIJ */

.storitve-kategorije {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 1600px;
    gap: 12px;
    margin: 0 auto 18px;
}

.storitve-kategorija {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: clamp(18px, 1.4vw, 25px);
    overflow: hidden;
    align-items: flex-start;
    flex-direction: column;
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 157, 80, 0.12), transparent 42%),
        #211e18;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 19px;
    color: #f7f2e9;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.28s ease, border-color 0.28s ease,
        color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.storitve-kategorija::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 145px;
    height: 145px;
    border: 1px solid rgba(198, 157, 80, 0.14);
    border-radius: 50%;
    transition: transform 0.35s ease;
}

.storitve-kategorija:hover {
    border-color: rgba(198, 157, 80, 0.48);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
    transform: translateY(-5px);
}

.storitve-kategorija:hover::after {
    transform: scale(1.25);
}

.storitve-kategorija.aktivni-filter {
    background: #f5efe5;
    border-color: #f5efe5;
    color: #1b1915;
}

.kategorija-stevilka {
    color: #c69d50;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.kategorija-ime {
    max-width: 90%;
    margin-top: clamp(16px, 1.7vw, 28px);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 1.8vw, 34px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.kategorija-odpri {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #a9a195;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.kategorija-odpri b {
    display: flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    background-color: rgba(198, 157, 80, 0.13);
    border: 1px solid rgba(198, 157, 80, 0.28);
    border-radius: 50%;
    color: #c69d50;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.storitve-kategorija.aktivni-filter .kategorija-odpri {
    color: #71685c;
}

.storitve-kategorija.aktivni-filter .kategorija-odpri b {
    background-color: #c69d50;
    color: #191713;
    transform: rotate(180deg);
}

.storitve-kategorija:focus-visible,
.storitev-element:focus-visible,
.storitve-narocanje:focus-visible,
.kategorija-modal-zapri:focus-visible,
.storitev-modal-zapri:focus-visible,
.storitev-modal-gumb:focus-visible {
    outline: 2px solid #d7ac5c;
    outline-offset: 4px;
}


/* SKUPINE STORITEV */

.storitve-seznam {
    margin-top: 55px;
    scroll-margin-top: 135px;
}

.storitve-seznam[hidden] {
    display: none !important;
}

.storitve-skupina {
    display: grid;
    grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 100px);
    padding: 58px 0 68px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.storitve-skupina[hidden] {
    display: none !important;
}

.storitve-skupina-naslov {
    position: sticky;
    top: 135px;
    align-self: start;
}

.storitve-skupina-naslov p {
    margin: 0 0 17px;
    color: #c69d50;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.storitve-skupina-naslov h3 {
    max-width: 330px;
    margin: 0;
    color: #f7f2e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3vw, 52px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.storitve-elementi {
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.storitev-element {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    width: 100%;
    min-height: 79px;
    padding: 18px 4px;
    align-items: center;
    gap: 22px;
    background-color: transparent;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #f5f0e7;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease,
        border-radius 0.25s ease, color 0.25s ease, padding 0.25s ease,
        transform 0.25s ease;
}

.storitev-element:hover {
    padding-right: 20px;
    padding-left: 20px;
    background-color: #f5efe5;
    border-color: transparent;
    border-radius: 13px;
    color: #1b1915;
    transform: translateX(5px);
}

.storitev-element[hidden] {
    display: none !important;
}

.storitev-ime {
    min-width: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.25;
}

.storitev-izvajalka {
    padding: 7px 11px;
    background-color: rgba(198, 157, 80, 0.12);
    border: 1px solid rgba(198, 157, 80, 0.25);
    border-radius: 999px;
    color: #d5b474;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.storitev-element:hover .storitev-izvajalka {
    background-color: rgba(174, 127, 48, 0.11);
    border-color: rgba(174, 127, 48, 0.26);
    color: #8d6424;
}

.storitev-puscica {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #c69d50;
    font-size: 17px;
    transition: background-color 0.25s ease, border-color 0.25s ease,
        color 0.25s ease, transform 0.25s ease;
}

.storitev-element:hover .storitev-puscica {
    background-color: #c69d50;
    border-color: #c69d50;
    color: #191713;
    transform: rotate(45deg);
}


/* POJAVNO OKNO Z IZBRANO KATEGORIJO */

body.kategorija-modal-odprt {
    overflow: hidden;
}

.kategorija-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    padding: 28px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.kategorija-modal.odprt {
    opacity: 1;
    visibility: visible;
}

.kategorija-modal-ozadje {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 9, 7, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.kategorija-modal-vsebina {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1180px, 100%);
    max-height: min(840px, calc(100svh - 56px));
    overflow: hidden;
    flex-direction: column;
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 157, 80, 0.17), transparent 32%),
        #f6f1e8;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    box-shadow: 0 35px 110px rgba(0, 0, 0, 0.48);
    color: #1c1914;
    opacity: 0;
    transform: translateY(28px) scale(0.975);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.kategorija-modal.odprt .kategorija-modal-vsebina {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.kategorija-modal-glava {
    position: relative;
    display: flex;
    padding: 32px 40px 26px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(36, 29, 19, 0.14);
}

.kategorija-modal-glava p {
    margin: 0 0 10px;
    color: #a6782d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.kategorija-modal-glava h3 {
    margin: 0;
    color: #191713;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(37px, 4vw, 58px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.kategorija-modal-zapri {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #1a1814;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 26px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.kategorija-modal-zapri:hover {
    background-color: #b48738;
    transform: rotate(90deg);
}

.kategorija-modal .storitve-seznam {
    margin: 0;
    padding: 10px 40px 34px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #c69d50 transparent;
}

.kategorija-modal .storitve-skupina {
    display: block;
    padding: 0;
    border: 0;
}

.kategorija-modal .storitve-skupina-naslov {
    display: none;
}

.kategorija-modal .storitve-elementi {
    border-bottom-color: rgba(36, 29, 19, 0.14);
}

.kategorija-modal .storitev-element {
    min-height: 72px;
    border-top-color: rgba(36, 29, 19, 0.14);
    color: #211d17;
}

.kategorija-modal .storitev-element:hover {
    background-color: #1d1a15;
    color: #ffffff;
}

.kategorija-modal .storitev-izvajalka {
    background-color: rgba(174, 127, 48, 0.09);
    border-color: rgba(174, 127, 48, 0.24);
    color: #8d6424;
}

.kategorija-modal .storitev-element:hover .storitev-izvajalka {
    background-color: rgba(198, 157, 80, 0.14);
    border-color: rgba(198, 157, 80, 0.32);
    color: #e0bd79;
}

.kategorija-modal .storitev-puscica {
    border-color: rgba(36, 29, 19, 0.19);
    color: #a6782d;
}

.kategorija-modal .storitev-element:hover .storitev-puscica {
    border-color: #c69d50;
}


/* SPODNJI POZIV */

.storitve-poziv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: clamp(35px, 5vw, 65px);
    margin-top: 25px;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)), #211e18;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
}

.storitve-poziv p {
    margin: 0 0 9px;
    color: #c69d50;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.storitve-poziv h3 {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 400;
    line-height: 1.12;
}

.storitve-narocanje,
.storitev-modal-gumb {
    display: inline-flex;
    min-height: 57px;
    padding: 8px 9px 8px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-shrink: 0;
    background-color: #f4eee4;
    border-radius: 13px;
    color: #191713;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.storitve-narocanje span,
.storitev-modal-gumb span {
    display: flex;
    width: 41px;
    height: 41px;
    align-items: center;
    justify-content: center;
    background-color: #c69d50;
    border-radius: 9px;
    font-size: 18px;
}

.storitve-narocanje:hover,
.storitev-modal-gumb:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}


/* POJAVNO OKNO S PODROBNOSTMI */

body.storitev-modal-odprt {
    overflow: hidden;
}

.storitev-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.storitev-modal.odprt {
    opacity: 1;
    visibility: visible;
}

.storitev-modal-ozadje {
    position: absolute;
    inset: 0;
    background-color: rgba(12, 10, 8, 0.76);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.storitev-modal-vsebina {
    position: relative;
    z-index: 1;
    width: min(650px, 100%);
    max-height: calc(100svh - 48px);
    padding: clamp(34px, 5vw, 62px);
    overflow-y: auto;
    background: radial-gradient(circle at 100% 0%, rgba(198, 157, 80, 0.17), transparent 34%), #f6f1e8;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    color: #1c1914;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.storitev-modal.odprt .storitev-modal-vsebina {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.storitev-modal-zapri {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background-color: #1a1814;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    font-family: inherit;
    font-size: 25px;
    font-weight: 300;
    cursor: pointer;
}

.storitev-modal-oznaka {
    margin: 0 65px 22px 0;
    color: #a6782d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.storitev-modal-vsebina h3 {
    max-width: 540px;
    margin: 0 0 25px;
    color: #191713;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.storitev-modal-opis {
    margin: 0 0 30px;
    color: #625b51;
    font-size: 16px;
    line-height: 1.75;
}

.storitev-modal-izvajalka {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 28px;
    border-top: 1px solid rgba(36, 29, 19, 0.17);
    border-bottom: 1px solid rgba(36, 29, 19, 0.17);
}

.storitev-modal-izvajalka span {
    color: #817666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.storitev-modal-izvajalka strong {
    color: #1d1913;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.storitev-modal-gumb {
    background-color: #191713;
    color: #ffffff;
}


/* TABLICE */

@media (max-width: 1100px) {
    .storitve {
        padding: 105px 48px;
        scroll-margin-top: 0;
    }

    .storitve-glava {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .storitve-uvod {
        max-width: 650px;
    }

    .storitve-kategorije {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .storitve-kategorija {
        aspect-ratio: auto;
        min-height: 190px;
    }

    .storitve-skupina {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 42px;
    }
}


/* MANJŠE TABLICE */

@media (max-width: 820px) {
    .storitve {
        padding: 90px 28px;
    }

    .storitve-kategorija {
        aspect-ratio: 1 / 1;
        min-height: 0;
        border-radius: 20px;
    }

    .storitve-kategorije {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storitve-skupina {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 48px 0 58px;
    }

    .storitve-skupina-naslov {
        position: static;
    }

    .storitve-skupina-naslov h3 {
        max-width: none;
    }
}


/* TELEFONI */

@media (max-width: 600px) {
    .storitve {
        padding: 76px 17px;
        scroll-margin-top: 0;
    }

    .storitve::before {
        top: -250px;
        right: -300px;
    }

    .storitve-glava {
        margin-bottom: 42px;
    }

    .storitve-oznaka {
        margin-bottom: 18px;
        font-size: 9px;
        letter-spacing: 2px;
    }

    .storitve-glava h2 {
        font-size: clamp(46px, 14vw, 62px);
        letter-spacing: -0.05em;
    }

    .storitve-uvod {
        font-size: 15px;
        line-height: 1.7;
    }

    .storitve-kategorije {
        gap: 10px;
        margin-bottom: 5px;
    }

    .storitve-kategorija {
        padding: 16px;
        border-radius: 16px;
    }

    .kategorija-stevilka {
        font-size: 8px;
    }

    .kategorija-ime {
        max-width: 100%;
        margin-top: 16px;
        font-size: clamp(21px, 6.5vw, 28px);
    }

    .kategorija-odpri {
        font-size: 0;
    }

    .kategorija-odpri::before {
        content: "Odpri";
        font-size: 8px;
        letter-spacing: 1px;
    }

    .kategorija-odpri b {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .storitve-seznam {
        margin-top: 38px;
        scroll-margin-top: 0;
    }

    .storitve-skupina {
        padding: 40px 0 48px;
    }

    .storitve-skupina-naslov p {
        margin-bottom: 10px;
    }

    .storitve-skupina-naslov h3 {
        font-size: 35px;
    }

    .storitev-element {
        grid-template-columns: minmax(0, 1fr) 39px;
        grid-template-rows: auto auto;
        min-height: 92px;
        padding: 17px 2px;
        gap: 7px 14px;
    }

    .storitev-element:hover {
        padding-right: 13px;
        padding-left: 13px;
        transform: none;
    }

    .storitev-ime {
        grid-column: 1;
        grid-row: 1;
        font-size: 19px;
    }

    .storitev-izvajalka {
        grid-column: 1;
        grid-row: 2;
        width: max-content;
        padding: 5px 8px;
        font-size: 8px;
    }

    .storitev-puscica {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 37px;
        height: 37px;
    }

    .storitve-poziv {
        align-items: flex-start;
        flex-direction: column;
        padding: 31px 24px;
        border-radius: 20px;
    }

    .storitve-narocanje {
        width: auto;
    }

    .kategorija-modal {
        padding: 0;
        align-items: flex-end;
    }

    .kategorija-modal-vsebina {
        width: 100%;
        max-height: 91svh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 25px 25px 0 0;
        transform: translateY(55px);
    }

    .kategorija-modal-glava {
        padding: 26px 20px 21px;
    }

    .kategorija-modal-glava p {
        margin-bottom: 8px;
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .kategorija-modal-glava h3 {
        padding-right: 10px;
        font-size: 37px;
    }

    .kategorija-modal-zapri {
        width: 42px;
        height: 42px;
    }

    .kategorija-modal .storitve-seznam {
        margin: 0;
        padding: 8px 19px 26px;
    }

    .storitev-modal {
        padding: 0;
        align-items: flex-end;
    }

    .storitev-modal-vsebina {
        width: 100%;
        max-height: 90svh;
        padding: 38px 23px 25px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 25px 25px 0 0;
        transform: translateY(55px);
    }

    .storitev-modal-zapri {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }

    .storitev-modal-vsebina h3 {
        margin-right: 35px;
        font-size: 39px;
    }

    .storitev-modal-opis {
        font-size: 15px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .storitve *,
    .storitve *::before,
    .storitve *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   KONČNI POPRAVEK STORITEV
   ========================================================= */


/* HERO STRAN SE OB KLIKU NA STORITVE NE SME VIDETI */

.storitve {
    min-height: 100svh !important;
    scroll-margin-top: 0 !important;
}


/* =========================================================
   SLIKE NA ŠESTIH KARTICAH
   ========================================================= */

.storitve-kategorija {
    position: relative;

    isolation: isolate;

    overflow: hidden;

    background-color: #211e18 !important;
}


/* SLIKA IN TEMEN PRELIV */

.storitve-kategorija::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    background-image:
        linear-gradient(
            180deg,
            rgba(18, 16, 12, 0.18) 0%,
            rgba(18, 16, 12, 0.42) 42%,
            rgba(18, 16, 12, 0.9) 100%
        ),
        var(--slika-kategorije);

    background-position: center;
    background-size: cover;

    opacity: 0.88;

    transform: scale(1.01);

    transition:
        opacity 0.35s ease,
        transform 0.55s ease;
}


/* BESEDILO MORA BITI NAD SLIKO */

.storitve-kategorija > span {
    position: relative;

    z-index: 2;
}


/* OKRASNI KROG MORA OSTATI NAD SLIKO */

.storitve-kategorija::after {
    z-index: 1;
}


/* PREMIK SLIKE OB PREHODU Z MIŠKO */

.storitve-kategorija:hover::before {
    opacity: 1;

    transform: scale(1.08);
}


/* AKTIVNA KARTICA OHRANI BELO BESEDILO */

.storitve-kategorija.aktivni-filter {
    color: #ffffff !important;
}

.storitve-kategorija.aktivni-filter .kategorija-odpri {
    color: rgba(255, 255, 255, 0.75) !important;
}


/* =========================================================
   POPRAVEK POJAVNEGA OKNA
   ========================================================= */

.kategorija-modal-vsebina {
    display: flex !important;

    width: min(1180px, calc(100% - 56px)) !important;
    height: min(820px, calc(100svh - 100px)) !important;
    max-height: calc(100svh - 56px) !important;

    overflow: hidden !important;

    flex-direction: column !important;
}


/* SEZNAM ZASEDE VES PREOSTALI PROSTOR */

.kategorija-modal .storitve-seznam {
    display: block;

    flex: 1 1 auto;

    min-height: 0;

    margin: 0 !important;

    padding: 10px 40px 35px !important;

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;
}


/* KO JE SEZNAM SKRIT, MORA RES OSTATI SKRIT */

.kategorija-modal .storitve-seznam[hidden] {
    display: none !important;
}


/* PRIKAŽE SAMO IZBRANO KATEGORIJO */

.kategorija-modal .storitve-skupina[hidden] {
    display: none !important;
}

.kategorija-modal .storitve-skupina:not([hidden]) {
    display: block !important;

    padding: 0 !important;

    border: 0 !important;
}


/* STARI NASLOV ZNOTRAJ SEZNAMA NI VEČ POTREBEN */

.kategorija-modal .storitve-skupina-naslov {
    display: none !important;
}


/* POSAMEZNE STORITVE */

.kategorija-modal .storitve-elementi {
    width: 100%;
}

.kategorija-modal .storitev-element {
    width: 100%;

    min-height: 74px;

    color: #211d17;

    border-top-color: rgba(36, 29, 19, 0.14);
}


/* LEP PREHOD OB MIŠKI */

.kategorija-modal .storitev-element:hover {
    padding-right: 20px;
    padding-left: 20px;

    background-color: #1d1a15;

    border-radius: 13px;

    color: #ffffff;
}


/* IZVAJALKA V POJAVNEM OKNU */

.kategorija-modal .storitev-izvajalka {
    background-color: rgba(174, 127, 48, 0.09);

    border-color: rgba(174, 127, 48, 0.24);

    color: #8d6424;
}

.kategorija-modal .storitev-element:hover .storitev-izvajalka {
    background-color: rgba(198, 157, 80, 0.14);

    border-color: rgba(198, 157, 80, 0.32);

    color: #e0bd79;
}


/* PUŠČICA */

.kategorija-modal .storitev-puscica {
    border-color: rgba(36, 29, 19, 0.2);

    color: #a6782d;
}

.kategorija-modal .storitev-element:hover .storitev-puscica {
    background-color: #c69d50;

    border-color: #c69d50;

    color: #191713;
}


/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 600px) {

    .kategorija-modal {
        padding: 0 !important;

        align-items: flex-end !important;
    }

    .kategorija-modal-vsebina {
        width: 100% !important;
        height: 92svh !important;
        max-height: 92svh !important;

        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;

        border-radius: 25px 25px 0 0 !important;
    }

    .kategorija-modal-glava {
        padding: 25px 20px 20px !important;
    }

    .kategorija-modal-glava h3 {
        padding-right: 10px;

        font-size: 36px !important;
    }

    .kategorija-modal .storitve-seznam {
        padding: 8px 18px 28px !important;
    }

    .kategorija-modal .storitev-element {
        min-height: 88px;
    }

}

/* =========================================================
   SKRIJ HEADER, KO JE ODPRTA KATEGORIJA STORITEV
   ========================================================= */

body.kategorija-modal-odprt .glava {
    display: none !important;
}

/* =========================================================
   CENE STORITEV
   ========================================================= */

.storitev-element {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto
        auto;

    align-items: center;
    column-gap: 16px;
}


/* CENA V SEZNAMU */

.storitev-cena {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 68px;

    padding: 7px 12px;

    background: rgba(190, 145, 65, 0.09);

    border: 1px solid rgba(184, 140, 59, 0.3);
    border-radius: 999px;

    color: #9b712d;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.5px;

    white-space: nowrap;
}


/* MALO BOLJ IZRAZITA OB HOVERJU */

.storitev-element:hover .storitev-cena {
    background: rgba(190, 145, 65, 0.15);
    border-color: rgba(184, 140, 59, 0.5);
}


/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 700px) {

    .storitev-element {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            auto;

        grid-template-areas:
            "ime cena puscica"
            "izvajalka izvajalka puscica";

        row-gap: 7px;
        column-gap: 10px;
    }

    .storitev-ime {
        grid-area: ime;
    }

    .storitev-izvajalka {
        grid-area: izvajalka;
        justify-self: start;
    }

    .storitev-cena {
        grid-area: cena;

        min-width: 0;

        padding: 6px 9px;

        font-size: 10px;
    }

    .storitev-puscica {
        grid-area: puscica;
    }
}
#storitev-modal-cena {
    color: #9b712d;
}

/* =========================================================
   5 KATEGORIJ – VEČJE IN CENTRIRANE
   ========================================================= */

@media (min-width: 1101px) {

    .storitve-kategorije {
        grid-template-columns: repeat(5, minmax(0, 1fr));

        width: 100%;
        max-width: 1380px;

        margin-left: auto;
        margin-right: auto;

        gap: 14px;
    }

}
/* =========================================================
   PUŠČICA PRI POSAMEZNI STORITVI
   SVG = brez Apple emoji
   ========================================================= */

.storitev-puscica {
    display: flex;
    align-items: center;
    justify-content: center;
}

.storitev-puscica svg {
    display: block;

    width: 16px;
    height: 16px;

    color: #b78737;
}
/* KONČNO CENTRIRANJE PUŠČIC – KATEGORIJE */

.kategorija-odpri b {
    position: relative !important;

    display: grid !important;
    place-items: center !important;

    padding: 0 !important;

    line-height: 0 !important;
}

.kategorija-odpri b > .sm-svg-puscica {
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    width: 17px !important;
    height: 17px !important;

    margin: 0 !important;

    transform: translate(-50%, -50%) !important;
}