/* Алтернатива за Србију — основни стилови */
:root {
  --blue: #1b3a8c;
  --blue-dark: #12285f;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --white: #ffffff;
  --bg: #f6f7fb;
  --text: #1c2233;
  --muted: #5b6478;
  --border: #dde2ee;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans", "DejaVu Sans", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--blue); }
a:hover { color: var(--red); }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Тробојка */
.tricolor { height: 6px; background: linear-gradient(to bottom, var(--red) 0 33.3%, var(--blue) 33.3% 66.6%, var(--white) 66.6% 100%); border-bottom: 1px solid var(--border); }

/* Заглавље */
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(18, 40, 95, .08); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand-title span { color: var(--red); }
.brand-sub { font-size: .8rem; color: var(--muted); font-style: italic; }

/* Навигација */
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; align-items: center; }
.nav li { position: relative; }

.nav a, .nav .drop-btn {
  display: block;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--blue-dark);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.nav a:hover, .nav .drop-btn:hover, .nav a.active, .nav .drop-btn.active { color: var(--red); background: #f2f4fa; }

.drop-btn::after { content: "▾"; margin-left: 6px; font-size: .8em; }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(18, 40, 95, .12);
  padding: 6px;
}
.submenu a { font-weight: 500; }
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.open > .submenu { display: block; }

.menu-toggle { display: none; white-space: nowrap; flex-shrink: 0; background: var(--blue); color: var(--white); border: 0; border-radius: 6px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }

/* Насловни део */
.hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); padding: 64px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(to right, var(--red) 0 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%); opacity: .9; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 16px; }
.hero h1 span { color: #ff6b7d; }
.hero p { font-size: 1.15rem; opacity: .95; margin: 0 0 26px; }
.hero-logo { background: var(--white); border-radius: 50%; padding: 10px; max-width: 340px; justify-self: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.hero-logo img { display: block; border-radius: 50%; }

.page-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); padding: 44px 0 40px; border-bottom: 6px solid var(--red); }
.page-hero h1 { margin: 0 0 6px; font-size: 2.2rem; }
.page-hero p { margin: 0; opacity: .9; }
.breadcrumb { font-size: .9rem; opacity: .85; margin-bottom: 8px; }
.breadcrumb a { color: var(--white); }

/* Дугмад */
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--blue); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Садржај */
main { display: block; }
.section { padding: 56px 0; }
.section-white { background: var(--white); }
.section h2 { color: var(--blue-dark); font-size: 1.8rem; margin: 0 0 12px; }
.section h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--red); margin-top: 10px; border-radius: 2px; }
.section h3 { color: var(--blue); margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }

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

.card { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 14px rgba(18, 40, 95, .05); }
.card.red { border-top-color: var(--red); }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.8rem; margin-bottom: 6px; }

.cta { background: var(--red); color: var(--white); padding: 48px 0; text-align: center; }
.cta h2 { color: var(--white); margin: 0 0 10px; }
.cta h2::after { display: none; }
.cta p { margin: 0 0 22px; opacity: .95; }

/* Платформа */
.platform-item { background: var(--white); border: 1px solid var(--border); border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.platform-item:nth-child(even) { border-left-color: var(--red); }
.platform-item h3 { display: flex; gap: 12px; align-items: baseline; }
.platform-item .num { color: var(--red); font-weight: 800; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; display: grid; place-items: center; }

/* Обрасци */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--blue-dark); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; border: 1px solid #c4cbdc; border-radius: 8px; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(27, 58, 140, .25); border-color: var(--blue); }
textarea { min-height: 130px; resize: vertical; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
.check-grid label, .consent label { font-weight: 400; color: var(--text); display: flex; gap: 8px; align-items: flex-start; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-success { display: none; background: #e8f5ec; border: 1px solid #9fd3ad; color: #1d5e2f; padding: 14px 16px; border-radius: 8px; margin-top: 14px; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { min-width: 120px; color: var(--blue-dark); }

.notice { background: #fff8e6; border: 1px solid #f0d58a; border-radius: 8px; padding: 14px 16px; font-size: .95rem; }

/* Ознаке за садржај који треба унети */
.placeholder { background: #fff3b0; border: 1px dashed #c9a400; border-radius: 4px; padding: 0 4px; color: #5a4a00; }
div.placeholder, p.placeholder { display: block; padding: 10px 12px; }

/* Подножје */
.site-footer { background: var(--blue-dark); color: #d9def0; padding: 40px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--white); margin: 0 0 12px; }
.site-footer a { color: #d9def0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.footer-brand img { width: 52px; border-radius: 50%; background: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 30px; padding: 16px 0; font-size: .9rem; text-align: center; }

/* Мобилни приказ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .btn-row { justify-content: center; }
  .hero-logo { max-width: 240px; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 10px 20px rgba(18, 40, 95, .12); padding: 10px 20px 16px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav .drop-btn { width: 100%; text-align: left; }
  .submenu { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--red); border-radius: 0; margin-left: 12px; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.open > .submenu { display: block; }
  .hero h1 { font-size: 2rem; }
  .check-grid { grid-template-columns: 1fr; }
}


/* Центриран мени и грб десно */
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.brand { justify-self: start; }
.nav { justify-self: center; }
.crest { justify-self: end; height: 62px; width: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(18, 40, 95, .2); }
@media (max-width: 860px) {
  .header-inner { display: flex; }
  .crest { margin-left: auto; height: 50px; }
  .nav { justify-self: stretch; }
}

/* Плутајућа позадина: постер остаје на месту док се страница помера */
body { background: transparent; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../poster.jpeg") center / cover no-repeat;
  filter: blur(1.5px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(246, 247, 251, .86);
}
.section-white { background: rgba(255, 255, 255, .55); }
.section h2, .section .lead, .section > .container > p, .section > .container > div > p, .section > .container > div > ul, .section > .container > div > h3 {
  text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}
.hero, .page-hero { background: linear-gradient(135deg, rgba(18, 40, 95, .82), rgba(27, 58, 140, .70)); }
.cta { background: rgba(200, 16, 46, .85); }
.site-footer { background: rgba(18, 40, 95, .93); }
