/* =========================================================================
   VARIO 37 — Design system v3 (Neuralflow — dark, monochrome, Onest)
   Sekcie sa striedajú: default = tmavá, .v-section--soft = svetlá (off-white).
   Komponenty používajú CSS premenné, takže sa vo svetlej sekcii preklopia.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
    --bg:        #080808;
    --bg-soft:   #f2f2f2;   /* svetlá sekcia */
    --bg-dark2:  #0d0d0f;   /* graphite sekcia */
    --surface:   rgba(255,255,255,0.03);
    --surface-2: rgba(255,255,255,0.055);
    --line:      rgba(255,255,255,0.08);
    --line-2:    rgba(255,255,255,0.16);
    --ink:       #f2f2f2;
    --ink-2:     #9c9c96;
    --ink-3:     #6b6b66;
    --accent:    #ececec;   /* neutrálny akcent (near-white na tmavej) */
    --accent-ink:#080808;
    --amber:     #ffb443;   /* status: uvoľní sa */

    --radius:    14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 100px;
    --radius-sm: 10px;

    --wrap: 1200px;
    --pad: 28px;
    --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --shadow: 0 24px 60px rgba(0,0,0,0.5);
    --shadow-sm: 0 12px 30px rgba(0,0,0,0.35);
}

/* ---------- LIGHT PODSTRÁNKY (prenájom + objednávka) ---------- */
.pg-priestory, .pg-kontajnery, .pg-objednat, .pg-priestor-detail {
    --bg:        #ffffff;
    --bg-dark2:  #ffffff;
    --surface:   rgba(0,0,0,0.028);
    --surface-2: rgba(0,0,0,0.055);
    --line:      rgba(0,0,0,0.10);
    --line-2:    rgba(0,0,0,0.18);
    --ink:       #0b0b0b;
    --ink-2:     #565b64;
    --ink-3:     #8b8b85;
    --accent:    #141414;
    --accent-ink:#f2f2f2;
    background:  var(--bg);
    color:       var(--ink);
}
/* base je biely; akcentové --soft/--dark bandy sú jemne šedé (rytmus bez ostrého skoku) */
.pg-priestory  .v-section--soft, .pg-priestory  .v-section--dark,
.pg-kontajnery .v-section--soft, .pg-kontajnery .v-section--dark,
.pg-objednat   .v-section--soft, .pg-objednat   .v-section--dark,
.pg-priestor-detail .v-section--soft, .pg-priestor-detail .v-section--dark { background: #f4f4f2; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6;
    color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Layout ---------- */
.v-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
/* padding aj na modifikátory — aby fungovali aj samostatne (bez .v-section) */
.v-section, .v-section--soft, .v-section--dark, .v-section--invert { padding: 96px 0; position: relative; }
.v-section--tight { padding: 64px 0; }
main { min-height: 60vh; }

/* Graphite plán — supporting sekcie. Zostáva tmavá, len jemný tónový posun
   + hairline hrany. Toto dáva rytmus BEZ skákania na bielu.
   (--soft aj --dark = to isté, dark-first web.) */
.v-section--soft,
.v-section--dark {
    background: linear-gradient(180deg, #1b1c20 0%, #111216 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
/* Invertovaná SVETLÁ sekcia — používať ZRIEDKA (jediný focal point: hlavná CTA) */
.v-section--invert {
    background: var(--bg-soft);
    --surface:   rgba(0,0,0,0.028);
    --surface-2: rgba(0,0,0,0.055);
    --line:      rgba(0,0,0,0.10);
    --line-2:    rgba(0,0,0,0.18);
    --ink:       #080808;
    --ink-2:     #5f5f5a;
    --ink-3:     #9c9c96;
    --accent:    #141414;
    --accent-ink:#f2f2f2;
    color: var(--ink);
}

/* ---------- Typography ---------- */
.v-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2);
    margin-bottom: 22px;
}
.v-eyebrow--dot::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
    animation: v-pulse 2.4s ease-in-out infinite;
}
@keyframes v-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.v-h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); }
.v-h2 { font-size: clamp(2rem, 4vw, 3.1rem);   font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); }
.v-h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.v-em { font-style: normal; color: var(--ink-2); }
.v-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-2); line-height: 1.6; max-width: 560px; }
.v-head { max-width: 760px; margin: 0 0 52px; }
.v-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.v-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border-radius: var(--radius-sm);
    font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em;
    border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.v-btn svg { width: 16px; height: 16px; }
.v-btn--dark, .v-btn--brand, .v-btn--white, .v-btn--primary {
    background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.v-btn--dark:hover, .v-btn--brand:hover, .v-btn--white:hover, .v-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.v-btn--ghost, .v-btn--text { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.v-btn--ghost:hover, .v-btn--text:hover { background: var(--surface-2); border-color: var(--ink); }
.v-btn--sm { padding: 10px 16px; font-size: 13px; }
.v-btn--block { display: flex; justify-content: center; width: 100%; }
.v-btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.v-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-2); background: var(--surface);
    color: var(--ink); transition: all .2s ease; flex-shrink: 0;
}
.v-arrow svg { width: 18px; height: 18px; }
.v-arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Pills / badges ---------- */
.v-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; color: var(--ink);
}
.v-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: v-pulse 2.4s ease-in-out infinite; }
.v-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
    border: 1px solid var(--line-2); background: rgba(8,8,8,.6); backdrop-filter: blur(6px);
}
.v-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.v-badge--reserved::before { background: var(--amber); }
.v-badge--occupied { color: var(--ink-3); }
.v-badge--occupied::before { background: var(--ink-3); }

