:root {
    --profil-bg: #071017;
    --profil-panel: #0d1821;
    --profil-panel-2: #111f2a;
    --profil-border: rgba(255, 255, 255, 0.10);
    --profil-text: #f5f8fa;
    --profil-muted: #9eacb7;
    --profil-soft: #c7d1d8;
    --profil-green: #35c778;
    --profil-green-dark: #0d7a44;
    --profil-red: #e94136;
}

* { box-sizing: border-box; }

body.profil-oseba {
    margin: 0;
    background: var(--profil-bg);
    color: var(--profil-text);
    font-family: "Inter", Arial, sans-serif;
}

.profil-hero {
    position: relative;
    min-height: 455px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 105px 24px 58px;
    background:
        radial-gradient(circle at 77% 32%, rgba(53, 199, 120, 0.15), transparent 29%),
        radial-gradient(circle at 12% 78%, rgba(233, 65, 54, 0.09), transparent 34%),
        linear-gradient(135deg, #050a0e 0%, #09141c 52%, #0a161e 100%);
}

.profil-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to right, #000, rgba(0,0,0,.72) 62%, transparent);
    pointer-events: none;
}

.profil-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 8%;
    width: 1px;
    height: 100%;
    background: linear-gradient(transparent, rgba(53, 199, 120, .38), transparent);
    transform: rotate(18deg);
    transform-origin: top;
}

.profil-hero-vsebina {
    position: relative;
    z-index: 2;
    width: min(1160px, 100%);
    margin: 0 auto;
}

.drobtine {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
    color: #788893;
    font-size: 0.78rem;
    font-weight: 700;
}

