/* czechtranslation.services – frontend 2026 */

:root {
  --ink: #15232b;
  --ink-2: #33444d;
  --muted: #5a6a72;
  --paper: #f3f6f6;
  --surface: #ffffff;
  --line: #d4dde0;
  --blue: #2340b0;
  --blue-dark: #182f86;
  --blue-soft: #e6ebfa;
  --ok: #1d6b45;
  --ok-soft: #e3f2ea;
  --err: #a12a2a;
  --err-soft: #f8e6e6;

  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: 16px;
  --gap: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}

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

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50;
  font-family: var(--sans);
}
.skip:focus { left: 8px; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand:hover { color: var(--ink); }

.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.brand__role { font-size: .875rem; color: var(--muted); line-height: 1.3; }

.quick {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: .875rem;
  border-radius: 3px;
}
.quick a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.quick svg { width: 22px; height: 22px; flex: none; }
.quick__label { display: none; }
@media (min-width: 1080px) {
  .quick li:not(:last-child) .quick__label { display: inline; }
}

/* Navigation */

.navtoggle { display: none; }

.mainnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  list-style: none;
  margin: 0 0 0 -12px;
  padding: 0;
}
.mainnav li { margin: 0; }
.mainnav a {
  display: block;
  padding: 12px 12px 14px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--blue); border-bottom-color: var(--line); }
.mainnav li.active > a { color: var(--ink); border-bottom-color: var(--blue); }
.mainnav .dropdown-menu:empty { display: none; }

/* Claim – full on the homepage only */

.claim { display: none; }
.home .claim {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 6vw, 64px);
  padding-bottom: clamp(32px, 6vw, 72px);
}
.claim p {
  margin: 0;
  max-width: 14ch;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
}

@media (max-width: 759px) {
  .js .navtoggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink);
    font: 500 .9375rem var(--sans);
    cursor: pointer;
  }
  .navtoggle__bars,
  .navtoggle__bars::before,
  .navtoggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform .2s ease;
  }
  .navtoggle__bars { position: relative; }
  .navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
  .navtoggle__bars::before { top: -6px; }
  .navtoggle__bars::after { top: 6px; }
  .navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
  .navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .mainnav { display: none; }
  .js .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; margin: 0 0 12px; border-top: 1px solid var(--line); }
  .mainnav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .mainnav a:hover { border-bottom-color: var(--line); }
  .mainnav li.active > a { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--blue); padding-left: 14px; }

  .brand__name { font-size: 1.2rem; }
  .brand__role { font-size: .8125rem; }
  .quick { display: none; }
}

@media (max-width: 380px) {
  .brand__role { display: none; }
}

/* ---------- Page layout ---------- */

body { min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1 0 auto; padding-top: clamp(28px, 5vw, 56px); padding-bottom: 64px; }

/* the CMS wraps content in its own .container elements */
.page .container { width: auto; max-width: none; margin: 0; padding: 0; }

.columns { display: block; }
.columns > [class*="col-sm-"] + [class*="col-sm-"] { margin-top: 40px; }

@media (min-width: 900px) {
  .columns {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .columns > [class*="col-sm-"] + [class*="col-sm-"] { margin-top: 0; }
  .columns > .col-sm-8 { grid-column: span 8; }
  .columns > .col-sm-4 { grid-column: span 4; }
  .columns > .col-sm-6 { grid-column: span 6; }
  .columns > .col-sm-12 { grid-column: span 12; }
}

/* single-column pages: keep a readable measure */
.textmaincontent,
.page > .container > .modul { max-width: 46rem; }

.modul + .modul { margin-top: 40px; }

/* ---------- Content typography ---------- */

.page h1, .page h2, .page h3, .page h4 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 1.6em 0 .55em;
}
.page h1 { font-size: clamp(1.75rem, 3.6vw, 2.375rem); font-weight: 600; letter-spacing: -.025em; }
.page h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 600; }
.page h3 { font-size: 1.1875rem; font-weight: 600; }
.page .modul > :first-child,
.page .textmaincontent > :first-child,
.page .modul > div > :first-child { margin-top: 0; }

.page p { margin: 0 0 1em; }
.page ul, .page ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.page li { margin-bottom: .5em; padding-left: .2em; }
.page li::marker { color: var(--blue); }
.page ul.dashlist { list-style: none; padding-left: 0; }
.page ul.dashlist li { padding-left: 1.1em; position: relative; }
.page ul.dashlist li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: .5em; height: 2px; background: var(--blue);
}
.page ul + ul { margin-top: -.7em; }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.page strong { font-weight: 600; }

/* neutralise inline fonts pasted from Word */
.page [style*="font-family"] { font-family: inherit !important; }
.page [style*="font-size: small"],
.page [style*="font-size: 11.0pt"],
.page [style*="font-size: medium"] { font-size: inherit !important; }
.page [style*="font-size: large"] { font-size: 1.125rem !important; }

/* images inside content */
.page img { border-radius: 2px; }
.page img[style*="float: right"] { margin: 4px 0 16px 24px !important; max-width: 40%; }
.page img[style*="float: left"] { margin: 4px 24px 16px 0 !important; }

a.gallery { display: inline-block; line-height: 0; border: 1px solid var(--line); background: var(--surface); padding: 6px; border-radius: 3px; cursor: zoom-in; }
a.gallery:hover { border-color: var(--blue); }
a.gallery img { border-radius: 0; }
a.gallery:empty, a.gallery:not(:has(img)) { display: inline; line-height: inherit; border: 0; padding: 0; background: none; }