/* ---------- Card ---------- */
.v-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column; transition: all .25s ease;
}
.v-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }
.v-card__img { position: relative; aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.v-card__img picture { display: block; width: 100%; height: 100%; }
.v-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
/* kategória článku — plain mono text, nie pill */
.v-card__cat { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
/* <picture> musí vyplniť media box (inak zostane medzera pod fotkou) */
.v-card__img picture, .nf-unit__img picture, .nf-cat__photo picture,
.x-size__photo picture, .hp-solc__media picture, .bk-choice__media picture,
.detail__main picture, .pd-gallery__main picture { display: block; width: 100%; height: 100%; }
.v-card__img picture img, .nf-unit__img picture img, .nf-cat__photo picture img,
.x-size__photo picture img, .hp-solc__media picture img, .bk-choice__media picture img { width: 100%; height: 100%; object-fit: cover; }
.v-card:hover .v-card__img img { transform: scale(1.04); }
.v-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* image tile */
.v-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; display: block; background: var(--surface-2); }
.v-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.v-tile:hover img { transform: scale(1.05); }
.v-tile__grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, transparent 40%, rgba(0,0,0,.6) 100%); }
.v-tile__arrow { position: absolute; top: 16px; right: 16px; z-index: 2; }
.v-tile__label { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: #fff; font-size: 18px; font-weight: 500; max-width: 80%; }

/* ---------- Stat row ---------- */
.v-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.v-stat { padding: 32px 26px; border-right: 1px solid var(--line); }
.v-stat:last-child { border-right: 0; }
.v-stat__n { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.v-stat__l { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); margin-top: 12px; }

/* ---------- Grid ---------- */
.v-grid { display: grid; gap: 16px; }
.v-grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.v-grid--2 { grid-template-columns: repeat(2, 1fr); }
.v-grid--3 { grid-template-columns: repeat(3, 1fr); }
.v-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Breadcrumb ---------- */
/* iba vertikálny padding — horizontálny (28px) zdedí z .v-wrap, aby breadcrumb bol zarovnaný s obsahom */
.v-crumb { padding-top: 1.25rem; padding-bottom: .25rem; margin-top: 0; }
.v-crumb ol { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0;
    font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
    white-space: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.v-crumb ol::-webkit-scrollbar { display: none; }
.v-crumb li { flex-shrink: 0; }
.v-crumb a { color: var(--ink-3); transition: color .15s ease; }
.v-crumb a:hover { color: var(--ink); }
.v-crumb .sep { color: var(--line-2); }
/* posledná (aktuálna) položka sa môže skrátiť s výpustkom, nikdy nezalomí */
.v-crumb .cur { color: var(--ink); flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Form ---------- */
.v-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.v-field label, .v-label { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.v-input, .v-textarea {
    width: 100%; padding: 14px 16px; background: var(--bg-dark2);
    border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font-size: 15px;
    color: var(--ink); font-family: inherit; transition: all .15s ease; resize: vertical;
}
.v-input::placeholder, .v-textarea::placeholder { color: var(--ink-3); }
.v-input:hover, .v-textarea:hover { border-color: var(--ink-3); }
.v-input:focus, .v-textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(20,24,31,.10); }

/* ---------- FAQ ---------- */
.v-faq { max-width: 800px; margin: 0 auto; }
.v-faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.v-faq summary { list-style: none; cursor: pointer; padding: 22px 24px; font-size: 16px; font-weight: 500;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--accent); transition: transform .2s ease; }
.v-faq details[open] summary::after { transform: rotate(45deg); }
.v-faq details p { padding: 0 24px 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.alert-success { background: rgba(120,220,150,.14); color: #8fe0a8; }
.alert-danger  { background: rgba(255,100,100,.14); color: #ff9a9a; }
.alert-warning { background: rgba(255,200,90,.14); color: #ffcf7a; }

/* ---------- Utilities ---------- */
.v-center { text-align: center; }
.v-mt-1 { margin-top: 12px; } .v-mt-2 { margin-top: 24px; } .v-mt-3 { margin-top: 40px; }
.v-mb-1 { margin-bottom: 12px; } .v-mb-2 { margin-bottom: 24px; } .v-mb-3 { margin-bottom: 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .v-section, .v-section--soft, .v-section--dark, .v-section--invert { padding: 72px 0; }
    .v-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .v-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .v-grid--2 { grid-template-columns: 1fr; }
    .v-stats { grid-template-columns: repeat(2, 1fr); }
    .v-stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 640px) {
    .v-grid--auto, .v-grid--4, .v-grid--3 { grid-template-columns: 1fr; }
    .v-section, .v-section--soft, .v-section--dark, .v-section--invert { padding: 56px 0; }
    .v-stats { grid-template-columns: 1fr; }
    .v-stat { border-right: 0; border-bottom: 1px solid var(--line); }
}
