/* ─────────────────────────────────────────────────────────────────────────────
   dr. Mayer Imre ügyvéd — frontend dizajn „4. Vízszintes menü" (prototyp 21.9.2026),
   vizuálna revízia 14.10.2026 (frontend-design pass).
   Načítava sa PO w3.css / bootstrap, aby prekryl ich základné štýly. Obsah stránok
   z DB (TinyMCE) stále môže používať w3-* triedy.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --m-navy: #1f3c52;
  --m-navy-dark: #132634;
  --m-brass: #b08a45;        /* akcent na tmavom aj ako linky/čiary */
  --m-brass-light: #d8bb7e;  /* akcent na navy pozadí */
  --m-brass-text: #7f6128;   /* mosadz pre text na svetlom pozadí (kontrast ≥ 4.5:1) */
  --m-paper: #f4f5f2;        /* chladný kamenný podklad */
  --m-sand: #ece6d6;         /* teplá plocha len pre výzvu ku kontaktu */
  --m-line: #dcdfd9;
  --m-ink: #1c2730;
  --m-ink-2: #34404a;
  --m-muted: #56616a;
  --m-pad: 64px;
  --m-serif: 'Newsreader', Georgia, serif;
  --m-sans: 'Public Sans', 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background: var(--m-paper);
  color: var(--m-ink);
  font-family: var(--m-sans);
  font-size: 16px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--m-serif); font-weight: 500; color: var(--m-navy); line-height: 1.2; letter-spacing: -.005em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--m-brass); outline-offset: 3px; }
.m-wrap { padding-left: var(--m-pad); padding-right: var(--m-pad); }
.m-skip { position: absolute; left: -9999px; top: 0; background: var(--m-brass-light); color: var(--m-navy-dark); padding: 10px 16px; z-index: 100; }
.m-skip:focus { left: 16px; top: 8px; }

