:root {
    --navy: #0b1f3a;
    --navy-deep: #071527;
    --navy-soft: #17345f;
    --bg: #f4f6fa;
    --white: #fff;
    --ink: #101e33;
    --muted: #55667e;
    --line: #e1e7f0;
    --on-navy: #c7d4e6;
    --accent: #f5ad27;
    --accent-dark: #e0950d;
    --accent-text: #a86c00;
    --error: #b3261e;
    --success: #1c6b45;
    --radius: 18px;
    --radius-sm: 10px;
    --header-h: 76px;
    --shadow-sm: 0 1px 2px rgba(11, 31, 58, .05), 0 6px 18px rgba(11, 31, 58, .06);
    --shadow-md: 0 2px 4px rgba(11, 31, 58, .06), 0 18px 40px rgba(11, 31, 58, .13);
    --shadow-lg: 0 30px 70px rgba(4, 13, 28, .5);
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.14; letter-spacing: -.022em; }
h1 { font-size: clamp(2.5rem, 5.3vw, 4.1rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.24rem; font-weight: 680; letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 40px, 1200px); margin-inline: auto; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--accent); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 10px; }

/* Zaglavlje */
.site-header {
    position: sticky; top: 0; z-index: 50; color: var(--white);
    background: rgba(9, 25, 48, .9);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }

.logo { color: var(--white); font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.logo span { color: var(--accent); }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    display: block; padding: 9px 14px; border-radius: 99px;
    color: var(--on-navy); font-size: .95rem; font-weight: 550; text-decoration: none;
    transition: color .15s, background-color .15s;
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .09); }
.main-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .13); }
.main-nav .nav-cta { margin-left: 10px; }
.main-nav .nav-cta a, .main-nav .nav-cta a[aria-current="page"] { padding-inline: 20px; background: var(--accent); color: var(--navy); font-weight: 700; }
.main-nav .nav-cta a:hover { background: var(--accent-dark); color: var(--navy); }

.nav-toggle {
    display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px;
    color: var(--white); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Dugmad */
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
    padding: 13px 26px; border: 1.5px solid transparent; border-radius: 99px;
    font: inherit; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
    transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--navy); box-shadow: 0 10px 26px rgba(245, 173, 39, .28); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-soft); }
.btn--ghost { border-color: rgba(255, 255, 255, .34); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .07); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.text-link { font-weight: 700; text-underline-offset: 3px; }

.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .86rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow--light { color: var(--accent-text); }
.lead { max-width: 37em; margin: 22px 0 0; color: var(--on-navy); font-size: clamp(1.08rem, 1.7vw, 1.26rem); line-height: 1.6; }

/* Početna: naslovni dio */
.hero {
    position: relative; overflow: hidden; color: var(--white);
    background: radial-gradient(90% 120% at 85% 0%, var(--navy-soft) 0%, var(--navy) 52%, var(--navy-deep) 100%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 5vw, 72px); padding-block: clamp(60px, 8vw, 104px); }
.hero__visual { position: relative; }
.hero__visual::before {
    content: ""; position: absolute; inset: -110px -130px; z-index: 0;
    background: url("../img/signal.svg") center / contain no-repeat; opacity: .55;
}
.hero__visual img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.hero__chip {
    position: absolute; z-index: 2; left: -22px; bottom: 34px; display: inline-flex; align-items: center; gap: 10px; margin: 0;
    padding: 13px 20px; background: var(--white); color: var(--navy); border-radius: 14px;
    font-weight: 700; font-size: .98rem; box-shadow: 0 16px 36px rgba(4, 13, 28, .35);
}
.hero__chip svg { color: var(--accent-dark); }

/* Podstranice: naslovni dio */
.page-head { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.page-head__img { position: absolute; top: 0; right: 0; width: 56%; height: 100%; object-fit: cover; }
.page-head::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 56%;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 31, 58, .72) 42%, rgba(11, 31, 58, .22) 100%);
}
.page-head__inner { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 118px); }
.page-head h1 { max-width: 13.5em; font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.page-head .lead { max-width: 33em; }
.page-head--404 { background: radial-gradient(90% 120% at 85% 0%, var(--navy-soft) 0%, var(--navy) 60%); }
.page-head--404::after { content: none; }
.page-head--404 .container { padding-block: clamp(90px, 14vw, 170px); }

/* Sekcije */
.section { padding-block: clamp(60px, 8vw, 104px); }
.section--white { background: var(--white); }
.section-head { max-width: 44em; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head p:last-child:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 2fr; gap: 16px 48px; }
.prose { max-width: 40em; margin-top: 18px; color: var(--muted); font-size: 1.06rem; }
.prose a { color: var(--ink); }

.media-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 6vw, 84px); }
.media-split__image img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-md); }
.media-split--reverse .media-split__image { order: 2; }

