/* ===== Smart Pro Auto Servis – public site ===== */
:root {
  --yellow: #FFDE59;
  --yellow-2: #E4C750;
  --yellow-soft: rgba(255, 222, 89, .16);
  --ink: #121214;
  --ink-2: #1b1c1f;
  --ink-3: #26272c;
  --paper: #f5f5f3;
  --card: #ffffff;
  --text: #17181a;
  --muted: #6b6f76;
  --line: #e5e6ea;
  --green: #1f9d55;
  --green-soft: #e3f6ea;
  --blue: #2a72d8;
  --blue-soft: #e5eefb;
  --orange: #e8961e;
  --orange-soft: #fdf1dc;
  --grey-soft: #eef0f3;
  --red: #d93636;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(17, 18, 20, .08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .35);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink); color: #fff;
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 8px 0; }
.brand img { height: 60px; width: auto; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  transition: background .2s, border-color .2s;
}
.topbar-phone svg { width: 18px; height: 18px; color: var(--yellow); }
.topbar-phone:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.lang { display: flex; gap: 2px; background: rgba(255, 255, 255, .08); padding: 4px; border-radius: 999px; }
.lang a {
  color: #cfd0d4; text-decoration: none; font-weight: 800; font-size: .8rem; letter-spacing: .06em;
  padding: 9px 14px; border-radius: 999px; line-height: 1; transition: background .2s, color .2s;
}
.lang a:hover { color: #fff; }
.lang a.active { background: var(--yellow); color: var(--ink); }
@media (max-width: 640px) {
  .topbar-phone span { display: none; }
  .topbar-phone { padding: 10px; }
  .brand img { height: 50px; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 50% -20%, rgba(255, 222, 89, .28), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; text-align: center;
  padding: clamp(52px, 8vw, 104px) 0 clamp(88px, 11vw, 140px);
}
.tagline {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow); background: var(--yellow-soft); padding: 8px 14px; border-radius: 999px; margin: 0 0 22px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 0 0 14px; }
.lead { color: #b5b8c0; max-width: 560px; margin: 0 auto 34px; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.search {
  display: flex; gap: 8px; max-width: 680px; margin: 0 auto;
  background: #fff; padding: 8px; border-radius: 22px; box-shadow: var(--shadow-lg);
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 14px;
}
.search input::placeholder { color: #b3b6bd; font-weight: 700; letter-spacing: .06em; text-transform: none; }
.search input:focus-visible { box-shadow: inset 0 0 0 2px var(--yellow); }
.search button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; background: var(--yellow); color: var(--ink);
  font: inherit; font-weight: 800; font-size: 1.1rem; padding: 0 28px; min-height: 64px; border-radius: 15px;
  cursor: pointer; transition: background .2s, transform .1s;
}
.search button svg { width: 22px; height: 22px; }
.search button:hover { background: var(--yellow-2); }
.search button:active { transform: scale(.98); }
.hint { color: #8d9098; font-size: .9rem; margin: 16px 0 0; }
@media (max-width: 560px) {
  .search { flex-direction: column; padding: 10px; border-radius: 20px; }
  .search input { text-align: center; padding: 14px; }
  .search button { min-height: 58px; }
}

/* ---------- lookup result ---------- */
.result { margin-top: -64px; position: relative; z-index: 2; scroll-margin-top: 96px; }
.result-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px); max-width: 780px; margin: 0 auto; text-align: left;
}
.result-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.car-icon {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grey-soft); border-radius: 16px; padding: 10px; flex: 0 0 auto;
}
.car-icon svg, .car-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .45)); }
.car-icon.lg { width: 124px; height: 84px; }
.result-id { flex: 1 1 auto; min-width: 0; }
.plate-chip {
  display: inline-block; font-weight: 800; font-size: 1.6rem; letter-spacing: .12em; line-height: 1.2;
  background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 10px; border: 2px solid var(--yellow);
}
.model { color: var(--muted); font-weight: 600; margin-top: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  background: var(--grey-soft); color: #4b4e54;
}
.badge.st-progress { background: var(--blue-soft); color: #1d56a8; }
.badge.st-hold { background: var(--orange-soft); color: #9a5f0a; }
.badge.st-finished, .badge.st-ready { background: var(--green-soft); color: #14703b; }
.badge.st-done { background: var(--ink); color: #fff; }
.ready-banner {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  background: linear-gradient(90deg, #1f9d55, #27b463); color: #fff; padding: 16px 18px; border-radius: 14px;
}
.ready-banner svg { width: 34px; height: 34px; flex: 0 0 auto; }
.ready-banner div { display: flex; flex-direction: column; }
.ready-banner strong { font-size: 1.1rem; }
.ready-banner span { opacity: .92; font-size: .92rem; }
.progress-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 24px; font-weight: 700; }
.progress-label { color: var(--muted); font-size: .9rem; }
.progress-pct { font-variant-numeric: tabular-nums; }
.bar { height: 12px; background: var(--grey-soft); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow-2), var(--yellow)); border-radius: 999px; transition: width .4s ease; }
.bar.sm { height: 8px; margin-top: 8px; }
.task.st-finished .bar i { background: var(--green); }
.task.st-progress .bar i { background: var(--blue); }
.task.st-hold .bar i { background: var(--orange); }
.task.st-queue .bar i { background: #c4c7cd; }
.tasks-title { margin: 26px 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task { background: #fafafa; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-name { font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.meta div { display: flex; flex-direction: column; }
.meta dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.meta dd { margin: 2px 0 0; font-weight: 700; }
.contact { margin: 18px 0 0; color: var(--muted); }
.contact a { color: var(--text); font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.notfound { text-align: center; }
.nf-ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--grey-soft); color: #6b6f76; display: flex; align-items: center; justify-content: center;
}
.nf-ico svg { width: 32px; height: 32px; }
.nf-text { font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; }
.searched { color: var(--muted); margin: 0 0 18px; }
.searched b { letter-spacing: .1em; color: var(--text); }
.btn-yellow {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none;
  padding: 14px 24px; border-radius: 14px; min-height: 52px; transition: background .2s;
}
.btn-yellow:hover { background: var(--yellow-2); }

/* ---------- info cards + map ---------- */
.info { padding: clamp(56px, 8vw, 96px) 0; }
.info h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; margin: 0 0 32px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start;
}
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card-big { margin: 0 0 14px; font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.card-big .tel { text-decoration: none; color: var(--text); border-bottom: 3px solid var(--yellow); }
.card-link { margin-top: auto; font-weight: 700; color: var(--text); text-decoration: none; padding-top: 6px; }
.card-link:hover { text-decoration: underline; }
.open-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.open-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: var(--green-soft); color: #14703b; }
.open-badge.is-closed { background: #fde8e8; color: #9b2323; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 0; }
.hours td { text-align: right; font-weight: 700; padding: 6px 0; font-variant-numeric: tabular-nums; }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours tr.today th, .hours tr.today td { color: var(--text); font-weight: 800; }
.hours tr.today th::before { content: '●'; color: var(--yellow-2); margin-right: 6px; font-size: .7em; vertical-align: middle; }
.hours .closed { color: var(--red); }
.map {
  margin-top: 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16 / 8; min-height: 300px; background: #e9eaee;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-grid .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .card:last-child { grid-column: auto; }
  .card { padding: 22px; }
  .map { aspect-ratio: 4 / 3; }
  .plate-chip { font-size: 1.3rem; }
  .car-icon.lg { width: 100px; height: 70px; }
  .result { margin-top: -56px; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #9b9ea6; font-size: .9rem; padding: 28px 0; }
.footer-in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer a { color: #cfd0d4; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-login { border: 1px solid rgba(255, 255, 255, .14); padding: 8px 14px; border-radius: 999px; }
.footer-credit {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center; font-size: .82rem; color: #7d8088;
}
.footer-credit a { color: #cfd0d4; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 222, 89, .5); }
.footer-credit a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i { transition: none; }
}
