/* =====================================================
   Agencija za knjigovodstvene usluge Jasmina Milosavljević
   ===================================================== */

:root {
  --brand-900: #0a2e2a;
  --brand-800: #0e3b36;
  --brand-700: #12463f;
  --brand-500: #1d6a5e;
  --brand-400: #2e8577;
  --brand-200: #b9d9d2;
  --brand-100: #d9eae6;
  --brand-050: #eef6f4;

  --gold: #d9a441;
  --gold-dark: #b9862c;
  --cream: #faf7f0;
  --ink: #1c2624;
  --ink-soft: #4c5a57;

  --bg: #ffffff;
  --bg-alt: var(--brand-050);
  --viber: #7360f2;
  --viber-dark: #5b4bd4;

  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(10, 46, 42, .07);
  --shadow-md: 0 10px 34px rgba(10, 46, 42, .12);
  --shadow-lg: 0 24px 60px rgba(10, 46, 42, .18);

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

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--brand-900); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.18rem; }

h1 em, h2 em {
  font-style: italic;
  color: var(--brand-500);
  position: relative;
}
h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .28em;
  background: linear-gradient(90deg, rgba(217,164,65,.5), rgba(217,164,65,.15));
  z-index: -1;
  border-radius: 3px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-sub { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn.big { padding: 16px 30px; font-size: 1.05rem; }

.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-500); box-shadow: var(--shadow-md); }

.btn-viber { background: var(--viber); color: #fff; box-shadow: 0 8px 24px rgba(115, 96, 242, .35); }
.btn-viber:hover { background: var(--viber-dark); box-shadow: 0 12px 30px rgba(115, 96, 242, .45); }

.btn-outline { border-color: var(--brand-200); color: var(--brand-800); background: #fff; }
.btn-outline:hover { border-color: var(--brand-500); background: var(--brand-050); }

.btn-white { background: #fff; color: var(--brand-800); }
.btn-white:hover { background: var(--cream); }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: rgba(10,46,42,.08); box-shadow: 0 4px 24px rgba(10,46,42,.06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: auto; transition: transform .4s ease; }
.brand:hover .brand-mark { transform: scale(1.06); }
.brand-chip {
  display: inline-flex;
  background: #faf7f0;
  border-radius: 12px;
  padding: 6px 8px;
}
.brand-chip .brand-mark { width: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; color: var(--brand-900); }
.brand-text small { font-size: .68rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  position: relative;
  transition: color .25s ease;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width .3s ease;
}
.main-nav a:hover { color: var(--brand-800); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--brand-700);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .25s ease, transform .25s ease;
}
.nav-cta:hover { background: var(--brand-500); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--brand-800); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (video baner) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding: 150px 0 110px;
  background: var(--brand-900);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(7, 30, 27, .96) 0%,
    rgba(9, 39, 35, .9) 38%,
    rgba(9, 39, 35, .62) 72%,
    rgba(10, 46, 42, .42) 100%);
}

.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--gold); }
.hero h1 em::after { background: linear-gradient(90deg, rgba(217, 164, 65, .35), rgba(217, 164, 65, .08)); }
.hero .btn-outline {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.hero .btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .8); }

.hero-inner { position: relative; }
.hero-copy { max-width: 680px; }
.hero .lead { font-size: 1.13rem; color: rgba(255, 255, 255, .82); margin: 22px 0 32px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 20px; font-size: .88rem; color: rgba(255, 255, 255, .68); }

.float-slow { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Traka poverenja ---------- */
.trust { background: var(--bg-alt); padding: 34px 0 64px; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brand-700);
  line-height: 1.1;
}
.trust-item span { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Usluge ---------- */
.services { background: var(--bg-alt); padding-top: 20px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(18, 70, 63, .07);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--brand-050);
  color: var(--brand-500);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--brand-700); color: #fff; transform: scale(1.08) rotate(-4deg); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: .92rem; color: var(--ink-soft); }

.services-cta {
  margin-top: 46px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  padding: 34px 28px;
}
.services-cta p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1.03rem; }

/* ---------- O nama ---------- */
.about-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.about-visual { position: relative; }
.about-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--brand-050);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-badge {
  position: absolute;
  bottom: -20px; right: -12px;
  max-width: 280px;
  background: var(--brand-800);
  color: #f4ede1;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-head);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.5;
}
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.about-copy h2 { margin-bottom: 20px; }
.about-list { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: .97rem; }
.about-list span {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-500);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
  margin-top: 2px;
}

/* ---------- Zašto mi ---------- */
.why { background: var(--brand-800); }
.why .eyebrow { color: var(--gold); }
.why h2 { color: #fff; }
.why h2 em { color: var(--gold); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: background .35s ease, transform .35s ease, border-color .35s ease;
}
.why-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-6px); border-color: rgba(217, 164, 65, .4); }
.why-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gold);
  opacity: .85;
  display: block;
  margin-bottom: 14px;
}
.why-card h3 { color: #fff; margin-bottom: 10px; }
.why-card p { color: rgba(255, 255, 255, .72); font-size: .92rem; }

/* ---------- Kako radimo ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: korak;
  position: relative;
}
.step {
  background: #fff;
  border: 1px solid rgba(18, 70, 63, .08);
  border-radius: var(--radius);
  padding: 36px 28px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(18, 70, 63, .3);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: .94rem; }
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%; right: -22px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--brand-200);
}

/* ---------- Za koga radimo ---------- */
.clients { background: var(--bg-alt); }
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin-inline: auto;
}
.client-pill {
  background: #fff;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--brand-800);
  transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  cursor: default;
}
.client-pill:hover {
  background: var(--brand-700);
  color: #fff;
  border-color: var(--brand-700);
  transform: translateY(-4px) scale(1.03);
}