/* PDF downloads */
.page a[href$=".pdf"]::after {
  content: "PDF";
  display: inline-block;
  margin-left: .5em;
  padding: 1px 6px;
  font: 600 .6875rem/1.5 var(--sans);
  letter-spacing: .02em;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 3px;
  vertical-align: .15em;
}

/* ---------- Sidebar (col-sm-4) ---------- */

.col-sm-4 .modul {
  background: var(--surface);
  border-top: 3px solid var(--ink);
  padding: 22px 22px 8px;
  font-size: 1rem;
  line-height: 1.55;
}
.col-sm-4 .modul + .modul { margin-top: 24px; }
.col-sm-4 h2 { font-size: 1.25rem; margin: 0 0 .8em; }
.col-sm-4 p { margin-bottom: .55em; }
.col-sm-4 img[style*="float"] { float: none !important; margin: 0 !important; max-width: 100%; }
.col-sm-4 p[style*="center"] { text-align: center; }
.col-sm-4 a.gallery { border: 0; padding: 0; background: none; margin: 6px; }

/* What's new – dated list */
.updates h2 { margin-bottom: .6em; }
.update { padding: 14px 0; border-top: 1px solid var(--line); }
.update:first-of-type { border-top: 0; padding-top: 0; }
.update span {
  display: block;
  font: 500 .8125rem/1.4 var(--sans);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.update p { margin: 0; }

/* ---------- Specialisations: tables turned into an accordion ---------- */

.page table { width: 100%; border-collapse: collapse; }
.page table caption:empty { display: none; }
.page table th, .page table td { text-align: left; padding: 0; vertical-align: top; }

.page .modul:has(table) + .modul:has(table) { margin-top: 0; }
.page .modul > h2 + table { margin-top: .5em; }

table.acc { border-top: 1px solid var(--line); }
.modul:has(table.acc) + .modul:has(table.acc) table.acc { border-top: 0; }
table.acc { border-bottom: 1px solid var(--line); }
table.acc th { padding: 0; }
table.acc .acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 2px;
  background: none;
  border: 0;
  color: var(--ink);
  text-align: left;
  font: 600 1.125rem/1.3 var(--sans);
  cursor: pointer;
}
table.acc .acc__btn:hover { color: var(--blue); }
table.acc .acc__icon { position: relative; flex: none; width: 14px; height: 14px; }
table.acc .acc__icon::before, table.acc .acc__icon::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor;
  transition: transform .2s ease;
}
table.acc .acc__icon::after { transform: rotate(90deg); }
table.acc.is-open .acc__icon::after { transform: rotate(0); }
table.acc td { display: none; padding: 0 2px 10px; }
table.acc.is-open td { display: table-cell; }
table.acc td p:last-child, table.acc td br:last-child { display: none; }

/* ---------- Contact form ---------- */

.contactform h2 { font-size: 1.375rem; margin-top: 0; }
.form-horizontal .form-group { margin-bottom: 18px; }
.form-horizontal .control-label {
  display: block;
  margin-bottom: 6px;
  font: 500 .9375rem var(--sans);
  color: var(--ink-2);
}
.form-horizontal .control-label:empty { display: none; }
.form-control {
  display: block;
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid #b9c6cb;
  border-radius: 3px;
  color: var(--ink);
  font: 1rem/1.5 var(--sans);
}
.form-control::placeholder { color: #7d8b91; }
.form-control:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.form-control { resize: vertical; min-height: 10rem; }
input[type="file"] { font: .9375rem var(--sans); max-width: 100%; }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px;
  background: var(--surface); border: 1px solid #b9c6cb; border-radius: 3px;
  font: 500 .9375rem var(--sans); color: var(--ink); cursor: pointer;
}
input[type="checkbox"] { width: 18px; height: 18px; vertical-align: -3px; margin: 0 8px 0 0; accent-color: var(--blue); }
input[type="checkbox"] + label { font: .9375rem var(--sans); cursor: pointer; }
.antispam { display: none; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 3px;
  font: 600 1rem var(--sans);
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }

@media (min-width: 560px) and (max-width: 899px), (min-width: 1100px) {
  .form-horizontal .form-group { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .form-horizontal .control-label { margin: 11px 0 0; }
  .form-horizontal .control-label:empty { display: block; }
  .form-horizontal .col-sm-offset-3 { grid-column: 2; }
}

.alert { padding: 14px 16px; border-radius: 3px; margin: 0 0 18px; font-family: var(--sans); border-left: 4px solid; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-danger { background: var(--err-soft); color: var(--err); }
.contactform > br:first-of-type { display: none; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: #c9d4d8; font-family: var(--sans); font-size: .9375rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-top: 36px; padding-bottom: 36px; }
.footer p { margin: 0; line-height: 1.6; }
.footer__name { color: #fff; }
.footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.footer a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  margin: 0;
}
.lightbox::backdrop { background: rgba(10, 18, 22, .88); }
.lightbox__fig { margin: 0; height: 100%; display: grid; place-items: center; padding: 56px 16px 24px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 96px); width: auto; height: auto; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font: 400 1.6rem/1 var(--sans);
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 10px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 20px; left: 18px; color: #c9d4d8; font: .875rem var(--sans); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .masthead .quick, .navtoggle, .mainnav, .footer, .contactform { display: none !important; }
  body { background: #fff; }
  table.acc td { display: table-cell !important; }
}
