/*
 * Bruto UI — samostatná verzia vizuálu webu https://bruto.sk
 * (zdroj: wp-content/themes/bruto-kadence/style.css v repozitári Bruto.sk-WEB).
 * Hodnoty sú prevzaté 1:1, triedy majú prefix bruto- ako na webe.
 * Použitie: <link rel="stylesheet" href="css/bruto-ui.css?v=YYYYMMDD-1"> a <body class="bruto">.
 */

@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bruto-ink: #152238;        /* text, nadpisy */
  --bruto-blue: #303c92;       /* hlavná farba: tlačidlá, odkazy, akcenty */
  --bruto-blue-hover: #222e76; /* hover tlačidiel */
  --bruto-navy: #1c2850;       /* tmavé pásy, hlavička tabuľky */
  --bruto-red: #e30028;        /* iba jemný akcent: linka, bodka, hviezdička, fajka */
  --bruto-muted: #4b586b;      /* sekundárny text */
  --bruto-line: #dde3eb;       /* okraje, oddeľovače */
  --bruto-wash: #f3f5f9;       /* svetlé pozadie sekcií (hero) */
  --bruto-topbar: #f0f2f7;
  --bruto-field: #b9c3d2;      /* okraj inputov a outline tlačidla */
  --bruto-error: #c4001f;
  --bruto-focus: #6681ff;
  --bruto-radius: 6px;         /* tlačidlá, inputy */
  --bruto-radius-card: 10px;   /* karty, fotky, video */
  --bruto-shadow: 0 24px 50px #15223814;
}

