/* =====================================================
   SEM SERVIS – MODERN DESIGN SYSTEM 2025
   ===================================================== */

/* 1. FONTS */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* 2. VARIABLES */
:root {
  --bg:        #f4f7fb;
  --bg-2:      #eaeff8;
  --text:      #111827;
  --text-muted:#4b6080;
  --brand:     #1a3566;
  --brand-dark:#0f2040;
  --accent:    #e63946;
  --accent-2:  #ff6b6b;
  --minor:     #3b82f6;
  --white:     #ffffff;
  --glass:     rgba(255,255,255,0.76);
  --glass-border: rgba(255,255,255,0.55);

  --font-body:    'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;

  --radius:    10px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 8px rgba(15,32,64,.09);
  --shadow:    0 4px 24px rgba(15,32,64,.14);
  --shadow-md: 0 8px 40px rgba(15,32,64,.20);
  --shadow-lg: 0 16px 64px rgba(15,32,64,.26);
  --glow:      0 0 48px rgba(230,57,70,.30);

  --header-h: 70px;
  --max-w:    1200px;
  --px:       clamp(16px, 4vw, 48px);
  --tr:       .22s cubic-bezier(.4,0,.2,1);
  --tr-slow:  .45s cubic-bezier(.4,0,.2,1);
}

/* 3. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img   { max-width: 100%; height: auto; display: block; }
ul    { list-style: none; }
a     { color: var(--brand); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.15; color: var(--brand); }
p   { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* 4. LAYOUT */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section       { padding: clamp(64px, 9vw, 112px) 0; }

/* Two-column content split */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px; align-items: start;
}
.two-col--equal  { grid-template-columns: 1fr 1fr; }
.two-col--wide   { grid-template-columns: 3fr 2fr; gap: 64px; }
.two-col--center { align-items: center; }
.two-col--tight  { gap: 48px; }
.section--alt  { background: var(--bg-2); }
.section--dark { background: linear-gradient(135deg, #0a1628 0%, #1a3566 100%); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

/* 5. TYPOGRAPHY */
.label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.label::before { content: ''; display: block; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--dark .label { color: rgba(255,255,255,.80); }
.section--dark .label::before { background: var(--accent-2); }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600; margin-bottom: 1rem;
  color: var(--brand);
}
.section-title .grad {
  background: linear-gradient(135deg, var(--brand), var(--minor));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 600px; margin-bottom: 2.5rem; line-height: 1.8;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.text-center { text-align: center; }

/* 6. HEADER – GLASSMORPHISM */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,22,40,.82);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(59,130,246,.15);
  z-index: 1000;
  transition: box-shadow var(--tr), background var(--tr);
}
.site-header.scrolled {
  background: rgba(15,32,64,.96);
  box-shadow: 0 4px 32px rgba(0,0,0,.30);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.header-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.header-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.header-logo-text {
  font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600;
  color: #ffffff; letter-spacing: .06em;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 8px 14px;
  font-size: .86rem; font-weight: 500;
  color: rgba(255,255,255,.72);
  border-radius: var(--radius);
  transition: all var(--tr);
  white-space: nowrap; position: relative;
}
.main-nav a::after {
  content: ''; position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--accent);
  border-radius: 2px;
  transition: left var(--tr), right var(--tr);
}
.main-nav a:hover,
.main-nav a.active { color: #ffffff; }
.main-nav a:hover::after,
.main-nav a.active::after { left: 14px; right: 14px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.script-toggle {
  font-size: .76rem; font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 20px;
  color: rgba(255,255,255,.82); background: transparent;
  cursor: pointer; transition: all var(--tr);
  letter-spacing: .08em;
}
.script-toggle:hover {
  background: var(--minor); color: #fff;
  border-color: var(--minor);
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  border: none; background: transparent; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle span { display: block; height: 2px; background: rgba(255,255,255,.85); border-radius: 2px; transition: all var(--tr); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* 7. HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--header-h); overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #0a1628 0%, #0f2040 35%, #1a3566 70%, #0d1d3e 100%);
  z-index: 0;
}
/* Animated mesh grid – visible on dark */
.hero-bg::before {
  content: ''; position: absolute; inset: -50%;
  width: 200%; height: 200%;
  background-image:
    linear-gradient(rgba(59,130,246,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.10) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: meshDrift 22s linear infinite;
}
/* Aurora glow blobs */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(59,130,246,.28) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 75%, rgba(26,53,102,.60) 0%, transparent 55%),
    radial-gradient(ellipse 40% 45% at 60% 5%,  rgba(230,57,70,.18) 0%, transparent 50%),
    radial-gradient(ellipse 35% 35% at 90% 15%, rgba(59,130,246,.20) 0%, transparent 50%);
  animation: blobShift 10s ease-in-out infinite alternate;
}
/* Floating particles layer */
.hero-bg .particles { display: none; }
@keyframes meshDrift {
  from { transform: translate(0,0); }
  to   { transform: translate(56px,56px); }
}
@keyframes blobShift {
  0%   { opacity: .75; transform: scale(1)    rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.06) rotate(1deg); }
  100% { opacity: .85; transform: scale(1.03) rotate(-1deg); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(64px,9vw,112px) var(--px);
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 72px; align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 500;
  color: #93c5fd; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 22px;
  padding: 7px 18px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.30);
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600; line-height: 1.08;
  color: #ffffff; margin-bottom: 22px;
  letter-spacing: -.01em;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.75); margin-bottom: 38px; line-height: 1.85; }
