/* ═══════════════════════════════════════════════════════════════
   KONTURA SLOVAKIA — SMER B · PRENÁJOM
   Zdieľané štýly pre prenajom.html, prenajom-kratkodoby.html
   a prenajom-dlhodoby.html — nadstavba nad styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ── 1 · AKTÍVNA POLOŽKA NAVIGÁCIE ──────────────────────────── */
.nav-link[aria-current="page"],
.nav-link.is-active { color: var(--text); }
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after { transform: scaleX(1); }
.sub-menu a[aria-current="page"] { background: var(--glass-bg); color: var(--text); }

/* ── 2 · BREADCRUMB — SPÄŤ NA PRENÁJOM ──────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: 9px; }
.back-link .icon {
  width: 15px; height: 15px;
  color: var(--red-hi);
  transition: transform .28s var(--ease-spring);
}
.back-link:hover .icon { transform: translateX(-4px); }

/* dlhší hero nadpis prehľadovej stránky — menší scale, aby sa zmestil */
.p-hero h1.rent-h1 { font-size: clamp(2.15rem, 2.9vw + .5rem, 3.15rem); }

/* ── 3 · HERO RIG — telemetrický panel s fotkou ─────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-rig {
  width: min(450px, 100%);
  max-width: none;
  padding: 20px 22px 22px;
}

/* boot-in riadkov v hero rigu (main.js pridáva .on cez #telemetry) */
.js .hero-rig .tele-row {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.js .hero-rig .tele-row.on { opacity: 1; transform: none; }
.hero-rig.booted .tele-scan::after { animation: scan-sweep 1.3s var(--ease-out) .35s 1 both; }

/* svetlé showroom okno pre produktovú fotku v rigu */
.rig-fig { margin-top: 16px; }
.rig-window {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: radial-gradient(130% 105% at 50% 0%, #f6f7f9 0%, #e9ecf0 55%, #d9dde3 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}
.rig-window img {
  position: relative;
  z-index: 2;
  width: 70%;
  max-height: 84%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.rig-fig figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .62rem;
  color: var(--text-ghost);
  letter-spacing: .16em;
}

/* ── 4 · CENOVÝ PANEL — „OD" PREFIX ─────────────────────────── */
.p-price-od {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .12em;
  margin-right: 2px;
}

/* ── 5 · TYPY PRENÁJMU — 2 VEĽKÉ KARTY ──────────────────────── */
.type-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin-inline: auto;
}
.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 34px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform .3s var(--ease-spring),
    border-color .25s ease,
    box-shadow .3s ease;
}
.type-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-hi), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.type-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 28px 60px -26px rgba(0, 0, 0, .8);
}
.type-card:hover::before { transform: scaleX(1); }
.type-card--featured {
  border-color: rgba(225, 29, 41, .32);
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(225, 29, 41, .09), transparent 70%),
    var(--surface);
}
.type-card h3 { font-size: 1.42rem; margin-top: 12px; }
.type-desc { margin-top: 10px; color: var(--text-muted); font-size: .95rem; }
.type-card .check-list { margin: 20px 0 24px; gap: 10px; }
.type-card .check-list li { font-size: .92rem; }
.type-price {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
}
.type-price strong {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.type-per { color: var(--text-muted); font-size: .9rem; }
.type-card .btn { width: 100%; margin-top: 18px; position: relative; z-index: 2; }

/* ── 6 · CENY NA KARTÁCH — TELE RIADKY ──────────────────────── */
.price-tele { border-top: 1px dashed var(--border-strong); padding-top: 16px; }
.price-tele .tele-row { font-size: .74rem; }
.val-warn { color: var(--warn) !important; }
.pc-note {
  margin-top: 10px;
  font-size: .62rem;
  font-weight: 500;
  color: var(--text-ghost);
  letter-spacing: .14em;
}

/* ── 7 · BADGE „NAJPOPULÁRNEJŠIE" + STRANY CHIP ─────────────── */
.pc-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  padding: 6px 12px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: #fff;
  background: linear-gradient(180deg, var(--red-hi), var(--red));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px var(--red-glow);
}
.type-card .pc-badge { top: 22px; right: 22px; }

.pages-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 12px;
  font-size: .62rem;
  font-weight: 600;
  color: var(--blue-soft);
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .25);
  border-radius: 8px;
}
.pages-chip .icon { width: 14px; height: 14px; }

