/* ABC Translation Slovensko – styles
   Palette: paper, ink, stamp blue, cord red (the white-blue-red cord used to bind Slovak official translations) */
:root {
  --paper: #fafbfd;
  --white: #ffffff;
  --ink: #14233a;
  --ink-2: #4a5870;
  --blue: #0b4ea2;
  --blue-d: #083b7b;
  --red: #c81e2a;
  --mist: #eef2f8;
  --line: #d6dde8;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 74rem;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 50rem; }
.measure { max-width: 42rem; color: var(--ink-2); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 40rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .7rem 1.35rem; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 2.4rem; padding: .45rem 1rem; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.2rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 251, 253, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-seal { color: var(--red); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font: 700 1.2rem/1.1 var(--serif); }
.logo-sub { font-size: .8rem; color: var(--ink-2); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav ul a:hover { color: var(--blue); text-decoration: underline; }
.lang-switch { font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: .3rem .55rem; border-radius: var(--radius); }
.lang-switch:hover { border-color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.6rem; padding: .4rem .9rem;
    font: 600 .95rem var(--sans); color: var(--ink); background: var(--white);
    border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem;
              padding: 1rem 1.25rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .lang-switch { align-self: flex-start; }
  .header-in { position: relative; }
}
@media (max-width: 960px) { html:not(.js) .site-header { position: static; } html:not(.js) .site-nav { position: static; } }

/* ---------- breadcrumbs ---------- */
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem 0; font-size: .88rem; color: var(--ink-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 .45rem 0 .2rem; color: var(--line); }
.crumbs a { color: var(--ink-2); }

/* ---------- the cord ---------- */
.cord-rule {
  height: 7px;
  background: repeating-linear-gradient(-58deg, #ffffff 0 6px, var(--blue) 6px 12px, var(--red) 12px 18px);
  box-shadow: inset 0 1px 0 rgba(20, 35, 58, .25), inset 0 -1px 0 rgba(20, 35, 58, .25);
}

/* ---------- home hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); line-height: 1.06; max-width: 15ch; }
.hero-sub { color: var(--ink-2); margin-bottom: .6rem; }
.hero-art { justify-self: center; width: 100%; max-width: 27rem; }
.hero-doc { display: block; width: 100%; height: auto; overflow: visible; }
.hero-doc .sheet rect:first-child { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.hero-doc .sheet-back rect { fill: var(--mist); }
.hero-doc .sheet-front > rect:first-child { filter: drop-shadow(0 10px 18px rgba(20, 35, 58, .12)); }
.hero-doc .ln { fill: var(--ink-2); opacity: .2; stroke: none; }
.hero-doc .ln-h { opacity: .55; fill: var(--ink); }
.hero-doc .clause { font: italic 15px var(--serif); fill: var(--ink-2); }
.hero-doc .hole { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; }
.hero-doc .cord path { fill: none; stroke-width: 7; stroke-linecap: round; }
.hero-doc .cord { filter: drop-shadow(0 1px 1px rgba(20, 35, 58, .45)); }
.hero-doc .c-w { stroke: #fff; }
.hero-doc .c-b { stroke: var(--blue); stroke-dasharray: 6 12; stroke-linecap: butt !important; }
.hero-doc .c-r { stroke: var(--red); stroke-dasharray: 6 12; stroke-dashoffset: -6; stroke-linecap: butt !important; }
.hero-doc .seal > circle:first-child { fill: var(--red); filter: drop-shadow(0 3px 5px rgba(120, 10, 20, .35)); }
.hero-doc .seal-in { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .85; }
.hero-doc .seal-ring { font: 700 11.5px var(--sans); letter-spacing: 1.6px; fill: #fff; }
.hero-doc .seal-abc { font: 700 26px var(--serif); fill: #fff; }
.hero-doc .seal { transform-origin: 330px 372px; transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .hero-doc .seal { animation: stamp .55s cubic-bezier(.2, .9, .3, 1.2) .35s both; }
  @keyframes stamp { from { transform: scale(1.35) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
}

.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.contact-links a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.contact-links a:hover { color: var(--blue); text-decoration: underline; }
.contact-links .ico { width: 1.25rem; height: 1.25rem; color: var(--blue); flex: none; }
.contact-links-row { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }

/* ---------- inner page hero ---------- */
.page-hero { padding: 2rem 0 2.8rem; }
.page-hero-in.has-aside { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.facts { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-top: .5rem; }
.facts dl { margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.facts dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; padding-bottom: .7rem; border-bottom: 1px solid var(--mist); }
.facts dt { color: var(--ink-2); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- bands & layout ---------- */
.band { padding: 4rem 0; }
.band-mist { background: var(--mist); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.content-grid { padding-bottom: 3rem; }
.why { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.why p { color: var(--ink-2); }

/* ---------- services index ---------- */
.svc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.svc-group > h2, .svc-group > h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; color: var(--ink-2); padding-bottom: .6rem; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 2rem 1fr; column-gap: .9rem; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.svc-list .ico { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--blue); margin-top: .1rem; }
.svc-name { font: 700 1.18rem/1.25 var(--serif); }
.svc-desc { color: var(--ink-2); font-size: .95rem; }
.svc-list a:hover .svc-name { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
.band .wrap > .svc-list, .band-mist .wrap > .svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); column-gap: 2.5rem; border-top: 1px solid var(--line); }
.svc-list-compact a { padding: .8rem 0; }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.75rem 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.1rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font: 700 2.4rem/1 var(--serif); color: var(--blue); }
.steps h3 { font-size: 1.15rem; margin-bottom: .35em; }
.steps p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.two-col .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- chips & lists ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding: 0; }
.chips a { display: inline-block; padding: .38rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: .95rem; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.chips-strong a { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.chips-strong a:hover { background: var(--blue); color: #fff; }
.inline-list { list-style: none; margin: 0; padding: 0; }
.inline-list li { display: inline; }
.inline-list li:not(:last-child)::after { content: ", "; color: var(--ink-2); }
.inline-list-lg { font-size: 1.08rem; line-height: 1.9; }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 2rem 2.5rem; margin-top: 1.5rem; }
.region h2, .region h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.region h2 a, .region h3 a { color: var(--ink); text-decoration: none; }
.region h2 a:hover, .region h3 a:hover { color: var(--blue); text-decoration: underline; }
.region .inline-list { font-size: .96rem; color: var(--ink-2); }
.lang-groups { display: grid; gap: 2rem; }
.lang-group h2 { font-size: 1.3rem; }

/* ---------- prose ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { color: var(--red); }
.doc-list { columns: 2 16rem; column-gap: 2.5rem; }
.doc-list li { break-inside: avoid; }
.callout { border-left: 4px solid var(--red); background: var(--mist); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note { font-size: .95rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1rem; }
.steps-inline li { padding-left: .3rem; }
.steps-inline li::marker { font: 700 1.05em var(--serif); color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { padding: 3.5rem 0 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font: 700 1.1rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .95rem; font: 400 1.5rem/1 var(--sans); color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--blue); }
.faq-a { padding: 0 0 1.1rem; color: var(--ink-2); max-width: 44rem; }

/* ---------- quote form ---------- */
.quote { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 3rem; padding: 4rem 0 5rem; align-items: start; }
.quote-head p { color: var(--ink-2); }
.quote-alt a { font-weight: 600; }
.quote-free { font-weight: 600; color: var(--ink) !important; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.75rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid #b9c3d3; border-radius: var(--radius); padding: .65rem .75rem; min-height: 2.85rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); background: #fff; }
.field input[type=file] { font: inherit; font-size: .95rem; padding: .6rem; border: 1px dashed #9aa7bb; border-radius: var(--radius); background: var(--paper); }
.help { font-size: .86rem; color: var(--ink-2); margin: 0; }
.check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--blue); flex: none; }
.check label { font-weight: 400; }
.submit-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #16723a; }
.form-status.err { color: var(--red); }
.is-invalid { border-color: var(--red) !important; outline: 1px solid var(--red); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9d2e0; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #e7ecf4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.site-footer h2 { font: 700 1rem var(--sans); color: #fff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin-bottom: .45rem; }
.logo-invert, .logo-invert:hover { color: #fff; }
.logo-invert .logo-sub { color: #aab6c8; }
.logo-invert .logo-seal { color: #ff6b73; }
.f-brand p { margin: 1rem 0; max-width: 24rem; }
.site-footer .contact-links a { color: #fff; }
.site-footer .contact-links .ico { color: #9fc1f5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid #2c3d58; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; color: #9aa7bb; }
.footer-bottom p { margin: 0; }

/* ---------- mobile call bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 3.9rem; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(20, 35, 58, .08); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3.6rem; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; }
  .mobile-bar .ico { width: 1.2rem; height: 1.2rem; color: var(--blue); }
  .mobile-bar .mb-quote { background: var(--blue); color: #fff; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-in, .page-hero-in.has-aside, .two-col, .quote { grid-template-columns: 1fr; }
  .hero-art { max-width: 17rem; justify-self: center; }
  .hero { padding-top: 2rem; }
  .hero { padding-top: 2rem; }
  .svc-groups { grid-template-columns: 1fr; gap: 2rem; }
  .quote { gap: 1.5rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .quote-form { grid-template-columns: 1fr; padding: 1.25rem; }
  .two-col .steps { grid-template-columns: 1fr; }
  .band { padding: 3rem 0; }
  .facts dl div { grid-template-columns: 1fr; gap: .1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 15rem; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media print {
  .site-header, .mobile-bar, .quote, .cord-rule, .site-footer { display: none; }
}
