/* =========================================================
   Autoservis Smolka
   Barvy a písmo vychází z loga: petrolejová modř, žlutá, bílá,
   roztažená kurzíva (Archivo, osa wdth).
   ========================================================= */

:root {
  --petrol: #16313D;
  --petrol-deep: #0E232D;
  --petrol-soft: #23495A;
  --yellow: #F2AE1C;
  --yellow-deep: #D99504;
  --chalk: #ECEFF0;
  --paper: #FFFFFF;
  --ink: #16313D;
  --steel: #587080;
  --line: #CBD4D8;
  --danger: #C2361B;
  --ok: #2F8A4E;

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --wide: "wdth" 125;
  --narrow: "wdth" 78;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--petrol); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

section[id] { scroll-margin-top: 72px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografie ---------- */
.h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  font-weight: 850;
  font-style: italic;
  font-variation-settings: var(--wide);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.h2--light { color: var(--paper); }
.h3 { font-size: 19px; font-weight: 750; margin: 36px 0 10px; }

/* ---------- Tlačítka ---------- */
.btn {
  --skew: -10deg;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: var(--r-sm);
  font-weight: 800; font-size: 16px; font-style: italic;
  font-variation-settings: "wdth" 112;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--petrol-deep); }
.btn--yellow:hover { background: #FFC234; }
.btn--dark { background: var(--petrol); color: var(--paper); }
.btn--dark:hover { background: var(--petrol-soft); }
.btn--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--paper); }
.btn--line { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 2px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 2px var(--petrol); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link { color: var(--petrol); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.link:hover { text-decoration-color: var(--petrol); }

/* ---------- Hlavička ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--petrol);
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; clip-path: circle(47.5%); }
.brand__name {
  font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: .01em;
  font-variation-settings: var(--wide); text-transform: uppercase; color: var(--yellow);
}
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; color: rgba(255,255,255,.82); padding: 6px 0; }
.nav a:hover { color: var(--paper); box-shadow: 0 2px 0 var(--yellow); }
.status { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #8A9AA3; }
.status.is-open .status__dot { background: #4CD07D; box-shadow: 0 0 0 4px rgba(76,208,125,.18); }
.status.is-open .status__text { color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--petrol);
  color: var(--paper);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(56px, 8vw, 112px);
  position: relative;
  display: flex; align-items: center;
  min-height: min(720px, calc(100svh - 72px));
}
.hero__copy { position: relative; z-index: 2; max-width: 800px; }
.hero__place { margin: 0 0 18px; font-weight: 600; color: var(--yellow); font-size: 16px; }
.hero__title {
  margin: 0;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-variation-settings: var(--wide);
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: .92; letter-spacing: -0.015em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__amp { color: var(--yellow); }
.brush { width: min(560px, 92%); height: 34px; margin: 14px 0 26px -4px; overflow: visible; }
.brush__path { fill: none; stroke: var(--yellow); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 0; }
.brush__path--thin { stroke-width: 4; opacity: .7; }
.hero__lead { max-width: 30em; margin: 0 0 32px; font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Auto na zvedáku */
.hero__lift {
  position: absolute; z-index: 1; right: calc(var(--gutter) - 20px); bottom: 0;
  width: min(590px, 42vw);
  pointer-events: none;
}
.lift { width: 100%; height: auto; overflow: visible; }
.lift .l-floor { stroke: rgba(255,255,255,.28); stroke-width: 2; stroke-dasharray: 14 10; }
.lift .l-shadow { fill: #050F14; opacity: .35; }
.lift .l-base { fill: var(--petrol-deep); stroke: var(--paper); stroke-width: 3; }
.lift .l-arm line:first-child { stroke: var(--paper); stroke-width: 16; stroke-linecap: round; }
.lift .l-arm line:last-child { stroke: var(--petrol-soft); stroke-width: 9; stroke-linecap: round; }
.lift .l-piston { stroke: #9FB3BC; stroke-width: 6; stroke-linecap: round; }
.lift .l-pivot { fill: var(--yellow); stroke: var(--paper); stroke-width: 3; }
.lift .l-platform { fill: var(--yellow); }
.lift .l-hazard { opacity: .9; }
.lift .l-pad { fill: var(--paper); }
.lift .l-body { fill: var(--petrol); stroke: var(--paper); stroke-width: 4; stroke-linejoin: round; }
.lift .l-glass { fill: rgba(255,255,255,.1); stroke: var(--paper); stroke-width: 3; stroke-linejoin: round; }
.lift .l-line { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lift .l-exhaust { fill: none; stroke: #9FB3BC; stroke-width: 5; stroke-linecap: round; }
.lift .l-light { fill: var(--yellow); }
.lift .l-tail { fill: #E04A2F; }
.lift .l-wheel circle { fill: var(--petrol-deep); stroke: var(--paper); stroke-width: 4; }
.lift .l-wheel .l-rim { fill: var(--petrol); stroke-width: 3; }
.lift .l-wheel .l-hub { fill: var(--paper); stroke: none; }
.lift .l-caliper { fill: var(--yellow); }

/* Úvodní animace: tah štětce se dokreslí */
@media (prefers-reduced-motion: no-preference) {
  .js .brush__path { animation: brush .7s cubic-bezier(.6,0,.3,1) both .5s; }
  .js .brush__path--thin { animation-delay: .7s; }
  @keyframes brush { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
}

/* ---------- Sezónní pruh ---------- */
.season {
  position: relative;
  background: var(--yellow);
  color: var(--petrol-deep);
}
.season::before {
  /* otisk dezénu pneumatiky */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: repeating-linear-gradient(-60deg, var(--petrol) 0 9px, transparent 9px 22px);
  opacity: .9;
}
.season__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
}
.season__text {
  margin: 0; max-width: 40ch;
  font-weight: 800; font-style: italic; font-variation-settings: "wdth" 110;
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1.15;
}

/* ---------- Služby ---------- */
.services { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 20px 48px; align-items: end; margin-bottom: 44px; }
.section-head__note { margin: 0; color: var(--steel); }

.svc { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--petrol); }
.svc__item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 170px 140px;
  gap: 16px 36px; align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.svc__name {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 24px); line-height: 1.05;
  font-weight: 850; font-style: italic; font-variation-settings: "wdth" 115;
}
.svc__desc { margin: 0; color: var(--steel); max-width: 46ch; }
.svc__price { margin: 0; font-weight: 800; font-size: 20px; font-variation-settings: "wdth" 100; line-height: 1.2; }
.svc__price small { display: block; font-weight: 500; font-size: 14px; color: var(--steel); }
.svc__price--ask { font-size: 16px; font-weight: 700; color: var(--steel); }
.svc__item .btn { justify-self: end; }

.svc__item--promo .svc__price { color: var(--petrol); }
.svc__tag {
  display: inline-block; margin-left: 10px; padding: 2px 9px 3px; vertical-align: 4px;
  background: var(--yellow); color: var(--petrol-deep); border-radius: 3px;
  font-size: 13px; font-weight: 800; font-style: normal; font-variation-settings: "wdth" 90;
}

/* Pneuservis: rozbalené podpoložky */
.svc__item--group { align-items: start; }
.svc__item--group .svc__name { padding-top: 6px; }
.svc__subs { grid-column: 2 / -1; display: grid; gap: 0; }
.svc__sub {
  display: grid; grid-template-columns: minmax(0, 1fr) 170px 140px; gap: 8px 36px; align-items: center;
  padding: 14px 0; border-top: 1px dashed var(--line);
}
.svc__sub:first-child { border-top: 0; padding-top: 0; }
.svc__sub h4 { margin: 0 0 2px; font-size: 18px; font-weight: 750; }
.svc__sub p { margin: 0; color: var(--steel); font-size: 15.5px; }
.svc__sub .btn { justify-self: end; }

/* ---------- Uskladnění ---------- */
.storage { background: var(--petrol); color: var(--paper); padding: clamp(64px, 9vw, 110px) 0; position: relative; overflow: hidden; }
.storage::after {
  /* stopa pneumatiky přes celou šířku */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 16px, transparent 16px 30px);
  -webkit-mask: linear-gradient(transparent, #000);
  mask: linear-gradient(transparent, #000);
}
.storage__grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 48px 80px; align-items: center; }
.storage__lead { color: rgba(255,255,255,.8); max-width: 36em; margin: 22px 0 0; font-size: 18px; }

.calc { background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: 28px; position: relative; z-index: 1; }
.calc__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.calc__label { font-weight: 700; }
.calc__months { font-weight: 700; color: var(--petrol); }
.stepper { display: flex; align-items: center; border: 2px solid var(--line); border-radius: var(--r-sm); }
.stepper button { width: 44px; height: 42px; border: 0; background: none; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--petrol); }
.stepper button:hover { background: var(--chalk); }
.stepper output { min-width: 36px; text-align: center; font-weight: 800; font-size: 18px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0 0 22px; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--yellow) var(--fill, 50%), var(--chalk) var(--fill, 50%)); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--chalk); }
.range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--yellow); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--petrol); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--petrol); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--petrol); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--petrol); }

