/* ============================================================
   majipro s.r.o. — homepage
   Brand: navy #354767, teal #3db4a0
   Strategy: progressive enhancement; renders cleanly without
   CSS variables, Grid, or backdrop-filter on older browsers.
   ============================================================ */

/* -------- Reset & base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d2940;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #3db4a0; text-decoration: none; -webkit-transition: color .2s; transition: color .2s; }
a:hover, a:focus { color: #2d8a7a; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #3db4a0; outline-offset: 3px; border-radius: 2px; }

/* -------- Custom properties (modern browsers) -------- */
:root {
  --navy: #354767;
  --navy-deep: #1d2940;
  --navy-darker: #0f1729;
  --teal: #3db4a0;
  --teal-bright: #4ed3bc;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-card: #ffffff;
  --text: #1d2940;
  --text-soft: #4a5878;
  --text-muted: #8b97ab;
  --border: #e3e8f0;
  --mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --shadow-sm: 0 1px 2px rgba(15,23,41,.06), 0 1px 4px rgba(15,23,41,.04);
  --shadow-md: 0 4px 12px rgba(15,23,41,.08), 0 2px 4px rgba(15,23,41,.04);
  --shadow-lg: 0 12px 32px rgba(15,23,41,.12), 0 4px 8px rgba(15,23,41,.06);
  --max: 1180px;
}

