/* NIFTY web – shared design system (header, footer, typography, buttons, layout helpers).
   Page-specific styles live in assets/css/p-<page>.css. Values match the original WordPress/Elementor site. */

:root {
  --blue: #0066B3;
  --blue-2: #0088D5;
  --pink: #ED0677;
  --pink-hover: #FF3F9D;
  --ink: #13161A;
  --text: #13161A;
  --muted: #5B6470;
  --bg-soft: #EFF2FF;
  --bg-pink: #FDE8F2;
  --line: #DCE3F5;
  --white: #fff;
  --radius: 24px;
  --radius-s: 8px;
  --shadow: 0 10px 30px rgba(0, 102, 179, .10);
  --container: 1400px;
  --gutter: 20px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Consent banner (CONSENT-FORM runtime custom properties, inherited into its shadow root). Owner 10. 11.:
     always white – also when the device is in dark mode – and pink buttons with white text. */
  --cf-bg: #fff;
  --cf-fg: #13161A;
  --cf-muted: #5B6470;
  --cf-border: #F3C6DC;
  --cf-accent: #ED0677;
  --cf-accent-fg: #fff;
  --cf-choice-bg: #ED0677;
  --cf-choice-fg: #fff;
  --cf-choice-border: #ED0677;
  --cf-secondary-bg: #fff;
  --cf-secondary-fg: #ED0677;
  --cf-secondary-border: #ED0677;
  --cf-font: var(--font);
  --cc-font: var(--font);
  --cc-radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: #000;
  background: #fff url("../uploads/2026/03/BG41-1-scaled.jpg") top center / contain no-repeat;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 900px; }
.center { text-align: center; }
.section { padding: 60px 0; }
.h-pink { color: var(--pink); }
.h-blue { color: var(--blue); }
.eyebrow { color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

/* Buttons */
.btn, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-s); border: 2px solid var(--pink);
  background: var(--pink); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--pink-hover); border-color: var(--pink-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--pink); }
.btn-outline:hover { background: var(--pink); color: #fff; }
.btn-blue { background: var(--blue); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; }
.center .btn-row { justify-content: center; }

/* Check list (green ticks like the original) */
.checks { list-style: none; display: grid; gap: 22px; }
.checks li { position: relative; padding-left: 40px; font-size: 16px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); background: url("../uploads/2026/06/ok.svg") center / contain no-repeat; }

/* Bullet list with pink dots (footer, content) */
.dots { list-style: none; display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 14px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(19, 22, 26, .06); }
.header-inner { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 18px; min-height: 92px; }
.logo { justify-self: start; }
.logo img { width: 156px; height: auto; }
.site-nav { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; }
.site-nav .lang { display: none; }
.lang-desktop { grid-column: 3; grid-row: 1; justify-self: end; }
.menu { list-style: none; display: flex; align-items: center; }
.menu-item { position: relative; padding: 0 20px; }
.menu-item > a { display: block; padding: 13px 0; color: var(--blue); font-weight: 600; font-size: 16px; }
.menu-item > a:hover, .menu-item.is-active > a { color: var(--pink); }
.menu-item.is-strong > a { font-size: 18px; font-weight: 700; }
.sub-toggle { display: none; }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; background: #fff; border-radius: var(--radius);
  padding: 10px 0 10px 24px; box-shadow: 0 16px 40px rgba(0, 102, 179, .14); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 13px 40px 13px 15px; color: var(--ink); font-size: 14px; white-space: nowrap; }
