/* ============================================================
   Kontos knjigovodstvo — Osijek
   Palette derived from the KontOS Digital bridge logo:
   deep navy, bright blue, teal, small green accent.
   Display: Fraunces (opsz) — a precise, ledger-like serif.
   Body/UI: Inter.
   ============================================================ */

:root {
  /* Brand */
  --navy:        #0B2545;
  --navy-700:    #12315A;
  --blue:        #1B5FC4;
  --blue-600:    #1750A8;
  --teal:        #12897E;
  --green:       #6FAF3E;

  /* Neutrals */
  --ink:         #16202E;
  --ink-soft:    #46566B;
  --line:        #E4E9F1;
  --line-soft:   #EEF2F8;
  --paper:       #FFFFFF;
  --mist:        #F4F7FC;   /* section tint */
  --mist-2:      #EDF2FA;

  /* Utility */
  --gold:        #E7A93B;

  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   26px;
  --shadow-sm:   0 1px 2px rgba(11,37,69,.04), 0 4px 14px rgba(11,37,69,.05);
  --shadow-md:   0 8px 30px rgba(11,37,69,.09);
  --shadow-lg:   0 22px 60px rgba(11,37,69,.16);

  --maxw:        1200px;
  --gutter:      clamp(20px, 5vw, 48px);

  --ease:        cubic-bezier(.22,.61,.36,1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Typography primitives ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.18rem; letter-spacing: -.005em; }
h4 { font-size: .95rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600;
  font-size: .78rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue); padding: 6px 14px 6px 12px;
  background: #EAF1FD; border-radius: 100px;
}
.eyebrow.center { margin-inline: auto; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(111,175,62,.22); }

.section-lead { color: var(--ink-soft); font-size: 1.06rem; max-width: 54ch; }
.section-lead.center { margin-inline: auto; text-align: center; }

.text-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* Signature: the ledger rule — a hand-drawn "balance" underline */
.rule-underline {
  display: block; width: 168px; height: 12px; margin-top: 10px;
  background: no-repeat left center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='12' viewBox='0 0 168 12'%3E%3Cpath d='M2 8C34 3 74 3 106 6c22 2 40 3 60 1' stroke='%236FAF3E' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.rule-underline-sm { width: 74px; height: 8px; margin-top: 6px; }
.rule-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='12' viewBox='0 0 168 12'%3E%3Cpath d='M2 8C34 3 74 3 106 6c22 2 40 3 60 1' stroke='%23A9E27C' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Double ledger rule used above the testimonial */
.rule-double { display:block; width:56px; height:0; border-top:2px solid var(--teal); box-shadow:0 5px 0 -0.5px var(--green); margin-bottom: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem;
  padding: 14px 24px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(27,95,196,.28); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27,95,196,.34); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container { max-width: 1480px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 124px; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 68px; width: auto; display: block; }
.logo-name { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; color: var(--navy); letter-spacing: -.01em; }
.logo-name strong { font-weight: 700; }
.logo-name-light { color: #fff; }
.logo-tag { font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .22em; color: var(--teal); }

.main-nav ul { list-style: none; display: flex; gap: 4px; padding: 0; }
.main-nav a { display: block; padding: 9px 14px; border-radius: 9px; font-size: .95rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; transition: color .16s, background .16s; }
.main-nav a:hover { color: var(--navy); background: var(--mist); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.header-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.header-phone svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--teal); }
.header-phone:hover { color: var(--blue); }
.header-phone:hover svg { color: var(--blue); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--navy); align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 136px; }
.section-tint { background: var(--mist); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 64px);
  background:
    radial-gradient(120% 90% at 88% -10%, #EAF1FD 0%, rgba(234,241,253,0) 55%),
    radial-gradient(90% 80% at -5% 10%, #EAF6F4 0%, rgba(234,246,244,0) 50%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 60px); align-items: center; }

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.04; letter-spacing: -.02em; margin: 20px 0 18px; position: relative;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--blue); position: relative; }
.hero-statement { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.28; letter-spacing: -.01em; color: var(--navy); margin-bottom: 12px; }
.hero-lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 46ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-proof { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid #fff;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem;
  margin-left: -12px; box-shadow: var(--shadow-sm);
}
.avatar:first-child { margin-left: 0; }
.avatar-lg { width: 54px; height: 54px; font-size: 1.05rem; margin: 0; }
.hero-values { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hero-value { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.hero-value svg { width: 20px; height: 20px; box-sizing: border-box; flex-shrink: 0; padding: 4px; border-radius: 50%; background: #E4F5F3; color: var(--teal); }

/* Hero media + floating cards */
.hero-media { position: relative; }
.hero-media-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
  aspect-ratio: 4 / 3.15;
}
.hero-media-frame img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: #fff; padding: 12px 16px 12px 12px; border-radius: 14px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line-soft);
  animation: floaty 5.5s var(--ease) infinite;
}
.float-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-icon svg { width: 21px; height: 21px; }
.float-text { display: flex; flex-direction: column; font-size: .82rem; color: var(--ink-soft); line-height: 1.25; }
.float-text strong { color: var(--navy); font-size: .92rem; }
.float-card-1 { top: 12%; left: -6%; animation-delay: 0s; }
.float-card-2 { top: 44%; right: -7%; animation-delay: -1.8s; }
.float-card-3 { bottom: 8%; left: 6%; animation-delay: -3.4s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* Quick services strip */
.quick-services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.quick-card { padding: 26px 24px; border-right: 1px solid var(--line-soft); transition: background .2s; }
.quick-card:last-child { border-right: none; }
.quick-card:hover { background: var(--mist); }
.quick-icon, .service-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 15px; }
.quick-icon svg, .service-icon svg { width: 24px; height: 24px; }
.quick-card h3 { margin-bottom: 5px; }
.quick-card p { font-size: .9rem; color: var(--ink-soft); }

/* ============================================================
   O NAMA
   ============================================================ */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-media { position: relative; }
.about-media > img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 3/2.1; object-fit: cover; }
.about-copy h2 { margin: 16px 0 18px; }
.about-copy .section-lead { margin-bottom: 18px; }
.about-text { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; max-width: 48ch; margin-bottom: 18px; }
.about-text-strong { color: var(--navy); font-weight: 600; margin-bottom: 28px; }
.about-more-btn { display: inline-flex; }