.calc__total { display: flex; align-items: baseline; justify-content: space-between; border-top: 3px solid var(--petrol); padding-top: 16px; font-weight: 700; }
.calc__price { font-size: 32px; font-weight: 900; font-style: italic; font-variation-settings: var(--wide); line-height: 1; }
.calc__note { margin: 12px 0 0; font-size: 14px; color: var(--steel); }
.calc__btn { width: 100%; margin-top: 20px; white-space: normal; text-align: center; }

/* ---------- Recenze ---------- */
.reviews { padding: clamp(64px, 9vw, 110px) 0; }
.reviews__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px 72px; align-items: start; }
.reviews__score { position: sticky; top: 104px; }
.score { display: flex; align-items: center; gap: 18px; margin: 28px 0 18px; }
.score__num {
  font-size: clamp(52px, 5vw, 68px); line-height: .9; font-weight: 900; font-style: italic;
  font-variation-settings: var(--wide); letter-spacing: -0.02em;
}
.score__meta { display: grid; gap: 2px; color: var(--steel); font-weight: 600; }
.stars { color: var(--yellow-deep); letter-spacing: 2px; font-size: 22px; line-height: 1; font-style: normal; }

.reviews__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 3px solid var(--petrol); }
.quote { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 0 0 14px; font-size: 17px; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.quote figcaption .stars { font-size: 15px; letter-spacing: 1px; }
.quote--lead { grid-column: 1 / -1; }
.quote--lead blockquote {
  font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; font-weight: 750; font-style: italic;
  font-variation-settings: "wdth" 108; max-width: 30em;
}
.quote--lead blockquote::before { content: "„"; color: var(--yellow-deep); }
.quote--lead blockquote::after { content: "“"; color: var(--yellow-deep); }

/* ---------- Rezervace ---------- */
.booking { background: var(--paper); padding: clamp(64px, 9vw, 110px) 0; }
.booking__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 40px 72px; align-items: start; }
.booking__lead { margin: 22px 0 0; color: var(--steel); max-width: 34em; }
.booking__phone { margin-bottom: 0; font-size: clamp(26px, 2.6vw, 34px); white-space: nowrap; }
.booking__embed:empty { display: none; }
.booking__embed iframe { display: block; width: 100%; border: 0; }
.booking__placeholder {
  display: grid; justify-items: start; gap: 4px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px dashed var(--line); border-radius: var(--r-md);
  background: var(--chalk);
}
.booking__placeholder[hidden] { display: none; }
.booking__placeholder p { margin: 0; color: var(--steel); max-width: 36em; }
.booking__placeholder .btn { margin-top: 18px; }
.booking__placeholder-title { color: var(--petrol) !important; font-size: 22px; font-weight: 800; font-style: italic; font-variation-settings: "wdth" 112; }