.drobtine a { color: #9cabb5; text-decoration: none; }
.drobtine a:hover { color: var(--profil-text); }

.profil-hero-mreza {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 38px;
    align-items: end;
}

.profil-hero-besedilo .vloga,
.profil-besedilo > span,
.sekcija-naslov > span,
.profil-poudarek > span,
.kontakt-pas > div > span {
    display: block;
    color: #64df98;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.profil-hero h1 {
    max-width: 760px;
    margin: 10px 0 0;
    color: #fff;
    font-family: "Barlow Condensed", "Inter", Arial, sans-serif;
    font-size: clamp(4.3rem, 8vw, 7.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.76;
    text-transform: uppercase;
}

.profil-hero-besedilo > p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #c9d3da;
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-oznake {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.hero-oznake span {
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    color: #d8e1e6;
    font-size: 0.76rem;
    font-weight: 800;
}

.hero-funkcija {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(10, 21, 29, .72);
    backdrop-filter: blur(14px);
}

.hero-funkcija > span {
    color: #82919b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-funkcija strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-family: "Barlow Condensed", "Inter", Arial, sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 900;
    line-height: .9;
    text-transform: uppercase;
}

.hero-funkcija p {
    margin: 12px 0 0;
    color: #9caab4;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.6;
}

.profil-main {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: 62px 0 84px;
}

.profil-uvod {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.portret {
    position: sticky;
    top: 92px;
    overflow: hidden;
    border: 1px solid var(--profil-border);
    border-radius: 18px;
    background: var(--profil-panel);
}

.portret-slika {
    position: relative;
    overflow: hidden;
    background: #05090d;
}

.portret-slika::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55px;
    background: linear-gradient(transparent, rgba(5, 10, 14, .6));
    pointer-events: none;
}

.portret img {
    width: 100%;
    aspect-ratio: auto;
    height: 205px;
    display: block;
    object-fit: cover;
    object-position: center 24%;
}

.profil-vili .portret img { object-position: center 20%; }

.portret-podpis { padding: 17px 18px 14px; }

.portret-podpis strong {
    display: block;
    color: #fff;
    font-family: "Barlow Condensed", "Inter", Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portret-podpis span {
    display: block;
    margin-top: 4px;
    color: var(--profil-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.portret-podatki {
    margin: 0;
    padding: 0 22px 18px;
}

.portret-podatki div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--profil-border);
}

.portret-podatki dt {
    color: #6f7f89;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portret-podatki dd {
    margin: 0;
    color: #dce4e9;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.5;
}

.kontakt-osebe {
    padding: 10px 18px 14px;
    border-top: 1px solid var(--profil-border);
    background: transparent;
}

.kontakt-osebe > span {
    display: block;
    margin-bottom: 7px;
    color: #788791;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.kontakt-osebe a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,.05);
    color: #bbc6cd;
    text-decoration: none;
}

.kontakt-osebe a:first-of-type { border-top: 0; }
.kontakt-osebe a:hover strong { color: #dfe7eb; }

.kontakt-osebe small {
    display: block;
    color: #697983;
    font-size: .63rem;
    font-weight: 750;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.kontakt-osebe strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #bbc6cd;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.45;
    transition: color .2s ease;
}

.profil-besedilo h2,
.sekcija-naslov h2,
.kontakt-pas h2 {
    margin: 10px 0 0;
    color: #fff;
    font-family: "Barlow Condensed", "Inter", Arial, sans-serif;
    font-size: clamp(2.7rem, 5.5vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: .96;
    text-transform: uppercase;
}

.profil-besedilo > p {
    margin: 22px 0 0;
    color: var(--profil-soft);
    font-size: 1rem;
    line-height: 1.82;
}

.profil-besedilo > p strong { color: #fff; }

.hitri-podatki {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.hitri-podatki article {
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--profil-border);
    border-radius: 18px;
    background: var(--profil-panel);
}

.hitri-podatki strong {
    display: block;
    color: #fff;
    font-family: "Barlow Condensed", "Inter", Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.hitri-podatki span {
    display: block;
    margin-top: 9px;
    color: var(--profil-muted);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.45;
}

.profil-sekcija {
    margin-top: 64px;
    padding-top: 54px;
    border-top: 1px solid var(--profil-border);
}

.sekcija-naslov h2 { font-size: clamp(2.35rem, 4.8vw, 3.75rem); }

.vloga-mreza {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.vloga-kartica {
    min-height: 165px;
    padding: 23px;
    border: 1px solid var(--profil-border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(17,31,42,.96), rgba(11,22,30,.96));
}

.vloga-kartica .stevilka {
    display: block;
    margin-bottom: 22px;
    color: #52d58c;
    font-family: "Barlow Condensed", "Inter", Arial, sans-serif;
    font-size: .95rem;
    font-weight: 900;
}

.vloga-kartica strong {
    color: #fff;
    font-size: .98rem;
}

.vloga-kartica p {
    margin: 10px 0 0;
    color: var(--profil-muted);
    font-size: .84rem;
    line-height: 1.64;
}

.pot-casovnica {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    border-top: 1px solid var(--profil-border);
}

.pot-casovnica li {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 28px;
    padding: 27px 0;
    border-bottom: 1px solid var(--profil-border);
}

.pot-oznaka {
    color: #5bd992;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

.pot-casovnica strong { color: #fff; font-size: .96rem; }
.pot-casovnica p { margin: 8px 0 0; color: var(--profil-muted); font-size: .86rem; line-height: 1.68; }

.profil-poudarek {
    margin-top: 60px;
    padding: 34px;
    border: 1px solid rgba(53,199,120,.26);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(53,199,120,.11), rgba(11,22,30,.93));
}

.profil-poudarek blockquote {
    margin: 15px 0 0;
    color: #edf4f0;
    font-family: "Barlow Condensed", "Inter", Arial, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.08;
}

.kontakt-pas {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 24px;
    padding: 32px;
    border: 1px solid var(--profil-border);
    border-radius: 22px;
    background: var(--profil-panel);
}

.kontakt-pas h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.kontakt-pas p { margin: 12px 0 0; color: var(--profil-muted); font-size: .87rem; line-height: 1.65; }

.kontakt-gumbi,
.profil-akcije {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.kontakt-gumbi { justify-content: flex-end; }
.profil-akcije { margin-top: 24px; }

.kontakt-gumbi a,
.profil-akcije a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 12px 17px;
    border-radius: 11px;
    font-size: .8rem;
    font-weight: 850;
    text-decoration: none;
}

.primarni {
    border: 1px solid var(--profil-green);
    background: var(--profil-green);
    color: #04110a;
}

.sekundarni {
    border: 1px solid var(--profil-border);
    background: rgba(255,255,255,.035);
    color: #e9eff2;
}

.primarni:hover { background: #4fdb8e; }
.sekundarni:hover { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.065); }

.profil-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 34px 20px;
    border-top: 1px solid #1b2934;
    background: #050a0e;
    text-align: center;
}

.profil-footer img { width: 44px; height: 44px; object-fit: contain; }
.profil-footer p { margin: 0; color: #697782; font-size: .76rem; }

@media (max-width: 940px) {
    .profil-hero-mreza { grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; }
    .profil-uvod { grid-template-columns: 245px minmax(0, 1fr); gap: 34px; }
    .kontakt-pas { grid-template-columns: 1fr; }
    .kontakt-gumbi { justify-content: flex-start; }
}

@media (max-width: 760px) {
    .profil-hero { min-height: auto; padding: 100px 18px 58px; }
    .profil-hero-mreza { grid-template-columns: 1fr; }
    .hero-funkcija { max-width: 320px; }
    .profil-uvod { grid-template-columns: 1fr; }
    .portret { position: static; width: min(320px, 100%); }
    .hitri-podatki { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .profil-hero { padding-left: 16px; padding-right: 16px; }
    .drobtine { margin-bottom: 30px; }
    .profil-hero h1 { font-size: clamp(4.25rem, 23vw, 6.2rem); }
    .profil-main { width: min(100% - 28px, 1160px); padding: 54px 0 70px; }
    .hitri-podatki, .vloga-mreza { grid-template-columns: 1fr; }
    .pot-casovnica li { grid-template-columns: 1fr; gap: 10px; }
    .kontakt-gumbi, .profil-akcije { flex-direction: column; }
    .kontakt-gumbi a, .profil-akcije a { width: 100%; }
    .profil-poudarek, .kontakt-pas { padding: 24px; }
}

/* Manj vsiljiva stranska predstavitvena kartica */
.portret { box-shadow: none; }
.portret-podpis span { font-size: .78rem; }
.kontakt-osebe > span { margin-bottom: 4px; }
.hero-funkcija { box-shadow: none; }

@media (max-width: 760px) {
    .portret img { height: 195px; }
}

@media (max-width: 560px) {
    .portret { width: min(300px, 100%); }
    .portret img { height: 185px; }
}
