/* Trikopick.Eu – sdílené styly pro všechny stránky */
:root {
  --ink: #26282B;
  --deep: #1C1D20;
  --steel: #3A3D42;
  --mid: #55585E;
  --line: #8A8D93;
  --mist: #B9BBBF;
  --paper: #E9E8E6;
  --white: #FFFFFF;
  --orange: #F26A1B;
  --orange-ink: #A63F05;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 6px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px;
}
.btn-main { background: var(--orange); color: var(--deep); border: 0; }
.btn-main:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--mid); color: var(--white); }
.btn-ghost:hover { background: var(--steel); }
.btn-small { min-height: 44px; padding: 0 20px; }

/* Značka */
.brand { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; color: var(--white); }
.brand span { color: var(--orange); }

/* Hlavička a úvod */
.hero { background: var(--ink); color: var(--white); border-bottom: 6px solid var(--orange); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-weight: 500; color: var(--mist); }
.nav a { padding: 12px 0; }
.nav a:hover { color: var(--white); }
.nav a.btn { padding: 0 20px; color: var(--white); }

.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hero .eyebrow { color: var(--orange); }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; }
.lead { max-width: 540px; font-size: 19px; line-height: 1.6; color: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }

/* Ozdobné okno aplikace v úvodu */
.mock { flex: 1 1 360px; min-width: 0; background: var(--deep); border: 1px solid var(--steel); border-radius: 12px; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--steel); }
.dot { width: 12px; height: 12px; border-radius: 6px; background: var(--mid); }
.dot.on { background: var(--orange); }
.mock-body { display: flex; gap: 20px; padding: 20px; }
.mock-side { display: flex; flex-direction: column; gap: 12px; width: 72px; flex: none; }
.mock-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bar { height: 10px; border-radius: 5px; background: var(--steel); }
.bar.on { background: var(--orange); }
.bar.title { height: 18px; width: 55%; border-radius: 4px; background: var(--paper); }
.mock-tiles { display: flex; gap: 12px; }
.tile-shape { flex: 1; height: 84px; border-radius: 8px; background: var(--steel); }
.tile-shape.on { background: var(--orange); }

/* Sekce nabídky */
.section { padding: clamp(56px, 8vw, 104px) 0; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.section .eyebrow { color: var(--orange-ink); }
.section h2 { font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.section .lead { color: var(--mid); font-size: 18px; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 48px; }
.service { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 3px solid var(--orange); }
.service h3 { font-weight: 600; font-size: 24px; line-height: 1.2; }
.service p { font-size: 16px; line-height: 1.6; color: var(--mid); }

/* Kontakt */
.contact { background: var(--orange); color: var(--deep); }
.contact-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; padding: clamp(48px, 7vw, 88px) 0; }
.contact-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact h2 { font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.contact p { max-width: 560px; font-size: 18px; line-height: 1.6; }
.contact-card { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; background: var(--ink); color: var(--white); border-radius: 8px; }
.contact-card .label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.contact-card .value { font-family: var(--font-head); font-weight: 600; font-size: 24px; word-break: break-word; }

/* Patička */
.footer { background: var(--ink); color: var(--mist); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 32px; font-size: 14px; }
.footer .brand { font-size: 18px; }

/* Přihlášení */
.auth { display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth-side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(28px, 5vw, 64px); background: var(--ink); color: var(--white); border-bottom: 6px solid var(--orange); }
.auth-side h1 { font-weight: 700; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.06; letter-spacing: -0.025em; }
.auth-side .copy { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.auth-side .back { font-size: 15px; color: var(--mist); }
.auth-main { flex: 1 1 420px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 64px); }
.auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 28px; }
.auth-box h2 { font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.muted { font-size: 16px; line-height: 1.5; color: var(--mid); }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px;
}
.message { font-size: 15px; line-height: 1.5; min-height: 22px; }
.message.error { color: #9C2B00; font-weight: 500; }
.message.ok { color: var(--ink); }

/* Dashboard */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 40px; padding: 28px 20px; background: var(--ink); color: var(--white); }
.sidebar .brand { font-size: 24px; padding: 0 8px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav button {
  display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 14px;
  border: 0; border-radius: 6px; background: transparent; color: var(--mist);
  font-size: 16px; font-weight: 600; text-align: left;
}
.side-nav button.active { background: var(--orange); color: var(--deep); }
.side-user { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--steel); }
.side-user .name { font-size: 15px; font-weight: 600; word-break: break-word; }
.side-user button { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--mist); font-size: 15px; font-weight: 500; }
.side-user button:hover { color: var(--white); }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; padding: clamp(20px, 3.5vw, 48px); }
.content-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.content h1 { font-weight: 700; font-size: clamp(28px, 3.5vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 20px; background: var(--white); font-size: 14px; font-weight: 600; }
.status i { width: 10px; height: 10px; border-radius: 5px; background: var(--line); }
.status.ok i { background: var(--orange); }
.stats { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: var(--white); border-radius: 8px; }
.stat .k { font-size: 14px; color: var(--mid); }
.stat .v { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.1; word-break: break-word; }
.panel[hidden] { display: none; }
.table-box { overflow-x: auto; background: var(--white); border-radius: 8px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
th { padding: 14px 22px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; }
td { padding: 14px 22px; border-bottom: 1px solid var(--paper); font-size: 15px; }
.note { padding: 20px 22px; background: var(--white); border-radius: 8px; font-size: 15px; line-height: 1.6; color: var(--mid); }

/* Upozornění na ukázkový režim */
.banner { padding: 14px 18px; background: #FFE3D1; color: #5C2200; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.banner[hidden] { display: none; }

/* Přidání záznamu */
.add-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 24px; }
.add-form[hidden] { display: none; }
.add-form .field { flex: 1 1 260px; min-width: 0; }

/* Dashboard: tlačítka v tabulce a na světlém podkladu */
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--white); }
.row-action { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--orange-ink); font-weight: 600; font-size: 15px; }
.row-action:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Logo: znak před nápisem */
.brand { display: inline-flex; align-items: center; }
.brand img { width: 1.15em; height: 1.15em; flex: none; margin-right: 0.4em; }