/* ---------- FAQ ---------- */
.faq-inner { max-width: 780px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(18, 70, 63, .1);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq-item[open] { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--brand-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--brand-050); }
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-050);
  position: relative;
  transition: transform .3s ease, background .3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--brand-500);
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
  border-radius: 1px;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--brand-100); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact { padding-bottom: clamp(70px, 9vw, 120px); }
.contact-card {
  background: linear-gradient(140deg, var(--brand-800) 0%, var(--brand-700) 60%, #1a5a4e 100%);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, .25), transparent 70%);
  top: -160px; right: -120px;
  pointer-events: none;
}
.contact-copy h2 { color: #fff; margin-bottom: 16px; }
.contact-copy > p { color: rgba(255, 255, 255, .8); max-width: 480px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.contact-info {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
  backdrop-filter: blur(6px);
}
.info-row { display: flex; flex-direction: column; gap: 3px; }
.info-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 600; }
.info-value { font-size: 1.08rem; font-weight: 600; color: #fff; transition: color .25s ease; }
a.info-value:hover { color: var(--gold); }
.info-note { font-size: .82rem; color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }

/* ---------- Futer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255, 255, 255, .75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 64px 0 44px;
}
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .55); }
.footer-desc { margin-top: 18px; font-size: .9rem; line-height: 1.7; max-width: 320px; color: rgba(255, 255, 255, .65); }
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .7);
  transition: color .25s ease, transform .25s ease;
}
.footer-col a:hover { color: var(--gold); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { transition: color .25s ease; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Plutajuće Viber dugme ---------- */
.viber-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--viber);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(115, 96, 242, .45);
  transition: transform .3s ease, background .3s ease;
  animation: fabPulse 2.6s ease-in-out infinite;
}
.viber-fab svg { width: 30px; height: 30px; }
.viber-fab:hover { transform: scale(1.12); background: var(--viber-dark); animation-play-state: paused; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(115, 96, 242, .45), 0 0 0 0 rgba(115, 96, 242, .4); }
  55%      { box-shadow: 0 10px 30px rgba(115, 96, 242, .45), 0 0 0 18px rgba(115, 96, 242, 0); }
}


/* ---------- Uvodna animacija (logo se iscrtava perom) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at 50% 42%, #124a41 0%, #0a2e2a 55%, #071e1b 100%);
  display: grid;
  place-items: center;
  transition: opacity .6s ease;
  cursor: pointer;
}
.intro.done { opacity: 0; pointer-events: none; }
.intro-logo {
  position: relative;
  width: min(260px, 54vw);
  aspect-ratio: 831 / 821;
  filter: drop-shadow(0 0 26px rgba(217, 164, 65, .25));
}
.intro-logo canvas { width: 100%; height: 100%; display: block; }
.intro.glow .intro-logo { animation: introGlow 1s ease both; }
@keyframes introGlow {
  0%   { filter: drop-shadow(0 0 26px rgba(217, 164, 65, .25)); transform: scale(1); }
  45%  { filter: drop-shadow(0 0 60px rgba(217, 164, 65, .75)); transform: scale(1.05); }
  100% { filter: drop-shadow(0 0 30px rgba(217, 164, 65, .35)); transform: scale(1); }
}


/* ---------- Podstranice ---------- */
.main-nav a.active { color: var(--brand-800); font-weight: 600; }
.main-nav a.active:not(.nav-cta)::after { width: 100%; }

.page-hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(217, 164, 65, .18), transparent 45%),
    linear-gradient(140deg, var(--brand-900) 0%, var(--brand-700) 70%, var(--brand-500) 100%);
  padding: 150px 0 72px;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero .eyebrow { color: var(--gold); }
.page-sub { color: rgba(255, 255, 255, .78); max-width: 640px; margin-top: 14px; font-size: 1.06rem; }

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.service-detail {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(18, 70, 63, .08);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-detail:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-detail h2 { font-size: 1.3rem; margin-bottom: 10px; }
.service-detail p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink); }
.check-list span {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-500);
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 700;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .services-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .service-detail { grid-template-columns: 1fr; }
}

/* ---------- Reveal animacije ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22, .8, .35, 1), transform .8s cubic-bezier(.22, .8, .35, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.js-off .reveal { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
}

/* ---------- Pravne stranice ---------- */
.legal-page { padding: 150px 0 90px; max-width: 800px; }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.legal-updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.35rem; margin: 38px 0 14px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: .97rem; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 16px; }
.legal-page a { color: var(--brand-500); font-weight: 600; }
.legal-page a:hover { text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 600; color: var(--brand-700); }

/* ---------- Responsivnost ---------- */
@media (max-width: 1024px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; gap: 70px; }
  .about-badge { right: 8px; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 6%;
    border-bottom: 1px solid rgba(10,46,42,.08);
    box-shadow: 0 20px 40px rgba(10,46,42,.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(10,46,42,.06); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin: 14px 0 8px; border-bottom: none !important; }
  .nav-toggle { display: flex; }

  .hero { padding: 130px 0 90px; min-height: 0; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: "↓"; top: auto; bottom: -34px; right: 50%; transform: translateX(50%); }
  .steps { gap: 44px; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .viber-fab { bottom: 18px; right: 18px; width: 54px; height: 54px; }
}