/* ── Utility bar ───────────────────────────────────────────────────────────── */
.m-util { background: var(--m-navy-dark); color: #c3ccd3; font-size: 13px; }
.m-util .m-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.m-util-info { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.m-util a { color: #c3ccd3; text-decoration: none; }
.m-util a:hover { color: #fff; }
.m-lang { display: flex; gap: 6px; flex: 0 0 auto; }
.m-lang a, .m-lang span { min-width: 34px; height: 26px; padding: 0 6px; box-sizing: border-box; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.m-lang span { background: var(--m-brass-light); color: var(--m-navy-dark); }
.m-lang a { color: #c3ccd3; border: 1px solid #3a5568; }
.m-lang a:hover { color: #fff; border-color: #8aa0b0; }

/* ── Header + horizontálne menu ────────────────────────────────────────────── */
.m-header { background: #fff; border-bottom: 1px solid var(--m-line); position: relative; z-index: 20; }
.m-header .m-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.m-logo { display: block; padding: 14px 0; flex: 0 0 auto; }
.m-logo img { width: 112px; height: auto; display: block; }
.m-burger { display: none; background: none; border: 1px solid var(--m-line); width: 46px; height: 46px; border-radius: 3px; color: var(--m-navy); cursor: pointer; align-items: center; justify-content: center; }
.m-nav ul { margin: 0; padding: 0; list-style: none; }
.m-nav > ul { display: flex; align-items: center; gap: 32px; }
.m-nav > ul > li { position: relative; }
.m-nav a.m-top { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--m-ink); text-decoration: none; padding: 32px 0 30px; border-bottom: 2px solid transparent; }
.m-nav a.m-top:hover, .m-nav li:hover > a.m-top, .m-nav li:focus-within > a.m-top { color: var(--m-navy); border-bottom-color: var(--m-line); }
.m-nav a.m-top.active { color: var(--m-navy); border-bottom-color: var(--m-brass); }
.m-caret { width: 10px; height: 10px; color: var(--m-muted); flex: 0 0 auto; transition: transform .15s; }
.m-nav li:hover .m-caret, .m-nav li:focus-within .m-caret { transform: rotate(180deg); }
.m-dropdown { position: absolute; top: 100%; left: -16px; min-width: 260px; background: #fff; border: 1px solid var(--m-line); border-top: 2px solid var(--m-brass); box-shadow: 0 18px 36px rgba(19,38,52,.12); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 30; }
.m-nav li:hover > .m-dropdown, .m-nav li:focus-within > .m-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.m-dropdown a { display: block; padding: 10px 14px; font-size: 14.5px; line-height: 1.4; color: var(--m-ink-2); text-decoration: none; border-radius: 2px; }
.m-dropdown a:hover, .m-dropdown a:focus { background: var(--m-paper); color: var(--m-navy); }
.m-dropdown a.active { color: var(--m-navy); font-weight: 600; background: var(--m-paper); }

/* ── Hero (len homepage) ───────────────────────────────────────────────────── */
.m-hero { position: relative; min-height: 540px; display: flex; align-items: flex-end; box-sizing: border-box; padding-top: 64px; padding-bottom: 64px; background-color: var(--m-navy-dark); background-size: cover; background-position: center; }
.m-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,38,52,.25) 0%, rgba(19,38,52,.55) 45%, rgba(19,38,52,.88) 100%); }
.m-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.m-hero h1 { color: #fff; font-size: 60px; font-weight: 500; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 22px; }
.m-hero-lead { color: #e3e7ea; font-size: 18px; line-height: 1.6; margin: 0; max-width: 34em; }
/* Dvojjazyčný riadok — jadro kancelárie (HU ↔ SK), jediný výrazný prvok stránky */
.m-hero-alt { display: inline-block; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(216,187,126,.45); font-family: var(--m-serif); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--m-brass-light); }
.m-hero-alt a { color: var(--m-brass-light); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(216,187,126,.5); }
.m-hero-alt a:hover { color: #fff; text-decoration-color: #fff; }
.m-hero-cta { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 34px; }
.m-btn { display: inline-flex; align-items: center; background: var(--m-brass-light); color: var(--m-navy-dark); font-weight: 600; font-size: 15px; padding: 15px 28px; border-radius: 3px; text-decoration: none; }
.m-btn:hover { background: #e6cc95; color: var(--m-navy-dark); }
.m-btn-ghost { display: inline-flex; align-items: center; color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding: 12px 0 3px; }
.m-btn-ghost:hover { color: #fff; border-bottom-color: #fff; }

/* ── Hlavička podstránky ───────────────────────────────────────────────────── */
.m-pagehead { padding-top: 64px; padding-bottom: 8px; text-align: center; }
.m-pagehead h1 { font-size: 44px; margin: 0; }
.m-rule { width: 56px; height: 2px; background: var(--m-brass); margin: 20px auto 0; }

/* ── Obsah stránky (HTML z DB) ─────────────────────────────────────────────── */
.m-content { padding-top: 48px; padding-bottom: 64px; }
.m-home .m-content { padding-top: 72px; }
.m-content-inner { max-width: 1040px; color: var(--m-ink-2); }
.m-sub .m-content-inner { margin: 0 auto; }
.m-home .m-content-inner { max-width: 880px; margin: 0 auto; }
/* textové bloky na podstránkach držia čitateľnú dĺžku riadku a stred stĺpca */
.m-sub .m-content-inner > p, .m-sub .m-content-inner > ul, .m-sub .m-content-inner > ol,
.m-sub .m-content-inner > h2, .m-sub .m-content-inner > h3, .m-sub .m-content-inner > h4,
.m-sub .m-content-inner > div:not([class]), .m-sub .m-content-inner > table { max-width: 720px; margin-left: auto; margin-right: auto; }
.m-content-inner p { margin: 0 0 1.1em; }
.m-content-inner h2 { font-size: 30px; margin: 1.5em 0 .55em; }
.m-content-inner h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.m-content-inner > :first-child, .m-content-inner > :first-child h2 { margin-top: 0; }
.m-content-inner strong, .m-content-inner b { color: var(--m-ink); font-weight: 600; }
.m-content-inner img { max-width: 100%; height: auto; }
.m-content-inner img[style*="float: left"], .m-content-inner img[style*="float:left"] { box-shadow: 10px 10px 0 var(--m-sand); margin-right: 32px !important; margin-bottom: 18px !important; }
.m-content-inner a { color: var(--m-navy); text-decoration: underline; text-decoration-color: var(--m-brass); text-underline-offset: 3px; }
.m-content-inner a:hover { text-decoration-thickness: 2px; }
.m-content-inner a[style*="009688"] { color: var(--m-navy) !important; }
.m-content-inner ul, .m-content-inner ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.m-content-inner li { margin-bottom: .3em; }
.m-content-inner li::marker { color: var(--m-brass); }
.m-content-inner table { max-width: 100%; }

/* ── Bloky obsahu (použiteľné v TinyMCE cez triedy) ────────────────────────── */
.m-content-inner .m-lead { max-width: 720px; margin: 0 auto 48px; text-align: center; font-family: var(--m-serif); font-size: 24px; line-height: 1.45; color: var(--m-navy); }
.m-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.m-area { background: #fff; border-top: 2px solid var(--m-navy); padding: 28px 28px 24px; }
.m-area-num { display: none; } /* staršie číslovanie — oblasti nie sú postupnosť */
.m-content-inner .m-area h2 { font-size: 24px; margin: 0 0 14px; }
.m-content-inner .m-area ul { list-style: none; padding: 0; margin: 0; }
.m-area li { position: relative; padding: 7px 0 7px 18px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--m-muted); border-top: 1px solid var(--m-paper); }
.m-area li:first-child { border-top: 0; }
.m-area li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 1.5px; background: var(--m-brass); }
.m-cta-box { margin: 56px auto 0; max-width: 860px; background: var(--m-sand); padding: 48px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.m-content-inner .m-cta-box h2 { font-size: 30px; margin: 0; }
.m-content-inner .m-cta-box p { margin: 0 0 10px; max-width: 520px; color: var(--m-ink-2); }
.m-content-inner a.m-btn { background: var(--m-navy); color: #fff; text-decoration: none; }
.m-content-inner a.m-btn:hover { background: var(--m-navy-dark); color: #fff; }

/* ── Služby (widget „szolgaltatasok") ──────────────────────────────────────── */
.m-services { padding-top: 56px; padding-bottom: 80px; background: #fff; border-top: 1px solid var(--m-line); }
.m-services > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.m-services h2 { font-size: 34px; margin: 0 0 8px; }
.m-services .m-rule { margin: 0 0 36px; }
.m-services h2 { text-align: center; }
.m-services .m-rule { margin: 0 auto 36px; }
.m-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 36px; }
.m-card { position: relative; background: var(--m-paper); border-top: 2px solid var(--m-navy); padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 12px; transition: background-color .15s; }
.m-card:hover { background: #ebede8; }
.m-card-num { display: none; } /* staršie číslovanie — služby nie sú postupnosť */
.m-card h3 { font-size: 24px; margin: 0; }
.m-card p { font-size: 15px; line-height: 1.6; color: var(--m-muted); margin: 0; flex: 1; }
.m-card a { font-size: 14.5px; font-weight: 600; color: var(--m-navy); text-decoration: underline; text-decoration-color: var(--m-brass); text-underline-offset: 4px; }
.m-card a::after { content: ""; position: absolute; inset: 0; } /* celá karta je klikateľná */
.m-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.m-tags a { display: inline-block; padding: 8px 16px; border: 1px solid var(--m-line); border-radius: 999px; font-size: 14px; line-height: 1.4; color: var(--m-ink-2); background: #fff; text-decoration: none; }
.m-tags a:hover { border-color: var(--m-brass); color: var(--m-navy); }
.m-tags { justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.m-footer { position: relative; background: var(--m-navy-dark); color: #d3d8dc; padding-top: 64px; padding-bottom: 36px; overflow: hidden; }
.m-footer-seal { position: absolute; top: -40px; right: -20px; width: 260px; height: 260px; opacity: .07; pointer-events: none; }
.m-footer-cols { display: flex; gap: 64px; position: relative; }
.m-footer-contact { flex: 1.2; }
.m-footer-legal { flex: 1; }
.m-footer h2 { color: #fff; font-size: 24px; margin: 0 0 16px; }
.m-footer h3 { color: #fff; font-size: 18px; margin: 0 0 12px; }
.m-footer-contact address { font-style: normal; font-size: 15px; line-height: 1.95; margin: 0; }
.m-footer a { color: #d3d8dc; text-decoration: none; border-bottom: 1px solid rgba(211,216,220,.35); }
.m-footer a:hover { color: #fff; border-bottom-color: #fff; }
.m-footer-write { display: inline-block; margin-top: 14px; }
.m-footer-legal-text { font-size: 13.5px; line-height: 1.75; color: #aab4bc; }
.m-footer-legal-text #content_text > br:first-child { display: none; }
.m-footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(211,216,220,.15); font-size: 13px; color: #96a2ab; position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.m-footer-bottom a { color: #aab4bc; }

/* ── Kontakt: dve kancelárie (SK s mapou OSM, HU len text) — 19.10.2026 ──────── */
.m-contact { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.m-office { margin: 0; }
.m-office-city { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.m-content-inner .m-office-city h2 { font-size: 32px; margin: 0; }
.m-office-cc { font-family: var(--m-sans); font-size: 13px; font-weight: 600; color: var(--m-brass-text); border: 1px solid var(--m-brass); border-radius: 2px; padding: 1px 6px; letter-spacing: .04em; position: relative; top: -4px; }
.m-content-inner .m-office-who { margin: 0 0 20px; color: var(--m-muted); font-size: 15px; }
.m-content-inner .m-office-who strong { color: var(--m-navy); font-family: var(--m-serif); font-size: 19px; font-weight: 500; display: block; }
.m-office address { font-style: normal; margin: 0 0 20px; line-height: 1.8; }
.m-office dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 20px; font-size: 15.5px; }
.m-office dt { color: var(--m-muted); font-weight: 400; }
.m-office dd { margin: 0; }
.m-content-inner .m-office dd a { text-decoration-color: var(--m-line); }
.m-content-inner .m-office dd a:hover { text-decoration-color: var(--m-brass); }
.m-office-phone { font-family: var(--m-serif); font-size: 26px; line-height: 1.2; }
.m-content-inner a.m-office-phone { color: var(--m-navy); text-decoration: none; }
.m-content-inner a.m-office-phone:hover { text-decoration: underline; text-decoration-color: var(--m-brass); }
.m-map { margin: 28px 10px 0 0; box-shadow: 10px 10px 0 var(--m-sand); background: var(--m-line); }
.m-map iframe { display: block; width: 100%; height: 360px; border: 0; }
.m-map figcaption { background: #fff; padding: 10px 16px; font-size: 14px; color: var(--m-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.m-office--hu { border-left: 1px solid var(--m-line); padding-left: 48px; }
.m-office-note { font-size: 14.5px; color: var(--m-muted); }
.m-content-inner .m-office-note ul { padding-left: 1.1em; margin: 6px 0 0; }
.m-content-inner .m-office-note li { margin-bottom: .25em; }
.m-contact-mail { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--m-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.m-content-inner .m-contact-mail p { margin: 0; max-width: 560px; }
@media (max-width: 960px) {
  .m-contact { grid-template-columns: 1fr; gap: 40px; }
  .m-office--hu { border-left: 0; padding-left: 0; border-top: 1px solid var(--m-line); padding-top: 32px; }
}
@media (max-width: 640px) {
  .m-map iframe { height: 280px; }
  .m-office-phone { font-size: 23px; }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --m-pad: 40px; }
  .m-nav > ul { gap: 22px; }
  .m-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-hero h1 { font-size: 50px; }
}
@media (max-width: 960px) {
  .m-burger { display: inline-flex; }
  .m-header .m-wrap { flex-wrap: wrap; }
  .m-nav { display: none; width: 100%; padding-bottom: 12px; }
  .m-header.is-open .m-nav { display: block; }
  .m-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .m-nav a.m-top { padding: 13px 0; border-bottom: 1px solid var(--m-line); }
  .m-nav a.m-top:hover, .m-nav li:hover > a.m-top, .m-nav li:focus-within > a.m-top, .m-nav a.m-top.active { border-bottom-color: var(--m-line); }
  .m-nav a.m-top.active { font-weight: 600; }
  .m-caret { display: none; }
  .m-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px 16px; min-width: 0; }
  .m-cards { grid-template-columns: 1fr; }
  .m-footer-cols { flex-direction: column; gap: 36px; }
}
@media (max-width: 640px) {
  :root { --m-pad: 16px; }
  .m-util-info .m-util-addr { display: none; }
  .m-hero { min-height: 460px; padding-top: 40px; padding-bottom: 40px; }
  .m-hero h1 { font-size: 38px; }
  .m-hero-lead { font-size: 16.5px; }
  .m-hero-alt { font-size: 18px; }
  .m-pagehead { padding-top: 44px; }
  .m-pagehead h1 { font-size: 32px; }
  .m-areas { grid-template-columns: 1fr; }
  .m-content-inner .m-lead { font-size: 20px; margin-bottom: 32px; }
  .m-cta-box { padding: 36px 20px; }
  .m-content-inner img[style*="float"] { float: none !important; display: block; margin: 0 0 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
