@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,wght@1,600&display=swap');

:root {
  --apex: #2F6FED;
  --apex-dark: #1B4FBF;
  --apex-deep: #163A8A;
  --apex-soft: #E8F0FE;
  --navy: #1C2B4A;
  --text: #243044;
  --muted: #5C6B80;
  --line: #E4E9F2;
  --bg: #FFFFFF;
  --bg2: #F5F7FB;
  --success: #0D9B6E;
  --warn: #E8A317;
  --danger: #E24B4A;
  --shadow: 0 8px 28px rgba(28, 43, 74, 0.08);
  --font: 'Source Sans 3', 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--apex); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
iframe { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

.skip { position: absolute; left: -999px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; max-width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 68px;
  display: flex; align-items: center;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1120px, calc(100% - 32px)); min-width: 0;
}
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy); font-weight: 700; font-size: 22px;
  text-decoration: none; letter-spacing: -0.4px;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.apex-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.brand .apex-logo { height: 32px; }
.nav-links a, .nav-links button {
  background: none; border: 0; color: var(--navy);
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600;
}
.nav-links a:hover, .nav-links button:hover { background: var(--bg2); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--apex); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 18px; font-weight: 700; cursor: pointer; font-size: 15px;
}
.btn:hover { background: var(--apex-dark); text-decoration: none; color: #fff; }
.btn-ghost {
  background: #fff; color: var(--navy); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg2); color: var(--navy); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.hero {
  background: linear-gradient(180deg, #eef4ff 0%, #fff 70%);
  padding: 48px 0 28px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.8px; margin: 0 0 8px; color: var(--navy);
}
.hero p { margin: 0 0 22px; color: var(--muted); font-size: 18px; }
.search-bar {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.search-bar label {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px; border-right: 1px solid var(--line); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.search-bar input {
  border: 0; outline: none; font-size: 16px; color: var(--navy); font-weight: 600; padding: 0;
  background: transparent;
}
.search-bar .btn { margin: 10px; border-radius: 10px; padding: 0 22px; }

.toolbar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0 18px;
}
.toolbar h2 { margin: 0; font-size: 22px; color: var(--navy); }
.toolbar span { color: var(--muted); font-size: 14px; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 56px;
}
.card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); color: inherit; text-decoration: none;
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.card-photo { height: 210px; overflow: hidden; position: relative; background: #dbe4f0; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 12px; left: 12px; background: #fff;
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--navy);
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-loc { font-size: 13px; color: var(--muted); font-weight: 600; }
.card-title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0; }
.card-meta { font-size: 13px; color: var(--muted); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.card-price { font-weight: 700; color: var(--navy); }
.card-price small { font-weight: 600; color: var(--muted); }
.score { color: var(--apex-deep); font-weight: 700; font-size: 14px; }

.site-footer {
  border-top: 1px solid var(--line); background: var(--bg2);
  padding: 28px 0 40px; color: var(--muted); font-size: 14px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.empty, .error, .loading {
  padding: 40px 16px; text-align: center; color: var(--muted);
}
.error { color: var(--danger); }

.lang-pop {
  position: absolute; right: 0; top: 110%;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; min-width: 200px; z-index: 50;
  max-height: min(70vh, 420px); overflow: auto;
  display: none;
  grid-template-columns: 1fr; gap: 2px;
}
.nav-links [data-auth-open][hidden] { display: none !important; }
.auth-chip { position: relative; display: inline-flex; align-items: center; }
.auth-who {
  display: inline-flex; align-items: center; gap: 8px;
}
.auth-ava {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--apex); color: #fff; font-style: normal; font-weight: 800;
  font-size: 13px; display: grid; place-items: center; line-height: 1;
}
.auth-menu {
  position: absolute; right: 0; top: 110%;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 240px; padding: 10px; z-index: 60;
}
.auth-mail { font-size: 12px; color: var(--muted); word-break: break-all; margin-bottom: 8px; }
.auth-res {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 8px 0; padding: 8px 0; display: grid; gap: 4px;
}
.auth-inv {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: 8px; color: var(--navy); font-weight: 800; font-size: 13px;
}
.auth-inv:hover { background: var(--bg2); text-decoration: none; }
.auth-inv span { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.auth-res-empty { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.auth-menu button {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 8px 6px; border-radius: 8px; cursor: pointer; font-weight: 700;
}
.auth-menu button:hover { background: var(--bg2); }
.auth-modal {
  position: fixed; inset: 0; background: rgba(20, 32, 58, .45);
  z-index: 80; display: grid; place-items: center; padding: 20px;
}
.auth-modal[hidden] { display: none; }
.auth-card {
  width: min(400px, 100%); background: #fff; border-radius: 18px;
  box-shadow: 0 18px 48px rgba(20, 32, 58, .18);
  padding: 28px 24px 22px; position: relative;
}
.auth-card h2 { margin: 0 0 18px; font-size: 22px; color: var(--navy); }
.auth-x {
  position: absolute; top: 12px; right: 12px; border: 0; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted);
}
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.auth-field[hidden] { display: none !important; }
.auth-field input {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  font-size: 15px; font-weight: 600; color: var(--navy);
}
.auth-field input:focus { outline: 2px solid var(--apex-soft); border-color: var(--apex); }
.auth-go { width: 100%; margin-top: 6px; }
.auth-switch {
  display: block; width: 100%; margin-top: 14px; border: 0; background: none;
  color: var(--apex); font-weight: 700; cursor: pointer; font-size: 14px;
}
.lang-pop:not([hidden]) { display: grid; }
.lang-pop button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.lang-pop button:hover, .lang-pop button.on { background: var(--apex-soft); color: var(--apex-deep); }
.share-wrap, .lang-wrap { position: relative; }
.invoice-body .lang-wrap { position: relative; display: inline-block; }

.denied {
  position: fixed; inset: 0; background: #0f172a; color: #fff;
  z-index: 200; display: grid; place-items: center; padding: 24px;
}
.denied-card { max-width: 420px; text-align: center; }
.denied-card h1 { margin: 0 0 12px; }

#google_translate_el, .skiptranslate, .goog-te-banner-frame, iframe.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget, .goog-logo-link { display: none !important; }

.spinner {
  width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar label:nth-child(3), .search-bar label:nth-child(4) { border-right: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links a:not(.keep), .nav-links .nav-stay { display: none; }
  .search-bar { grid-template-columns: 1fr; }
  .search-bar label { border-right: 0; border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}