.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { position: relative; padding-left: 36px; font-weight: 600; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--navy);
}
.check-list li::after {
    content: ""; position: absolute; left: 8px; top: 8px; width: 9px; height: 5px;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Kartice */
.card, .feature, .package, .service-card, .photo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card { padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.section--white .card { background: var(--bg); box-shadow: none; }
.card-title { font-size: 1.45rem; margin-bottom: 10px; }

.feature { padding: 32px; }
.feature p { color: var(--muted); }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 14px; background: var(--navy); color: var(--accent); }

.service-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: box-shadow .22s, transform .22s, border-color .22s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__media { overflow: hidden; }
.service-card__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .45s; }
.service-card:hover img { transform: scale(1.05); }
.service-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 24px; }
.service-card__body h3 { margin-bottom: 10px; }
.service-card__text { margin: 0; color: var(--muted); font-size: .98rem; }
.service-card__link { margin: auto 0 0; padding-top: 16px; font-weight: 700; font-size: .98rem; }
.service-card__link span { display: inline-block; color: var(--accent-text); transition: transform .2s; }
.service-card:hover .service-card__link span { transform: translateX(4px); }

.photo-card { display: flex; flex-direction: column; overflow: hidden; }
.section--white .photo-card { box-shadow: none; }
.photo-card__media { position: relative; }
.photo-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-card__tag { position: absolute; left: 14px; top: 14px; margin: 0; padding: 5px 12px; border-radius: 99px; background: var(--navy); color: var(--white); font-size: .8rem; font-weight: 700; }
.photo-card__body { padding: 24px 26px 28px; }
.photo-card__body h3 { margin-bottom: 8px; font-size: 1.3rem; }
.photo-card__body p { color: var(--muted); }

