:root {
  --navy: #054176;
  --navy-dark: #04335d;
  --red: #dd4d4d;
  --red-dark: #c63d3d;
  --text: #555;
  --heading: #1e2a38;
  --muted: #8a8f96;
  --line: #e3e7ec;
  --bg-soft: #f2f4f7;
  --radius: 4px;
  --container: 1170px;
  --font: "Open Sans", Arial, sans-serif;
  --font-head: "Roboto Slab", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.75 var(--font); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--heading); line-height: 1.3; margin: 1.6em 0 .6em; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
p { margin: 0 0 1.1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.ico { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* Top bar */
.topbar { background: var(--navy); color: #fff; font-size: 13px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffd2d2; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.topbar-info li { display: flex; align-items: center; gap: 8px; }
.topbar-info .ico { fill: var(--red); }
.topbar-social { gap: 18px !important; }

/* Header + navigation */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo img { width: 190px; height: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a, .sub-toggle {
  display: block; padding: 26px 14px; font: 700 15px var(--font); color: var(--navy);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.menu > li > a:hover, .sub-toggle:hover, .menu .active { color: var(--red); }
.sub-toggle::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 3px;
  border: 4px solid transparent; border-top-color: var(--red); border-bottom: 0;
}
.sub {
  position: absolute; top: 100%; left: 0; display: none; gap: 30px; padding: 22px 26px;
  background: #fff; border-top: 3px solid var(--red); box-shadow: 0 12px 30px rgba(0,0,0,.12); min-width: 520px;
}
.sub-wide { min-width: 760px; left: -180px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: flex; }
.sub-col { flex: 1; display: flex; flex-direction: column; }
.sub-title { font: 700 14px var(--font-head); color: var(--heading); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sub a { color: var(--text); text-decoration: none; font-size: 14px; padding: 5px 0; }
.sub a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: .2s; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: var(--radius); font: 700 14px var(--font);
  text-decoration: none; text-align: center; cursor: pointer; border: 2px solid transparent; transition: .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--red); color: #fff; }
.btn-block { display: block; width: 100%; }

/* Page layout */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 42px 0 34px; }
.page-head h1 { margin: 0; font-size: 30px; }
.page-date { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; padding-top: 44px; padding-bottom: 64px; }
.page-wide { grid-template-columns: minmax(0, 1fr); }
.content > :first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.content li { margin-bottom: .35em; }
.lead-img { margin: 0 0 28px; }
.lead-img img { width: 100%; border-radius: var(--radius); }
.content figure { margin: 0 0 24px; }
.content blockquote { margin: 0 0 1.2em; padding: 14px 20px; border-left: 4px solid var(--red); background: var(--bg-soft); }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.content th, .content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.content th { background: var(--navy); color: #fff; font-weight: 600; }
.content tr:nth-child(even) td { background: #fafbfc; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-box { background: var(--bg-soft); padding: 22px; border-radius: var(--radius); }
.side-box h3 { margin: 0 0 12px; font-size: 16px; }
.side-menu { padding: 0; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.side-menu h3 { background: var(--navy); color: #fff; padding: 16px 20px; margin: 0; border-bottom: 4px solid var(--red); }
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: block; padding: 11px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.side-menu li:last-child a { border-bottom: 0; }
.side-menu a:hover, .side-menu a.active { color: var(--red); background: #fbfbfc; }
.side-contact p { font-size: 14px; }
.side-quote { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-style: italic; }
.side-quote footer { font-style: normal; color: var(--muted); font-size: 13px; }
.side-quote strong { color: var(--heading); }

/* CTA band + footer */
.cta-band { background: var(--red); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.cta-inner p { margin: 0; font: 700 20px/1.4 var(--font-head); max-width: 720px; }
.site-footer { background: var(--navy); color: #d5e1ee; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffd2d2; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 48px; padding-bottom: 40px; }
.footer-grid strong { display: block; color: #fff; font-family: var(--font-head); font-size: 15px; margin-bottom: 8px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; text-align: center; color: #9fb5cc; }

/* Home */
.hero { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,65,118,.92) 0%, rgba(5,65,118,.75) 45%, rgba(5,65,118,.25) 100%); }
.hero-inner { position: relative; padding-top: 110px; padding-bottom: 120px; max-width: var(--container); }
.hero h1 { color: #fff; font-size: 46px; margin: 0 0 18px; max-width: 640px; }
.hero h1 span { color: #ff8a8a; }
.hero p { font-size: 18px; max-width: 560px; margin-bottom: 30px; color: #e8eff7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy); }

.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin: 0 0 12px; font-size: 32px; }
.section-title::after { content: ""; display: block; width: 50px; height: 3px; background: var(--red); margin: 16px auto 0; }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 44px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.service {
  display: flex; flex-direction: column; background: #fff; padding: 30px 28px; border-radius: var(--radius);
  text-decoration: none; color: var(--text); border-bottom: 3px solid transparent; box-shadow: 0 2px 14px rgba(0,0,0,.05); transition: .2s;
}
.service:hover { border-bottom-color: var(--red); transform: translateY(-3px); color: var(--text); box-shadow: 0 10px 28px rgba(0,0,0,.09); }
.service-badge { align-self: flex-start; font: 700 13px var(--font); color: #fff; background: var(--navy); padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; }
.service h3 { margin: 0 0 10px; font-size: 19px; }
.service p { font-size: 14px; flex: 1; }
.service .more { color: var(--red); font-weight: 700; font-size: 14px; }

.stats { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; }
.stats::before { content: ""; position: absolute; inset: 0; background: rgba(5,65,118,.86); }
.stats .container { position: relative; }
.stats h2 { color: #fff; text-align: center; margin: 0 0 44px; font-size: 32px; }
.stats h2 span { color: #ff8a8a; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font: 700 44px/1.1 var(--font-head); color: #fff; }
.stat-label { display: block; margin-top: 8px; color: #d5e1ee; }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.quote { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 2px 14px rgba(0,0,0,.05); margin: 0; }
.quote p { font-style: italic; font-size: 16px; }
.quote footer { color: var(--muted); font-size: 14px; }
.quote strong { color: var(--heading); display: block; }

.callback { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.callback-text h2 { margin-top: 0; }

/* Forms */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 22px; margin: 0; display: grid; gap: 14px; }
.form legend { font: 700 16px var(--font-head); color: var(--heading); padding: 0 8px; }
.form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--heading); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=url],
.form input[type=number], .form select, .form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd6de; border-radius: var(--radius);
  font: 15px var(--font); color: var(--heading); background: #fff;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(5,65,118,.25); border-color: var(--navy); }
.form .checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.form .checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form .hint { font-size: 13px; color: var(--muted); font-weight: 400; margin: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { justify-self: start; border: 0; }
.loc-table input { min-width: 120px; }
.form-dark label { color: #fff; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.alert-ok { background: #e6f4ea; color: #1e6b34; }
.alert-err { background: #fdecec; color: #a12d2d; }

/* Contact */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.office img { width: 100%; height: 220px; object-fit: cover; }
.office-body { padding: 22px 24px; }
.office h3 { margin: 0 0 10px; }
.office ul { list-style: none; padding: 0; margin: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); margin-top: 40px; }

/* Steps / timeline */
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps li { position: relative; padding: 0 0 20px 70px; margin: 0 0 18px !important; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .num { position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 17px/50px var(--font-head); text-align: center; }
.steps h4 { margin: 0 0 6px; padding-top: 12px; }
.steps .num-year { width: 58px; height: 58px; line-height: 58px; font-size: 15px; background: var(--red); left: -4px; }

/* Certification marks */
.marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; margin: 26px 0; }
.mark { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; }
.mark img { margin: 0 auto 10px; max-height: 110px; width: auto; }
.mark strong { font-size: 14px; color: var(--heading); }

/* Stat bars (prednosti) */
.bars { margin: 10px 0 24px; }
.bar { margin-bottom: 16px; }
.bar span { display: block; font-size: 14px; margin-bottom: 4px; }
.bar i { display: block; height: 22px; border-radius: 3px; background: var(--bg-soft); position: relative; overflow: hidden; font-style: normal; }
.bar i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--navy); }
.bar i b { position: relative; color: #fff; font-size: 12px; padding-left: 10px; line-height: 22px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.post-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.09); color: var(--text); }
.post-card img, .post-card-noimg { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--bg-soft); }
.post-card-noimg { display: block; background: var(--navy) url(/wp-content/uploads/2018/10/favicon.png) center / 56px no-repeat; }
.post-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; font-size: 14px; }
.post-card time { color: var(--muted); font-size: 13px; }
.post-card strong { font: 700 17px/1.35 var(--font-head); color: var(--heading); }

/* Responsive */
@media (max-width: 1100px) {
  .menu > li > a, .sub-toggle { padding-left: 10px; padding-right: 10px; font-size: 14px; }
  .sub-wide { left: -260px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.1); max-height: calc(100vh - 78px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li > a, .sub-toggle { padding: 14px 0; width: 100%; text-align: left; }
  .sub, .sub-wide { position: static; min-width: 0; box-shadow: none; border-top: 0; padding: 0 0 12px 12px; flex-direction: column; gap: 14px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: flex; }
  .page-grid { grid-template-columns: 1fr; gap: 40px; }
  .services, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .callback, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 28px; }
  .page-head { padding: 30px 0 24px; }
  .page-head h1 { font-size: 24px; }
  .topbar .hide-sm { display: none; }
  .topbar ul { gap: 14px; }
  .topbar-info li:nth-child(2) { display: none; }
  .logo img { width: 160px; }
  .header-inner { min-height: 64px; }
  .hero-inner { padding-top: 70px; padding-bottom: 80px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section { padding: 54px 0; }
  .section-title, .stats h2 { font-size: 26px; }
  .services, .post-grid, .quotes, .offices, .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner p { font-size: 18px; }
  .steps li { padding-left: 62px; }
}
