:root {
  --ink: #0b122b;
  --muted: #667085;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --brand: #4338ca;
  --blue: #2563eb;
  --good: #059669;
  --amber: #d97706;
  --navy: #101936;
  --shadow: 0 22px 70px -36px rgba(15, 23, 42, .42);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.site-header {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 44px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  color: white;
  font-weight: 950;
}
.logo small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
nav { display: flex; gap: 22px; font-size: 14px; font-weight: 760; color: #344054; }
nav a:hover { color: var(--brand); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }
button, .primary, .secondary, .ghost {
  border: 0;
  cursor: pointer;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 820;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary { background: var(--brand); color: white; }
.secondary { background: #eef2ff; color: #312e81; }
.ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.large { padding: 13px 20px; }
.full { width: 100%; }
.hero { position: relative; min-height: 660px; padding: 72px 44px 0; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248,250,252,.98) 0%, rgba(248,250,252,.86) 42%, rgba(16,25,54,.28) 100%),
    url("https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; }
.hero-copy { max-width: 620px; padding-top: 42px; }
.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 950;
  margin: 0 0 8px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 62px; line-height: 1.02; letter-spacing: -.055em; margin-bottom: 20px; }
h2 { font-size: 38px; line-height: 1.08; letter-spacing: -.04em; margin-bottom: 12px; }
h3 { margin-bottom: 8px; }
.hero p { color: #475467; font-size: 20px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-row span, .pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #344054;
  font-weight: 800;
  font-size: 13px;
}
.search-panel {
  position: relative;
  max-width: 1200px;
  margin: 70px auto 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  box-shadow: var(--shadow);
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 820; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}
.section { max-width: 1200px; margin: 0 auto; padding: 72px 44px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 42px;
}
.benefits article, .filter-card, .property-card, .city-card, .quick-form, .support-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.benefits article { padding: 18px; }
.benefits b { display: block; margin-bottom: 8px; }
.benefits p, .city-card p, .property-card p, .filter-card p, .support-grid p, .split p, footer p { color: var(--muted); line-height: 1.55; }
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.city-card { overflow: hidden; cursor: pointer; }
.city-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.city-card div { padding: 14px; }
.layout { display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
.filter-card { padding: 18px; position: sticky; top: 94px; }
.mini-stats { display: grid; gap: 10px; margin-top: 18px; }
.mini-stats span { padding: 12px; background: #f8fafc; border-radius: 10px; color: var(--muted); }
.mini-stats b { color: var(--ink); }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.property-card { overflow: hidden; }
.property-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.property-body { padding: 16px; }
.country-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.country-tabs button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14px;
}
.country-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.country-tabs button.active { background: var(--brand); color: white; border-color: var(--brand); }
.proximity { color: var(--brand); font-weight: 760; font-size: 14px; margin: 2px 0 0; }
.filter-cta { display: grid; gap: 8px; }
.hint { color: var(--muted); font-weight: 600; font-size: 11px; }
.dialog-note { color: var(--muted); font-size: 14px; margin: -4px 0 14px; line-height: 1.5; }
.property-title { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.verify {
  flex: none;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.verify.verified { background: #dcfce7; color: #166534; }
.verify.sourced { background: #fef3c7; color: #92400e; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.meta span { background: #f1f5f9; color: #475467; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.property-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; }
.price b { font-size: 22px; color: var(--brand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.university-list { display: grid; gap: 10px; }
.university-list button { background: white; color: var(--ink); border: 1px solid var(--line); justify-content: flex-start; }
.parent-band {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  background: var(--navy);
  color: white;
  padding-left: max(44px, calc((100vw - 1200px) / 2 + 44px));
  padding-right: max(44px, calc((100vw - 1200px) / 2 + 44px));
}
.parent-band h2 { color: white; }
.parent-band ul { line-height: 2; color: #dbeafe; }
.quick-form { padding: 20px; color: var(--ink); display: grid; gap: 10px; }
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.support-grid article { padding: 18px; }
footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  padding: 38px 44px;
  border-top: 1px solid var(--line);
  background: white;
}
dialog { width: min(720px, calc(100% - 28px)); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 28px 90px rgba(15,23,42,.32); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }
dialog form { padding: 22px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.icon { background: transparent; border: 0; color: var(--ink); font-size: 24px; padding: 0 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid textarea { grid-column: 1 / -1; }
menu { display: flex; justify-content: flex-end; gap: 10px; padding: 0; margin: 18px 0 0; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--navy);
  color: white;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 40;
}
@media (max-width: 980px) {
  nav { display: none; }
  .search-panel, .benefits, .city-grid, .support-grid { grid-template-columns: 1fr 1fr; }
  .layout, .split, .parent-band, footer { grid-template-columns: 1fr; }
  .filter-card { position: static; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 18px; }
  .header-actions .ghost { display: none; }
  .hero { padding: 42px 18px 0; }
  h1 { font-size: 44px; }
  .section { padding: 50px 18px; }
  .search-panel, .benefits, .city-grid, .property-grid, .support-grid, .form-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}
