/* Sef MK — static brand page.
   Family tokens from terminal-mk/docs/specs/00b-family-ui.md (canonical logo colours,
   darker text shades for WCAG AA). Theme: system by default, or html[data-theme]. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/IBMPlexSans-Regular-Latin2.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/IBMPlexSans-Regular-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/IBMPlexSans-SemiBold-Latin2.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/IBMPlexSans-SemiBold-Cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0472-0473, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04E9, U+04EE-04F5, U+04F8-04F9; }

:root {
  color-scheme: light;
  --bg: #f4f8fd;
  --surface: #ffffff;
  --line: #d5e2f2;
  --sky: #cfe5ff;
  --ink: #17212e;
  --muted: #4f5d70;
  --brand: #1a7a70;        /* teal text (AA on white / bg) */
  --brand-bg: #26a69a;     /* logo teal, fills and borders */
  --accent-bg: #ff8c00;
  --navy: #2e3b4e;
  --title: #2e3b4e;      /* brand name in the hero: dark blue */
  --shadow: 0 1px 2px rgba(23, 33, 46, 0.06), 0 4px 14px rgba(23, 33, 46, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #2e3b4e; --surface: #2e3b4e; --line: #50668c; --sky: #46608a;
    --ink: #cfe5ff; --title: #cfe5ff; --muted: #a0b5d3; --brand: #4cc9b9;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #2e3b4e; --surface: #2e3b4e; --line: #50668c; --sky: #46608a;
  --ink: #cfe5ff; --title: #cfe5ff; --muted: #a0b5d3; --brand: #4cc9b9;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-bg); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Top bar: language switch + theme toggle */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: 1rem 0; }
.langs { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.langs a { display: inline-block; padding: 0.35rem 0.6rem; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9375rem; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); background: var(--sky); }
.theme-toggle {
  display: none; /* shown by the script; without JS the system theme applies */
  font: inherit; font-size: 0.9375rem; color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: 6px; padding: 0.35rem 0.7rem; cursor: pointer;
}
.js .theme-toggle { display: inline-block; }
.theme-toggle:hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 2.5rem 0 3.5rem; }
.hero img { width: clamp(120px, 28vw, 180px); height: auto; }
.hero h1 { margin: 1.25rem 0 0.5rem; font-size: clamp(2rem, 6vw, 3rem); font-weight: 600; letter-spacing: 0.01em; color: var(--title); }
.acronym { margin: 0; font-size: clamp(1.125rem, 3.2vw, 1.5rem); color: var(--muted); }
.acronym .initial { color: var(--brand); font-weight: 600; }

/* Products */
.products h2, .contact h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 1.25rem; text-align: center; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand-bg);
  border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow);
}
.card img { width: 72px; height: 72px; border-radius: 12px; }
.card h3 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card a { font-weight: 600; text-decoration: none; padding: 0.25rem 0; }
.card a:hover { text-decoration: underline; }

.contact { padding-top: 3rem; text-align: center; }
.contact p { margin: 0.25rem 0; }

footer { margin-top: 4rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .card:hover { transform: translateY(-2px); }
}