/* ---------- Kontakt ---------- */
.contact { padding: clamp(64px, 9vw, 110px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px 72px; }
.contact__phone {
  display: inline-block; margin: 26px 0 18px;
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; font-style: italic; font-variation-settings: var(--wide);
  text-decoration: none; line-height: 1; letter-spacing: -0.01em;
  background: linear-gradient(transparent 72%, var(--yellow) 72% 92%, transparent 92%);
}
.contact__addr { font-style: normal; font-size: 18px; margin-bottom: 12px; }
.contact__fb { margin-top: 26px; }
.contact__map { min-height: 420px; border-radius: var(--r-md); overflow: hidden; background: #d9dfe2; }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.75); }

.hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; }
.hours tr.is-today th::after { content: "dnes"; margin-left: 10px; padding: 1px 7px 2px; background: var(--yellow); border-radius: 3px; font-size: 12px; font-weight: 800; vertical-align: 2px; }

/* ---------- Patička ---------- */
.foot { background: var(--petrol-deep); color: rgba(255,255,255,.7); padding: 44px 0 52px; font-size: 15px; }
.foot__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot img { width: 88px; height: 88px; clip-path: circle(47.5%); }
.foot p { margin: 0; }
.foot a { color: var(--paper); }
.foot__copy { margin-left: auto !important; }

/* ---------- Mobilní lišta ---------- */
.dock { display: none; }

/* =========================================================
   Responzivita
   ========================================================= */
@media (max-width: 1020px) {
  .nav { display: none; }
  .svc__item { grid-template-columns: minmax(0, 1fr) 150px 140px; }
  .svc__desc { grid-column: 1 / -1; grid-row: 2; }
  .svc__item--group .svc__subs { grid-column: 1 / -1; }
  .svc__sub { grid-template-columns: minmax(0, 1fr) 150px 140px; }
}

@media (max-width: 820px) {
  body { padding-bottom: 72px; }
  .status { display: none; }
  .top__inner { justify-content: space-between; }
  .top .btn--sm { display: none; }

  .hero__inner { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .hero__lift { position: relative; right: auto; width: min(560px, 100%); margin: 40px auto 0; }
  .hero .hero__cta .btn { flex: 1 1 220px; }

  .section-head { grid-template-columns: 1fr; }
  .storage__grid, .contact__grid, .booking__grid, .reviews__grid { grid-template-columns: 1fr; }
  .reviews__score { position: static; }
  .contact__map, .contact__map iframe { min-height: 320px; }

  .dock {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--petrol); box-shadow: 0 -8px 24px rgba(8,22,29,.25);
  }
  .dock a {
    display: grid; place-items: center; height: 50px; border-radius: var(--r-sm);
    text-decoration: none; font-weight: 800; font-style: italic; font-variation-settings: "wdth" 110;
  }
  .dock__call { color: var(--paper); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
  .dock__book { background: var(--yellow); color: var(--petrol-deep); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__title { font-size: 8.4vw; font-variation-settings: "wdth" 112; }
  .svc__item, .svc__sub { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 22px 0; }
  .svc__sub { padding: 14px 0; }
  .svc__name { grid-column: 1 / -1; }
  .svc__desc { grid-row: auto; }
  .svc__sub > div:first-child { grid-column: 1 / -1; }
  .svc__item .btn, .svc__sub .btn { min-height: 46px; padding: 0 18px; }
  .foot__copy { margin-left: 0 !important; }
  .reviews__list { grid-template-columns: 1fr; }
}

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