.hero-cta  { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; margin-top: 52px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stat-item { text-align: center; padding: 0 8px; }
.stat-num {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600;
  color: #ffffff; display: block; line-height: 1; margin-bottom: 5px;
}
.stat-lbl { font-size: .72rem; color: rgba(255,255,255,.60); text-transform: uppercase; letter-spacing: .1em; line-height: 1.4; }

/* Hero visual – floating card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card {
  position: relative; width: 360px; height: 380px;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
.hero-card .c-back {
  position: absolute; border-radius: var(--radius-lg);
  background: var(--white);
}
.hero-card .c-back:nth-child(1) {
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(26,53,102,.25));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.20);
  transform: rotate(-8deg) scale(.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero-card .c-back:nth-child(2) {
  inset: 10px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.20);
  transform: rotate(-3deg);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,.30);
}
.hero-card-main {
  position: absolute; inset: 22px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.80);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 32px; text-align: center;
}
.hero-card-main img { width: 100px; height: auto; filter: drop-shadow(0 4px 12px rgba(16,80,101,.2)); }
.hero-card-main .tagline {
  font-family: var(--font-heading); font-size: .98rem;
  color: var(--brand); letter-spacing: .04em;
}
.hero-card-main .badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.hero-card-main .badge {
  font-size: .68rem; font-weight: 500;
  padding: 4px 10px;
  background: rgba(16,80,101,.1);
  color: var(--brand); border-radius: 12px;
  border: 1px solid rgba(16,80,101,.15);
}

/* 8. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body); font-size: .97rem; font-weight: 500;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  white-space: nowrap; line-height: 1;
  transition: all var(--tr);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--tr);
}
.btn:hover::before { background: rgba(255,255,255,.08); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c8351f 100%);
  color: var(--white); border-color: transparent;
  box-shadow: 0 4px 16px rgba(227,58,36,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(227,58,36,.45);
  color: var(--white);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent; color: var(--brand);
  border-color: rgba(16,80,101,.35);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: var(--brand); color: var(--white);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,80,101,.25);
}

.btn-white {
  background: rgba(255,255,255,.15); color: var(--white);
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.btn-white:hover {
  background: rgba(255,255,255,.25); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.btn-sm  { padding: 10px 20px; font-size: .88rem; }
.btn-lg  { padding: 16px 36px; font-size: 1.02rem; border-radius: var(--radius); }

/* 9. CARDS – MODERN GLASS */
.card {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--tr-slow);
  display: flex; flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.7);
}
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(16,80,101,.12), rgba(21,108,137,.08));
  border: 1px solid rgba(16,80,101,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; margin-bottom: 18px; flex-shrink: 0;
}
.card-title { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; color: var(--brand); }
.card-text  { font-size: .92rem; color: var(--text-muted); flex: 1; margin-bottom: 18px; line-height: 1.7; }
.card-link  {
  font-weight: 500; font-size: .88rem; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  transition: gap var(--tr);
}
.card-link:hover { gap: 10px; color: var(--accent); }

