﻿/* SM Auto Group, verze „jako velké autobazary“: světlý obchodní vzhled, oranž z loga, grafit. */
@import url("../fonts/fonts.css");

:root {
  --bg: #FFFFFF; --bg2: #F2F3F5; --line: #E1E4E8; --ink: #1A1D21; --ink2: #555D66;
  --or: #EE6A12; --or-h: #F57B26; --or-t: #B4470A; --dark: #1D2125; --dark2: #2A3036; --blue: #1F3F99;
  --f-head: "Barlow", system-ui, sans-serif; --f-num: "Barlow Condensed", "Arial Narrow", sans-serif; --f-text: "Barlow", system-ui, sans-serif;
  --r: 10px; --r-s: 6px; --bar: 72px; --top: 36px;
  --sh: 0 1px 2px rgba(26,29,33,.06), 0 6px 18px -8px rgba(26,29,33,.18);
  --sh2: 0 2px 4px rgba(26,29,33,.08), 0 16px 32px -14px rgba(26,29,33,.3);
  --ease: cubic-bezier(.23,1,.32,1);
  /* tokeny podstránek (stranky.css a STK známka) */
  --sc-canvas: var(--bg2); --sc-surface: #fff; --sc-ink: var(--ink); --sc-ink-soft: var(--ink2); --sc-accent: var(--or);
  --sc-accent-ink: var(--ink); --sm-orange-text: var(--or-t); --sm-gravel: #E4E6E9; --sm-night: #16191C; --sm-night-soft: #A9B0B6;
  --sm-plate-blue: var(--blue); --sc-font-display: var(--f-num); --sc-font-text: var(--f-text); --sc-shadow-color: 210 14% 20%;
  --sm-bar-h: calc(var(--bar) + var(--top)); --sc-r-sm: var(--r-s); --sc-r-md: var(--r); --sc-r-lg: 14px;
  --sc-ease-out: var(--ease); --sc-gutter: clamp(1rem, 4vw, 2.5rem);
  --sc-t-lg: clamp(1.1rem, 1rem + .4vw, 1.3rem); --sc-t-xl: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
  --sc-t-2xl: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); --sc-t-3xl: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); --sc-t-4xl: clamp(2.6rem, 1.8rem + 3.4vw, 4.2rem);
  --sc-3: .75rem; --sc-4: 1rem; --sc-5: 1.5rem; --sc-6: 2rem; --sc-7: 3rem; --sc-8: 4rem; --sc-t-base: 1rem;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--f-text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--or); color: var(--ink); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