/* Paketi */
.packages { align-items: stretch; }
.package { position: relative; display: flex; flex-direction: column; padding: 32px 26px 26px; transition: transform .22s, box-shadow .22s; }
.package:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.package h3 { font-size: 1.6rem; font-weight: 720; }
.package__for { margin: 12px 0 22px; color: var(--muted); font-size: .98rem; }
.package__price { margin: auto 0 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.package__price strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.package__price span { color: var(--muted); font-size: .92rem; }
.package__specs { margin: 0 0 22px; }
.package__specs div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.package__specs dt { color: var(--muted); }
.package__specs dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.package__cta { width: 100%; }

.package--featured {
    margin-block: -14px; padding-block: 46px 40px; border-color: var(--navy); color: var(--white);
    background: linear-gradient(165deg, var(--navy-soft) 0%, var(--navy) 62%);
    box-shadow: 0 26px 54px rgba(11, 31, 58, .34);
}
.package--featured:hover { box-shadow: 0 30px 60px rgba(11, 31, 58, .4); }
.package--featured .package__for, .package--featured .package__price span, .package--featured .package__specs dt { color: var(--on-navy); }
.package--featured .package__price, .package--featured .package__specs div { border-color: rgba(255, 255, 255, .16); }
.package__badge { align-self: flex-start; margin: 0 0 14px; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: var(--navy); font-size: .76rem; font-weight: 800; white-space: nowrap; }

.note { margin: 34px 0 0; color: var(--muted); font-size: .96rem; }

/* Tabela */
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.compare { width: 100%; min-width: 780px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: 1.16rem; }
.compare tbody th { color: var(--muted); font-weight: 650; white-space: nowrap; }
.compare tbody th, .compare thead td { position: sticky; left: 0; z-index: 1; background: var(--white); }
.compare .is-featured { background: #eef3fa; }
.compare thead .is-featured { background: var(--navy); color: var(--white); }
.compare small { display: block; color: var(--muted); }
.compare__for { color: var(--muted); font-size: .92rem; }

/* Koraci */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 68px; counter-increment: step; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--accent); font-weight: 800; font-size: 1.15rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 60px; right: -16px; top: 24px; height: 2px; background: var(--line); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Poziv na akciju */
.cta { padding-block: 0 clamp(60px, 8vw, 104px); background: var(--bg); }
.section--white + .cta { padding-top: clamp(60px, 8vw, 104px); }
.section:not(.section--white) + .cta { padding-top: 0; }
.cta__inner {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 36px;
    padding: clamp(36px, 6vw, 68px); border-radius: 26px; color: var(--white);
    background: radial-gradient(80% 160% at 100% 0%, var(--navy-soft) 0%, var(--navy) 65%);
}
.cta__inner::after {
    content: ""; position: absolute; top: -120px; right: -120px; width: 420px; height: 420px;
    background: url("../img/signal.svg") center / contain no-repeat; opacity: .32; pointer-events: none;
}
.cta__inner > * { position: relative; z-index: 1; }
.cta p { margin: 12px 0 0; color: var(--on-navy); max-width: 36em; font-size: 1.08rem; }
.cta .btn { flex: none; }
.cta .contact-list { margin-top: 20px; color: var(--on-navy); }

/* Kontakt */
.contact-list { margin: 0; }
.contact-list div + div { margin-top: 10px; }
.contact-list dt { font-size: .86rem; opacity: .8; }
.contact-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-layout > :only-child { grid-column: 1 / -1; max-width: 800px; }
.form-panel { padding: clamp(24px, 4vw, 42px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); scroll-margin-top: calc(var(--header-h) + 16px); }
.contact-aside { padding: 30px; background: linear-gradient(165deg, var(--navy-soft) 0%, var(--navy) 62%); color: var(--white); border-radius: var(--radius); }
.contact-aside h2 { margin-bottom: 18px; font-size: 1.3rem; }

.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label { display: block; margin-bottom: 7px; font-weight: 650; font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%; min-height: 52px; padding: 13px 14px;
    border: 1px solid #c3cedc; border-radius: var(--radius-sm); background: #fbfcfe; color: var(--ink);
    font: inherit; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: #93a4bb; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(245, 173, 39, .5); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 7px 0 0; color: var(--error); font-size: .92rem; font-weight: 600; }
.form-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { margin-bottom: 24px; padding: 15px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.alert h2 { margin-bottom: 6px; font-size: 1.35rem; }
.alert p { font-weight: 400; }
.alert--error { background: #fdeceb; color: var(--error); }
.alert--success { background: #e7f4ed; color: var(--success); }

/* Reference */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 14px; font-size: 1.08rem; }
.quote figcaption { color: var(--muted); font-size: .94rem; font-weight: 650; }

/* Podnožje */
.site-footer { background: var(--navy-deep); color: var(--on-navy); font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 64px 44px; }
.site-footer h2 { margin-bottom: 14px; color: var(--white); font-size: 1rem; letter-spacing: 0; }
.site-footer .logo + p { margin-top: 12px; max-width: 26em; }
.site-footer nav li + li { margin-top: 7px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--white); text-decoration: underline; }
.site-footer .contact-list { margin-bottom: 12px; }
.site-footer__legal { padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }

@media (max-width: 1080px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .package--featured { margin-block: 0; padding-block: 32px 26px; }
    .steps { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
    .steps li::after { display: none; }
}

@media (max-width: 940px) {
    :root { --header-h: 68px; }
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 20px 22px; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 40px rgba(4, 13, 28, .4); }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav a { padding: 13px 16px; border-radius: 12px; font-size: 1.05rem; }
    .main-nav .nav-cta { margin: 8px 0 0; }
    .main-nav .nav-cta a { text-align: center; }

    .hero__inner, .media-split, .contact-layout, .split, .grid--3 { grid-template-columns: 1fr; }
    .hero__visual::before { inset: -50px -60px; }
    .hero__visual img { aspect-ratio: 16 / 10; }
    .hero__chip { left: 14px; bottom: 14px; }
    .media-split--reverse .media-split__image { order: 0; }
    .media-split__image img { aspect-ratio: 16 / 10; }
    .contact-layout > :only-child { max-width: none; }
    .cta__inner { flex-direction: column; align-items: flex-start; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid > :first-child { grid-column: 1 / -1; }

    .page-head__img { width: 100%; }
    .page-head::after { width: 100%; background: linear-gradient(180deg, rgba(11, 31, 58, .8) 0%, rgba(11, 31, 58, .9) 100%); }
    .page-head--404::after { content: none; }
}

@media (max-width: 620px) {
    body { font-size: 16.5px; }
    .grid--2, .grid--4, .steps, .contact-form { grid-template-columns: 1fr; }
    .hero__visual::before { content: none; }
    .btn-row .btn, .cta .btn { width: 100%; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .compare th, .compare td { padding: 13px 14px; }
    .steps li { padding-top: 0; padding-left: 66px; min-height: 48px; }
    .feature { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .btn:hover, .package:hover, .service-card:hover, .service-card:hover img { transform: none; }
}
