/* ==========================================================================
   PAGES – obsahové stránky: Prodej značek, Fafatech s.r.o., Půjčovna,
   Reklamní činnost, Kontakty, Partneři, Kariéra
   ========================================================================== */

/* Aktivní položka v hlavní navigaci */
.nav__link.is-current { background: var(--c-dark-2); box-shadow: inset 0 -3px 0 var(--c-primary); }

/* ---------- Hlavička stránky (tmavý pruh s fotkou) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 28px 64px;
  background: var(--c-dark);
  color: #fff;
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 420px at 0% 0%, rgba(8, 82, 215, .45), transparent 70%),
    linear-gradient(90deg, rgba(30, 37, 47, .96) 0%, rgba(30, 37, 47, .82) 45%, rgba(30, 37, 47, .35) 100%);
}

.page-hero .crumbs { color: rgba(255, 255, 255, .6); }
.page-hero .crumbs span { color: #fff; }
.page-hero .crumbs a:hover { color: #fff; }

.page-hero__inner { max-width: 720px; margin-top: 44px; }
.page-hero .eyebrow { color: #7fa8f5; }

.page-hero__title {
  font-family: var(--f-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.page-hero__lead {
  margin-top: 16px;
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, .78);
}

.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero__actions .btn { height: 44px; padding-inline: 22px; }

/* fakta pod nadpisem (čísla) */
.page-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.page-hero__facts strong { display: block; font-family: var(--f-head); font-size: 26px; font-weight: 700; line-height: 1.1; }
.page-hero__facts span { font-size: var(--fs-sm); color: rgba(255, 255, 255, .65); }

.page { padding-bottom: 80px; }
.page:has(> .band--last:last-child, > .why-band:last-child) { padding-bottom: 0; }

/* Obecný dvousloupec */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: start;
}

.prose { font-size: var(--fs-md); line-height: 1.65; color: #38414d; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--c-text); }

/* Karta s modrým podkladem (info / CTA) */
.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: #eef4ff;
  border: 1px solid #d6e3fb;
  font-size: var(--fs-base);
}

.note > .bi { flex-shrink: 0; font-size: 22px; color: var(--c-primary); line-height: 1.2; }
.note strong { font-family: var(--f-head); }

/* ---------- Prodej značek ---------- */
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.brand-filter button {
  height: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: border-color var(--t), color var(--t), background var(--t);
}

.brand-filter button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.brand-filter button.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  padding: 0 20px 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.brand-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.brand-card[hidden] { display: none; }

.brand-card__logo {
  display: grid;
  place-items: center;
  height: 120px;
  margin: 0 -20px 16px;
  border-bottom: 1px solid var(--c-border);
}

.brand-card__logo img { max-width: 150px; max-height: 56px; width: auto; height: auto; object-fit: contain; }