/* Základ */
.bruto { margin: 0; background: #fff; color: var(--bruto-ink); font-family: Manrope, Arial, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
/* Resety majú nulovú špecificitu (:where), takže ich prebije každá trieda bruto-*. */
:where(.bruto) *, :where(.bruto) *::before, :where(.bruto) *::after { box-sizing: border-box; }
:where(.bruto) :is(h1, h2, h3, p, figure) { margin: 0; }
:where(.bruto) a { color: inherit; text-decoration: none; }
:where(.bruto) img { display: block; max-width: 100%; height: auto; }
.bruto a:focus-visible, .bruto button:focus-visible, .bruto summary:focus-visible { outline: 3px solid var(--bruto-focus); outline-offset: 5px; }
.bruto-shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.bruto-skip { position: fixed; top: -100px; left: 20px; z-index: 10000; padding: 14px 20px; background: #fff; box-shadow: 0 2px 10px #0002; }
.bruto-skip:focus { top: 10px; }

/* Typografia sekcií */
.bruto-section { padding-block: 96px; }
.bruto-section.is-wash, .bruto-hero { background: var(--bruto-wash); }
.bruto-hero { padding-block: 64px 72px; }
.bruto-hero h1 { font-size: clamp(42px, 4.6vw, 62px); font-weight: 800; line-height: 1.08; letter-spacing: -2.2px; margin-top: 18px; text-wrap: balance; }
.bruto-hero h1 span { color: var(--bruto-blue); }
.bruto-lead { color: var(--bruto-muted); font-size: 19px; line-height: 1.7; margin-top: 24px; max-width: 540px; }
.bruto-eyebrow { color: var(--bruto-blue); font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; line-height: 1.5; }
.bruto-eyebrow::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--bruto-red); margin-right: 10px; vertical-align: 4px; }
.bruto-title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 780; letter-spacing: -1.2px; line-height: 1.15; margin-top: 14px; max-width: 760px; text-wrap: balance; }
.bruto-intro { color: var(--bruto-muted); margin-top: 18px; max-width: 680px; font-size: 18px; line-height: 1.7; }
:where(.bruto) h3 { font-size: 20px; font-weight: 750; line-height: 1.35; letter-spacing: -.4px; }
.bruto-text-link { color: var(--bruto-blue); font-weight: 800; }
.bruto-text-link:hover { text-decoration: underline; text-decoration-color: var(--bruto-red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bruto-prose a { color: var(--bruto-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Tlačidlá */
.bruto-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bruto-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  border: 1px solid var(--bruto-blue); border-radius: var(--bruto-radius); background: var(--bruto-blue);
  color: #fff; font: inherit; font-size: 16px; font-weight: 750; line-height: 1.4;
  padding: 15px 26px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
.bruto-btn:hover { background: var(--bruto-blue-hover); border-color: var(--bruto-blue-hover); }
.bruto-btn.is-outline { color: var(--bruto-ink); border-color: var(--bruto-field); background: transparent; }
.bruto-btn.is-outline:hover { background: #e7ebf3; border-color: var(--bruto-blue); }
.bruto-btn.is-small { min-height: 46px; padding: 11px 18px; font-size: 15px; }
.bruto-btn:disabled { opacity: .7; cursor: wait; }

/* Zoznam s červenými fajkami */
.bruto-checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.bruto-checklist li { position: relative; padding-left: 36px; font-weight: 600; line-height: 1.5; }
.bruto-checklist li::before { content: ''; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #e3e8f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e30028' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.4'/%3E%3C/svg%3E") center / 17px no-repeat; }

/* Horná lišta + hlavička */
.bruto-topbar { background: var(--bruto-topbar); color: var(--bruto-muted); font-size: 13px; font-weight: 600; }
.bruto-topbar .bruto-shell { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bruto-topbar a { color: var(--bruto-ink); display: inline-block; padding-block: 8px; }
.bruto-header { background: #fff; border-bottom: 1px solid #e6eaf0; position: sticky; top: 0; z-index: 50; }
.bruto-header-inner { position: relative; min-height: 96px; display: flex; align-items: center; gap: 32px; }
.bruto-logo { flex-shrink: 0; }
.bruto-logo img { width: 104px; height: 68px; object-fit: contain; }
.bruto-navigation { margin-left: auto; }
.bruto-navigation ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.bruto-navigation a { display: block; font-size: 15px; font-weight: 700; padding: 12px 0; white-space: nowrap; }
.bruto-navigation a:hover, .bruto-navigation a[aria-current="page"] { color: var(--bruto-blue); }
.bruto-header-cta { display: inline-flex; align-items: center; gap: 14px; background: var(--bruto-blue); color: #fff; border-radius: var(--bruto-radius); padding: 13px 20px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.bruto-header-cta:hover { background: var(--bruto-blue-hover); }
.bruto-menu-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--bruto-line); border-radius: var(--bruto-radius); padding: 10px 14px; min-height: 46px; background: #fff; color: var(--bruto-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.bruto-menu-toggle svg { width: 20px; height: 20px; }

/* Karty */
.bruto-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 35px; }
.bruto-card { position: relative; background: #fff; border: 1px solid var(--bruto-line); border-radius: 8px; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.bruto-card:hover { border-color: #aab6d7; box-shadow: 0 12px 30px #1c306c0a; transform: translateY(-2px); }
.bruto-card-image { background: #f8f9fb; padding: 20px; }
.bruto-card-image img { width: 100%; height: 190px; object-fit: contain; mix-blend-mode: multiply; }
.bruto-card-copy { padding: 23px 22px 25px; }
.bruto-card-description { color: var(--bruto-muted); font-size: 15px; line-height: 1.65; margin-top: 10px; }
.bruto-panel { background: #fff; border: 1px solid var(--bruto-line); border-top: 4px solid var(--bruto-blue); border-radius: 12px; padding: 30px 30px 32px; box-shadow: var(--bruto-shadow); }
.bruto-panel h2 { font-size: 26px; font-weight: 780; letter-spacing: -.5px; }
.bruto-note { color: var(--bruto-muted); font-size: 14px; margin: 4px 0 18px; }
.bruto-alert { padding: 14px 18px; border-radius: var(--bruto-radius); border-left: 4px solid var(--bruto-blue); background: var(--bruto-wash); font-size: 15px; }
.bruto-alert.is-error { border-left-color: var(--bruto-error); background: #fdf1f3; color: #7d0014; }
.bruto-alert.is-success { border-left-color: #1a9e50; background: #eef8f2; color: #0d5a2c; }

/* Tabuľky — obal .bruto-table zabezpečí vodorovný posun na mobile, prvý stĺpec ostáva prilepený */
.bruto-table { margin: 36px 0 0; overflow-x: auto; border: 1px solid var(--bruto-line); border-radius: 12px; }
.bruto-table table { width: 100%; min-width: 720px; margin: 0; background: #fff; border-collapse: collapse; font-size: 16px; }
.bruto-table th, .bruto-table td { border: 0; border-bottom: 1px solid var(--bruto-line); padding: 16px 20px; text-align: left; vertical-align: top; }
.bruto-table th { white-space: nowrap; }
.bruto-table td { min-width: 110px; }
.bruto-table thead th { background: var(--bruto-navy); color: #fff; font-size: 14px; font-weight: 750; letter-spacing: .2px; }
.bruto-table tbody tr:last-child td { border-bottom: 0; }
.bruto-table tbody tr:nth-child(even) td { background: #f7f8fb; }
.bruto-table td:first-child { font-weight: 800; white-space: nowrap; }
.bruto-table th:first-child, .bruto-table td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--bruto-line); }
.bruto-table tbody td:first-child { background: #fff; }
.bruto-table tbody tr:nth-child(even) td:first-child { background: #f7f8fb; }
.bruto-table tr.is-total td { font-weight: 800; background: var(--bruto-wash); }
.bruto-table td.is-num, .bruto-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; }
/* Kompaktná tabuľka (dáta, administrácia, právne texty) */
.bruto-table.is-compact { margin-top: 0; border-radius: 8px; }
.bruto-table.is-compact table { min-width: 620px; font-size: 15px; line-height: 1.5; }
.bruto-table.is-compact th, .bruto-table.is-compact td { padding: 10px 14px; }
.bruto-table.is-compact thead th { background: var(--bruto-wash); color: var(--bruto-ink); }

/* Formuláre — obal .bruto-form; polia sú bežné input/select/textarea */
.bruto-form { display: grid; gap: 24px; }
.bruto-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.bruto-field { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; }
.bruto-field > label, .bruto-form legend { font-size: 14px; font-weight: 750; color: var(--bruto-ink); }
.bruto-field.is-required > label::after { content: ' *'; color: var(--bruto-red); }
.bruto-form input:not([type=checkbox]):not([type=radio]):not([type=submit]), .bruto-form select, .bruto-form textarea {
  width: 100%; min-height: 50px; border: 1px solid var(--bruto-field); border-radius: var(--bruto-radius);
  padding: 12px 14px; background: #fff; color: var(--bruto-ink); font: inherit; font-size: 16px;
}
.bruto-form select { appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23303c92' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.bruto-form textarea { min-height: 140px; resize: vertical; }
.bruto-form input:focus, .bruto-form select:focus, .bruto-form textarea:focus { outline: 3px solid #6681ff55; border-color: var(--bruto-blue); }
.bruto-form [aria-invalid="true"], .bruto-field.is-error input, .bruto-field.is-error select, .bruto-field.is-error textarea { border-color: var(--bruto-error); }
.bruto-field-error { color: var(--bruto-error); font-size: 13px; line-height: 18px; }
.bruto-field-help { color: var(--bruto-muted); font-size: 13px; }
.bruto-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--bruto-muted); cursor: pointer; }
.bruto-check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--bruto-blue); }
.bruto-check a { color: var(--bruto-blue); text-decoration: underline; }
.bruto-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.bruto-form .bruto-btn[type=submit] { width: 100%; }
.bruto-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ / rozbaľovacie bloky */
.bruto-faq { border-top: 1px solid var(--bruto-line); }
.bruto-faq details { border-bottom: 1px solid var(--bruto-line); }
.bruto-faq summary { position: relative; cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-size: 19px; font-weight: 750; line-height: 1.4; }
.bruto-faq summary::-webkit-details-marker { display: none; }
.bruto-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--bruto-wash); color: var(--bruto-blue); font-size: 22px; line-height: 32px; text-align: center; }
.bruto-faq details[open] summary::after { content: '–'; }
.bruto-faq details > :not(summary) { color: var(--bruto-muted); padding: 0 48px 24px 0; }

/* Tmavý pás s číslami */
.bruto-proof { background: var(--bruto-navy); color: #fff; padding-block: 34px; }
.bruto-proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.bruto-proof-item { font-size: 15px; line-height: 1.45; color: #c9d1e6; border-top: 2px solid #ffffff2e; padding-top: 16px; }
.bruto-proof-item strong { display: block; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; line-height: 1.15; }
.bruto-proof-item.is-accent { border-top-color: var(--bruto-red); }

/* Pätička */
.bruto-footer { border-top: 1px solid var(--bruto-line); background: #fff; }
.bruto-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding-block: 56px 44px; }
.bruto-footer-logo { width: 92px; height: 60px; object-fit: contain; margin-bottom: 17px; }
.bruto-footer p, .bruto-footer address { color: var(--bruto-muted); font-size: 15px; line-height: 1.75; font-style: normal; }
.bruto-footer h2 { font-size: 15px; font-weight: 800; margin: 0 0 16px; }
.bruto-footer ul { list-style: none; padding: 0; margin: 0; }
.bruto-footer li { margin-bottom: 6px; color: var(--bruto-muted); font-size: 15px; }
.bruto-footer li a { display: inline-block; padding-block: 4px; }
.bruto-footer a:hover { color: var(--bruto-blue); }
.bruto-footer-bottom { border-top: 1px solid var(--bruto-line); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; color: #5f6b7d; font-size: 14px; }

/* Responzivita — rovnaké zlomy ako bruto.sk: 1100 / 900 / 650 px */
@media (max-width: 1100px) {
  .bruto-header-inner { gap: 22px; }
  .bruto-navigation ul { gap: 18px; }
  .bruto-navigation a { font-size: 14px; }
  .bruto-header-cta { padding: 11px 14px; font-size: 14px; }
  .bruto-header-cta span { display: none; }
  .bruto-footer-grid { gap: 30px; }
}
@media (max-width: 900px) {
  .bruto-header-inner { min-height: 84px; }
  .bruto-logo img { width: 86px; height: 57px; }
  .bruto-menu-toggle { display: inline-flex; order: 3; }
  .bruto-header-cta { order: 2; margin-left: auto; min-height: 46px; padding-block: 10px; }
  .bruto-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--bruto-line); padding: 12px 32px 20px; box-shadow: 0 12px 18px #1522380a; max-height: calc(100dvh - 120px); overflow-y: auto; }
  .bruto-navigation[data-open='true'] { display: block; }
  .bruto-navigation ul { display: block; }
  .bruto-navigation a { padding: 13px 0; font-size: 17px; }
  .bruto-section { padding-block: 72px; }
  .bruto-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 35px; }
}
@media (max-width: 650px) {
  .bruto-shell { width: calc(100% - 40px); }
  .bruto { font-size: 16px; }
  .bruto-topbar { font-size: 12px; }
  .bruto-topbar .bruto-shell { min-height: 34px; gap: 10px; justify-content: flex-end; }
  .bruto-topbar-description { display: none; }
  .bruto-header-inner { min-height: 76px; gap: 14px; }
  .bruto-logo img { width: 76px; height: 50px; }
  .bruto-header-cta { padding-inline: 14px; font-size: 14px; }
  .bruto-navigation { padding-inline: 20px; }
  .bruto-section { padding-block: 56px; }
  .bruto-hero { padding-block: 36px 44px; }
  .bruto-hero h1 { font-size: clamp(36px, 10.4vw, 48px); letter-spacing: -1.4px; line-height: 1.1; margin-top: 14px; }
  .bruto-eyebrow { font-size: 12px; letter-spacing: 1.3px; }
  .bruto-lead { font-size: 17px; margin-top: 18px; }
  .bruto-buttons { flex-direction: column; align-items: stretch; }
  .bruto-form-row { grid-template-columns: 1fr; }
  .bruto-panel { padding: 22px 18px 24px; }
  .bruto-faq summary { font-size: 17px; padding-block: 18px; }
  .bruto-table:not(.is-compact) { margin-top: 26px; margin-inline: -20px; border-radius: 0; border-inline: 0; }
  .bruto-table th, .bruto-table td { padding: 13px 14px; font-size: 15px; }
  .bruto-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-block: 40px; }
  .bruto-footer-brand { grid-column: 1 / -1; }
  .bruto-footer-brand p { max-width: 320px; }
  .bruto-footer-bottom { flex-direction: column; gap: 6px; padding-block: 18px; }
}
@media (prefers-reduced-motion: reduce) { .bruto *, .bruto *::before, .bruto *::after { transition: none !important; } }