.card--accent {
  border-top: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(227,58,36,.03) 0%, var(--glass) 40%);
}
.card--brand {
  border-top: 3px solid var(--brand);
  background: linear-gradient(180deg, rgba(16,80,101,.04) 0%, var(--glass) 40%);
}

/* 10. SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

/* 11. BROTHER BLOCK */
.brother-block {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--minor) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5.5vw, 72px);
  color: var(--white); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.brother-block::before {
  content: ''; position: absolute;
  top: -60%; right: -15%; width: 500px; height: 500px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.brother-block::after {
  content: ''; position: absolute;
  bottom: -40%; left: -10%; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(227,58,36,.08);
}
.brother-block-inner { position: relative; z-index: 1; }
.brother-block h2   { color: var(--white); font-size: clamp(1.6rem,3.5vw,2.4rem); margin-bottom: 16px; }
.brother-block p    { color: rgba(255,255,255,.82); max-width: 620px; line-height: 1.8; }
.brother-block .btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.brother-tm { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 18px; }

/* 12. FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 28px; }
.feature-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: all var(--tr-slow);
}
.feature-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-ico {
  flex-shrink: 0; width: 46px; height: 46px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(16,80,101,.14), rgba(21,108,137,.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.feature-txt h3 { font-size: 1rem; margin-bottom: 5px; color: var(--brand); }
.feature-txt p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* 13. REFERENCES */
.refs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.ref-group {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-slow);
}
.ref-group:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ref-group-title {
  font-size: .74rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(227,58,36,.2);
  display: flex; align-items: center; gap: 8px;
}
.ref-group ul li {
  font-size: .88rem; color: var(--text);
  padding: 6px 0; border-bottom: 1px solid rgba(16,80,101,.07);
  display: flex; align-items: center; gap: 8px;
}
.ref-group ul li:last-child { border-bottom: none; }
.ref-group ul li::before { content: '–'; color: var(--minor); flex-shrink: 0; }