.brand-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.brand-card__name { font-family: var(--f-head); font-size: var(--fs-md); font-weight: 700; }
.brand-card__cat { font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.brand-card__text { flex: 1; font-size: var(--fs-sm); color: var(--c-muted); }
.brand-card .link-more { margin-top: 14px; }

.brand-card--featured { border-color: #d6e3fb; background: linear-gradient(180deg, #f5f8ff, #fff 140px); }
.brand-card--featured .brand-card__logo { border-color: #d6e3fb; }
.brand-card--featured .tag { margin-left: auto; }

/* ---------- Fafatech s.r.o. – časová osa ---------- */
.timeline { position: relative; display: grid; gap: 20px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 47px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--c-primary), #d6e3fb);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.timeline__year {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 700;
  box-shadow: 0 0 0 6px #fff;
}

.timeline__body {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.timeline__body h3 { font-family: var(--f-head); font-size: var(--fs-md); font-weight: 700; margin-bottom: 6px; }
.timeline__body p { color: #38414d; }

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}

.service .bi { font-size: 26px; color: #7fa8f5; }
.service strong { display: block; margin: 12px 0 6px; font-family: var(--f-head); font-size: var(--fs-md); }
.service p { font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); }

.assortment { display: flex; flex-wrap: wrap; gap: 8px; }

.assortment span {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* ---------- Tabulky ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.table th, .table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--c-border); }
.table thead th { background: var(--c-bg-soft); font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfd; }
.table td:first-child { color: var(--c-muted); }
.table td strong { font-family: var(--f-head); }
.table--prices td:not(:first-child), .table--prices th:not(:first-child) { text-align: right; }
.table--prices td:first-child { color: var(--c-text); font-weight: 600; white-space: nowrap; }
.table .is-high { color: var(--c-red); }
.table .muted { font-style: italic; }

/* ---------- Půjčovna ---------- */
.rent-card {
  position: sticky;
  top: 20px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-hover);
}

.rent-card__price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.rent-card__price strong { font-family: var(--f-head); font-size: 34px; font-weight: 700; line-height: 1; }
.rent-card__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.rent-card small { color: var(--c-muted); }

.rent-card__list { display: grid; gap: 10px; margin: 20px 0 22px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.rent-card__list li { display: flex; gap: 10px; font-size: var(--fs-sm); }
.rent-card__list .bi { color: #1a9a4b; font-size: 16px; }

.rent-card .btn { width: 100%; height: 46px; font-size: var(--fs-base); }
.rent-card .btn + .btn { margin-top: 10px; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.spec {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}

.spec .bi { font-size: 20px; color: var(--c-primary); }
.spec strong { display: block; margin-top: 8px; font-family: var(--f-head); font-size: var(--fs-lg); line-height: 1.1; }
.spec span { font-size: var(--fs-xs); color: var(--c-muted); }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  font-weight: 600;
}

.feature .bi {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--c-primary);
  font-size: 18px;
}

.floorplan {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
}

.floorplan img { width: 100%; height: auto; }

.conditions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.conditions li { display: flex; gap: 12px; font-size: var(--fs-base); color: #38414d; }
.conditions .bi { flex-shrink: 0; margin-top: 2px; color: var(--c-primary); }

/* ---------- Formuláře ---------- */
.form-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
}

.form-card__title { font-family: var(--f-head); font-size: var(--fs-xl); font-weight: 700; }
.form-card__lead { margin: 6px 0 24px; color: var(--c-muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field--full { grid-column: 1 / -1; }

.field label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 700; }
.field label .req { color: var(--c-red); }

.field input,
.field textarea,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd6e0;
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  transition: border-color var(--t), box-shadow var(--t);
}

.field textarea { height: 130px; padding-block: 12px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(8, 82, 215, .12); }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.form-foot small { max-width: 420px; font-size: var(--fs-xs); color: var(--c-muted); }
.form-foot small a { color: var(--c-primary); text-decoration: underline; }
.form-foot .btn { height: 46px; padding-inline: 28px; font-size: var(--fs-base); }

/* ---------- Kontakty ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -36px;
  position: relative;
  z-index: 1;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-hover);
  transition: transform var(--t), border-color var(--t);
}

a.contact-card:hover { transform: translateY(-3px); border-color: #c9d4e6; }

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 18px;
}

.contact-card small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.contact-card strong { font-family: var(--f-head); font-size: var(--fs-md); }
.contact-card > span:not(.contact-card__icon) { font-size: var(--fs-sm); color: var(--c-muted); }

.contact-aside { display: grid; gap: 16px; }

.info-list {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}

.info-list h3 { margin-bottom: 14px; font-family: var(--f-head); font-size: var(--fs-md); font-weight: 700; }
.info-list dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: var(--fs-base); }
.info-list dt { color: var(--c-muted); }
.info-list dd { margin: 0; font-weight: 600; }

.hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.hours li:last-child { border-bottom: 0; }
.hours .is-closed { color: var(--c-muted); }

.map {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: var(--c-bg-soft);
}

.map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------- Reklamní činnost ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.benefit {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.benefit__img { aspect-ratio: 3 / 2; overflow: hidden; }
.benefit__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.benefit:hover .benefit__img img { transform: scale(1.04); }
.benefit__body { padding: 20px 22px 24px; }
.benefit__num { font-family: var(--f-head); font-size: var(--fs-xs); font-weight: 700; color: var(--c-primary); letter-spacing: .08em; }
.benefit h3 { margin: 6px 0 8px; font-family: var(--f-head); font-size: var(--fs-md); font-weight: 700; }
.benefit p { font-size: var(--fs-sm); color: var(--c-muted); }

.series { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.series li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.series .bi { color: #7fa8f5; }

.season-tabs { display: flex; gap: 8px; margin-bottom: 18px; }

.season-tabs button {
  height: 38px;
  padding-inline: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: #fff;
  font-family: var(--f-head);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.season-tabs button.is-active { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

.race-list { display: grid; gap: 10px; }

.race {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
}

.race__date {
  display: grid;
  place-items: center;
  height: 56px;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  font-family: var(--f-head);
  line-height: 1.05;
  text-align: center;
}

.race__date strong { font-size: 20px; }
.race__date small { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--c-muted); }
.race__name { font-family: var(--f-head); font-weight: 700; }
.race__meta { font-size: var(--fs-sm); color: var(--c-muted); }
.race__state { font-size: var(--fs-xs); font-weight: 600; color: #1a9a4b; display: flex; align-items: center; gap: 6px; }

.empty {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed #cfd6e0;
  border-radius: var(--radius-lg);
  color: var(--c-muted);
}

.empty .bi { display: block; margin-bottom: 10px; font-size: 32px; color: #b4bfcd; }
.empty strong { display: block; margin-bottom: 4px; font-family: var(--f-head); color: var(--c-text); font-size: var(--fs-md); }

.photo-wide { overflow: hidden; border-radius: var(--radius-lg); }
.photo-wide img { width: 100%; height: 100%; object-fit: cover; }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--c-border);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: border-color var(--t), color var(--t);
}

.social-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.social-btn .bi-facebook { color: #1877f2; }
.social-btn .bi-instagram { color: #d62976; }
.social-btn .bi-tiktok { color: #111; }

/* ---------- Partneři ---------- */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.partner {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--t), transform var(--t);
}

.partner:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.partner__logo { display: flex; align-items: center; height: 72px; margin-bottom: 18px; }
.partner__logo img { max-height: 56px; max-width: 180px; width: auto; }
.partner h3 { font-family: var(--f-head); font-size: var(--fs-md); font-weight: 700; margin-bottom: 6px; }
.partner p { flex: 1; color: var(--c-muted); font-size: var(--fs-sm); }
.partner .link-more { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rent-card { position: static; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .brand-grid, .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits, .services { grid-template-columns: 1fr; }
  .features, .conditions { grid-template-columns: 1fr; }
  .page-hero__title { font-size: 32px; }
}

@media (max-width: 640px) {
  .page-hero { padding-block: 20px 52px; }
  .page-hero__inner { margin-top: 28px; }
  .page-hero__title { font-size: 28px; }
  .brand-grid, .partners, .contact-cards, .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .timeline::before { left: 19px; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; padding-left: 44px; }
  .timeline__year { position: absolute; left: 0; top: 0; width: 40px; height: 40px; font-size: 0; }
  .timeline__year::after { content: "•"; font-size: 20px; }
  .timeline__body h3::before { content: attr(data-year) " · "; color: var(--c-primary); }
  .race { grid-template-columns: 56px minmax(0, 1fr); }
  .race__state { display: none; }
}
