/* ===========================================================================
   Bezpečná Skriňa — dizajnový systém
   Paleta: požiarna červená + antracit + biela. Moderný minimalizmus.
   =========================================================================== */
:root {
  --red: #d12027;
  --red-dark: #a8161c;
  --red-soft: #fdeceb;
  --anthracite: #1c1f24;
  --anthracite-2: #2a2e35;
  --slate: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --white: #ffffff;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, .06), 0 1px 3px rgba(16, 18, 22, .08);
  --shadow-md: 0 8px 24px rgba(16, 18, 22, .10);
  --shadow-lg: 0 20px 50px rgba(16, 18, 22, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--anthracite);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--anthracite); color: #e7e9ee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--red);
  background: var(--red-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section--dark .eyebrow { background: rgba(209, 32, 39, .18); color: #ff8a8f; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; transition: .18s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(209,32,39,.32); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--anthracite); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--anthracite); }
.btn-light { background: #fff; color: var(--anthracite); }
.btn-light:hover { background: #f1f2f4; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem;
  color: var(--anthracite); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .flame {
  width: 30px; height: 30px; border-radius: 8px; background: var(--red);
  display: grid; place-items: center; color: #fff; font-size: 17px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--anthracite); text-decoration: none; }
/* tlačidlo Objednať v hlavičke — biele písmo (prebije .nav-links a) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.lang-switch { display: inline-flex; gap: 2px; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  color: var(--muted); }
.lang-switch a:hover { color: var(--anthracite); text-decoration: none; }
.lang-switch a.active { background: var(--red); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--anthracite); margin: 5px 0; transition: .2s; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 80% -10%, rgba(209,32,39,.12), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 64px 0 72px; }
.hero h1 span { color: var(--red); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--slate); font-weight: 600; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---- Video (YouTube bez klikateľných prvkov) ---- */
.video-bg-wrapper {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 9; pointer-events: none; box-shadow: var(--shadow-lg);
  background: #000;
}
.video-bg-wrapper iframe {
  position: absolute; top: -60px; left: 0; width: 100%; height: calc(100% + 120px);
  border: none; pointer-events: none;
}
/* dodatočná clona nad iframe – znemožní akúkoľvek interakciu / preklik */
.video-bg-wrapper .video-shield {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}

/* ---- Cards / products ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: .2s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card .pc-media {
  background: linear-gradient(180deg, #fff, #f3f4f6); aspect-ratio: 4/3;
  display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line);
}
.product-card .pc-media img { max-height: 200px; width: auto; object-fit: contain; }
.product-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pc-volume { font-size: .82rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.pc-desc { color: var(--muted); font-size: .94rem; flex: 1; }
.pc-prices { display: flex; gap: 10px; margin: 16px 0; }
.price-box { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.price-box .lbl { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display:block; }
.price-box .val { font-size: 1.4rem; font-weight: 800; color: var(--anthracite); }
.price-box.accent { border-color: var(--red); background: var(--red-soft); }
.price-box.accent .val { color: var(--red-dark); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.section--dark .step { background: var(--anthracite-2); border-color: #353a42; }

/* ---- Stats ---- */
.stats .stat { text-align: center; padding: 24px 18px; background: var(--anthracite-2);
  border: 1px solid #353a42; border-radius: var(--radius); }
.stat-num { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; color: var(--red);
  line-height: 1; margin-bottom: 12px; letter-spacing: -.03em; }
.stats .stat p { color: #aab0bb; font-size: .95rem; margin: 0; }
.stats .stat strong { color: #fff; }

/* ---- Feature list ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
.feature { display: flex; gap: 14px; }
.feature .ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 20px; }
.section--dark .feature .ico { background: rgba(209,32,39,.18); }
.feature h4 { margin: 2px 0 4px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.section--dark .feature p { color: #aab0bb; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--anthracite); transition: .15s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---- Variant / install selectors ---- */
.choice-grid { display: grid; gap: 14px; }
.choice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: .15s; background: #fff;
}
.choice:hover { border-color: #c9ccd2; }
.choice input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--red); width: 18px; height: 18px; }
.choice.selected { border-color: var(--red); background: var(--red-soft); }
/* textový stĺpec sa musí vedieť zmenšiť, inak cenu vytlačí mimo karty */
.choice > span:not(.c-price) { flex: 1 1 auto; min-width: 0; }
.choice .c-title { font-weight: 700; }
.choice .c-sub { font-size: .88rem; color: var(--muted); }
.choice .c-price {
  flex: 0 0 auto; margin-left: auto; text-align: right;
  font-weight: 800; font-size: 1.1rem; line-height: 1.3; white-space: nowrap;
}
.choice .c-price .hint { display: inline-block; font-size: .8rem; font-weight: 600; }

@media (max-width: 520px) {
  .choice { flex-wrap: wrap; }
  .choice .c-price { margin-left: 32px; text-align: left; }
}

/* ---- Upload ---- */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center;
  background: var(--bg-soft); cursor: pointer; transition: .15s; color: var(--muted);
}
.dropzone.dragover { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.dropzone strong { color: var(--anthracite); }
.dropzone .preview { margin-top: 14px; }
.dropzone .preview img { max-height: 180px; margin: 0 auto; border-radius: 10px; }

/* ---- Calendar (dvojkrokový výber: deň → čas) ---- */
.calendar { display: grid; gap: 20px; }
.appt-step { display: grid; gap: 10px; }
.appt-step-label { font-weight: 700; font-size: .92rem; color: var(--ink, #1a1d22); }

.date-pills {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px;
  max-height: 220px; overflow-y: auto; padding: 2px;
}
.date-pill {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  padding: 9px 11px; font: inherit; cursor: pointer; transition: .12s; text-align: left;
}
.date-pill:hover { border-color: var(--red); }
.date-pill.selected { border-color: var(--red); background: var(--red-soft); }
.date-pill .dp-day { font-weight: 700; font-size: .92rem; }
.date-pill .dp-free { font-size: .76rem; color: var(--muted); }

.time-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 16px;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; transition: .12s;
}
.slot-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.slot-btn.selected { background: var(--red); border-color: var(--red); color: #fff; }
.slot-btn:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.selected-appt { background: var(--green-soft); color: #14532d; padding: 12px 16px; border-radius: var(--radius-sm);
  font-weight: 600; }

/* ---- Flash / alerts ---- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.alert-success { background: var(--green-soft); color: #14532d; }
.alert-error { background: var(--red-soft); color: var(--red-dark); }
.alert-info { background: var(--amber-soft); color: var(--amber); }

/* ---- Info / billing box ---- */
.info-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.info-box dt { color: var(--muted); font-weight: 600; }
.info-box dd { margin: 0; font-weight: 600; }

/* ---- Gallery / lightbox ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in; background: #fff; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(12,13,16,.9); display: none;
  place-items: center; z-index: 100; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox .close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 2rem;
  background: none; border: none; cursor: pointer; }

/* ---- Platba / QR ---- */
.pay-block { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.pay-qr { text-align: center; margin-bottom: 18px; }
.pay-qr img { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 6px; }
.pay-details { max-width: 480px; margin: 0 auto; text-align: left; }
.pay-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 11px 2px; border-bottom: 1px solid var(--line); }
.pay-details > div:last-child { border-bottom: none; }
.pay-details dt { color: var(--muted); font-weight: 600; margin: 0; flex: 0 0 auto; }
.pay-details dd { margin: 0; font-weight: 600; text-align: right; }
.pay-details dd.mono, .pay-details .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .01em; }
@media (max-width: 560px) {
  .pay-qr img { width: 180px; height: 180px; }
  .pay-details > div { flex-direction: column; gap: 2px; }
  .pay-details dd { text-align: left; }
}

/* ---- Tables (admin) ---- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.table th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:hover td { background: #fafbfc; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.nová { background: var(--amber-soft); color: var(--amber); }
.badge.potvrdená { background: #dbeafe; color: #1e40af; }
.badge.zrealizovaná { background: var(--green-soft); color: #14532d; }
.badge.zrušená { background: #f3f4f6; color: var(--muted); }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--slate); font-weight: 600; font-size: .9rem; }
.filter-tabs a.active { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }

/* ---- Footer ---- */
.site-footer { background: var(--anthracite); color: #aeb4be; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c7ccd4; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #353a42; margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; }

/* ---- Cookie banner ---- */
.cookie {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 560px; margin: 0 auto;
  background: var(--anthracite); color: #e7e9ee; padding: 18px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 90; display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap; justify-content: space-between;
}
.cookie.hidden { display: none; }
.cookie p { margin: 0; font-size: .9rem; }

/* ---- Prose (legal pages) ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .steps, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin: 14px 20px; }
  .nav-toggle { display: block; }
  .row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .pc-prices { flex-direction: column; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