/* 14. STANDARDS */
.standards-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.std-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  border: 1px solid rgba(16,80,101,.25);
  border-radius: 24px;
  font-size: .82rem; font-weight: 500;
  color: var(--brand); background: var(--glass);
  backdrop-filter: blur(6px);
  transition: all var(--tr);
}
.std-badge:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* 15. FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(16,80,101,.1);
}
.faq-q {
  width: 100%; text-align: left; padding: 20px 0;
  font-family: var(--font-body); font-size: .98rem; font-weight: 500;
  color: var(--brand); background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; transition: color var(--tr);
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(16,80,101,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 300; line-height: 1;
  color: var(--brand);
  transition: all var(--tr);
}
.faq-item.open .faq-q::after {
  content: '×';
  background: var(--accent); border-color: var(--accent);
  color: var(--white);
}
.faq-a   { overflow: hidden; max-height: 0; transition: max-height .4s ease; }
.faq-a-inner { padding: 0 0 20px; font-size: .93rem; color: var(--text-muted); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 500px; }

/* 16. CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-ico {
  flex-shrink: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(16,80,101,.12), rgba(21,108,137,.06));
  border: 1px solid rgba(16,80,101,.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ci-lbl  { font-weight: 600; color: var(--brand); display: block; margin-bottom: 3px; font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
.ci-val  { font-size: .94rem; color: var(--text); line-height: 1.6; }
.ci-val a { color: var(--text); }
.ci-val a:hover { color: var(--accent); }

.contact-form {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .84rem; font-weight: 500; color: var(--brand); margin-bottom: 7px; letter-spacing: .02em; }
.form-input,
.form-textarea {
  width: 100%; padding: 13px 16px;
  font-family: var(--font-body); font-size: .96rem;
  color: var(--text);
  background: rgba(255,255,255,.6);
  border: 1.5px solid rgba(16,80,101,.15);
  border-radius: var(--radius);
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
  -webkit-appearance: none;
  backdrop-filter: blur(4px);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(255,255,255,.9);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16,80,101,.12);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: var(--brand); cursor: pointer; }
.form-check-lbl { font-size: .82rem; color: var(--text-muted); }
.form-check-lbl a { color: var(--minor); }

.map-wrap { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 52px; border: 1px solid var(--glass-border); }
.map-wrap iframe { width: 100%; height: 380px; border: none; display: block; }

/* 17. PAGE HERO */
.page-hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 60px;
  background: linear-gradient(145deg, #0a1628 0%, #0f2040 40%, #1a3566 100%);
  position: relative; overflow: hidden;
}
/* animated mesh — subtle on dark */
.page-hero::before {
  content: ''; position: absolute; inset: -50%; width: 200%; height: 200%;
  background-image:
    linear-gradient(rgba(59,130,246,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: meshDrift 28s linear infinite;
}
/* accent glow top-right */
.page-hero::after {
  content: ''; position: absolute;
  top: -20%; right: -5%; width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: 18px; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.60); }
.breadcrumb a:hover { color: #fff; }
.bc-sep { color: rgba(255,255,255,.30); }

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  color: #ffffff; margin-bottom: 14px;
  letter-spacing: -.01em;
}
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 640px; margin: 0; line-height: 1.8; }

/* 18. CONTENT BLOCK */
.content-block { max-width: 860px; }
.content-block h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin: 2.8rem 0 1rem; color: var(--brand);
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(16,80,101,.1);
}
.content-block h3 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; color: var(--brand); }
.content-block ul { list-style: none; padding: 0; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 6px; }
.content-block ul li { font-size: .93rem; color: var(--text-muted); padding: 7px 12px 7px 32px; position: relative; background: rgba(16,80,101,.03); border-radius: 6px; }
.content-block ul li::before { content: '→'; position: absolute; left: 10px; color: var(--accent); font-weight: 600; }
.content-block p { color: var(--text-muted); line-height: 1.8; }

/* 19. INFO BOX */
.info-box {
  background: linear-gradient(135deg, rgba(16,80,101,.06), rgba(21,108,137,.04));
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 1.8rem 0;
  backdrop-filter: blur(4px);
}
.info-box p { color: var(--text); margin: 0; font-size: .93rem; line-height: 1.7; }

/* 20. STEP LIST */
.step-list { counter-reset: steps; display: flex; flex-direction: column; gap: 14px; }
.step-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
  transition: all var(--tr-slow);
}
.step-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.step-num {
  counter-increment: steps; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--minor));
  color: var(--white); font-family: var(--font-heading);
  font-size: 1.05rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(16,80,101,.3);
}
.step-num::before { content: counter(steps); }
.step-txt h4 { color: var(--brand); margin-bottom: 4px; font-size: .97rem; }
.step-txt p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* 21. USEFUL LINKS */
.useful-links { display: flex; flex-direction: column; gap: 8px; }
.useful-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); backdrop-filter: blur(8px);
  font-size: .9rem; color: var(--brand);
  transition: all var(--tr);
}
.useful-links a:hover { box-shadow: var(--shadow); transform: translateX(4px); color: var(--accent); background: rgba(255,255,255,.85); }

/* 22. CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--minor) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 80px);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(227,58,36,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(21,108,137,.15) 0%, transparent 60%);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 12px; }
.cta-section p  { color: rgba(255,255,255,.82); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.cta-section .btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 23. FOOTER */
.site-footer {
  background: #060e1c;
  color: rgba(255,255,255,.65);
  padding: clamp(60px,8vw,96px) 0 0;
  position: relative; overflow: hidden;
}
/* accent top line */
.site-footer::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--minor) 50%, var(--accent) 100%);
}
/* radial glow */
.site-footer::after {
  content: ''; position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 880px; height: 560px;
  background: radial-gradient(ellipse, rgba(59,130,246,.07) 0%, transparent 65%);
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 52px; padding-bottom: 52px; }

