/* ==========================================================
   MrWeb – style.css
   Farby, písmo a rozostupy sú na jednom mieste v :root.
   ========================================================== */

:root {
  --ink: #111111;
  --text: #1A1A1A;
  --text-2: #333333;
  --muted: #444444;
  --muted-2: #555555;
  --muted-3: #666666;
  --cream: #F4F1EA;
  --cream-line: #D9D3C5;
  --line: #E6E2D8;
  --num: #CFC8B8;
  --yellow: #FFE14D;
  --yellow-soft: #FFFBE6;
  --dark-card: #1E1E1E;
  --dark-line: #3A3A3A;
  --on-dark: #F4F1EA;
  --on-dark-2: #D6D2C8;
  --on-dark-3: #B8B3A7;
  --link-hover: #1F4FD1;

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;

  --wrap: 1120px;
  --pad: 24px;
  --section: 136px;
  --radius: 20px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--link-hover); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--ink); color: var(--on-dark); }
.border-top { border-top: 1px solid var(--line); }

/* ---------- Typografia ---------- */
.eyebrow { font-size: 17px; color: var(--muted-3); }
.bg-dark .eyebrow { color: var(--on-dark-3); }
.eyebrow + .h2 { margin-top: 12px; }

.h1 {
  font-size: clamp(38px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -0.035em;
  margin-top: 24px; max-width: 1020px;
}
.h2 {
  font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em;
  max-width: 880px;
}
.h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.highlight {
  background: var(--yellow); padding: 0 6px; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { margin-top: 28px; max-width: 700px; color: var(--muted); }
.bg-dark .lead { color: var(--on-dark-2); }
.small { font-size: 17px; }
.note { font-size: 16px; color: var(--muted-2); }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 16px 30px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 18px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #2a2a2a; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); background: #ffd91a; }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { color: var(--ink); background: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------- Hlavička ---------- */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 28px; padding-bottom: 28px;
}
.logo { font-family: var(--font-head); font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 16px; }
.main-nav a { color: var(--muted-2); text-decoration: none; }
.main-nav a:hover { color: var(--ink); }
.main-nav .btn { color: #fff; font-size: 16px; padding: 12px 20px; min-height: 44px; }
.back-link { font-size: 16px; color: var(--muted-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding-top: 80px; padding-bottom: 112px; }
.hero .lead { margin-top: 36px; max-width: 720px; font-size: 21px; }
.hero .btn-row { margin-top: 48px; }

.summary-grid { margin-top: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.summary-card { background: var(--cream); border-radius: var(--radius); padding: 32px; }
.summary-card.is-yellow { background: var(--yellow); }
.summary-card .label { font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6B6556; }
.summary-card.is-yellow .label { color: #5C4E00; }
.summary-card p:last-child { margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: 23px; line-height: 1.3; letter-spacing: -0.01em; }

/* ---------- Prínosy ---------- */
.benefit-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.benefit-card { background: var(--dark-card); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.benefit-card h3 { font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; }
.benefit-card p { color: var(--on-dark-2); font-size: 17px; }
.benefit-card svg { width: 36px; height: 36px; }
.benefit-footer {
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.benefit-footer p { max-width: 640px; color: var(--on-dark-2); font-size: 18px; }

/* ---------- Porovnávacia tabuľka ---------- */
.compare { margin-top: 56px; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--on-dark); font-size: 16px; }
.compare thead th:last-child { color: var(--yellow); }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare tbody td:nth-of-type(1) { color: var(--muted-2); }
.compare tbody td:nth-of-type(2) { background: var(--yellow-soft); }

/* ---------- Kroky ---------- */
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step {
  background: #fff; border-radius: 18px; padding: 28px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 40px; align-items: start;
}
.step-head { display: flex; gap: 18px; align-items: baseline; }
.step-num { font-family: var(--font-head); font-size: 40px; font-weight: 600; line-height: 1; color: var(--num); }
.step-title { font-family: var(--font-head); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.step-sub { margin-top: 2px; color: var(--muted-2); font-size: 16px; }
.step-label { font-size: 14px; font-weight: 600; color: #6B6556; }
.step-text { margin-top: 4px; font-size: 17px; }
.step.is-dark { background: var(--ink); color: var(--on-dark); }
.step.is-dark .step-num { color: var(--yellow); }
.step.is-dark .step-sub { color: var(--on-dark-2); }
.step.is-dark .step-label { color: var(--on-dark-3); }
.after-note { margin-top: 36px; max-width: 760px; color: var(--muted); }

/* ---------- Dve karty vedľa seba ---------- */
.two-col { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { border-radius: var(--radius); padding: 36px 32px; }
.card-yellow { background: var(--yellow); }
.card-cream { background: var(--cream); }
.card-outline { border: 1.5px solid var(--ink); }
.card-title { font-family: var(--font-head); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; }
.card ul { margin: 20px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.card-cream ul { color: var(--text-2); }
.card-footnote { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cream-line); font-size: 16px; color: var(--muted-2); }

/* ---------- Proces ---------- */
.process { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 28px; }
.process .num { font-family: var(--font-head); font-size: 56px; font-weight: 600; line-height: 1; color: var(--num); }
.process h3 { font-size: 22px; letter-spacing: -0.01em; margin-top: 16px; }
.process p { margin-top: 8px; color: var(--muted-2); font-size: 17px; }

.report-box {
  margin-top: 88px; background: #fff; border-radius: 24px; padding: 40px 32px;
  display: flex; flex-wrap: wrap; gap: 32px 56px;
}
.report-box > div { flex: 1 1 320px; min-width: 0; }
.report-box h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
.report-box p { margin-top: 12px; color: var(--muted-2); font-size: 17px; }
.report-box ul { flex: 1 1 360px; min-width: 0; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }

/* ---------- Cena ---------- */
.price-layout { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.price-layout > div { flex: 1 1 380px; min-width: 0; }
.price-layout > div:first-child { flex-basis: 420px; }
.icon-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.icon-list li { display: flex; gap: 14px; }
.icon-list svg { flex: 0 0 auto; margin-top: 4px; width: 24px; height: 24px; }
.icon-list strong { display: block; font-weight: 600; }
.icon-list p { margin-top: 4px; color: var(--on-dark-2); font-size: 17px; }

.transparency { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 36px 32px; }
.transparency h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; }
.transparency > p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.transparency .parts { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.transparency .part { border-radius: 12px; padding: 16px 18px; background: #fff; }
.transparency .part.is-yellow { background: var(--yellow); }
.transparency .part strong { display: block; }
.transparency .part p { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.transparency .part.is-yellow p { color: var(--ink); }
.transparency .foot { margin-top: 20px; font-size: 16px; color: var(--muted-2); }

.cta-band {
  margin-top: 88px; background: var(--yellow); color: var(--ink); border-radius: 24px; padding: 48px 40px;
  display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center;
}
.cta-band > div { flex: 1 1 480px; min-width: 0; }
.cta-band h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
.cta-band p { margin-top: 16px; font-size: 18px; color: var(--text-2); }
.price-footnote { margin-top: 48px; max-width: 820px; font-size: 17px; color: var(--on-dark-2); }
.price-footnote strong { color: var(--on-dark); }

/* ---------- O mne ---------- */
.about { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about-photo { flex: 0 0 auto; width: 160px; height: 160px; border-radius: 999px; object-fit: cover; object-position: center 30%; background: var(--line); }
.about-text { flex: 1 1 480px; min-width: 0; max-width: 700px; }
.about-text .quote { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.015em; }
.about-text p + p { margin-top: 16px; color: var(--muted); }
.about-text .quote + p { margin-top: 24px; }
.about-text ul { margin: 20px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.about-text .signature { margin-top: 24px; font-weight: 600; color: var(--ink); }

/* ---------- Lead magnet ---------- */
.magnet {
  margin-top: 112px; border: 1.5px solid var(--ink); border-radius: 24px; padding: 48px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.magnet-body { flex: 1 1 440px; min-width: 0; }
.magnet-body .h3 { margin-top: 12px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
.magnet-body > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); }
.magnet-body .aside { margin-top: 12px; color: var(--muted-3); font-size: 16px; }
.magnet-form { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.magnet-form .field { flex: 1 1 260px; }
.magnet-form .check, .magnet-form .form-note { flex: 1 1 100%; }
.magnet-card {
  flex: 0 1 260px; min-width: 220px; aspect-ratio: 3 / 4; background: var(--yellow); border-radius: 12px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(2deg); box-shadow: 0 24px 48px -28px rgba(0,0,0,.45);
}
.magnet-card .title { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.magnet-card .rows { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.magnet-card .rows div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.25); padding-bottom: 4px; }
.magnet-card .brand { font-size: 13px; font-weight: 600; }

/* ---------- Formuláre ---------- */
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 16px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 18px; color: var(--text);
  padding: 14px 0; min-height: 48px;
  border: 0; border-bottom: 1.5px solid #8A8577; border-radius: 0; background: transparent;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 2px 0 0 var(--ink); }
.field input::placeholder { color: #8A8577; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--ink); }
.form-note { font-size: 14px; color: var(--muted-3); }
.form-note a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { margin-top: 56px; max-width: 800px; border-top: 1px solid var(--cream-line); }
.faq details { border-bottom: 1px solid var(--cream-line); padding: 24px 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; font-weight: 600; font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: #8A8577; font-size: 24px; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted-2); }

/* ---------- Kontakt ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 72px; }
.contact-intro { flex: 1 1 360px; min-width: 0; }
.contact-intro > p { margin-top: 24px; color: var(--muted); max-width: 440px; }
.contact-intro ol { margin: 40px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 17px; max-width: 440px; }
.contact-intro .direct { margin-top: 40px; font-size: 17px; color: var(--muted); }
.contact-form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-form .form-note { font-size: 15px; color: var(--muted-2); margin-top: 8px; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Pätička ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 40px; padding-bottom: 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 15px; color: var(--muted-3);
}
.site-footer .company { max-width: 760px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a, .footer-links button { color: var(--muted-3); }
.link-button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--link-hover); }

/* ---------- Právne podstránky ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 56px var(--pad) 120px; font-size: 18px; line-height: 1.7; }
.legal .eyebrow { font-size: 16px; margin-top: 0; }
.legal h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.03em; margin-top: 12px; }
.legal .intro { margin-top: 24px; font-size: 20px; color: var(--muted); }
.legal h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 56px; }
.legal p { margin-top: 16px; color: var(--text-2); }
.legal ul { margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.legal .effective { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted-3); }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--cream-line); border-radius: 14px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; line-height: 1.5; }
.table-wrap th { text-align: left; padding: 12px 14px; background: var(--ink); color: var(--on-dark); font-weight: 600; white-space: nowrap; }
.table-wrap td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  :root { --section: 88px; }
  body { font-size: 18px; }
  .hero { padding-top: 40px; padding-bottom: 80px; }
  .hero .lead { font-size: 19px; }
  .summary-grid, .benefit-grid { margin-top: 56px; }
  .main-nav { gap: 10px 20px; }
  .main-nav .btn { width: 100%; }
  .btn-row .btn, .cta-band .btn, .benefit-footer .btn { width: 100%; }
  .compare { border-radius: 14px; }
  .compare table, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 16px 18px; }
  .compare tbody th { padding: 0 0 8px; width: 100%; }
  .compare tbody td { padding: 10px 12px; border-radius: 8px; }
  .compare tbody td:nth-of-type(1)::before { content: "Bez systému: "; font-weight: 600; }
  .compare tbody td:nth-of-type(2)::before { content: "So systémom MrWeb: "; font-weight: 600; }
  .compare tbody td + td { margin-top: 6px; }
  .step { padding: 24px; }
  .magnet { padding: 28px 24px; }
  .magnet-card { display: none; }
  .cta-band { padding: 32px 24px; }
  .report-box, .transparency, .card { padding: 28px 24px; }
  .contact { gap: 48px; }
  .contact-form .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
  .btn:hover { transform: none; }
}

/* Cookie lišta – farby MrWeb */
#cc-main {
  --cc-font-family: var(--font-body);
  --cc-bg: #FFFFFF;
  --cc-primary-color: #111111;
  --cc-secondary-color: #444444;
  --cc-btn-primary-bg: #111111;
  --cc-btn-primary-color: #F4F1EA;
  --cc-btn-primary-border-color: #111111;
  --cc-btn-primary-hover-bg: #333333;
  --cc-btn-primary-hover-border-color: #333333;
  --cc-btn-secondary-bg: #F4F1EA;
  --cc-btn-secondary-color: #111111;
  --cc-btn-secondary-border-color: #F4F1EA;
  --cc-btn-secondary-hover-bg: #E6E2D8;
  --cc-btn-secondary-hover-border-color: #E6E2D8;
  --cc-separator-border-color: #E6E2D8;
  --cc-toggle-on-bg: #111111;
  --cc-toggle-readonly-bg: #CFC8B8;
  --cc-cookie-category-block-bg: #F4F1EA;
  --cc-cookie-category-block-border: #F4F1EA;
  --cc-cookie-category-block-hover-bg: #E6E2D8;
  --cc-modal-border-radius: 18px;
  --cc-btn-border-radius: 999px;
  --cc-link-color: #111111;
}
#cc-main .cm__title, #cc-main .pm__title { font-family: var(--font-head); }

/* Kontakt v pätičke */
.site-footer .footer-contact { flex-basis: 100%; margin: 0; font-size: 17px; color: #111111; }
.site-footer .footer-contact span:first-child { font-weight: 600; margin-right: 4px; }
.site-footer .footer-contact a { color: #111111; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-contact a:hover { color: var(--link-hover); }

/* ---------- Kontaktný formulár: zreteľné polia ---------- */
.contact-form .field input, .contact-form .field select {
  background: #FFFFFF; border: 1.5px solid #B8B0A0; border-radius: 12px;
  padding: 14px 16px; min-height: 54px; font-size: 16px; color: var(--ink); width: 100%; box-sizing: border-box;
}
.contact-form .field input:focus, .contact-form .field select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.12);
}

/* ---------- Plávajúce tlačidlo ---------- */
.fab-contact {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 900;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  background: var(--ink); color: #FFFFFF; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.fab-contact.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab-contact:hover { color: #FFFFFF; background: #2A2A2A; }
html.show--consent .fab-contact, html.show--preferences .fab-contact, html.modal-open .fab-contact { opacity: 0; pointer-events: none; }

/* ---------- Okno s formulárom ---------- */
.contact-modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0;
  border-radius: 20px; background: var(--cream, #F4F1EA); color: var(--ink); overflow: auto;
}
.contact-modal::backdrop { background: rgba(17,17,17,.55); }
.modal-inner { padding: 28px 28px 32px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h2 { font-family: var(--font-head); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.modal-close {
  flex: 0 0 auto; width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal-close:hover { background: rgba(0,0,0,.06); }
.modal-lead { margin-top: 12px; color: var(--muted); font-size: 16px; }
.modal-direct { margin-top: 14px; padding: 14px 16px; background: #FFFFFF; border-radius: 12px; font-size: 16px; color: var(--muted); }
.modal-direct a { font-weight: 600; }
.contact-modal .contact-form { margin-top: 22px; gap: 18px; }
.contact-modal .contact-form .btn { align-self: stretch; }
html.modal-open { overflow: hidden; }

@media (max-width: 720px) {
  .fab-contact { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 0 18px; font-size: 15px; }
  .contact-modal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .modal-inner { padding: 20px 18px calc(28px + env(safe-area-inset-bottom)); }
  .modal-head h2 { font-size: 24px; }
}