.stat-badge {
  position: absolute; right: -14px; bottom: -18px;
  background: var(--blue); color: #fff; border-radius: 18px;
  padding: 20px 26px; box-shadow: var(--shadow-lg); text-align: left;
  display: flex; flex-direction: column; min-width: 130px;
}
.stat-badge-dark { background: var(--navy); }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.stat-label { font-size: .82rem; font-weight: 500; opacity: .92; margin-top: 4px; }
.stat-badge .rule-underline-sm { margin-top: 8px; }

.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--navy); }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; padding: 4px; border-radius: 50%; background: #E4F5F3; color: var(--teal); }

/* ============================================================
   USLUGE
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 28px; cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: .96rem; }
.service-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: .88rem; font-weight: 600; color: var(--blue); opacity: 0; transform: translateX(-4px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.service-more::after {
  content: ""; width: 15px; height: 15px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-card:hover .service-more, .service-card:focus-visible .service-more { opacity: 1; transform: none; }

/* ============================================================
   MODAL — detalji usluge
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(11, 37, 69, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility 0s linear .28s;
}
.modal-overlay.open { opacity: 1; visibility: visible; transition: opacity .28s var(--ease); }
.modal-dialog {
  position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 620px; max-height: min(82vh, 720px);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.94) translateY(14px); opacity: 0;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .28s var(--ease);
}
.modal-overlay.open .modal-dialog { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  background: var(--mist); color: var(--ink-soft); border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .18s, color .18s, transform .18s;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--navy); color: #fff; transform: rotate(90deg); }
.modal-header {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 30px 60px 22px 30px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0;
}
.modal-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.modal-icon svg { width: 24px; height: 24px; }
.modal-header h3 { margin: 0; font-size: 1.35rem; }
.modal-body {
  padding: 26px 30px 32px; overflow-y: auto; color: var(--ink-soft); font-size: 1rem; line-height: 1.7;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.modal-body p { margin: 0 0 1.1em; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body h4 { color: var(--navy); font-size: 1.05rem; margin: 1.4em 0 .5em; }
.modal-body ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.modal-body li + li { margin-top: .4em; }
body.modal-lock { overflow: hidden; }
@media (max-width: 560px) {
  .modal-header { padding: 24px 56px 18px 22px; }
  .modal-body { padding: 20px 22px 26px; }
}

/* About modal (rich long-form content) */
.modal-dialog-lg { max-width: 760px; }
.about-content .eyebrow { margin-bottom: 14px; }
.about-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.about-subtitle { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--blue); font-size: 1.08rem; margin-bottom: 22px; }
.about-content h3 { color: var(--navy); font-size: 1.2rem; margin: 1.6em 0 .6em; }
.about-content strong { color: var(--navy); }
.about-values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1em 0 1.3em; }
.about-value { background: var(--mist); border-radius: 12px; padding: 16px 18px; }
.about-value h4 { color: var(--navy); font-size: .98rem; margin: 0 0 6px; }
.about-value p { font-size: .92rem; margin: 0; }
.about-modal-cta { display: inline-flex; margin: 1.4em 0 1.6em; }
.about-modal-sig { border-top: 1px solid var(--line); padding-top: 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.about-modal-sig strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }
.about-modal-sig span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .about-values-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ZASTO MI
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-copy h2 { margin: 16px 0 24px; }
.why-media { position: relative; }
.why-media > img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 16/10; object-fit: cover; }