.sub-menu a:hover { color: var(--pink); }
.menu-cta { padding: 0 0 0 20px; }
.menu-item > a.btn-order, .btn-order {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 8px;
  background: var(--pink); color: #fff !important; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s;
}
.btn-order:hover { background: var(--pink-hover); }
.btn-order img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.lang-pill { display: inline-flex; align-items: center; justify-content: center; width: 61px; height: 38px; border: 1px solid #DDE3F3; border-radius: 30px; color: var(--ink); font-size: 13px; font-weight: 600; background: #fff; }
.nav-toggle, .nav-contacts { display: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--bg-soft); margin-top: 32px; padding: 60px 0 36px; color: var(--ink); }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../uploads/2026/03/Vector-1.png") center 30% / 110% auto no-repeat; opacity: .9; pointer-events: none; }
.footer-inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 202px repeat(5, 1fr); gap: 20px; }
.footer-brand img { width: 150px; margin-bottom: 52px; }
.footer-brand address { font-style: normal; font-size: 14px; line-height: 1.3; margin-bottom: 30px; }
.footer-contact { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; font-size: 14px; }
.footer-contact svg { width: 32px; height: 32px; flex: none; }
.footer-col h2 { font-size: 16px; font-weight: 600; color: var(--blue); margin: 0 0 22px; line-height: 1.5; }
.footer-col ul { list-style: none; display: grid; gap: 22px; }
.footer-col li { position: relative; padding-left: 12px; font-size: 14px; line-height: 1.3; }
.footer-col li::before { content: ""; position: absolute; left: 0; top: .45em; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.footer-col a:hover { color: var(--pink); }
.fcol-toggle { display: none; }
.footer-bottom { position: relative; max-width: 1440px; margin: 64px auto 0; padding: 0 30px; display: flex; justify-content: space-between; gap: 20px; font-size: 16px; }
.footer-bottom p { margin: 0; }
.footer-legal a, .footer-legal button { color: inherit; font-size: inherit; background: none; border: 0; padding: 0; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--pink); }