/* ── 8 · ZARIADENIA — 4-STĹPCOVÝ GRID ───────────────────────── */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.devices-grid .pc-body { padding: 20px 20px 22px; }
.devices-grid .pc-body h3 { font-size: 1.08rem; }

/* ── 9 · CENNÍK ZLIAV — RATE LADDER (signature) ─────────────── */
.rate-panel {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  border-radius: var(--radius);
  padding: 24px 30px 22px;
  background: rgba(18, 21, 29, .72);
  box-shadow: 0 34px 80px -28px rgba(0, 0, 0, .8);
}
.rate-list { display: grid; }
.rate-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 26px;
  padding: 21px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.rate-row:last-child { border-bottom: none; padding-bottom: 8px; }
.rate-period {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.rate-period span {
  font-size: .6rem;
  color: var(--text-ghost);
  letter-spacing: .16em;
  margin-left: 3px;
}
.rate-name {
  font-size: .6rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.rate-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}
.rate-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(225, 29, 41, .35), var(--red-hi));
  box-shadow: 0 0 12px var(--red-glow);
  transition: width .9s var(--ease-out) .15s;
}
.reveal.in .rate-fill,
html:not(.js) .rate-fill { width: var(--w, 0%); }
.rate-disc {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  color: var(--red-hi);
  text-align: right;
  text-shadow: 0 0 24px var(--red-glow);
  white-space: nowrap;
}
.rate-disc--base { color: var(--text-ghost); text-shadow: none; }
.rate-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-brd);
  font-size: .64rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── 10 · ČO JE ZAHRNUTÉ — GLASS PANEL ──────────────────────── */
.included {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(30px, 4.5vw, 52px);
  border-radius: var(--radius);
  background: rgba(18, 21, 29, .66);
}
.included-copy h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.included-copy p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 46ch;
}
.included .check-list { margin: 0; gap: 14px; }

/* ── 11 · KRÍŽOVÝ BANNER (krátkodobý ↔ dlhodobý) ────────────── */
.cross-banner {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  padding: 26px 30px;
  background:
    radial-gradient(70% 120% at 0% 50%, rgba(225, 29, 41, .09), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s ease;
}
.cross-banner:hover { border-color: var(--border-strong); }
.cross-banner h3 { font-size: 1.18rem; }
.cross-banner p { margin-top: 5px; color: var(--text-muted); font-size: .92rem; }
.cross-banner .btn { flex: none; }

/* ── 12 · PRENÁJOM VS. NÁKUP — 2×2 GRID ─────────────────────── */
.vs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.vs-grid .feature-row { align-items: flex-start; padding: 24px; }

/* ── 13 · PROCES — 4 KROKY ──────────────────────────────────── */
@media (min-width: 901px) {
  .steps.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps.steps--four .step { padding: 28px 24px 26px; }
}

/* ── 14 · RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1180px) {
  .devices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .devices-grid .pc-body { padding: 24px 26px 26px; }
}

@media (max-width: 1024px) {
  .hero-visual { order: 2; }
  .hero-rig { margin-top: 6px; }
}

@media (max-width: 900px) {
  .type-cards { grid-template-columns: 1fr; max-width: 560px; }
  .included { grid-template-columns: 1fr; }
  .included-copy p { max-width: none; }
  .vs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .rate-panel { padding: 20px 20px 18px; }
  .rate-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "period disc"
      "mid    mid";
    gap: 0;
    row-gap: 13px;
    padding: 18px 0;
  }
  .rate-period { grid-area: period; font-size: 1.15rem; }
  .rate-mid { grid-area: mid; }
  .rate-name { margin-bottom: 8px; }
  .rate-disc { grid-area: disc; }
}

@media (max-width: 560px) {
  .devices-grid { grid-template-columns: 1fr; }
  .cross-banner { padding: 24px 22px; }
  .cross-banner .btn { width: 100%; }
}

/* ── 15 · REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js .hero-rig .tele-row { opacity: 1 !important; transform: none !important; }
  .hero-rig.booted .tele-scan::after { animation: none !important; }
  .rate-fill { width: var(--w, 0%) !important; transition: none !important; }
  .back-link:hover .icon { transform: none !important; }
}
