
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #102033;
  --muted: #607086;
  --line: #dfe7f2;
  --brand: #10243f;
  --brand-2: #f5b43b;
  --accent: #0d6efd;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(16, 36, 63, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 36px)); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px; }
.skip:focus { left: 10px; z-index: 99; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 220px; max-width: 300px; flex: 0 0 auto; }
.brand-text strong { display:block; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 54px; overflow: hidden; border-radius: 12px; background: #111; box-shadow: 0 6px 16px rgba(16,36,63,.14); }
.brand-mark img { width: 54px !important; height: 54px !important; max-width: 54px !important; max-height: 54px !important; object-fit: cover; display: block; border-radius: 12px; -webkit-user-drag: none; user-drag: none; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: -2px; white-space: nowrap; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1; flex-wrap: wrap; }
.nav-link { font-weight: 700; font-size: 13px; color: var(--text); }
.header-cta { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 999px; background: var(--brand-2); color: #1b1608; font-weight: 800; white-space: nowrap; }
.hero {
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(245,180,59,.25), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(13,110,253,.13), transparent 32%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero.simple { padding-bottom: 34px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 42px; align-items: center; }
.eyebrow {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 12px;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 5vw, 66px); letter-spacing: -0.045em; }
h2 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.035em; }
h3 { font-size: 22px; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 2vw, 22px); color: #33445b; max-width: 850px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 20px; border-radius: 999px; font-weight: 850; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--line); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trust-row span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
  color: var(--muted); font-weight: 700; font-size: 14px;
}
.hero-card, .panel, .card, .price-card, .form-placeholder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 28px; }
.section { padding: 70px 0; }
.section.alt { background: #fff; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { padding: 24px; min-height: 230px; display: flex; flex-direction: column; }
.card p { color: var(--muted); flex: 1; }
.card a { font-weight: 850; }
.panel { padding: 26px; }
.check-list { padding: 0; list-style: none; margin: 18px 0 0; }
.check-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid rgba(223,231,242,.8);
}
.check-list li:before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(245,180,59,.25); color: var(--brand); font-weight: 900;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li:before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 900; margin-bottom: 16px;
}
.steps p, .note, .muted { color: var(--muted); }
.cta-band { background: var(--brand); color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.faq-list { margin-top: 24px; display: grid; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list p { color: var(--muted); margin-bottom: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.price-card { padding: 24px; }
.price-card p { color: var(--muted); }
.price-card strong { color: var(--brand); }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 34px; }
.contact-panel a { font-size: 22px; font-weight: 850; }
.form-placeholder { padding: 22px; margin-top: 24px; background: #f9fbff; }
.article h2 { margin-top: 38px; }
.article p { color: #33445b; font-size: 18px; }
.article-cta {
  margin-top: 44px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.site-footer { background: #081525; color: #dbe6f3; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 30px; }
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 30px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.58);
  font-size: 14px;
}
@media (max-width: 980px) {
  .header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
  .nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 1; flex-wrap: wrap; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .cards, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 24px, 1160px); }
  .hero { padding: 54px 0 46px; }
  .section { padding: 46px 0; }
  .cards, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .header-cta { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 999px; background: var(--brand-2); color: #1b1608; font-weight: 800; white-space: nowrap; }
  .footer-bottom { flex-direction: column; }
}


/* v9 – konverzný formulár a cenové prvky */
.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(13,110,253,.16);
  border-color: var(--accent);
}
.contact-form textarea {
  resize: vertical;
}
.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.price-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245,180,59,.18);
  color: var(--brand);
  font-weight: 900;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.notice {
  border-left: 4px solid var(--brand-2);
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
@media (max-width: 740px) {
  .form-grid, .audience-grid { grid-template-columns: 1fr; }
}


.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.price-card { position: relative; }
.price-card strong { display: block; margin: 14px 0 12px; font-size: 20px; }
.price-cta { display: inline-flex; align-items: center; justify-content: center; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); font-weight: 800; font-size: 14px; background: #fff; }
.price-cta:hover { text-decoration: none; transform: translateY(-1px); }
.btn-full { margin-top: 18px; width: 100%; }
.contact-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font: inherit; background: #fff; color: var(--text); }


/* v15: zarovnanie CTA tlačidiel v cenníku a kompaktný CTA blok */
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card p { flex: 1 1 auto; }
.price-card strong { margin-top: auto; }
.price-cta { align-self: flex-start; margin-top: 0; }
.cta-row.compact { margin-top: 18px; gap: 10px; }
.hero-card details { margin-top: 10px; }

.form-status { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f0f6ff; border: 1px solid var(--line); color: var(--muted); }


/* v19 – galéria, vybavenie a technické dôkazy */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.compact-gallery { margin-bottom: 18px; }
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-card h3, .gallery-card p { padding-left: 22px; padding-right: 22px; }
.gallery-card h3 { margin-top: 18px; }
.gallery-card p { color: var(--muted); margin-top: 0; padding-bottom: 22px; }
.photo-slot {
  min-height: 160px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(16,36,63,.95), rgba(16,36,63,.62)),
    radial-gradient(circle at 20% 10%, rgba(245,180,59,.45), transparent 28%);
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.photo-slot span { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.08); }
.equipment-panel { background: #f9fbff; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }


/* v22 – oprava grafiky formulárov a zarovnania tlačidiel po cache probléme */
.contact-form{display:grid;gap:14px;margin-top:18px;width:100%;}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;}
.contact-form label{display:flex;flex-direction:column;gap:7px;font-weight:800;color:var(--text);}
.contact-form input,.contact-form select,.contact-form textarea{width:100%;min-height:48px;border:1px solid var(--line);border-radius:14px;padding:13px 14px;font:inherit;background:#fff;color:var(--text);box-shadow:none;}
.contact-form textarea{min-height:130px;resize:vertical;}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:3px solid rgba(13,110,253,.16);border-color:var(--accent);}
.contact-form .btn,.contact-form button{justify-self:start;margin-top:4px;}
.hp-field{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
.price-card{display:flex;flex-direction:column;align-items:flex-start;}
.price-card p{flex:1 1 auto;}
.price-card strong{display:block;margin-top:auto;margin-bottom:12px;font-size:20px;line-height:1.2;color:var(--brand);}
.price-cta{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:999px;border:1px solid var(--line);font-weight:850;font-size:14px;background:#fff;color:var(--brand);text-decoration:none;white-space:nowrap;}
.price-cta:hover{text-decoration:none;transform:translateY(-1px);}
@media (max-width:740px){.form-grid{grid-template-columns:1fr;}.contact-form input,.contact-form select,.contact-form textarea{font-size:16px;}.contact-form .btn,.contact-form button{width:100%;}.hero-card{padding:24px;}}


.mail-fallback-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9fbff;
}
.mail-fallback-panel h3 { margin: 0 0 8px; font-size: 20px; }
.mail-fallback-panel p { margin: 0 0 12px; color: var(--muted); }
.fallback-text {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 740px) {
  .fallback-actions .btn { width: 100%; }
}


/* v25 mobile tap targets and universal CTA */
button, .btn, input, select { min-height: 48px; padding: 12px 24px; }
textarea { padding: 12px 24px; }
.price-cta { min-height: 44px; padding: 10px 14px; }
.cta-banner { background-color: #f8fafc; padding: 40px 20px; text-align: center; border-radius: 14px; margin-top: 40px; border: 1px solid var(--line); }
.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { color: var(--muted); margin: 0 auto; max-width: 680px; }
.cta-banner .btn { display: inline-flex; background-color: var(--brand); color: #fff; margin-top: 18px; font-weight: 850; text-decoration: none; }
.pricing-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: 18px; }
.pricing-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pricing-box li { padding-bottom: 14px; border-bottom: 1px solid rgba(223,231,242,.8); }
.pricing-box li:last-child { border-bottom: 0; padding-bottom: 0; }
.text-sm { font-size: 14px; }
.text-gray-500 { color: var(--muted); }
@media (max-width: 640px) { button, .btn, input, select { min-height: 48px; } .cta-banner { padding: 30px 16px; } }

/* v26 – právny dôvod revízií a dokumentácie */
.legal-block { background:#fff; border:1px solid var(--line); border-left:5px solid var(--brand-2); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow); margin:30px 0; }
.legal-block .eyebrow { margin-bottom:10px; }
.legal-block h2 { font-size:clamp(24px,2.6vw,34px); margin-bottom:12px; }
.legal-block p { color:#33445b; margin:0 0 12px; }
.legal-block ul { margin:16px 0 0; padding-left:22px; color:#33445b; }
.legal-block li { margin:8px 0; }
.legal-block strong { color:var(--brand); }
@media (max-width:640px){ .legal-block { padding:20px; } }


/* Základné technické spomaľovače kopírovania obsahu. Nejde o absolútnu ochranu, ale znižuje jednoduché kopírovanie myšou. */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, button, .allow-copy, .mail-fallback-panel, .contact-form {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
}
.footer-bottom .copyright-notice {
  max-width: 760px;
}

/* v28 – ochrana proti jednoduchej tlači / exportu do PDF.
   Poznámka: ide o praktický spomaľovač. Screenshoty, OCR z obrazovky a DevTools nie je možné úplne znemožniť. */
#print-protection-notice {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  width: min(620px, calc(100% - 32px));
  z-index: 99999;
  background: #081525;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(8,21,37,.35);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#print-protection-notice.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#print-protection-notice strong { color: #fff; }

@media print {
  @page { margin: 18mm; }
  html, body {
    background: #fff !important;
    color: #111 !important;
  }
  body * {
    visibility: hidden !important;
  }
  body::before {
    visibility: visible !important;
    display: block !important;
    content: "Tlač, uloženie do PDF a export obsahu webu MaVa elektro sú zakázané. Obsah webu je chránený autorskými právami. Pre cenovú ponuku použite formulár na webe alebo zavolajte na 0902 223 640.";
    white-space: pre-wrap;
    font: 700 18pt/1.45 Arial, sans-serif;
    color: #111;
    margin: 40mm auto 0;
    max-width: 170mm;
    text-align: center;
  }
}

/* v29 – mobilná ochrana proti jednoduchému kopírovaniu */
html, body, main, section, article, header, footer, nav, .card, .panel, .price-card, .hero-card, .article, .cta-banner {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, select, button, .contact-form, .fallback-panel, .allow-select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.protected-image,
.gallery-item,
.figure,
.photo-card {
  position: relative;
}

.protected-image::after,
.gallery-item::after,
.figure::after,
.photo-card::after {
  content: "© MaVa elektro";
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.86);
  text-shadow: 0 1px 3px rgba(0,0,0,.65);
  pointer-events: none;
}

.copy-protection-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(18px);
  max-width: min(520px, calc(100% - 28px));
  padding: 13px 16px;
  background: rgba(8, 21, 37, .94);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.24);
  font-weight: 750;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .18s ease, transform .18s ease;
}

.copy-protection-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media print {
  body * {
    visibility: hidden !important;
  }
  body::before {
    content: "Tlač, uloženie do PDF a export obsahu webu MaVa elektro sú zakázané. Obsah je chránený autorskými právami.";
    visibility: visible !important;
    display: block !important;
    padding: 48px;
    font: 700 18px/1.5 Arial, sans-serif;
    color: #111;
  }
}
