/* ==========================================================================
   Téma restelmoto.cz – závodní „čistý“ styl (stejný jazyk jako servis.restelmoto.cz)
   Nadpisy: Rajdhani 700 (verzálky)  ·  Text: Heebo
   Bílá, šedé a černé sekce, doplňková oranžovo-červená. Úvod s videem a rozcestníkem značek.
   ========================================================================== */
@font-face { font-family: "Rajdhani"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/rajdhani-700.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/heebo-400.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/heebo-500.woff2") format("woff2"); }

:root {
  --accent: #ee5219;
  --accent-hover: #ff6a33;
  --on-accent: #ffffff;
  --accent-text: #c33d0b;
  --gray: #f5f5f5;
  --line: #ebebeb;
  --text: #222326;
  --muted: #6e7076;
  --font-text: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Rajdhani", "Arial Narrow", sans-serif;
  --head-weight: 700;
  --head-style: normal;
  --head-spacing: .01em;
  --font-ui: "Rajdhani", "Arial Narrow", sans-serif;
  --ui-weight: 700;
  --ui-spacing: .1em;
  --radius: 0;
  --header-h: 88px;
}
body { font-size: 1rem; line-height: 1.75; color: var(--muted); background: var(--white); }
strong, b { font-weight: 500; color: var(--text); }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: .95; }
h2 { font-size: clamp(2.1rem, 3.4vw, 2.85rem); line-height: 1.05; }
h3 { font-size: 1.3rem; letter-spacing: .02em; line-height: 1.15; }
.lead { font-size: 1.05rem; color: var(--muted); }

/* ---------- Prostrkaný štítek nad nadpisem sekce ---------- */
.label { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .5em; text-transform: uppercase; color: var(--accent); }
.title-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: clamp(44px, 6vw, 72px); text-align: center; }
.title-row h2 { margin: 0; text-align: center; order: 2; }
.title-row .label { order: 1; }
.title-row__line { display: none; }
.head-left .label { margin-bottom: 12px; }
.head-left h2 { margin-bottom: 22px; }
@media (max-width: 767px) { .title-row { align-items: flex-start; text-align: left; } .title-row h2 { text-align: left; } }

/* ---------- Tlačítka s dlouhou šipkou ---------- */
.btn { gap: 16px; min-height: 54px; padding: .9em 1.8em; font-size: .95rem; letter-spacing: .1em; }
.btn .arrow { position: relative; display: inline-block; width: 34px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 48px; }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.4); color: var(--white); }
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn-dark:hover { background: var(--accent); color: var(--white); }

/* ---------- Rohové značky ---------- */
.corners { position: relative; }
.corners::before { content: ""; position: absolute; inset: -16px; z-index: 2; pointer-events: none; transition: inset .45s var(--ease), opacity .3s;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 30px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 2px 30px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 30px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 2px 30px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 30px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 2px 30px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 30px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 2px 30px no-repeat; }
.corners:hover::before { inset: -8px; }

