/* Verejný web bozpmanazer.sk — dizajn podľa pôvodnej stránky z Nicepage (tmavé pozadie, zlatý akcent,
   nadpisy Oswald, text Montserrat). Používa ho _PublicLayout.cshtml; administrácia má vlastný _Layout + Bootstrap. */

:root {
    --bg: #111111;
    --bg-2: #1a1a1a;
    --bg-3: #222222;
    /* akcent = červená z loga BOZP Manažér (názvy --gold ostali kvôli existujúcim pravidlám; farba je červená) */
    --gold: #e3261b;
    --gold-light: #ff6a5c;
    --gold-dark: #b01d12;
    --red: #e3261b;
    --text: #f5f5f5;
    --muted: #b3b3b3;
    --line: rgba(255, 255, 255, 0.12);
    --radius: 6px;
    --container: 1180px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Montserrat, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .w-display {
    font-family: Oswald, "Arial Narrow", sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0 0 0.5em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.w-container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.w-section { padding: clamp(3rem, 8vw, 6rem) 0; }
.w-section--alt { background: var(--bg-2); }
.w-center { text-align: center; }
.w-muted { color: var(--muted); }
.w-gold { color: var(--gold); }
.w-eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.75rem; }
.w-lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.w-center .w-lead { margin-inline: auto; }

/* --- Tlačidlá --- */
.w-btn {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    background: var(--gold);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.w-btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #ffffff; text-decoration: none; }
.w-btn--ghost { background: transparent; color: var(--gold); }
.w-btn--ghost:hover { background: var(--gold); color: #ffffff; }
.w-btn--red { background: var(--red); border-color: var(--red); color: #ffffff; }
.w-btn--red:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #ffffff; }
.w-btn--sm { padding: 0.55rem 1.2rem; font-size: 0.8rem; }

/* --- Hlavička --- */
/* Biela hlavička s logom a sloganom „Komplet agenda pre BOZP" – ako na pôvodnej stránke */
.w-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}
.w-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.w-logo img { height: 56px; width: auto; }
.w-nav { display: flex; align-items: center; gap: 1.3rem; margin-left: auto; }
.w-nav a { color: #111111; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; }
.w-nav a:hover, .w-nav a[aria-current="page"] { color: var(--red); text-decoration: none; }
.w-nav__auth { display: flex; gap: 0.6rem; margin-left: 0.6rem; }
.w-nav__auth .w-btn { background: var(--red); border-color: var(--red); color: #fff; }
.w-nav__auth .w-btn--ghost { background: transparent; color: #111; border-color: #111; }
.w-nav__auth .w-btn--ghost:hover { background: #111; color: #fff; }
.w-nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid #cccccc;
    border-radius: var(--radius);
    color: #111111;
    padding: 0.5rem 0.7rem;
    font-size: 1.3rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .w-nav-toggle { display: block; }
    .w-nav {
        display: none;
        position: absolute;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e5e5;
        padding: 0.5rem 1rem 1rem;
    }
    .w-nav.is-open { display: flex; }
    .w-nav a { padding: 0.8rem 0; border-bottom: 1px solid #eeeeee; }
    .w-nav__auth { flex-direction: column; margin: 1rem 0 0; }
    .w-nav__auth a { border-bottom: 0; text-align: center; }
}

/* --- Hero --- */
/* Hero ako v pôvodnom dizajne: muž s bradou a oranžovými okuliarmi vľavo, text na tmavej pravej časti fotky */
.w-hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15)), url("../img/poradca.jpg") left center / cover no-repeat;
}
.w-hero__inner { padding: 4rem 0; }
@media (min-width: 900px) {
    .w-hero { background-position: left center; }
    .w-hero__inner { margin-left: auto; max-width: 44rem; text-align: right; }
    .w-hero__actions { justify-content: flex-end; }
}
@media (max-width: 899px) {
    .w-hero { background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url("../img/poradca.jpg") 20% center / cover no-repeat; }
}
.w-hero h1 { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); font-family: Montserrat, sans-serif; font-weight: 700; letter-spacing: 0.04em; }
.w-hero h1 span { color: var(--red); }
.w-hero .w-btn--ghost { border-color: #ffffff; color: #ffffff; }
.w-hero .w-btn--ghost:hover { background: #ffffff; color: #111; }
.w-hero__sub { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--text); margin-bottom: 2.2rem; text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6); }
.w-hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Mriežky a karty --- */
.w-grid { display: grid; gap: 1.5rem; }
.w-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.w-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.w-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.w-split { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .w-split { grid-template-columns: 1.15fr 0.85fr; } .w-split--rev > :first-child { order: 2; } }

.w-card {
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: transform 0.2s, border-color 0.2s;
}
.w-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.w-card h3, .w-card h4 { margin-top: 0.4rem; }
.w-card p:last-child { margin-bottom: 0; }
.w-icon { width: 48px; height: 48px; color: var(--gold); }

.w-photo { border-radius: var(--radius); object-fit: cover; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.w-photo--tall { aspect-ratio: 2 / 3; }
.w-photo--wide { aspect-ratio: 16 / 9; }

/* --- Štatistiky --- */
.w-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.w-stat strong { display: block; font-family: Oswald, sans-serif; font-size: 3rem; color: var(--gold); line-height: 1; }
.w-stat span { display: block; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; margin: 0.5rem 0 0.3rem; }
.w-stat small { color: var(--muted); }

/* --- Cenník --- */
.w-price { text-align: center; }
.w-price__amount { font-family: Oswald, sans-serif; font-size: 2.6rem; color: var(--gold); line-height: 1; margin: 0.6rem 0; }
.w-price__amount small { font-size: 1rem; color: var(--muted); font-family: Montserrat, sans-serif; }
.w-price ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; color: var(--muted); }
.w-price li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.w-price li:last-child { border-bottom: 0; }
.w-badge { display: inline-block; background: var(--red); color: #fff; font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.08em; }

/* --- CTA pásy --- */
.w-cta {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.55)), url("../img/skolenie.jpg") center / cover no-repeat;
    text-align: center;
}
.w-cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.w-cta--plain { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Pás „Máte otázku?" – fotka poradcu vpravo, text vľavo (fotka má tmavé pozadie vľavo, text naň sadne bez prekrytia) */
.w-poradca {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.75) 45%, rgba(17, 17, 17, 0.35) 100%), url("../img/hero-data.jpg") right center / cover no-repeat;
    text-align: left;
}
.w-poradca__inner { max-width: 34rem; padding: 3rem 0; }
.w-poradca h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
@media (max-width: 900px) {
    .w-poradca { background-position: 70% center; }
    .w-poradca__inner { background: rgba(21, 23, 26, 0.72); padding: 2rem 1.2rem; border-radius: var(--radius); }
}
.w-portret { border-radius: var(--radius); object-fit: cover; object-position: left center; width: 100%; aspect-ratio: 4 / 3; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.w-discount strong { font-family: Oswald, sans-serif; font-size: 4rem; color: var(--gold); line-height: 1; display: block; }

/* --- Formuláre --- */
.w-form { display: grid; gap: 1rem; max-width: 42rem; }
.w-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.w-form input, .w-form textarea, .w-form select {
    width: 100%;
    padding: 0.8rem 0.95rem;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
}
.w-form input:focus, .w-form textarea:focus, .w-form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.w-form textarea { min-height: 9rem; resize: vertical; }
.w-form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .w-form__row { grid-template-columns: 1fr 1fr; } }
.w-form__check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.w-form__check input { width: auto; margin-top: 0.3rem; }
.w-form .field-validation-error, .w-form .validation-summary-errors { color: #f37e69; font-size: 0.85rem; }
.w-form .validation-summary-errors ul { margin: 0; padding-left: 1.2rem; }
.w-form .input-validation-error { border-color: #f37e69; }
.w-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.w-alert { border: 1px solid var(--gold); background: rgba(227, 38, 27, 0.12); color: #ffd5d0; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }

/* --- Blog a recenzie --- */
.w-article { max-width: 46rem; margin-inline: auto; }
.w-article h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.w-article__meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.w-prose h2, .w-prose h3 { text-transform: none; margin-top: 2rem; }
.w-prose p, .w-prose li { color: #e6e6e6; }
.w-prose img { border-radius: var(--radius); }
.w-prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.w-prose th, .w-prose td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; }
.w-prose blockquote { border-left: 3px solid var(--gold); margin: 1.5rem 0; padding: 0.2rem 1.2rem; color: var(--muted); }
.w-prose code { background: var(--bg-3); padding: 0.1rem 0.35rem; border-radius: 3px; }
.w-post-card h3 { text-transform: none; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1.2rem; }
.w-post-card time { color: var(--muted); font-size: 0.85rem; }
.w-stars { color: var(--gold); letter-spacing: 0.1em; font-size: 1.15rem; }
.w-review__author { margin-top: 1rem; font-weight: 600; }
.w-review__author span { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.w-pager { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.w-breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.w-breadcrumb a { color: var(--muted); }

/* --- Pätička --- */
.w-footer { background: #0a0a0a; border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; color: var(--muted); font-size: 0.92rem; }
.w-footer h4 { color: var(--text); }
.w-footer a { color: var(--gold); }
.w-footer__legal { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.8rem; }
.w-footer__legal p { margin-bottom: 0.4rem; }
.w-footer__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

/* --- Cookie lišta --- */
.w-cookies {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    background: #1f1f1f;
    border-top: 1px solid var(--gold);
    padding: 1rem;
    display: none;
}
.w-cookies.is-visible { display: block; }
.w-cookies__inner { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.w-cookies p { margin: 0; flex: 1 1 320px; font-size: 0.9rem; }
.w-cookies__actions { display: flex; gap: 0.6rem; }

/* --- Legal / text stránky --- */
.w-legal { max-width: 46rem; margin-inline: auto; color: #e6e6e6; }
.w-legal h2 { font-size: 1.4rem; margin-top: 2rem; text-transform: none; }
.w-legal ul { padding-left: 1.3rem; }