/* -------- i18n: hide non-active language blocks -------- */
[data-lang] { display: none; }
[data-lang].is-active { display: block; }
.lang-inline { display: none; }
.lang-inline.is-active { display: inline; }

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: 1180px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-block;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #3db4a0;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before { content: "// "; opacity: .55; }
h1, h2, h3, h4 { color: #1d2940; color: var(--navy-deep); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 44px; }
h2 { font-size: 34px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.lead {
  font-size: 18px;
  color: #4a5878;
  color: var(--text-soft);
  max-width: 640px;
}

/* -------- Header / nav -------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e3e8f0;
  border-bottom: 1px solid var(--border);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header {
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
  }
}
.nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; }
.nav-logo svg { height: 28px; width: auto; }
.nav-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}
.nav-links a {
  color: #1d2940;
  color: var(--navy-deep);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: #3db4a0;
  background: var(--teal);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: left;
  transform-origin: left;
  -webkit-transition: -webkit-transform .25s;
  transition: transform .25s;
}
.nav-links a:hover::after, .nav-links a:focus::after { -webkit-transform: scaleX(1); transform: scaleX(1); }

.nav-right { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; gap: 16px; }
.lang-switch {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border: 1px solid #e3e8f0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: #f6f8fb;
  background: var(--bg-soft);
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #4a5878;
  color: var(--text-soft);
  border-radius: 999px;
  -webkit-transition: all .18s;
  transition: all .18s;
}
.lang-switch button[aria-pressed="true"] {
  background: #354767;
  background: var(--navy);
  color: #ffffff;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  color: #1d2940;
  color: var(--navy-deep);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* -------- Hero -------- */
.hero {
  position: relative;
  background: #1d2940;
  background: -webkit-linear-gradient(135deg, #1d2940 0%, #243454 55%, #2c3e6b 100%);
  background: linear-gradient(135deg, #1d2940 0%, #243454 55%, #2c3e6b 100%);
  color: #e6ecf5;
  padding: 120px 0 110px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    -webkit-linear-gradient(rgba(61,180,160,.07) 1px, transparent 1px),
    -webkit-linear-gradient(90deg, rgba(61,180,160,.07) 1px, transparent 1px);
  background-image:
    linear-gradient(rgba(61,180,160,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,180,160,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  top: -260px; right: -180px;
  background: radial-gradient(closest-side, rgba(61,180,160,.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero h1 {
  color: #ffffff;
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero h1 .accent { color: #4ed3bc; color: var(--teal-bright); }
.hero .lead {
  color: #c4ccd9;
  font-size: 19px;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-badges {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.badge {
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 8px;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #c4ccd9;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 6px 12px;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  background: #3db4a0;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px #3db4a0;
  box-shadow: 0 0 8px var(--teal);
}

/* -------- Buttons -------- */
.btn {
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  -webkit-transition: all .2s;
  transition: all .2s;
}
.btn-primary {
  background: #3db4a0;
  background: var(--teal);
  color: #0f1729;
  border-color: #3db4a0;
  border-color: var(--teal);
}
.btn-primary:hover, .btn-primary:focus {
  background: #4ed3bc;
  background: var(--teal-bright);
  color: #0f1729;
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(61,180,160,.3);
}
.btn-ghost {
  background: transparent;
  color: #e6ecf5;
  border-color: rgba(230,236,245,.25);
}
.btn-ghost:hover, .btn-ghost:focus { background: rgba(255,255,255,.06); color: #ffffff; }
.btn .arrow { -webkit-transition: -webkit-transform .2s; transition: transform .2s; }
.btn:hover .arrow { -webkit-transform: translateX(3px); transform: translateX(3px); }

/* -------- Section headers -------- */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: 36px; }
.section-head p { color: #4a5878; color: var(--text-soft); font-size: 17px; }

/* -------- Services / grid -------- */
.bg-soft { background: #f6f8fb; background: var(--bg-soft); }
.grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -12px;
}
.grid > * {
  padding: 12px;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 100%;
  flex: 1 1 100%;
}
@supports (display: grid) {
  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0;
  }
  .grid > * { padding: 0; flex: none; }
}
@media (min-width: 640px) {
  .grid > * { -ms-flex: 1 1 calc(50% - 24px); flex: 1 1 calc(50% - 24px); }
  @supports (display: grid) {
    .grid { grid-template-columns: repeat(2, 1fr); }
  }
}
@media (min-width: 960px) {
  .grid > * { -ms-flex: 1 1 calc(33.333% - 24px); flex: 1 1 calc(33.333% - 24px); }
  @supports (display: grid) {
    .grid { grid-template-columns: repeat(3, 1fr); }
  }
}

.card {
  background: #ffffff;
  background: var(--bg-card);
  border: 1px solid #e3e8f0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px;
  -webkit-transition: all .25s;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #3db4a0;
  background: var(--teal);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: left;
  transform-origin: left;
  -webkit-transition: -webkit-transform .3s;
  transition: transform .3s;
}
.card:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,23,41,.12), 0 4px 8px rgba(15,23,41,.06);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61,180,160,.4);
}
.card:hover::before { -webkit-transform: scaleX(1); transform: scaleX(1); }
.card-icon {
  width: 44px; height: 44px;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(61,180,160,.12);
  color: #3db4a0;
  color: var(--teal);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: #4a5878; color: var(--text-soft); margin: 0; }

/* -------- Products -------- */
.products .grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) {
  .products .grid > * { -ms-flex: 1 1 100%; flex: 1 1 100%; }
  @supports (display: grid) { .products .grid { grid-template-columns: 1fr; } }
}
.product-card {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.product-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(closest-side, rgba(61,180,160,.12), transparent 70%);
  pointer-events: none;
}
.product-card .card-icon { width: 52px; height: 52px; }
.product-card .card-icon svg { width: 28px; height: 28px; }
.product-card h3 { font-size: 22px; }
.product-card p { font-size: 15.5px; }

/* -------- About / partners -------- */
.about-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
.about-grid > * {
  -ms-flex: 1 1 280px;
  flex: 1 1 280px;
}
.person {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 16px;
}
.avatar {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: -webkit-linear-gradient(135deg, #354767, #3db4a0);
  background: linear-gradient(135deg, #354767, #3db4a0);
  color: #ffffff;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .02em;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}
.person-name { font-weight: 600; color: #1d2940; color: var(--navy-deep); margin: 0 0 2px; }
.person-role { font-size: 13.5px; color: #8b97ab; color: var(--text-muted); margin: 0 0 6px; }
.person-link {
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
}
.person-link svg { width: 14px; height: 14px; -ms-flex-negative: 0; flex-shrink: 0; }
.person-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.partner-card {
  background: -webkit-linear-gradient(135deg, #1d2940, #2c3e6b);
  background: linear-gradient(135deg, #1d2940, #2c3e6b);
  color: #e6ecf5;
  border-radius: 16px;
  padding: 36px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}
.partner-card h3 { color: #ffffff; font-size: 22px; }
.partner-card p { color: #c4ccd9; margin-bottom: 18px; }
.partner-card .partner-flag {
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 8px;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4ed3bc;
  margin-bottom: 12px;
}

/* -------- Contact -------- */
.contact {
  background: #0f1729;
  background: var(--navy-darker);
  color: #e6ecf5;
}
.contact h2 { color: #ffffff; }
.contact .lead { color: #c4ccd9; }
.contact-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
}
.contact-block {
  -ms-flex: 1 1 240px;
  flex: 1 1 240px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 24px;
}
.contact-block h4 {
  color: #4ed3bc;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.contact-block p, .contact-block address {
  color: #e6ecf5;
  font-size: 15px;
  font-style: normal;
  margin: 0 0 6px;
}
.contact-block a { color: #4ed3bc; }
.contact-block a:hover { color: #ffffff; }
.contact-cta {
  margin-top: 28px;
  padding: 28px;
  background: -webkit-linear-gradient(135deg, rgba(61,180,160,.18), rgba(61,180,160,.04));
  background: linear-gradient(135deg, rgba(61,180,160,.18), rgba(61,180,160,.04));
  border: 1px solid rgba(61,180,160,.3);
  border-radius: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-cta strong { color: #ffffff; font-size: 17px; display: block; }
.contact-cta span { color: #c4ccd9; font-size: 14px; }

/* -------- Footer -------- */
.site-footer {
  background: #0a1020;
  color: #8b97ab;
  font-size: 13.5px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer svg { height: 22px; }
.footer-meta { color: #6b7894; }

/* -------- Mobile -------- */
@media (max-width: 860px) {
  .hero { padding: 90px 0 80px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
  .section { padding: 72px 0; }
  h2 { font-size: 28px; }
  .section-head h2 { font-size: 28px; }
  .product-card { padding: 28px; }
  .partner-card { padding: 28px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e3e8f0;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    display: none;
    box-shadow: 0 12px 24px rgba(15,23,41,.08);
  }
  .nav-links.is-open { display: -webkit-box; display: flex; }
  .nav-links li { border-bottom: 1px solid #e3e8f0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: -webkit-box; display: flex; }
  .nav { position: relative; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 56px 0; }
  .nav-logo svg { height: 24px; }
  .contact-cta { flex-direction: column; align-items: stretch; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    -webkit-animation-duration: .01ms !important;
    animation-duration: .01ms !important;
    -webkit-transition-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header, .hero-glow, .hero-grid-bg, .nav-toggle, .lang-switch { display: none !important; }
  .hero, .contact, .site-footer { background: #ffffff !important; color: #1d2940 !important; }
  .hero h1, .contact h2 { color: #1d2940 !important; }
}