p { margin: 0; text-wrap: pretty; }
.wrap, .sm-wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.sm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-sr:focus { position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip: auto; z-index: 99; background: #fff; padding: 8px 12px; }

/* Horní lišta a hlavička */
.top { background: var(--dark); color: #C9CED3; font-size: .88rem; height: var(--top); }
.top__in { max-width: 80rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); height: 100%; display: flex; align-items: center; gap: 22px; }
.top a { color: #E6E9EC; text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top__mail { margin-left: auto; }
.bar { position: sticky; top: 0; z-index: 60; height: var(--bar); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; padding: 0 clamp(1rem, 3vw, 2.5rem); box-shadow: 0 6px 16px -14px rgba(26,29,33,.35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 58px; }
.brand span { font-family: var(--f-num); font-weight: 700; font-size: 1.45rem; line-height: 1; display: flex; flex-direction: column; }
.brand small { font-family: var(--f-text); font-weight: 500; font-size: .78rem; color: var(--ink2); margin-top: 3px; }
.nav { display: flex; gap: clamp(.6rem, 1.4vw, 1.4rem); margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .97rem; padding: 24px 0 22px; border-bottom: 3px solid transparent; white-space: nowrap; transition: border-color 160ms var(--ease), color 160ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--or); }
.nav-n { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 11px; background: var(--or); color: var(--ink); font-size: .78rem; text-align: center; margin-left: 2px; }
.call { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; background: var(--or); color: var(--ink); padding: 8px 16px; border-radius: var(--r-s); transition: background-color 160ms var(--ease); }
.call:hover { background: var(--or-h); }
.call svg { width: 20px; height: 20px; }
.call span { display: flex; flex-direction: column; font-family: var(--f-num); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.call small { font-family: var(--f-text); font-weight: 600; font-size: .72rem; margin-bottom: 2px; }
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .call { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--ink); cursor: pointer; }
  .nav.is-open { display: flex; flex-direction: column; gap: 0; position: fixed; top: var(--bar); left: 0; right: 0; margin: 0; background: #fff; padding: 6px clamp(1rem, 3vw, 2.5rem) 18px; border-bottom: 1px solid var(--line); box-shadow: var(--sh2); }
  .nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
}
@media (max-width: 760px) { .top__hide { display: none; } }
@media (max-width: 520px) {
  :root { --bar: 64px; }
  .brand small { display: none; }
  .bar { gap: 10px; padding: 0 12px; }
  .brand { gap: 6px; }
  .brand span { font-size: 1.08rem; }
  .brand img { width: 46px; }
  .call small { display: none; }
  .call span { font-size: 1.15rem; }
  .call { padding: 9px 12px; }
  .top__mail { display: none; }
}

/* Tlačítka */
.btn, .sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font: 600 1.02rem/1 var(--f-text); padding: 14px 22px; border-radius: var(--r-s); border: 0; text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease), transform 120ms var(--ease), box-shadow 160ms var(--ease); }
.btn:active, .sm-btn:active { transform: translateY(1px); }
.btn--main, .sm-btn--main { background: var(--or); color: var(--ink); }
.btn--main:hover, .sm-btn--main:hover { background: var(--or-h); }
.btn--dark, .sm-btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover, .sm-btn--dark:hover { background: #343B42; }
.btn--line, .sm-btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #C5CAD0; }
.btn--line:hover, .sm-btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn svg, .sm-btn svg { width: 18px; height: 18px; }

/* Karta vozu */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 20px; }
.card { display: flex; }
.card[hidden] { display: none; }
.card > a { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .card > a:hover { box-shadow: var(--sh2); border-color: #CDD2D8; } .card > a:hover .card__img img { transform: scale(1.035); } .card > a:hover .card__btn { background: var(--or-h); } }
.card__img { position: relative; aspect-ratio: 4 / 3; background: var(--bg2); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.card__count { position: absolute; right: 8px; bottom: 8px; background: rgba(26,29,33,.78); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.tag { font-size: .76rem; font-weight: 600; padding: 3px 7px; border-radius: 4px; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.tag--new { background: #FDE8D7; color: var(--or-t); }
.tag--fin { background: var(--dark); color: #fff; }
.card__name { font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.card__sub { font-size: .9rem; color: var(--ink2); min-height: 1.4em; }
.specs { list-style: none; padding: 10px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: .9rem; color: var(--ink2); }
.specs li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.specs svg { width: 17px; height: 17px; flex: none; color: #8A939C; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font-family: var(--f-num); font-weight: 700; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.card__price--deal { font-size: 1.3rem; }
.card__btn { background: var(--or); color: var(--ink); font-weight: 600; font-size: .9rem; padding: 9px 12px; border-radius: var(--r-s); white-space: nowrap; transition: background-color 160ms var(--ease); }

/* Sekce */
.sec { padding-block: clamp(3rem, 6vw, 5rem); }
.sec--grey { background: var(--bg2); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 28px; margin-bottom: 28px; }
.sec__head p { color: var(--ink2); max-width: 46ch; margin-top: 6px; }
.more-link { font-weight: 600; }

/* STK známka, hodiny */
.sm-stk { width: 112px; aspect-ratio: 1; filter: drop-shadow(0 3px 4px rgba(26,29,33,.3)); }
.sm-stk text { font-family: var(--f-num); font-weight: 600; }
.hours, .sm-hours { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; margin: 8px 0 0; }
.hours dd, .sm-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-today, .sm-hours .is-today { color: var(--or-t); font-weight: 600; }
.foot .hours .is-today { color: var(--or); }

/* Patička */
.foot { background: var(--dark); color: #DDE1E5; padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem; }
.foot a { color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.foot h2 { font-size: 1.1rem; margin-bottom: 12px; color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot p { color: #A9B0B6; }
.foot__brand img { width: 92px; margin-bottom: 12px; }
.foot__phone { font-family: var(--f-num); font-weight: 700; font-size: 1.9rem; text-decoration: none; display: inline-block; }
.foot__small { margin-top: 44px; padding-top: 18px; border-top: 1px solid #343A40; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: .88rem; color: #A9B0B6; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; gap: 26px; } }

/* Podstránky ze staré verze: přizpůsobení */
.sm-page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.sm-page-head h1 { font-size: var(--sc-t-4xl); }
.sm-page-head p { margin-top: 12px; max-width: 52ch; font-size: var(--sc-t-lg); color: var(--ink2); }
.sm-section { padding-block: clamp(3rem, 6vw, 5rem); }
.sm-lead { font-size: var(--sc-t-lg); color: var(--ink2); max-width: 52ch; }
.sm-soft { color: var(--ink2); }
.sm-crumb { font-size: .9rem; color: var(--ink2); margin: 0 0 14px; }
.sm-crumb a { color: var(--ink2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* živá data: slevy, chybějící fotka, načítání */
.tag--sale { background: #B42318; color: #fff; }
.card__price s.old, .pbox__price s.old { display: block; font-size: .55em; color: var(--ink2); font-weight: 600; text-decoration-thickness: 2px; }
.card__nofoto { display: grid; place-items: center; height: 100%; color: var(--ink2); font-size: .9rem; }
.dt__loading { padding: 40px 0 80px; color: var(--ink2); font-size: 1.1rem; }
[aria-busy="true"] .card { opacity: .6; }
