/* Transaksia d.o.o. — site stylesheet */
:root {
  --navy: #16324F;
  --blue: #244C6A;
  --white: #FFFFFF;
  --grey: #F3F5F7;
  --ink: #27313B;
  --amber: #E3A33B;
  --amber-dark: #C98A1F;
  --line: #D9DEE3;
  --muted: #56626E;
  --error: #B3261E;
  --ok: #2E7D4F;
  --font-display: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: var(--white); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; font-family: var(--font-display); color: var(--navy); font-weight: 700; line-height: 1.1; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.muted { color: var(--muted); }

/* Reflective-tape band: the site's recurring motif */
.tape { height: 10px; background: var(--amber); position: relative; }
.tape::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: #F7E6C4; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #D7952A; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.75); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn[disabled] { opacity: .7; cursor: progress; }
.text-link { font-weight: 600; color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; color: var(--navy); text-decoration: none; }
.logo:hover { color: var(--navy); }
.logo-mark { width: 26px; height: 26px; background: var(--navy); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 5px; background: var(--amber); }
.logo-suffix { font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.nav a { display: inline-block; padding: .5rem 0; color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-color: var(--line); }
.nav a[aria-current="page"] { color: var(--navy); border-color: var(--amber); }
.nav .nav-quote { display: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-cta { min-height: 44px; padding: .55rem 1.1rem; }
.menu-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* Language switcher */
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: .9rem; color: var(--navy); cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; margin: 0; padding: .35rem 0; list-style: none; background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(22,50,79,.12); }
.lang a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; color: var(--ink); text-decoration: none; }
.lang a:hover { background: var(--grey); }
.lang a[aria-current="true"] { font-weight: 700; color: var(--navy); }
.lang a span { color: var(--muted); font-size: .85rem; }

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .nav { order: 5; margin-left: 0; }
  .js .nav { display: none; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(22,50,79,.1); }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .25rem var(--gutter) 1.25rem; }
  .nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--amber); padding-left: .9rem; }
  .nav .nav-quote { display: block; padding-top: 1rem; }
  .nav .nav-quote a { display: flex; border: 0; padding: .75rem 1.4rem; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  html:not(.js) .menu-toggle { display: none; }
}
@media (max-width: 560px) {
  .header-inner { gap: .6rem; }
  .logo-suffix { display: none; }
  .logo { font-size: 1.3rem; }
  .menu-toggle { padding: 0 .75rem; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Media with fallback */
.media { position: relative; overflow: hidden; background: var(--blue); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--fallback img { display: none; }
.media--fallback::after { content: attr(data-fallback); position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem 1.25rem; color: #C9D5E0; font-size: .85rem; background: repeating-linear-gradient(135deg, var(--blue) 0 16px, #2A5576 16px 32px); }

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(640px, 82vh); }
.hero-text { padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.04; max-width: 15ch; overflow-wrap: break-word; hyphens: auto; margin-bottom: .45em; }
.hero-sub { color: #D3DCE5; font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.hero-facts { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: #C3CFDA; font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: .55rem; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; background: var(--amber); }
.hero-media { position: relative; min-height: 320px; }
.hero-media .media { position: absolute; inset: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { order: -1; min-height: 0; height: clamp(220px, 52vw, 360px); }
  .hero-text { padding-left: var(--gutter); }
}
@media (max-width: 480px) { .hero h1 { font-size: 2.05rem; } h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--grey { background: var(--grey); }
.section--tight { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.cat { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.cat .media { aspect-ratio: 3 / 2; }
.cat-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.25rem, 3vw, 2rem); }
.cat-body h3 { font-size: 1.6rem; }
.ticks { list-style: none; margin: .5rem 0 1.75rem; padding: 0; }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.4rem; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .65rem; height: 2px; background: var(--amber); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; }
@media (max-width: 760px) { .cat-grid { grid-template-columns: 1fr; } }

/* Who we serve */
.serve { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 3px solid var(--navy); }
.serve-item { padding: 1.5rem 1.5rem 1.25rem 0; }
.serve-item + .serve-item { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.serve-item svg { width: 36px; height: 36px; color: var(--navy); margin-bottom: 1rem; }
.serve-item h3 { font-size: 1.1rem; }
.serve-item p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) {
  .serve { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .serve-item, .serve-item + .serve-item { padding: 1.5rem 1.25rem 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .serve-item:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .serve { grid-template-columns: 1fr; }
  .serve-item:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Why */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.why-item h3 { padding-top: 1rem; position: relative; }
.why-item h3::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--amber); }
.why-item p { margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; gap: 2rem; } }

/* Markets */
.countries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.country { border-left: 3px solid var(--amber); padding: .25rem 0 .25rem 1rem; }
.country abbr { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--navy); line-height: 1; text-decoration: none; }
.country span { display: block; margin-top: .35rem; font-size: .95rem; color: var(--muted); }
.markets-note { margin-top: 2rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .countries { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.75rem; } }
@media (max-width: 480px) { .countries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { counter-increment: step; padding: 1.5rem 1.75rem 0 0; border-top: 2px solid var(--navy); }
.step::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--amber-dark); margin-bottom: .9rem; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { color: #D3DCE5; margin: 0; max-width: 58ch; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

/* Footer */
.site-footer { background: #122A43; color: #C3CFDA; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 2.5rem; }
.footer-grid .logo { color: var(--white); margin-bottom: 1rem; }
.footer-grid .logo-suffix { color: #9FB0C1; }
.f-h { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--white); margin: 0 0 .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; margin-bottom: .8rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); color: #9FB0C1; font-size: .875rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Inner page heading */
.page-head { background: var(--grey); border-bottom: 1px solid var(--line); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.75rem); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin: 0; }

/* Products */
.family { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: start; }
.family + .family { margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.family .media { aspect-ratio: 4 / 5; }
.subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; margin: 2rem 0; }
.sub { border-top: 2px solid var(--navy); padding-top: 1rem; }
.sub h3 { font-size: 1.15rem; }
.sub p { margin: 0 0 .6rem; color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .family { grid-template-columns: 1fr; } .family .media { aspect-ratio: 16 / 9; } }
@media (max-width: 520px) { .subs { grid-template-columns: 1fr; } }
.note { border-left: 4px solid var(--amber); background: var(--white); padding: 1.5rem 1.75rem; }
.note h2 { font-size: 1.35rem; }
.note p:last-child { margin-bottom: 0; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }

/* Solutions */
.img-pair { display: grid; grid-template-columns: 3fr 2fr; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.img-pair .media { aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .img-pair { grid-template-columns: 1fr; } }
.rows { border-top: 3px solid var(--navy); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1rem, 4vw, 4rem); padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line); }
.row h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.row p { margin: 0; }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); gap: .6rem; } }
.closing { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* About */
.about-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: start; }
.about-top .media { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .about-top { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; margin: 0; border-top: 3px solid var(--navy); max-width: 900px; }
.facts dt, .facts dd { margin: 0; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--navy); padding-right: 1.5rem; }
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: .2rem; }
}

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-layout--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) { .form-layout, .form-layout--rev { grid-template-columns: 1fr; } }
.aside { background: var(--grey); border-top: 4px solid var(--navy); padding: clamp(1.25rem, 3vw, 1.75rem); }
@media (min-width: 901px) { .aside--sticky { position: sticky; top: 96px; } }
.aside h2 { font-size: 1.3rem; }
.aside .ticks { margin-bottom: 1.25rem; }
.aside p:last-child { margin-bottom: 0; }
fieldset { border: 0; margin: 0 0 2.5rem; padding: 0; min-width: 0; }
legend { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 1.25rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: var(--ink); }
.req { color: #9A4A12; }
.opt { font-weight: 400; font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #A9B4BF; border-radius: var(--radius); }
textarea { min-height: 128px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316324F' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
input:hover, select:hover, textarea:hover { border-color: var(--blue); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
[aria-invalid="true"] { border: 2px solid var(--error) !important; }
.hint { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.field-error { margin: .4rem 0 0; font-size: .9rem; font-weight: 600; color: var(--error); }
.radios { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.field .radio, .radio { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 400 !important; margin: 0 !important; cursor: pointer; }
.radio input, .consent input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; margin: 0; }
.consent { display: flex !important; align-items: flex-start; gap: .75rem; font-weight: 400 !important; cursor: pointer; }
.consent input { margin-top: .2rem; }
.req-note { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.form-alert { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--error); background: #FBEDEC; color: var(--ink); font-weight: 500; }
.form-alert--info { border-color: var(--blue); background: #EAF0F5; }
.form-success { padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 4px solid var(--ok); background: #EDF6F0; }
.form-success h2 { color: var(--navy); }
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 3px solid var(--amber); }
.bot-field { position: absolute; left: -9999px; }

/* Legal / prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.prose .facts { margin-bottom: 1rem; }
.todo { background: #FCEFD6; border: 1px dashed var(--amber-dark); padding: 0 .35rem; font-size: .92em; white-space: normal; }
.center-block { max-width: 640px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .tape { display: none; }
}

/* =========================================================
   Motion layer
   Everything below only runs when JS is active (.js) and the
   visitor has not asked for reduced motion. Without JS, all
   content is visible and static.
   ========================================================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Header gains a shadow once the page scrolls */
.site-header { transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(22,50,79,.08); border-color: transparent; }

/* Navigation underline draws from the left */
@media (min-width: 1001px) {
  .nav a { position: relative; border-bottom: 0; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav a:hover { border-color: transparent; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Buttons */
.btn { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(22,50,79,.16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-light:hover { box-shadow: 0 8px 18px rgba(0,0,0,.25); }

/* Category cards: lift + slow photo zoom */
.cat { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.cat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,50,79,.12); border-color: #C5CED7; }
.media img { transition: transform 1.2s var(--ease); }
.cat:hover .media img, .family:hover .media img, .img-pair .media:hover img { transform: scale(1.05); }

/* Who-we-serve icons and sub-category rules respond to hover */
.serve-item svg { transition: transform .35s var(--ease), color .35s var(--ease); }
.serve-item:hover svg { transform: translateY(-3px); color: var(--amber-dark); }
.sub { transition: border-color .3s var(--ease); }
.sub:hover { border-top-color: var(--amber); }
.row { transition: background-color .3s var(--ease), padding-left .35s var(--ease); }
.text-link { transition: color .2s var(--ease); }

/* Language menu and mobile menu open with a short slide */
.lang[open] ul { animation: dropIn .22s var(--ease) both; }
@media (max-width: 1000px) { .js .nav.is-open { animation: dropIn .28s var(--ease) both; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Hero: one orchestrated entrance on page load */
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes wipeIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes tapeIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .hero-text > * { animation: riseIn .9s var(--ease) both; }
.js .hero-text > :nth-child(1) { animation-delay: .15s; }
.js .hero-text > :nth-child(2) { animation-delay: .3s; }
.js .hero-text > :nth-child(3) { animation-delay: .45s; }
.js .hero-text > :nth-child(4) { animation-delay: .6s; }
.js .hero-media .media { animation: wipeIn 1.1s .05s cubic-bezier(.7, 0, .2, 1) both; }
.js .hero-media .media img { animation: settle 2.2s .05s var(--ease) both; }
.js .hero + .tape { transform-origin: left; animation: tapeIn 1s .55s cubic-bezier(.7, 0, .2, 1) both; }
.js .page-head h1, .js .page-head .lead, .js .page-head .muted { animation: riseIn .8s var(--ease) both; }
.js .page-head .lead, .js .page-head .muted { animation-delay: .12s; }
.js .page-head .about-top .media { animation: wipeIn 1s .15s cubic-bezier(.7, 0, .2, 1) both; }

/* Scroll reveals (classes added by main.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal-media.is-visible { clip-path: inset(0 0 0 0); }

/* Accent details that draw themselves once revealed */
.js .why-item.reveal h3::before { width: 0; transition: width .7s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
.js .why-item.reveal.is-visible h3::before { width: 40px; }
.js .country.reveal { border-left-color: transparent; box-shadow: inset 3px 0 0 transparent; }
.js .country.reveal.is-visible { border-left-color: var(--amber); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .6s var(--ease) calc(var(--d, 0s) + .3s); }
.js .step.reveal { border-top-color: var(--line); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .8s var(--ease); transition-delay: var(--d, 0s); }
.js .step.reveal.is-visible { border-top-color: var(--navy); }
.js .tape.reveal { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.js .tape.reveal.is-visible { transform: scaleX(1); }

/* Form feedback */
.form-success:not([hidden]), .form-alert:not([hidden]) { animation: riseIn .45s var(--ease) both; }
input, select, textarea { transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(36,76,106,.12); }

/* Respect reduced-motion preferences: show everything, move nothing */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-media, .js .tape.reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .why-item.reveal h3::before { width: 40px; }
  .js .country.reveal { border-left-color: var(--amber); }
  .js .step.reveal { border-top-color: var(--navy); }
  .btn:hover, .cat:hover { transform: none; }
  .cat:hover .media img, .family:hover .media img, .img-pair .media:hover img { transform: none; }
}

/* =========================================================
   Credibility elements
   ========================================================= */

/* Registry line under the hero facts */
.hero-reg { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 1rem 0 0; font-size: .92rem; color: #C3CFDA; }
.hero-reg svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.hero-reg a { color: var(--white); font-weight: 600; }
.hero-reg a:hover { color: var(--amber); }

/* "Made in Croatia" stamp on the hero photo */
.hero-media { position: relative; }
.badge { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 2; width: 150px; height: 150px; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 14px 34px rgba(0,0,0,.32); padding: 6px; transform: rotate(-8deg); overflow: hidden; }
.badge-inner { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(227,163,59,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 22px; }
.badge-stars { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); fill: var(--amber); }
.badge-1 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.badge-2 { margin-top: .3rem; font-size: .66rem; letter-spacing: .02em; color: #C9D5E0; line-height: 1.15; }
.badge::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%); pointer-events: none; }
@media (max-width: 860px) {
  .badge { left: auto; right: var(--gutter); bottom: auto; top: 1rem; width: 116px; height: 116px; padding: 5px; }
  .badge-inner { padding: 0 16px; }
  .badge-1 { font-size: .82rem; }
  .badge-2 { font-size: .58rem; }
}

@keyframes stampIn {
  0%   { opacity: 0; transform: scale(1.7) rotate(-26deg); }
  60%  { opacity: 1; transform: scale(.93) rotate(-5deg); }
  80%  { transform: scale(1.03) rotate(-9deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
@keyframes shine { to { transform: translateX(520%); } }
.js .badge { animation: stampIn .75s 1.05s cubic-bezier(.3, 1.3, .5, 1) both; }
.js .badge::after { animation: shine 1.1s 1.95s ease-out both; }

/* European standards list */
.norms { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--navy); }
.norms li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.norm-code { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); white-space: nowrap; }
.norm-desc { color: var(--ink); }
@media (max-width: 480px) { .norms li { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }

/* Three notes on the products page */
.notes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notes--3 .note { background: var(--grey); }
@media (max-width: 900px) { .notes--3 { grid-template-columns: minmax(0, 1fr); } }

/* Manager presentation (no photo yet: monogram) */
.mgr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: start; max-width: 860px; padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--line); border-top: 4px solid var(--amber); background: var(--white); }
.mgr-mark { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: .04em; }
.mgr-body h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.mgr-role { color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.mgr-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1.25rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.mgr-meta dt { font-weight: 600; color: var(--navy); }
.mgr-meta dd { margin: 0; }
@media (max-width: 560px) { .mgr { grid-template-columns: minmax(0, 1fr); } .mgr-mark { width: 72px; height: 72px; font-size: 1.5rem; } }

@media (prefers-reduced-motion: reduce) {
  .js .badge { animation: none; transform: rotate(-8deg); }
  .js .badge::after { animation: none; display: none; }
}
.mgr-meta dd, .facts dd, .mgr-body { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 400px) { .mgr { padding: 1.25rem; } .mgr-meta { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .mgr-meta dd { margin-bottom: .5rem; } }
.hero { overflow: hidden; }
/* Badge placement: top-right of the photo, always above the fold */
.badge { left: auto; bottom: auto; top: clamp(1.25rem, 3vw, 2.25rem); right: clamp(1.25rem, 3vw, 2.25rem); width: 168px; height: 168px; }
.badge-inner { padding: 0 20px; }
.badge-1 { font-size: 1.05rem; }
.badge-2 { font-size: .68rem; }
@media (max-width: 860px) {
  .badge { top: 1rem; right: var(--gutter); width: 124px; height: 124px; padding: 5px; }
  .badge-inner { padding: 0 14px; }
  .badge-1 { font-size: .8rem; }
  .badge-2 { font-size: .56rem; }
}

/* Brand logo (image) */
.logo img { display: block; height: 50px; width: auto; }
.logo--footer img { height: 56px; }
@media (max-width: 560px) { .logo img { height: 40px; } }
@media (max-width: 360px) { .logo img { height: 34px; } }