/* ---------- Hlavička: bílá, menu v rámečku, čtvercové tlačítko ---------- */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--line); }
.header.is-scrolled, .header.is-open { height: 72px; background: rgba(255,255,255,.97); box-shadow: 0 10px 30px -20px rgba(0,0,0,.35); }
.header .container { max-width: none; padding: 0 0 0 clamp(20px, 3vw, 40px); }
.header__logo img { height: 46px; }
.header.is-scrolled .header__logo img { height: 38px; }
.nav__list { gap: 0; }
.nav__link { padding: .7rem 1.1rem; border: 1px solid transparent; color: var(--black); font-size: .92rem; letter-spacing: .1em; transition: border-color .25s, color .25s; }
.nav__link::after { display: none; }
.nav__link:hover, .nav__link.is-active { border-color: var(--line); color: var(--accent-text); }
.header__tools { display: flex; align-items: stretch; height: 100%; }
.header__phone { display: flex; flex-direction: column; justify-content: center; padding: 0 24px; border-left: 1px solid var(--line); text-decoration: none; }
.header__phone small { font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.header__phone b { font-family: var(--font-head); font-size: 1.25rem; color: var(--black); line-height: 1.1; }
.header__phone:hover b { color: var(--accent-text); }
.header__square { display: grid; place-items: center; width: var(--header-h); height: 100%; background: var(--accent); color: var(--white); font-size: 26px; text-decoration: none; transition: background-color .25s, width .3s var(--ease); }
.header.is-scrolled .header__square { width: 72px; }
.header__square:hover { background: var(--black); color: var(--white); }
.nav-toggle { display: none; }
@media (max-width: 1100px) { .header__phone { display: none; } }
@media (max-width: 991px) {
  .header .container { padding-left: 20px; }
  .nav { top: var(--header-h); background: var(--white); border-top: 1px solid var(--line); }
  .header.is-scrolled .nav { top: 72px; }
  .nav__link { border: 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; }
  .header__square { display: none; }
  .nav-toggle { display: grid; place-items: center; width: var(--header-h); height: 100%; background: var(--accent); color: var(--white); font-size: 30px; }
  .header.is-scrolled .nav-toggle { width: 72px; }
}

/* ---------- Úvod s videem a rozcestníkem (zachováno) ---------- */
.hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.hero::before { background: linear-gradient(180deg, rgba(10,10,11,.62) 0%, rgba(10,10,11,.66) 55%, rgba(10,10,11,.92) 100%); }
.hero .label { margin-bottom: 18px; }
.hero h1 { max-width: 1000px; margin: 0 auto .45em; text-wrap: balance; }
.hero__actions { justify-content: center; gap: 14px; }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(52px, 8vw, 96px); }
@media (max-width: 991px) { .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.brand-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 200px; padding: 28px 16px 24px; border: 1px solid rgba(255,255,255,.22); color: var(--white); text-decoration: none; background: rgba(10,10,11,.35); transition: border-color .35s, background-color .35s; }
.brand-tile::before { opacity: 0; inset: -10px; }
.brand-tile:hover { border-color: rgba(255,255,255,.4); background: rgba(10,10,11,.6); }
.brand-tile:hover::before { opacity: 1; inset: -6px; }
.brand-tile img { width: 100%; max-width: 170px; height: auto; aspect-ratio: 512 / 280; object-fit: contain; transition: transform .45s var(--ease); }
.brand-tile:hover img { transform: scale(1.06); }
.brand-tile__label { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: #cfd0d4; text-align: center; line-height: 1.4; transition: color .3s; }
.brand-tile:hover .brand-tile__label { color: var(--accent); }
@media (max-width: 575px) { .brand-tile { min-height: 150px; padding: 20px 10px 16px; } .brand-tile__label { font-size: .68rem; letter-spacing: .14em; } }

/* ---------- O nás ---------- */
.about { overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 991px) { .about__grid { grid-template-columns: 1fr; } }
.about__media { position: relative; }
.about__media picture { position: relative; z-index: 1; display: block; }
.checklist { margin-top: 30px; gap: 0; }
.checklist li { padding: 16px 0; border-top: 1px solid #e2e2e2; color: var(--text); transition: padding .3s var(--ease); }
.checklist li:last-child { border-bottom: 1px solid #e2e2e2; }
.checklist li:hover { padding-left: 8px; }
.checklist .ic { font-size: 1.3rem; }

/* ---------- Služby: karty ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { position: relative; display: flex; flex-direction: column; padding: 36px 30px 32px; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.svc::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.svc__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.svc .ic { font-size: 46px; color: var(--black); transition: color .3s, transform .4s var(--ease); }
.svc__num { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: #e4e4e4; transition: color .3s; }
.svc h3 { color: var(--black); margin-bottom: .6em; }
.svc p { margin: 0; font-size: .96rem; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -26px rgba(0,0,0,.35); }
.svc:hover::before { transform: scaleX(1); }
.svc:hover .ic { color: var(--accent); transform: translateY(-3px); }
.svc:hover .svc__num { color: var(--accent); }

/* ---------- Pruh „Motosport je náš život!“ ---------- */
.band { text-align: left; }
.band::before { background: linear-gradient(90deg, rgba(13,13,14,.94) 0%, rgba(13,13,14,.78) 50%, rgba(13,13,14,.45) 100%); }
.band .label { margin-bottom: 14px; }
.band h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .95; max-width: 12ch; }
.band p { margin: 0 0 30px; max-width: 520px; color: #c9cacf; }
.band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
@media (max-width: 991px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-row { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid #e2e2e2; }
.contact-row:first-child { border-top: 1px solid #e2e2e2; }
.contact-row__icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--accent); font-size: 30px; transition: transform .4s var(--ease); }
.contact-row:hover .contact-row__icon { transform: translateY(-3px); }
.contact-row__label { display: block; margin-bottom: 4px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--black); }
.contact-row__value { display: block; width: fit-content; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; color: var(--black); text-decoration: none; transition: color .25s; }
.contact-row__value:hover { color: var(--accent-text); }
.contact-row__text { margin: 0; color: var(--text); }
.contact-row__muted { margin: 2px 0 14px; }
.contact-row .btn-dark { min-height: 44px; padding: .55em 1.2em; font-size: .85rem; }
.contact-legal { margin: 24px 0 0; font-size: .95rem; line-height: 1.7; }
.contact-legal strong { color: var(--text); }
.contact-layout .map-frame { position: relative; height: 100%; min-height: 380px; margin: 16px; overflow: visible; background: transparent; }
.contact-layout .map-frame iframe { height: 100%; min-height: 380px; }

/* ---------- Patička ---------- */
.footer { border-top: 0; }
.footer h4 { letter-spacing: .08em; }
.callbar .btn { font-size: 1rem; }

/* ---------- Podstránka: Ochrana osobních údajů ---------- */
.page-head .container { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.page-head h1 { margin: 0 0 .3em; color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: .95; max-width: 14ch; }
.page-head p { margin: 0; max-width: 520px; color: #c9cacf; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(255,255,255,.4); }
.crumbs a { color: var(--white); text-decoration: none; transition: color .25s; }
.crumbs a:hover { color: var(--accent); }

.legal { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.legal__aside { position: sticky; top: 104px; }
.legal__card { padding: 28px 28px 30px; background: var(--gray); border-top: 3px solid var(--accent); }
.legal__card h2 { margin: 0 0 14px; font-size: 1.25rem; letter-spacing: .08em; }
.legal__card p { margin: 0; font-size: .95rem; line-height: 1.75; color: var(--muted); }
.legal__card strong { color: var(--black); }
.toc { margin: 24px 0 0; padding: 0; list-style: none; }
.toc a { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; color: var(--black); text-decoration: none; transition: color .25s, padding-left .3s var(--ease); }
.toc a span { flex: none; min-width: 2.4em; color: var(--accent); }
.toc a:hover { padding-left: 6px; color: var(--accent-text); }

.prose { max-width: 780px; }
.prose h2 { display: flex; align-items: baseline; gap: .45em; margin: 2em 0 .7em; font-size: clamp(1.5rem, 2.5vw, 1.95rem); line-height: 1.1; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 span { flex: none; color: var(--accent); }
.prose h3 { margin: 1.8em 0 .6em; font-size: 1.25rem; }
.prose p, .prose li { line-height: 1.8; }
.prose ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose ul li { position: relative; padding: 5px 0 5px 24px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; height: 2px; background: var(--accent); }
.legal__updated { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 991px) {
  .legal { grid-template-columns: 1fr; }
  .legal__aside { position: static; }
  .toc { display: none; }
}