/* ============================================================
   INDUSTRIJE
   ============================================================ */
.industries-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.industry-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; color: var(--navy); font-weight: 600; font-size: .88rem; text-align: center;
  transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.industry-item:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--blue); }
.industry-item svg { width: 30px; height: 30px; color: var(--teal); }
.industry-item:hover svg { color: var(--blue); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  max-width: 780px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.quote-mark { width: 44px; height: 33px; color: var(--green); margin-bottom: 20px; }
.testimonial-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.32; color: var(--navy); letter-spacing: -.01em; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.testimonial-author div { display: flex; flex-direction: column; text-align: left; }
.testimonial-author strong { color: var(--navy); }
.testimonial-author span { font-size: .9rem; color: var(--ink-soft); }

/* ============================================================
   PROCES ("Kako surađujemo")
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { padding-top: 22px; border-top: 2px solid var(--line); }
.process-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; color: var(--line); line-height: 1; margin-bottom: 18px; }
.process-step h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.blog-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-cat {
  position: absolute; left: 14px; top: 14px;
  color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(11,37,69,.18);
}
.blog-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.blog-meta { display: flex; gap: 6px; font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; }
.blog-body h3 { font-size: 1.22rem; line-height: 1.28; margin-bottom: 10px; }
.blog-body h3 a { color: var(--navy); transition: color .18s; }
.blog-body h3 a:hover { color: var(--blue); }
.blog-body p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 18px; }
.blog-read {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  color: var(--blue); font-weight: 600; font-size: .95rem;
}
.blog-read svg { transition: transform .2s var(--ease); }
.blog-card:hover .blog-read svg, .blog-read:hover svg { transform: translateX(3px); }
.blog-more { text-align: center; margin-top: clamp(32px, 4vw, 44px); }

/* Blog page — featured post + article list */
.blog-page-top { padding-top: clamp(30px, 4.5vw, 52px); }
.featured-post { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.featured-media { position: relative; }
.featured-media .hero-media-frame { aspect-ratio: 4 / 3; }
.featured-badges { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.badge-news { background: #E9F1FF; color: var(--blue); font-weight: 700; font-size: .8rem; padding: 5px 13px; border-radius: 999px; }
.read-time { color: var(--ink-soft); font-size: .86rem; font-weight: 500; }
.featured-body h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.9vw, 3.1rem); line-height: 1.06; letter-spacing: -.02em; color: var(--navy); margin-bottom: 18px; }
.featured-body p { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.6; margin-bottom: 26px; max-width: 52ch; }
.featured-body .blog-read { font-size: 1rem; }

.articles-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.articles-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.articles-head p { color: var(--ink-soft); margin-top: 6px; }

.article-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .82rem; }
.article-author { color: #B5652E; font-weight: 700; }
.article-date { color: var(--ink-soft); font-weight: 500; }

/* ============================================================
   ČLANAK (blog post stranica)
   ============================================================ */
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-back { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: .95rem; margin-bottom: clamp(20px, 3vw, 32px); }
.article-back svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.article-back:hover svg { transform: translateX(-3px); }
.article-head { text-align: center; margin-bottom: clamp(24px, 4vw, 36px); }
.article-cat { display: inline-block; background: #E9F1FF; color: var(--blue); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }
.article-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.07; letter-spacing: -.02em; color: var(--navy); margin: 18px 0 20px; }
.article-meta-row { display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: .92rem; }
.article-meta-row .author { color: var(--navy); font-weight: 600; }
.article-meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: clamp(24px, 4vw, 40px) 0; aspect-ratio: 16 / 8.5; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.article-body > * + * { margin-top: 1.15em; }
.article-body p { color: var(--ink); }
.article-body h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); color: var(--navy); margin-top: 1.7em; margin-bottom: .1em; }
.article-body h3 { font-size: 1.28rem; color: var(--navy); margin-top: 1.4em; margin-bottom: .1em; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li + li { margin-top: .45em; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-body strong { color: var(--navy); }
.article-body blockquote { border-left: 4px solid var(--teal); background: var(--mist); padding: 16px 22px; border-radius: 0 12px 12px 0; color: var(--navy); font-style: italic; }
.article-body img { width: 100%; border-radius: var(--radius); margin-block: 1.4em; }
.article-table-wrap { overflow-x: auto; margin-top: 1.15em; border: 1px solid var(--line); border-radius: 12px; }
.article-table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.article-table-wrap table th, .article-table-wrap table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.article-table-wrap table th { background: var(--mist); color: var(--navy); font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.article-table-wrap table tr:last-child td { border-bottom: none; }
.law-ref { color: var(--teal); font-weight: 600; }

.cost-badge { display: inline-flex; align-items: center; padding: 4px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.cost-badge--yes { background: #E4F5F3; color: #0F6B62; }
.cost-badge--warn { background: #FDF2E3; color: #9A5B0F; }
.cost-badge--no { background: #FBEAE9; color: #B42318; }
.article-body h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.article-related { margin-block: 1.6em; padding: 18px 22px; background: var(--mist); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; }
.article-related p { margin: 0; }
.article-related .article-related-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.article-related a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.article-footnote { margin-top: 2em; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.article-footnote ul { padding-left: 1.35em; margin-top: .6em; }
.article-footnote li + li { margin-top: .3em; }
.article-share { margin-top: clamp(36px, 5vw, 52px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-share span { color: var(--ink-soft); font-size: .92rem; }

/* ============================================================
   CJENIK — kalkulator
   ============================================================ */
.price-period { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--ink-soft); }

.price-calculator {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-md);
}

.calc-controls { display: flex; flex-direction: column; gap: 20px; }
.calc-field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.calc-field select, .calc-field input[type="number"] {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: .98rem; color: var(--ink); background: var(--mist);
  transition: border-color .18s, background .18s;
}
.calc-field select:focus, .calc-field input[type="number"]:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27,95,196,.12);
}
.calc-field-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.calc-field-toggle label[for="calc-pdv"] { margin-bottom: 0; }
.calc-switch { position: relative; display: inline-block; width: 46px; height: 27px; flex-shrink: 0; }
.calc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.calc-switch-track { position: absolute; inset: 0; background: var(--line); border-radius: 100px; transition: background .18s; }
.calc-switch-track::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s;
}
.calc-switch input:checked ~ .calc-switch-track { background: var(--teal); }
.calc-switch input:checked ~ .calc-switch-track::before { transform: translateX(19px); }
.calc-switch input:disabled ~ .calc-switch-track { background: var(--line); opacity: .5; cursor: not-allowed; }
.calc-switch input:focus-visible ~ .calc-switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.calc-hint { flex-basis: 100%; font-size: .82rem; color: var(--ink-soft); margin: 0; display: none; }
.calc-hint.visible { display: block; }

.calc-result { background: var(--mist); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.calc-result-label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.calc-total { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--navy); line-height: 1; margin: 8px 0 18px; }
.calc-breakdown { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.calc-breakdown li { display: flex; align-items: center; justify-content: space-between; font-size: .92rem; color: var(--ink-soft); }
.calc-breakdown li span:last-child { color: var(--navy); font-weight: 600; }
.calc-included { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.calc-included li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--ink-soft); }
.calc-included li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #E4F5F3 no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312897E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.calc-disclaimer { font-size: .78rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.calc-udruga-message { font-size: .95rem; font-weight: 600; color: var(--navy); background: #E4F5F3; border-radius: 10px; padding: 16px 18px; margin: 8px 0 22px; }
.calc-breakdown[hidden], .calc-included[hidden], .calc-assumptions-toggle[hidden], .calc-promo-note[hidden] { display: none; }

.promo-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 640px; margin: 0 auto clamp(20px, 3vw, 28px); padding: 12px 22px;
  background: #EAF6DF; color: #3F6B1F; border-radius: 100px;
  font-size: .92rem; font-weight: 600; text-align: center; box-shadow: var(--shadow-sm);
}
.promo-banner svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--green); }
.promo-banner strong { color: #2E5015; }
@media (max-width: 560px) { .promo-banner { border-radius: 16px; } }

.calc-promo-note {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  background: #EAF6DF; color: #3F6B1F; font-size: .84rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px; margin: -6px 0 18px;
}
.calc-promo-note strong { color: #2E5015; }

.calc-assumptions-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; padding: 0;
  background: none; border: none; font-family: var(--font-body); font-size: .84rem; font-weight: 600;
  color: var(--blue); cursor: pointer;
}
.calc-assumptions-toggle svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.calc-assumptions-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.calc-assumptions {
  margin-top: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: .84rem; color: var(--ink-soft);
}
.calc-assumptions ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.calc-assumptions strong { color: var(--navy); }
.calc-assumptions p { margin: 0; }
.calc-assumptions-heading { margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.calc-assumptions .calc-assumptions-list { list-style: disc; padding-left: 1.2em; margin: 0; display: block; }
.calc-assumptions-list li { margin-top: 6px; }
.calc-assumptions-list li:first-child { margin-top: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-intro h2 { margin: 16px 0 16px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item:has(.faq-question[aria-expanded="true"]) { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: none; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--navy);
}
.faq-question svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; transition: transform .28s var(--ease); }
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq-question[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; }
.faq-answer > p { overflow: hidden; padding: 0 22px; color: var(--ink-soft); font-size: .97rem; }
.faq-question[aria-expanded="true"] + .faq-answer > p { padding-bottom: 22px; }

/* ============================================================
   PREPORUKA (program preporuke)
   ============================================================ */
.referral-band {
  position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 108px);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 62%, #0E3B6B 100%);
}
.referral-band::before, .referral-band::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.referral-band::before {
  top: -140px; right: -110px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(111,175,62,.28), transparent 70%);
}
.referral-band::after {
  bottom: -160px; left: -90px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(18,137,126,.26), transparent 70%);
}
.referral-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 76px); align-items: center;
}
.eyebrow-onlight { background: rgba(255,255,255,.1); color: #CFE0FF; }
.referral-copy h2 { color: #fff; margin: 16px 0 18px; font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.referral-lead { color: rgba(255,255,255,.82); font-size: 1.06rem; line-height: 1.65; max-width: 50ch; margin-bottom: 30px; }
.referral-lead strong { color: #fff; }

.referral-steps { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 18px; }
.referral-steps li { display: flex; align-items: flex-start; gap: 14px; }
.referral-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .92rem;
}
.referral-steps strong { display: block; color: #fff; font-size: .98rem; margin-bottom: 2px; }
.referral-steps span { color: rgba(255,255,255,.68); font-size: .92rem; }

.btn-primary-light { background: #fff; color: var(--navy); }
.btn-primary-light:hover { background: var(--mist); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }

.referral-card-wrap { display: flex; justify-content: center; }
.referral-card {
  position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 32px 30px; width: 100%; max-width: 400px;
}
.referral-card-label {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal); background: #E4F5F3; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.referral-card h3 { font-size: 1.12rem; margin-bottom: 20px; }
.referral-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: .93rem; color: var(--ink-soft);
}
.referral-row em { font-style: normal; color: var(--ink-soft); opacity: .75; font-size: .87rem; }
.referral-row-base { color: var(--navy); font-weight: 600; }
.referral-amount { font-family: var(--font-display); font-weight: 600; color: var(--navy); flex-shrink: 0; white-space: nowrap; }
.referral-discount { color: var(--teal); }
.referral-row-total { border-bottom: none; border-top: 2px solid var(--navy); margin-top: 4px; padding-top: 16px; }
.referral-row-total span:first-child { color: var(--navy); font-weight: 700; font-size: 1rem; }
.referral-final { font-size: 1.7rem; color: var(--teal); }
.referral-note { margin-top: 18px; font-size: .87rem; color: var(--ink-soft); line-height: 1.55; }
.referral-note strong { color: var(--navy); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px); background: var(--navy); }
.cta-band-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .16; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, var(--navy) 30%, rgba(11,37,69,.72) 100%); }
.cta-band-content { position: relative; z-index: 2; text-align: center; max-width: 640px; }
.cta-band-content h2 { color: #fff; }
.cta-band-content p { color: rgba(255,255,255,.8); font-size: 1.08rem; margin: 16px auto 30px; max-width: 48ch; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: #EAF1FD; color: var(--blue); flex-shrink: 0; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { color: var(--navy); font-size: .95rem; }
.contact-list span { color: var(--ink-soft); font-size: .92rem; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 260px; border: 0; filter: grayscale(.2) contrast(1.02); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-required { color: #C24444; font-weight: 700; }
.form-optional { color: var(--ink-soft); font-weight: 500; font-size: .82rem; }
.form-required-note { margin: -6px 0 18px; font-size: .82rem; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--mist); transition: border-color .18s, background .18s, box-shadow .18s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27,95,196,.12); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 14px; font-size: .9rem; font-weight: 600; }
.form-note.ok { color: var(--teal); }
.form-note.error { color: #C24444; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.footer-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 8px 14px; }
.footer-logo img { height: 101px; width: auto; display: block; }
.footer-brand p { margin: 18px 0 20px; font-size: .95rem; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a, .footer-contact p { font-size: .95rem; }
.footer-nav a { color: rgba(255,255,255,.7); width: fit-content; transition: color .16s; }
.footer-nav a:hover { color: #fff; }
.footer-nav h4, .footer-contact h4 { color: #fff; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-contact p { margin-bottom: 8px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; color: rgba(255,255,255,.8); transition: background .18s, border-color .18s, transform .18s; }
.social-row a svg { width: 20px; height: 20px; }
.social-row a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; padding-block: 20px; flex-wrap: wrap; font-size: .86rem; }
.footer-credit a { color: #fff; font-weight: 600; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1500px) {
  .main-nav {
    position: fixed; inset: 124px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    transform: translateY(-140%); transition: transform .3s var(--ease); box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 124px); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .header-actions .btn-primary { display: none; }
  .header-phone { display: none; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero-lead { max-width: 60ch; }
  .quick-services { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: none; }
  .quick-card:nth-child(1), .quick-card:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card-featured { transform: none; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-row { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .price-calculator { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .about-grid, .why-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; gap: 40px; }
  .featured-media { order: -1; margin-inline: auto; max-width: 560px; width: 100%; }
  .featured-media .float-card-1 { left: 0; }
  .articles-head { flex-direction: column; align-items: flex-start; }
  .why-media { order: -1; }
  .about-media { max-width: 520px; }
  .stat-badge { right: 12px; bottom: -18px; padding: 16px 20px; min-width: 112px; }
  .stat-number { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .referral-grid { grid-template-columns: 1fr; }
  .referral-card-wrap { margin-top: 8px; }
  .quick-services { grid-template-columns: 1fr; }
  .quick-card { border-right: none !important; border-bottom: 1px solid var(--line-soft); }
  .quick-card:last-child { border-bottom: none; }
  .industries-row { grid-template-columns: repeat(3, 1fr); }
  .contact-list { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .industries-row { grid-template-columns: repeat(2, 1fr); }
  .float-card-1 { left: 0; top: 8%; }
  .float-card-2 { right: 0; }
}

/* ---------- Cjenik konzultacija: sidrena cijena ---------- */
.price-anchor-card {
  display: grid; grid-template-columns: 1.3fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; max-width: 760px; margin-inline: auto;
}
.price-anchor-main { padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.price-anchor-label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.price-anchor-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 4vw, 3rem); color: var(--navy); line-height: 1; }
.price-anchor-amount .price-period { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); }
.price-anchor-sub { font-size: .92rem; color: var(--ink-soft); max-width: 40ch; }
.price-anchor-side {
  background: var(--mist); border-left: 1px solid var(--line);
  padding: clamp(24px, 4vw, 34px); display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.price-anchor-side-label { font-size: .78rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.price-anchor-side-amount { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--teal); }
.price-anchor-badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  background: #E4F5F3; color: var(--teal); font-size: .78rem; font-weight: 600;
  padding: 5px 12px; border-radius: 100px;
}
@media (max-width: 680px) {
  .price-anchor-card { grid-template-columns: 1fr; }
  .price-anchor-side { border-left: none; border-top: 1px solid var(--line); }
}

.pricing-meta { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: 14px auto 0; }
.pricing-meta a { color: var(--navy); font-weight: 600; }

.price-history-csv-btn {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 10px; font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  color: var(--navy); cursor: pointer; transition: background .15s, border-color .15s;
}
.price-history-csv-btn:hover { background: var(--mist); border-color: var(--navy); }
.price-history-csv-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
#price-history-table th, #price-history-table td { white-space: nowrap; }
#price-history-table th { text-align: center; }
#price-history-table th:nth-child(1), #price-history-table td:nth-child(1) { width: 150px; }
#price-history-table th:nth-child(2), #price-history-table td:nth-child(2) { width: 110px; }
#price-history-table th:nth-child(4) { width: 84px; }
#price-history-table td:nth-child(4) { width: 84px; text-align: right; }