/* brand column */
.footer-logo-link { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 16px; color: #fff; }
.footer-logo-link:hover { color: #fff; }
.footer-logo-link img { height: 40px; filter: brightness(0) invert(1); flex-shrink: 0; }
.footer-logo-name { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: .06em; line-height: 1; }
.footer-tagline { font-size: .855rem; line-height: 1.75; max-width: 255px; margin: 0 0 18px; color: rgba(255,255,255,.50); }
.footer-hours {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .775rem; color: rgba(255,255,255,.70);
  background: rgba(59,130,246,.10); border: 1px solid rgba(59,130,246,.22);
  border-radius: 100px; padding: 5px 14px; margin-bottom: 18px;
}
.footer-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.22);
  animation: fdot 2.4s ease-in-out infinite;
}
@keyframes fdot {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.22); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,.08); }
}
.footer-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.footer-badge {
  font-size: .70rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.45);
}

/* nav columns */
.footer-col h4 {
  color: rgba(255,255,255,.30); font-size: .70rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 0; }
.footer-col ul li a {
  color: rgba(255,255,255,.58); font-size: .87rem;
  display: flex; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color var(--tr), padding-left var(--tr);
}
.footer-col ul li:last-child a { border-bottom: none; }
.footer-col ul li a:hover { color: #fff; padding-left: 7px; }

/* bottom bar */
.footer-bottom {
  margin-top: 0; padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.footer-legal,
.footer-nap { font-size: .75rem; color: rgba(255,255,255,.28); }

.footer-legal a {
  color: rgba(255,255,255,.60);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--tr);
}
.footer-legal a:hover { color: rgba(255,255,255,.80); }

/* 24. STICKY CALL */
.sticky-call { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.sticky-call a {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--accent), #c82d18);
  color: var(--white); border-radius: 50%;
  box-shadow: 0 4px 20px rgba(227,58,36,.5), 0 0 0 0 rgba(227,58,36,.3);
  font-size: 1.5rem; transition: all var(--tr);
  animation: phonePulse 2.8s ease-in-out infinite;
}
.sticky-call a:hover { transform: scale(1.12); color: var(--white); box-shadow: var(--glow); }
@keyframes phonePulse {
  0%,100% { box-shadow: 0 4px 20px rgba(227,58,36,.5), 0 0 0 0 rgba(227,58,36,.3); }
  50%     { box-shadow: 0 4px 20px rgba(227,58,36,.5), 0 0 0 12px rgba(227,58,36,.0); }
}

/* 25. FADE-IN */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* 26. SECTION DIVIDER */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,80,101,.12) 30%, rgba(16,80,101,.12) 70%, transparent);
  margin: 0;
}

/* 27. CHIP / BADGE */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: rgba(16,80,101,.09);
  border: 1px solid rgba(16,80,101,.15);
  border-radius: 20px;
  font-size: .78rem; font-weight: 500;
  color: var(--brand);
}

/* 28. UTILITIES */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 52px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 36px; }
.gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

/* 29. RESPONSIVE */

