/* ============================================================
   prenajombibo.sk – moderný redizajn
   Farby vychádzajú z loga (#1C2448) + teplý akcent
   ============================================================ */
:root {
  --navy: #1c2448;
  --navy-2: #141a38;
  --navy-3: #0e132a;
  --accent: #ff6b2c;
  --accent-2: #e9581d;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #1c2448;
  --ink-soft: #5a6178;
  --line: #e4e7f0;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 10px 30px rgba(28, 36, 72, 0.08);
  --shadow-lg: 0 24px 60px rgba(28, 36, 72, 0.16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-h: "Sora", "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.15; letter-spacing: -0.01em; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--ink-soft); font-size: 0.95rem; margin-top: 1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 999; }
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font-weight: 600; font-family: var(--font); border: 2px solid transparent; border-radius: 999px; padding: 0.65rem 1.4rem; font-size: 0.95rem; cursor: pointer; transition: 0.22s; }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 44, 0.35); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-3); color: #c9cfe6; font-size: 0.82rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.45rem 0; }
.topbar a { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 600; }
.topbar svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1.6rem; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 34px; width: auto; }
.brand-txt { font-family: var(--font-h); font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.brand-txt b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.nav > a, .drop-btn { padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem; color: var(--ink); background: none; border: none; cursor: pointer; font-family: var(--font); display: inline-flex; align-items: center; gap: 0.3rem; transition: 0.18s; }
.nav > a:hover, .drop-btn:hover { background: #eef0f7; }
.nav > a.active, .drop-btn.active { background: var(--navy); color: #fff; }
.dropdown { position: relative; }
/* neviditeľný "most" cez medzeru medzi tlačidlom a menu – aby hover nezmizol */
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.drop-menu { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-lg); padding: 0.45rem; display: none; min-width: 200px; flex-direction: column; z-index: 120; }
.dropdown.js-open .drop-menu { display: flex; }
@media (hover: hover) and (min-width: 761px) {
  .dropdown:hover .drop-menu { display: flex; }
}
.drop-menu a { padding: 0.55rem 0.9rem; border-radius: 8px; font-size: 0.93rem; }
.drop-menu a:hover { background: #eef0f7; }
.drop-menu a.active { color: var(--accent); font-weight: 600; }
.header-cta { margin-left: 0.2rem; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #2a3468 100%); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 20%, rgba(255,107,44,0.22), transparent 60%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; padding: 4.5rem 0 5rem; }
.pill { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); color: #fff; border-radius: 999px; padding: 0.35rem 1rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.pill-soft { background: #eef0f7; border-color: transparent; color: var(--navy); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; margin: 1.2rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #c9cfe6; max-width: 34rem; font-size: 1.08rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-h); font-size: 1.55rem; color: #fff; }
.hero-stats span { color: #9aa3c7; font-size: 0.85rem; }
.hero-imgs { position: relative; height: 420px; }
.hi { position: absolute; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); object-fit: cover; }
.hi-1 { width: 58%; top: 0; right: 8%; transform: rotate(2.5deg); }
.hi-2 { width: 44%; bottom: 4%; left: 2%; transform: rotate(-3deg); }
.hi-3 { width: 38%; bottom: 12%; right: 0; transform: rotate(4deg); }

/* ---------- Benefits ---------- */
.benefits { margin-top: -2.6rem; position: relative; z-index: 5; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.benefit { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.4rem; border: 1px solid var(--line); transition: 0.22s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.b-icon { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), #ff9459); color: #fff; display: grid; place-items: center; margin-bottom: 0.9rem; flex: none; }
.b-icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.benefit p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding-top: 0; }
.sec-head { text-align: center; max-width: 42rem; margin: 0 auto 2.6rem; }
.sec-head-left { text-align: left; margin: 1.2rem 0 2rem; max-width: none; }
.sec-head h2, .sec-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0.8rem 0 0.5rem; }
.sec-head p { color: var(--ink-soft); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: 0.25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 600/430; overflow: hidden; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.card-kicker { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.card-body h3 { font-size: 1.25rem; }
.card-body p { color: var(--ink-soft); font-size: 0.92rem; }
.card-link { margin-top: auto; padding-top: 0.8rem; font-weight: 600; color: var(--navy); font-size: 0.93rem; }
.card:hover .card-link { color: var(--accent); }
.card-ext .card-kicker { color: #7c8bd9; }

/* ---------- How ---------- */
.how { background: #fff; border-block: 1px solid var(--line); padding: 4.5rem 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.how-grid-col { grid-template-columns: 1fr; }
.how-step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.how-num { position: absolute; top: 1.1rem; right: 1.3rem; font-family: var(--font-h); font-weight: 800; font-size: 2.4rem; color: #dfe3f0; line-height: 1; }
.how-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.how-step p { color: var(--ink-soft); font-size: 0.92rem; }
.how-step .b-icon { margin-bottom: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #2a3468 100%); color: #fff; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.2rem 0; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.cta-band p { color: #c9cfe6; }
.cta-band-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Map ---------- */
.map-sec { padding-bottom: 5rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Product page ---------- */
.p-hero { padding: 2rem 0 3rem; }
.crumbs { display: flex; gap: 0.5rem; align-items: center; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 1.6rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs b { color: var(--ink); }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.p-gallery { position: sticky; top: 90px; }
.p-main { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; }
.p-main-soft { cursor: default; }
.p-main img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.p-main-soft img { aspect-ratio: auto; }
.p-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; margin-top: 0.7rem; }
.thumb { border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; padding: 0; transition: 0.18s; }
.thumb img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.thumb:hover { border-color: #b9c0d9; }
.thumb.is-active { border-color: var(--accent); }
.p-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0.9rem 0 1rem; }
.p-lead { color: var(--ink-soft); }
.p-lead b { color: var(--ink); }
.feat-list { list-style: none; margin: 1.4rem 0; display: grid; gap: 0.6rem; }
.feat-list li { display: flex; gap: 0.65rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.7rem 0.95rem; font-size: 0.94rem; }
.feat-list svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 3px; }
.p-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Specs + calc ---------- */
.spec-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
.spec-col h2, .calc-card h2 { font-size: 1.45rem; margin-bottom: 1.2rem; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.specs th, .specs td { text-align: left; padding: 0.78rem 1.15rem; font-size: 0.93rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { color: var(--ink-soft); font-weight: 500; width: 46%; }
.specs td { font-weight: 600; }
.specs tr:nth-child(odd) { background: #fafbfe; }

.calc-col { position: sticky; top: 90px; }
.calc-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.8rem 1.7rem; box-shadow: var(--shadow-lg); }
.calc-card h2 { color: #fff; }
.calc-card a { color: var(--accent); }
.calc-mode { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 4px; margin-bottom: 1.2rem; }
.mode-btn { border: none; background: transparent; color: #c9cfe6; font-family: var(--font); font-weight: 600; font-size: 0.9rem; padding: 0.55rem 0.6rem; border-radius: 999px; cursor: pointer; transition: 0.2s; }
.mode-btn.is-active { background: var(--accent); color: #fff; }
.calc-days { margin: 1.1rem 0; }
.calc-days label { font-size: 0.9rem; color: #c9cfe6; display: block; margin-bottom: 0.5rem; }
.calc-days output { color: #fff; font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 26px; }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 0.9rem; margin-top: 0.9rem; }
.calc-period { color: #c9cfe6; font-size: 0.95rem; }
.calc-price { font-family: var(--font-h); font-weight: 800; font-size: 1.9rem; color: #fff; }
.calc-note { font-size: 0.83rem; color: #9aa3c7; margin: 0.9rem 0 1.1rem; }
.calc-card .btn { margin-top: 0.2rem; }
.calc-dovoz { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.88rem; color: #c9cfe6 !important; }
.calc-dovoz svg { width: 17px; height: 17px; }
.calc-dovoz:hover { color: #fff !important; }

/* ---------- Video ---------- */
.video-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; max-width: 860px; margin: 0 auto; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(14, 19, 42, 0.94); z-index: 300; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; border-radius: 12px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: none; font-size: 1.7rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: 0.2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Kontakt ---------- */
.k-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: start; }
.k-cards { display: grid; gap: 1rem; }
.k-card { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.3rem; box-shadow: var(--shadow); transition: 0.2s; }
.k-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.k-card .b-icon { margin: 0; }
.k-card h3 { font-size: 0.98rem; }
.k-card p { color: var(--ink-soft); font-size: 0.9rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.form-row { margin-bottom: 1rem; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card label { display: block; font-size: 0.87rem; font-weight: 600; margin-bottom: 0.35rem; }
.form-card input, .form-card select, .form-card textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; font-family: var(--font); font-size: 0.95rem; background: var(--bg); transition: 0.18s; color: var(--ink); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-card .calc-note { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: #aeb5d4; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1.2fr; gap: 2.4rem; padding: 3.6rem 0 2.4rem; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer a { display: block; padding: 0.22rem 0; font-size: 0.92rem; transition: 0.16s; }
.footer a:hover { color: #fff; }
.brand-f { margin-bottom: 0.9rem; }
.brand-f .brand-txt { color: #fff; }
.brand-f .brand-logo { height: 34px; }
.footer-claim { font-size: 0.92rem; max-width: 26rem; margin-bottom: 1rem; }
.fb-link { display: inline-flex !important; align-items: center; gap: 0.5rem; font-weight: 600; color: #fff; }
.fb-link svg { width: 18px; height: 18px; }
.f-contact { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; margin-bottom: 0.8rem; }
.f-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent); }
.f-contact a { display: inline; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.09); padding: 1.2rem 0; font-size: 0.85rem; flex-wrap: wrap; }
.to-top:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; padding: 3.4rem 0 4rem; }
  .hero-imgs { display: none; }
  .p-grid, .spec-grid, .k-grid { grid-template-columns: 1fr; gap: 2rem; }
  .p-gallery, .calc-col { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .header-cta { display: none; }
}
@media (max-width: 760px) {
  .topbar-in span { font-size: 0.74rem; }
  /* backdrop-filter na headri "ukotví" fixné menu k hlavičke – na mobile ho vypíname */
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(14, 19, 42, 0.5); z-index: 89; }
  .burger { display: block; position: relative; z-index: 95; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: #fff; flex-direction: column; align-items: stretch; padding: 5.2rem 1.4rem 2rem; gap: 0.3rem; transform: translateX(100%); transition: transform 0.3s; box-shadow: var(--shadow-lg); z-index: 90; overflow-y: auto; }
  .nav.open { transform: translateX(0); }
  .nav > a, .drop-btn { padding: 0.8rem 1rem; border-radius: 12px; width: 100%; justify-content: space-between; }
  .drop-menu { position: static; display: none; box-shadow: none; border: none; padding-left: 0.8rem; }
  .dropdown::after { display: none; }
  .dropdown.js-open .drop-menu { display: flex; }
  .how-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .p-thumbs { grid-template-columns: repeat(5, 1fr); }
  .form-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-in { flex-direction: column; align-items: flex-start; }
  .map-wrap iframe { height: 300px; }
}