/* ---------- Generic content blocks used across pages ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.soft-box { background: var(--bg-soft); border-radius: var(--radius); padding: 40px; }
.pink-box { background: var(--bg-pink); border-radius: var(--radius); padding: 40px; }
.page-hero { padding: 70px 0 40px; }
.page-hero h1 { color: var(--pink); font-size: 40px; font-weight: 600; }
.page-hero p { font-size: 18px; max-width: 760px; }
.prose { font-size: 16px; line-height: 1.6; color: var(--ink); }
.prose h2 { color: var(--blue); font-size: 28px; margin-top: 1.6em; }
.prose h3 { color: var(--pink); font-size: 20px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose a { color: var(--blue); text-decoration: underline; }

/* Accordion (details/summary) */
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--blue); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 22px; height: 12px; flex: none; background: url("../icons/chevron-down.svg") center / contain no-repeat; transition: transform .2s; }
.acc[open] summary::after { transform: rotate(180deg); }
.acc .acc-body { padding: 0 0 22px; font-size: 16px; line-height: 1.6; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #CBD3E8; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 102, 179, .15); }
.field .err { color: #C4002F; font-size: 13px; margin-top: 4px; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); }
.hp { position: absolute; left: -5000px; }
.form-msg { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.form-msg.ok { background: #E7F7EE; color: #0B6B3A; }
.form-msg.bad { background: #FDECEF; color: #A0002A; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .menu-item { padding: 0 12px; }
  .site-nav { gap: 20px; }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .header-inner { display: flex; min-height: 76px; padding: 14px 20px; justify-content: space-between; }
  .lang-desktop { display: none; }
  .site-nav .lang { display: block; }
  .logo img { width: 108px; }
  .nav-toggle { display: inline-flex; background: none; border: 0; padding: 6px; margin-left: auto; }
  .nav-toggle svg { width: 42px; height: 30px; }
  .nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: inline; }
  .site-nav {
    position: fixed; inset: 76px 0 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    background: #fff; padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; visibility: hidden;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu-item { padding: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .menu-item > a { flex: 1; font-size: 18px; padding: 16px 0; }
  .sub-toggle { display: inline-flex; background: none; border: 0; padding: 12px; }
  .sub-toggle svg { width: 20px; height: 12px; transition: transform .2s; }
  .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
  .sub-menu { position: static; flex-basis: 100%; box-shadow: none; padding: 0 0 10px 10px; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; }
  .has-sub.is-open > .sub-menu { display: block; }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.is-open:hover > .sub-menu { display: block; }
  .sub-menu a { white-space: normal; padding: 10px 0; }
  .menu-cta { border: 0; padding: 20px 0 0; }
  .btn-order { height: 48px; justify-content: center; width: 100%; font-size: 16px; }
  .nav-contacts { display: grid; gap: 14px; }
  .nav-contacts a { display: flex; align-items: center; gap: 12px; font-size: 15px; }
  .nav-contacts svg { width: 28px; height: 28px; }
  .lang { order: 3; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 767px) {
  body { background-image: none; } /* original: body.home, .page { background-image: none } at ≤ 768 px */
  body { font-size: 14px; }
  .section { padding: 40px 0; }
  .page-hero { padding: 40px 0 24px; }
  .page-hero h1 { font-size: 28px; }
  /* Footer as an accordion like the original: logo + address, 5 collapsible columns, then contacts. */
  .footer-inner { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { display: contents; }
  .footer-brand > a:first-child { order: 0; }
  .footer-brand img { margin-bottom: 24px; }
  .footer-brand address { order: 0; margin-bottom: 14px; }
  .footer-col { order: 1; position: relative; border-top: 1px solid #C9D3EC; }
  .footer-col:last-of-type { border-bottom: 1px solid #C9D3EC; }
  .footer-col h2 { margin: 0; padding: 13px 40px 13px 0; }
  .fcol-toggle { display: block; position: absolute; top: 0; left: 0; right: 0; height: 50px; background: none; border: 0; padding: 0; cursor: pointer; }
  .fcol-toggle::after { content: ""; position: absolute; right: 4px; top: 50%; width: 26px; height: 14px; margin-top: -7px; background: url("../icons/chevron-down.svg") center / contain no-repeat; transition: transform .2s; }
  .fcol-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  .footer-col ul { display: none; gap: 14px; padding: 0 0 18px; }
  .footer-col.is-open ul { display: grid; }
  .footer-contact { order: 2; margin: 0; padding: 12px 0; }
  address + .footer-contact { margin-top: 10px; }
  .footer-bottom { flex-direction: column; text-align: center; margin-top: 40px; font-size: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .soft-box, .pink-box, .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Language switcher SK | EN (web-translations kit, real links) ---------- */
.lang-pill { width: auto; gap: 2px; padding: 3px; }
.lang-pill a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 30px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
.lang-pill a[aria-current] { background: var(--blue); color: #fff; }
.lang-pill a:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lang-pill a:not([aria-current]):hover { color: var(--pink); } }
@media (max-width: 1024px) { .site-nav .lang { align-self: flex-start; } }

/* Insurance terms link under the "Poistenie testu" benefit (client feedback 2026-11-11). */
.ins-link { color: var(--pink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ins-link:hover { color: var(--blue); }

/* "Jediný poistený na trhu" badges link to the insurance terms (client mail 2026-11-12): the whole circle is clickable. */
.badge-link { color: inherit; text-decoration: none; }
.badge-link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; }
.has-link { cursor: pointer; }
.has-link:hover { filter: brightness(1.08); }
.badge-link:hover { color: inherit; }
.badge-link:focus-visible { outline: none; }
.has-link:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }

/* A/B photo switcher, preview only (cfg photoChoice). */
.tt-hero-img { position: relative; }
.photo-pick { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 14px; background: rgba(255, 255, 255, .94); border-radius: 999px; box-shadow: 0 6px 20px rgba(29, 29, 27, .14); font-weight: 600; font-size: 13px; line-height: 1; color: #1d1d1b; white-space: nowrap; }
.photo-pick span { margin-right: 4px; }
.photo-pick button { min-width: 34px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: #f1f1f4; color: inherit; font: inherit; cursor: pointer; }
.photo-pick button[aria-pressed="true"] { background: var(--pink); color: #fff; }
.photo-pick button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Insurance consent forms per product (inc/insurance-docs.php; /poistenie/ and /objednat-test/#poistenie). SK left, EN right; stacked on mobile. */
.ins-docs { display: flex; flex-direction: column; gap: 14px; }
.ins-docs__row { display: grid; grid-template-columns: 190px 1fr; gap: 10px 20px; align-items: center; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #D7DFFD; }
.ins-docs__name { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--blue); }
.ins-docs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.ins-doc {
  position: relative; display: block; min-height: 52px; padding: 13px 52px 13px 14px; border: 1px solid #D7DFFD; border-radius: 8px;
  background: #fff; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.ins-doc::after { content: ""; position: absolute; right: 10px; top: 0; bottom: 0; margin: auto; width: 32px; height: 32px; background: url("../uploads/2026/06/pdf.svg") center / 32px no-repeat; }
.ins-doc:hover { border-color: var(--blue); color: var(--ink); }
.ins-docs__note { margin: 0; padding: 12px 16px; border-left: 4px solid var(--pink); border-radius: 6px; background: var(--bg-pink); font-size: 16px; line-height: 1.55; color: var(--ink); }
@media (max-width: 767px) {
  .ins-docs__row { grid-template-columns: 1fr; padding: 16px; }
  .ins-docs__list { grid-template-columns: 1fr; }
  .ins-doc { font-size: 14px; }
}

/* Kolo 4 (17. 11.): in-text links to the validation study and benefit headings. */
.study-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.study-link:hover { color: var(--pink); }
.hp-ben-link { color: inherit; text-decoration: none; }
.hp-ben-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hp-ben-link::after { content: " \203A"; } /* › (CSS escape; was broken into U+0083 + "A") */

/* Pre lekárov – chapter navigation at the end of each doctor subpage (kolo 4). */
.dr-chapters { max-width: 1180px; margin: -40px auto 80px; padding: 26px 30px; border-radius: 24px; background: var(--bg-soft, #F2F7FF); }
.dr-chapters__title { margin: 0 0 12px; font-weight: 700; color: var(--blue); font-size: 18px; }
.dr-chapters ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: drc; }
.dr-chapters li { counter-increment: drc; }
.dr-chapters li a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 600; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 102, 179, .08); }
.dr-chapters li a::before { content: counter(drc); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; }
.dr-chapters li a[aria-current="page"] { background: var(--blue); color: #fff; }
.dr-chapters li a[aria-current="page"]::before { background: #fff; color: var(--blue); }
.dr-chapters li a:hover { color: var(--pink); }
.dr-chapters__step { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0 0; font-weight: 600; }
.dr-chapters__step a { color: var(--blue); }
.dr-chapters__next { margin-left: auto; }
@media (max-width: 767px) { .dr-chapters { margin: 0 16px 40px; padding: 20px; } .dr-chapters ol { flex-direction: column; } }

/* Cloudflare Turnstile slot (forms/lib.php form_turnstile_field): invisible unless Cloudflare asks for a click. */
.cf-ts { margin: 4px 0 0; }
.cf-ts:empty { display: none; }

/* German + Ukrainian (/de/, /uk/, hidden until approved, 18. 11. 2026): long words hyphenate instead of widening the page on mobile. */
:is(html[lang="de"], html[lang="uk"]) body { overflow-wrap: break-word; }
/* Flex/grid cards size to min-content: let headings shrink too (hyphenation is used first where the browser has it). */
:is(html[lang="de"], html[lang="uk"]) :is(h1, h2, h3, h4, summary) { overflow-wrap: anywhere; }
:is(html[lang="de"], html[lang="uk"]) :is(h1, h2, h3, h4, p, li, td, th, dt, dd, label, figcaption, blockquote) { -webkit-hyphens: auto; hyphens: auto; }
:is(html[lang="de"], html[lang="uk"]) .sp-cta-btn { white-space: normal; text-align: center; }
