/* Rekvalifikace.com – styly */

:root {
	--brand: #f15a22;
	--brand-dark: #c2410c;
	--brand-ink: #9a3412;
	--brand-soft: #fef0df;
	--brand-softer: #fff7ef;
	--ink: #1c2230;
	--ink-2: #4a5263;
	--muted: #6b7280;
	--line: #ebe4da;
	--bg: #fffdfa;
	--white: #fff;
	--ok: #15803d;
	--ok-soft: #dcfce7;
	--err: #b91c1c;
	--err-soft: #fee2e2;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(28, 34, 48, .05), 0 6px 24px -12px rgba(28, 34, 48, .18);
	--font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--display: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font: 700 clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem)/1.15 var(--display); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.narrow-sm { max-width: 460px; }
.muted { color: var(--muted); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: var(--white); padding: .5rem 1rem; }

/* ---------- Hlavička ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--white); font: 700 1.25rem/1 var(--display); }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name span { color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a { color: var(--ink-2); text-decoration: none; padding: .5rem .8rem; border-radius: 999px; font-weight: 500; font-size: .97rem; }
.main-nav a:hover, .main-nav a.current { color: var(--ink); background: var(--brand-softer); }
.main-nav .nav-account { border: 1.5px solid var(--line); margin-left: .35rem; }
.badge { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--brand); color: var(--white); font-size: .75rem; font-weight: 700; }
.nav-toggle { display: none; }

/* ---------- Tlačítka, štítky ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-light { background: var(--white); color: var(--brand-ink); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-ink); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: .4rem .9rem; font-size: .9rem; }
.danger { color: var(--err) !important; }

.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .78rem; font-weight: 600; text-decoration: none; line-height: 1.6; }
a.tag:hover { background: #fde1c4; }
.tag-soft { background: #eef2f7; color: #334155; }
.tag-top { background: var(--brand); color: var(--white); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Hlášky ---------- */
.flashes { margin-top: 1.25rem; }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: .5rem; border: 1px solid; }
.flash-success { background: var(--ok-soft); border-color: #bbf7d0; color: #14532d; }
.flash-error { background: var(--err-soft); border-color: #fecaca; color: #7f1d1d; }
.flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.notice { background: var(--brand-softer); border: 1px solid #fcd9af; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.5rem; }

/* ---------- Úvod ---------- */
.hero { background: linear-gradient(160deg, var(--brand-soft) 0%, var(--bg) 70%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: clamp(2.5rem, 6vw, 4.5rem) 0; display: grid; gap: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand-dark); margin-bottom: .6rem; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); max-width: 18ch; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.lead-sm { color: var(--ink-2); max-width: 70ch; }
.search-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: .75rem; display: grid; gap: .6rem; max-width: 900px; }
.search-box input[type=search] { font-size: 1.1rem; padding: .9rem 1rem; border: 0; background: var(--brand-softer); border-radius: var(--radius-sm); }
.search-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; }

.section { padding: clamp(2rem, 4vw, 3.25rem) 0 0; }
.section:last-child { padding-bottom: 3.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.section-head h2 { margin: 0; font: 700 1.6rem/1.2 var(--display); }

.region-grid, .category-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.region-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.region-grid a { display: flex; flex-direction: column; padding: .9rem 1.1rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, transform .15s; }
.region-grid a:hover { border-color: var(--brand); transform: translateY(-1px); }
.region-grid small { color: var(--muted); font-weight: 400; }
.category-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.category-grid a { display: flex; justify-content: space-between; align-items: center; padding: .65rem .95rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.category-grid a:hover { border-color: var(--brand); color: var(--brand-dark); }
.category-grid small { color: var(--muted); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--brand); color: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.cta-band h2 { font: 700 1.6rem/1.2 var(--display); }
.cta-band p { margin: 0; max-width: 60ch; opacity: .95; }
.split { max-width: 760px; }
.split h2 { font: 700 1.6rem/1.2 var(--display); }

/* ---------- Výpis kurzů ---------- */
.page-head { padding: 2rem 0 1rem; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumbs a { color: var(--muted); }
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; padding-bottom: 3.5rem; align-items: start; }
.filters { position: sticky; top: 88px; display: grid; gap: 1rem; }
.filter-form { display: grid; gap: .45rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.filter-form label { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-top: .35rem; }
.filter-form label.check { font-weight: 400; display: flex; gap: .5rem; align-items: center; color: var(--ink); }
.filter-form .btn { margin-top: .6rem; }
.filter-details summary { display: none; }
.aside-box { background: var(--brand-softer); border: 1px solid #fcd9af; border-radius: var(--radius); padding: 1.1rem; font-size: .95rem; }

.course-list { display: grid; gap: .85rem; }
.course-card { display: grid; grid-template-columns: 1fr 230px; gap: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.3rem; transition: border-color .15s, box-shadow .15s; }
.course-card:hover { border-color: #f6b38f; box-shadow: var(--shadow); }
.course-card h3 { font-size: 1.15rem; margin: .35rem 0 .2rem; }
.course-card h3 a { color: var(--ink); text-decoration: none; }
.course-card h3 a:hover { color: var(--brand-dark); text-decoration: underline; }
.course-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.course-company { margin: 0 0 .4rem; font-size: .93rem; color: var(--ink-2); }
.course-company a { color: var(--ink-2); }
.course-excerpt { margin: 0; color: var(--muted); font-size: .93rem; }
.course-facts { margin: 0; display: grid; gap: .5rem; align-content: start; border-left: 1px solid var(--line); padding-left: 1.2rem; }
.course-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.course-facts dd { margin: 0; font-weight: 600; }
.course-facts small { font-weight: 400; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin: 2rem 0 0; }
.pager a, .pager .gap { padding: .45rem .8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.pager a.current { background: var(--brand); border-color: var(--brand); color: var(--white); }
.pager .gap { border: 0; background: none; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--ink-2); }

/* ---------- Detail ---------- */
.course-company-lg { font-size: 1.1rem; color: var(--ink-2); }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; padding-bottom: 2rem; align-items: start; }
.detail-side { position: sticky; top: 88px; display: grid; gap: 1rem; }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .3rem; }
.facts-box { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .9rem; }
.facts-box dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts-box dd { margin: .1rem 0 0; }
.dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.dates li { background: var(--brand-soft); color: var(--brand-ink); padding: .15rem .6rem; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.company-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; font-size: .95rem; }
.company-box h2 { font-size: 1.05rem; }
.company-box p { margin-bottom: .45rem; }
.contact-box { margin-top: 2.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }

/* ---------- Formuláře ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 2rem; }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field > label, .field .label, .dates-field legend { font-weight: 600; font-size: .95rem; }
.field.required > label::after { content: " *"; color: var(--brand); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=url], input[type=tel], select, textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .65rem .8rem; border: 1.5px solid #ddd5ca; border-radius: var(--radius-sm); background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(241, 90, 34, .18); }
textarea { resize: vertical; min-height: 7rem; }
.field-check label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
.field-check input, .check input, .check-grid input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; accent-color: var(--brand); flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .35rem .9rem; }
.check-grid label { display: flex; gap: .5rem; align-items: flex-start; }
.hint { color: var(--muted); font-size: .86rem; }
.error { color: var(--err); font-size: .88rem; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.form-errors { background: var(--err-soft); color: #7f1d1d; padding: .8rem 1rem; border-radius: var(--radius-sm); }
.form-errors p { margin: 0; }
.form-actions { padding-top: .4rem; }
.form-links { margin: 1.2rem 0 0; font-size: .93rem; text-align: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.hp { position: absolute !important; left: -9999px; }
.dates-field { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin: 0; }
.dates-field .hint { margin: 0 0 .6rem; }
.date-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.date-slot.is-hidden { display: none; }
.narrow-form { max-width: 460px; }

/* ---------- Účet a administrace ---------- */
.panel { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0 3.5rem; align-items: start; }
.panel-nav { position: sticky; top: 88px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.panel-company { font-weight: 700; padding: .4rem .6rem .7rem; margin: 0 0 .4rem; border-bottom: 1px solid var(--line); line-height: 1.3; }
.panel-nav nav { display: grid; gap: .1rem; }
.panel-nav a { padding: .5rem .65rem; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.panel-nav a:hover, .panel-nav a.current { background: var(--brand-softer); color: var(--ink); }
.panel-nav a.current { font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.panel-nav .logout { margin-top: .5rem; border-top: 1px solid var(--line); border-radius: 0; color: var(--muted); }
.panel-body h1 { font-size: 1.9rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.panel-head h1 { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; margin: 1.25rem 0; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); display: grid; }
a.stat:hover { border-color: var(--brand); }
.stat strong { font: 700 2rem/1.1 var(--display); color: var(--brand-dark); }
.stat span { color: var(--ink-2); font-size: .9rem; }
.quick-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.two-col-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--brand-softer); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table .actions { white-space: nowrap; }
.table .actions a { margin-right: .6rem; font-size: .9rem; }
.row-muted td { opacity: .6; }
tr.unread td, a.unread { font-weight: 700; }
.inline-search { display: flex; gap: .5rem; margin-bottom: 1rem; max-width: 520px; }
.meta-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin: 0 0 1.25rem; }
.meta-list dt { font-size: .78rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.meta-list dd { margin: 0; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: 1rem; }
.steps.compact li { margin-bottom: .5rem; }
.import-result { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1rem 0; }
.import-result.ok { background: var(--ok-soft); }
.import-result.has-errors { background: var(--err-soft); color: #7f1d1d; }
.import-result h2 { font-size: 1.05rem; }
.columns-help { margin-top: 1rem; }
.columns-help summary { cursor: pointer; font-weight: 600; margin-bottom: .8rem; }
.error-page { padding: 4rem 0; }

/* ---------- Patička ---------- */
.site-footer { background: #1c2230; color: #c9ced8; margin-top: 3rem; font-size: .92rem; }
.page-home .site-footer { margin-top: 0; }
.site-footer a { color: #e6e9ef; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h2 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .8rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.footer-list li { margin-bottom: .3rem; }
.footer-list.two-col { columns: 2; column-gap: 1.5rem; }
.footer-bottom { border-top: 1px solid #333b4d; padding: 1.2rem 0 1.6rem; color: #9aa2b1; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
	.catalog, .detail, .panel { grid-template-columns: 1fr; }
	.filters, .detail-side, .panel-nav { position: static; }
	.filter-details summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 600; padding: .8rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); list-style: none; }
	.filter-details summary::after { content: "▾"; color: var(--brand); }
	.filter-details[open] summary { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
	.filter-details[open] .filter-form { border-radius: 0 0 var(--radius) var(--radius); }
	.filters .aside-box { display: none; }
	.panel-nav nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; cursor: pointer; }
	.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
	.nav-toggle .bar::before { position: absolute; top: -6px; }
	.nav-toggle .bar::after { position: absolute; top: 6px; }
	.main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; box-shadow: var(--shadow); }
	.main-nav.open { display: flex; }
	.main-nav .nav-account { margin: .35rem 0 0; }
	.search-row { grid-template-columns: 1fr; }
	.course-card { grid-template-columns: 1fr; }
	.course-facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: .8rem; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.25rem; }
	.form-row, .form-row-3, .two-col-panel { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
	body { font-size: 16px; }
	.wrap { width: calc(100% - 1.5rem); }
	.course-facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
