:root {
  color-scheme: light;
  --navy-950: #061728;
  --navy-900: #0a223a;
  --navy-800: #103453;
  --navy-700: #1b4a70;
  --ink: #152435;
  --muted: #627083;
  --paper: #f6f5f1;
  --white: #ffffff;
  --line: #dce1e5;
  --gold: #c79a49;
  --gold-light: #e3c582;
  --wood: #7a4d2d;
  --success: #237a57;
  --danger: #a23b3b;
  --radius: 18px;
  --shadow: 0 24px 70px rgb(6 23 40 / 12%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: white; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.boot { min-height: 100vh; display: grid; place-content: center; gap: 12px; color: var(--navy-800); text-align: center; }
.boot span { width: 38px; height: 38px; margin: auto; border: 3px solid #d6dce1; border-top-color: var(--gold); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(6 23 40 / 94%);
  color: white;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  backdrop-filter: blur(16px);
}
.header-inner { width: min(1180px, calc(100% - 36px)); height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .02em; }
.brand-logo { width: 64px; height: 72px; object-fit: contain; filter: brightness(0) invert(1); }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; letter-spacing: .13em; }
.brand small { display: block; margin-top: -4px; color: #c7d2dc; font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 9px 12px; color: #dfe7ee; border-radius: 999px; text-decoration: none; font-size: .93rem; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgb(255 255 255 / 10%); color: white; }
.site-nav .nav-cta { margin-left: 8px; background: var(--gold); color: var(--navy-950); }
.site-nav .nav-cta:hover { background: var(--gold-light); color: var(--navy-950); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 10px; background: transparent; color: white; }

.hero { position: relative; min-height: 710px; display: grid; align-items: end; overflow: hidden; background: var(--navy-950); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 18 31 / 98%) 0%, rgb(5 18 31 / 90%) 40%, rgb(5 18 31 / 34%) 72%, rgb(5 18 31 / 44%) 100%), url('/radovi/pavorini-03.jpg') center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 190px; background: linear-gradient(transparent, rgb(5 18 31 / 88%)); }
.hero-content { position: relative; z-index: 2; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 120px 0 86px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 7vw, 6.6rem); font-weight: 500; line-height: .94; letter-spacing: -.045em; }
.hero h1 em { color: var(--gold-light); font-style: italic; font-weight: 400; }
.hero-copy { max-width: 590px; margin: 25px 0 0; color: #d6dfe8; font-size: clamp(1.05rem, 2vw, 1.23rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 999px; background: var(--navy-900); color: white; text-decoration: none; font-weight: 760; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); background: var(--navy-800); }
.button-gold { background: var(--gold); color: var(--navy-950); }
.button-gold:hover { background: var(--gold-light); }
.button-ghost { border-color: rgb(255 255 255 / 35%); background: rgb(255 255 255 / 7%); }
.button-light { border-color: var(--line); background: white; color: var(--navy-900); }
.button-light:hover { background: #eef2f4; }
.button-danger { background: transparent; border-color: #e0b5b5; color: var(--danger); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 690px; gap: 1px; margin-top: 58px; background: rgb(255 255 255 / 18%); border: 1px solid rgb(255 255 255 / 18%); border-radius: 14px; overflow: hidden; }
.hero-facts div { padding: 18px; background: rgb(6 23 40 / 72%); }
.hero-facts strong { display: block; color: var(--gold-light); font-family: Georgia, serif; font-size: 1.25rem; }
.hero-facts span { color: #c4ced7; font-size: .79rem; text-transform: uppercase; letter-spacing: .08em; }

.section { padding: 100px 0; }
.section-navy { background: var(--navy-950); color: white; }
.section-tint { background: #ebece8; }
.shell { width: min(1180px, calc(100% - 36px)); margin: auto; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: 60px; align-items: end; margin-bottom: 44px; }
.section-heading h1, .section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.section-heading p:last-child { margin: 0; color: var(--muted); }
.section-navy .section-heading p:last-child { color: #bdc9d4; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { min-height: 320px; padding: 30px; border: 1px solid #d9dddf; border-radius: var(--radius); background: white; box-shadow: 0 8px 24px rgb(6 23 40 / 5%); }
.service-card .number { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--wood); font-family: Georgia, serif; }
.service-card h3 { margin: 62px 0 12px; color: var(--navy-900); font-family: Georgia, serif; font-size: 1.65rem; }
.service-card p { margin: 0; color: var(--muted); }
.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 7vw, 86px); align-items: center; }
.about-split img { width: 100%; min-height: 480px; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.about-split h2 { margin: 0; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 500; line-height: 1.03; letter-spacing: -.035em; }
.about-split p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.video-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(34px, 7vw, 80px); align-items: center; }
.video-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 500; line-height: 1.03; }
.video-section p:last-child { color: #bdc9d4; }
.video-frame { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgb(255 255 255 / 16%); border-radius: 22px; background: #020810; box-shadow: 0 24px 70px rgb(0 0 0 / 30%); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-link { display: flex; height: 100%; align-items: center; justify-content: center; gap: 16px; color: white; font-size: 1.25rem; text-decoration: none; }
.video-link strong { color: var(--gold-light); font-size: 2rem; }
.process { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.process-note { position: sticky; top: 112px; padding: 34px; border: 1px solid rgb(255 255 255 / 15%); border-radius: var(--radius); background: linear-gradient(135deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%)); }
.process-note h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.02; }
.process-note p:last-child { color: #bac7d3; }
.process-steps { display: grid; gap: 1px; background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 14%); border-radius: var(--radius); overflow: hidden; }
.process-step { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 28px; background: var(--navy-950); }
.process-step span { color: var(--gold-light); font-family: Georgia, serif; font-size: 2.1rem; }
.process-step h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.process-step p { margin: 0; color: #adbbc8; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-card { grid-column: span 4; position: relative; min-height: 360px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #d6dade; color: white; box-shadow: var(--shadow); text-align: left; cursor: zoom-in; }
.gallery-card:nth-child(5n + 1) { grid-column: span 7; }
.gallery-card:nth-child(5n + 2) { grid-column: span 5; }
.gallery-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; transition: transform .45s ease; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-card:focus-visible { outline: 4px solid var(--gold-light); outline-offset: 4px; }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgb(5 18 31 / 92%)); }
.gallery-caption small { color: var(--gold-light); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gallery-caption h3 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 1.45rem; }
.gallery-caption p { margin: 4px 0 0; color: #d8e0e7; font-size: .92rem; }
.empty-state { grid-column: 1 / -1; padding: 46px; border: 1px dashed #b7c0c8; border-radius: var(--radius); text-align: center; color: var(--muted); }
.section-navy .empty-state { border-color: rgb(255 255 255 / 25%); color: #bec9d3; }

.price-groups { display: grid; gap: 34px; }
.price-category h2 { margin: 0 0 14px; color: var(--navy-800); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.price-list { border-top: 1px solid #cfd5d9; }
.price-row { display: grid; grid-template-columns: 1fr minmax(130px, auto); gap: 28px; padding: 24px 0; border-bottom: 1px solid #cfd5d9; align-items: start; }
.price-row h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1.35rem; }
.price-row p { margin: 0; color: var(--muted); }
.price-row strong { color: var(--navy-900); font-size: 1.15rem; }
.price-values { min-width: 230px; text-align: right; }
.price-values > small { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.price-values > strong { display: block; white-space: nowrap; }
.price-values > span { display: block; margin-top: 5px; color: var(--wood); font-size: .76rem; }
.price-values > span b { white-space: nowrap; }
.sale-note { display: inline-block; margin-top: 8px; color: var(--danger); font-weight: 800; }
.price-note { margin-top: 36px; padding: 22px 25px; border-left: 4px solid var(--gold); background: white; color: var(--muted); }
.price-compliance-note { margin-bottom: 30px; padding: 20px 24px; border: 1px solid #dfc08c; border-radius: 14px; background: #fff8e9; color: #765322; }
.price-compliance-note p { margin: 4px 0 0; }
.price-archive { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.price-archive summary { cursor: pointer; color: var(--navy-900); font-weight: 800; }
.price-archive ul { margin: 16px 0 0; padding: 0; list-style: none; }
.price-archive li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.price-archive a { color: var(--navy-700); font-weight: 800; }
.price-downloads { margin-top: 32px; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; min-height: 100%; flex-direction: column; border: 1px solid #d7dce0; border-radius: var(--radius); overflow: hidden; background: white; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.post-card time { color: var(--wood); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.post-card h2, .post-card h3 { margin: 8px 0 10px; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.15; }
.post-card p { margin: 0 0 22px; color: var(--muted); }
.post-card a { margin-top: auto; color: var(--navy-800); font-weight: 800; }
.article-page { max-width: 840px; }
.article-page h1 { font-family: Georgia, serif; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.02; }
.article-page img { width: 100%; margin: 32px 0; border-radius: var(--radius); }
.article-body { font-size: 1.08rem; white-space: pre-wrap; }

.contact-panel { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 26px; overflow: hidden; background: var(--navy-900); color: white; box-shadow: var(--shadow); }
.contact-panel > div { padding: clamp(30px, 6vw, 66px); }
.contact-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.02; }
.contact-panel p { color: #c8d3dd; }
.contact-details { display: grid; align-content: center; gap: 18px; background: var(--gold); color: var(--navy-950); }
.contact-details a, .contact-details span { display: block; padding-bottom: 15px; border-bottom: 1px solid rgb(6 23 40 / 25%); font-size: 1.14rem; font-weight: 750; text-decoration: none; }
.contact-details small { display: block; margin-bottom: 3px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-details .contact-preferred { padding: 14px 16px; border: 1px solid rgb(6 23 40 / 30%); border-radius: 12px; background: var(--navy-950); color: white; }
.contact-details .contact-preferred small { color: var(--gold-light); }
.contact-details a strong { float: right; }

.site-footer { padding: 40px 0; background: #03111e; color: #aebdca; }
.footer-inner { width: min(1180px, calc(100% - 36px)); margin: auto; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner a { color: #dce4ea; }
.footer-inner p { max-width: 620px; text-align: right; }

.legal-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.legal-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 36px rgb(6 23 40 / 6%); }
.legal-card h2 { margin: 0 0 18px; color: var(--navy-900); font-family: Georgia, serif; font-size: 1.8rem; }
.legal-card h2:not(:first-child) { margin-top: 34px; }
.legal-card p { color: var(--muted); }
.legal-card a { color: var(--navy-700); font-weight: 800; }
.legal-card dl { margin: 0; }
.legal-card dl div { display: grid; grid-template-columns: minmax(140px, .7fr) 1.3fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-card dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.legal-card dd { margin: 0; color: var(--navy-900); font-weight: 750; overflow-wrap: anywhere; }
.legal-preview-note { margin-bottom: 22px; }

.page-hero { padding: 90px 0 54px; background: var(--navy-950); color: white; }
.page-hero h1 { max-width: 820px; margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 6rem); line-height: .98; font-weight: 500; }
.page-hero p:last-child { max-width: 650px; color: #bfccd6; font-size: 1.12rem; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-950); }
.auth-visual { padding: 50px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgb(6 23 40 / 42%), rgb(6 23 40 / 94%)), url('/radovi/pavorini-03.jpg') center/cover; color: white; }
.auth-visual h1 { max-width: 560px; font-family: Georgia, serif; font-size: clamp(3rem, 5vw, 5.6rem); line-height: .96; font-weight: 500; }
.auth-card-wrap { display: grid; place-items: center; padding: 30px; background: #f1f2ef; }
.auth-card { width: min(450px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 2.2rem; }
.auth-card > p { margin-top: 0; color: var(--muted); }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; background: #eef0f1; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; background: var(--navy-950); color: white; }
.admin-sidebar .brand { padding: 4px 8px 26px; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; color: #bdc9d3; text-align: left; font-weight: 700; }
.admin-nav button:hover, .admin-nav button.active { background: rgb(255 255 255 / 9%); color: white; }
.admin-user { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgb(255 255 255 / 12%); }
.admin-user strong, .admin-user small { display: block; }
.admin-user small { color: #9baab8; }
.admin-user button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--gold-light); }
.admin-main { min-width: 0; padding: 42px clamp(20px, 5vw, 64px) 70px; }
.admin-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.admin-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.3rem, 4vw, 3.8rem); }
.admin-heading p { margin: 4px 0 0; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.metric small { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.metric strong { display: block; margin-top: 8px; color: var(--navy-900); font-family: Georgia, serif; font-size: 2.4rem; }
.admin-panel { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.storage-status { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.storage-status strong, .storage-status span { display: block; }
.storage-status span, .storage-status p { font-size: .85rem; color: var(--muted); }
.storage-status p { margin-bottom: 0; }
.storage-status progress { width: 100%; height: 12px; margin-top: 12px; accent-color: var(--navy-900); }
.storage-warning { border-color: #a86018; background: #fff8ed; }
button:disabled { cursor: not-allowed; opacity: .65; }
.admin-panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.admin-panel-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.7rem; }
.admin-list { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid #e1e5e8; border-radius: 12px; background: #fafbfb; }
.admin-row h3, .admin-row p { margin: 0; }
.admin-row p, .admin-row small { color: var(--muted); }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-row-actions button { padding: 7px 11px; border: 1px solid #ccd4da; border-radius: 999px; background: white; color: var(--navy-900); }
.admin-row-actions .danger { color: var(--danger); border-color: #e1baba; }
.admin-thumb { width: 86px; height: 68px; object-fit: cover; border-radius: 8px; }
.admin-row.with-thumb { grid-template-columns: 86px minmax(0, 1fr) auto; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-stack { display: grid; gap: 16px; }
.settings-group { display: grid; gap: 14px; margin: 10px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.settings-group legend { padding: 0 8px; color: var(--navy-900); font-weight: 800; }
.logo-admin-preview { display: grid; min-height: 170px; place-items: center; padding: 22px; border-radius: 12px; background: var(--navy-950); }
.logo-admin-preview img { width: min(190px, 70%); max-height: 150px; object-fit: contain; filter: brightness(0) invert(1); }
.upload-preview { width: 100%; max-height: 280px; margin-top: 12px; border-radius: 12px; object-fit: cover; }
.upload-preview[hidden] { display: none; }
label { display: grid; gap: 6px; color: var(--navy-900); font-size: .88rem; font-weight: 750; }
input, textarea, select { width: 100%; border: 1px solid #cbd3d9; border-radius: 9px; background: white; color: var(--ink); padding: 11px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgb(27 74 112 / 12%); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
textarea { min-height: 130px; resize: vertical; }
label.checkbox { display: flex; align-items: center; gap: 8px; }
label.checkbox input { width: auto; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.notice { margin: 14px 0; padding: 12px 14px; border-radius: 9px; background: #e5f3ec; color: #1c694b; }
.notice.error { background: #f9e9e9; color: #873232; }
.muted { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #e9edf0; color: var(--muted); font-size: .75rem; font-weight: 800; }
.status-pill.live { background: #dff2e8; color: var(--success); }
.dialog-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgb(2 12 22 / 72%); }
.dialog { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border-radius: var(--radius); background: white; box-shadow: 0 30px 90px rgb(0 0 0 / 30%); }
.dialog h2 { margin-top: 0; font-family: Georgia, serif; font-size: 2rem; }
.dialog-close { float: right; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf0f1; }
.dialog-open { overflow: hidden; }
.lightbox { display: grid; gap: 22px; }
.lightbox > img { width: 100%; max-height: 66vh; border-radius: 14px; object-fit: contain; background: #071a2e; }
.lightbox h2 { margin-bottom: 6px; }
.lightbox p:last-child { margin-bottom: 0; color: var(--muted); }
.security-panel { max-width: 700px; }
.admin-mobile-head { display: none; }
.activation-link { min-height: 108px; font-family: monospace; font-size: .85rem; overflow-wrap: anywhere; }
.traffic-chart { display: block; width: 100%; max-height: 300px; margin: 20px 0; }
.traffic-chart text { fill: var(--muted); font-size: 12px; }
.traffic-axis { stroke: var(--line); stroke-width: 1; }
.traffic-line { fill: none; stroke: var(--navy-700); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.statistics-table-wrap { overflow-x: auto; }
.statistics-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.statistics-table th, .statistics-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.statistics-table td { text-align: right; }
.admin-panel details summary { cursor: pointer; padding: 10px 0; }

@media (max-width: 920px) {
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 88px 0 auto; display: none; padding: 18px; background: var(--navy-950); border-bottom: 1px solid rgb(255 255 255 / 15%); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 13px 14px; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .hero { min-height: 650px; }
  .hero::before { background: linear-gradient(90deg, rgb(5 18 31 / 96%), rgb(5 18 31 / 66%)), url('/radovi/pavorini-03.jpg') 58% center/cover no-repeat; }
  .section-heading, .process, .contact-panel, .about-split, .video-section, .legal-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-grid, .posts-grid { grid-template-columns: 1fr 1fr; }
  .process-note { position: static; }
  .gallery-card, .gallery-card:nth-child(n) { grid-column: span 6; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; width: 280px; transform: translateX(-105%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-head { position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; margin: -10px -2px 22px; padding: 12px 2px; background: rgb(246 245 241 / 94%); backdrop-filter: blur(12px); }
  .admin-mobile-head button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--navy-900); color: white; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 300px; }
  .auth-visual h1 { font-size: 3rem; }
}

@media (max-width: 640px) {
  .header-inner, .hero-content, .shell, .footer-inner { width: min(100% - 28px, 1180px); }
  .brand strong { font-size: 1.27rem; }
  .brand small { display: block; font-size: .62rem; }
  .brand-logo { width: 52px; height: 60px; }
  .hero { min-height: 700px; }
  .hero::before { background: linear-gradient(180deg, rgb(5 18 31 / 48%) 0%, rgb(5 18 31 / 92%) 58%, rgb(5 18 31 / 100%) 100%), url('/radovi/pavorini-03.jpg') center top/auto 440px no-repeat; }
  .hero-content { padding: 300px 0 50px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding: 12px 16px; }
  .section { padding: 70px 0; }
  .section-heading { margin-bottom: 30px; }
  .service-grid, .posts-grid, .form-grid, .admin-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 38px; }
  .about-split img { min-height: 300px; }
  .gallery-card, .gallery-card:nth-child(n) { grid-column: 1 / -1; min-height: 300px; }
  .gallery-card img { min-height: 300px; }
  .price-row { grid-template-columns: 1fr; gap: 8px; }
  .price-values { min-width: 0; text-align: left; }
  .contact-panel > div { padding: 30px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner p { text-align: left; }
  .legal-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .admin-main { padding: 20px 14px 50px; }
  .admin-heading, .admin-panel-heading { align-items: flex-start; flex-direction: column; }
  .admin-row, .admin-row.with-thumb { grid-template-columns: 1fr; }
  .admin-row-actions { justify-content: flex-start; }
  .admin-thumb { width: 100%; height: 180px; }
  .auth-visual { padding: 26px; }
  .auth-card-wrap { padding: 18px; }
  .auth-card { padding: 25px 20px; }
  .dialog-backdrop { align-items: stretch; padding: 0; }
  .dialog { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); }
  .form-actions .button { width: 100%; min-height: 52px; }
  input, textarea, select { font-size: 16px; }
}

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