/* --- Tablet landscape (≤1024px) --- */
@media (max-width: 1024px) {
  .footer-top   { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual  { display: none; }
  .contact-grid { gap: 36px; }
}

/* --- Tablet / large phone (≤768px) --- */
@media (max-width: 768px) {
  /* Mobilni nav — dropdown ispod headera */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: #0d1e3a;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - var(--header-h));
    z-index: 997;
    border-top: 2px solid var(--minor);
    box-shadow: 0 12px 40px rgba(0,0,0,.60);
    padding: 8px 0 32px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    font-size: 1.1rem;
    padding: 18px 28px;
    color: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(255,255,255,.07);
    width: 100%;
    display: block;
    white-space: normal;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after    { display: none; }
  .main-nav a:hover     { color: #fff; background: rgba(255,255,255,.07); }
  .main-nav a.active    { color: #fff; background: rgba(59,130,246,.14); border-left: 3px solid var(--minor); padding-left: 25px; }

  /* Backdrop */
  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
    z-index: 996;
  }
  .nav-backdrop.visible { display: block; }

  /* Sakrij "Pozovite" dugme u headeru — sticky call to radi */
  .header-actions .btn-sm { display: none; }
  .nav-toggle  { display: flex; }
  .sticky-call { display: block; }

  /* Sekcije — manji padding */
  .section { padding: clamp(40px,6vw,60px) 0; }

  /* Hero */
  .hero-content { padding: clamp(48px,7vw,80px) var(--px); }
  .hero-desc    { font-size: 1rem; margin-bottom: 28px; }
  .hero-stats   { margin-top: 36px; padding-top: 24px; gap: 0; }
  .stat-num     { font-size: 1.85rem; }

  /* Brother block */
  .brother-block { border-radius: var(--radius-lg); }
  .brother-block .btns { flex-wrap: wrap; }

  /* Content grids — 1 kolona */
  .two-col,
  .two-col--equal,
  .two-col--wide { grid-template-columns: 1fr; gap: 32px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Map */
  .map-wrap { margin-top: 32px; }
  .map-wrap iframe { height: 280px; }

  /* CTA */
  .cta-section { border-radius: var(--radius-lg); padding: clamp(36px,5vw,56px) var(--px); }

  /* Footer */
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Page hero */
  .page-hero { padding-bottom: 40px; }
  .page-hero h1 { font-size: clamp(1.6rem,5vw,2.4rem); }
}

/* --- Telefon (≤480px) --- */
@media (max-width: 480px) {
  /* Header */
  .header-logo img  { height: 32px; }
  .header-logo-text { font-size: 1.15rem; }
  .script-toggle    { padding: 5px 11px; font-size: .72rem; }

  /* Hero */
  .hero-cta      { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats    { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-num      { font-size: 1.6rem; }
  .stat-lbl      { font-size: .68rem; }
  .hero-eyebrow  { font-size: .72rem; padding: 6px 14px; }

  /* Grids — 1 kolona na telefonu */
  .services-grid  { grid-template-columns: 1fr; gap: 16px; }
  .features-grid  { grid-template-columns: 1fr; gap: 14px; }
  .refs-grid      { grid-template-columns: 1fr; }

  /* Cards */
  .card-body { padding: 20px; }

  /* Brother block */
  .brother-block { padding: 28px 20px; }
  .brother-block .btns { flex-direction: column; }
  .brother-block .btns .btn { width: 100%; justify-content: center; }

  /* CTA */
  .cta-section .btns { flex-direction: column; align-items: stretch; }
  .cta-section .btn  { width: 100%; justify-content: center; }

  /* Contact form */
  .contact-form { padding: 20px; border-radius: var(--radius-lg); }
  .ci-item      { gap: 12px; }
  .ci-ico       { width: 38px; height: 38px; font-size: 1rem; }

  /* Map */
  .map-wrap iframe { height: 230px; }

  /* Footer */
  .footer-top   { grid-template-columns: 1fr; gap: 28px; }
  .footer-hours { font-size: .73rem; padding: 5px 12px; }
  .footer-badges { gap: 6px; }

  /* Page hero */
  .page-hero    { padding-bottom: 32px; }
  .page-hero h1 { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .page-hero p  { font-size: .95rem; }

  /* Content */
  .content-block h2 { font-size: 1.3rem; }
  .content-block h3 { font-size: 1.05rem; }

  /* FAQ */
  .faq-q { font-size: .93rem; }

  /* Standards badges */
  .standards-wrap { gap: 8px; }
  .std-badge { font-size: .78rem; padding: 7px 14px; }
}

/* 30. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in  { opacity: 1 !important; transform: none !important; }
  .hero-card { animation: none !important; }
}
