:root {
  --navy: #0b1220;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e8edf3;
  --bg: #fff;
  --blue: #2563eb;
  --soft: #f6f8fb;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.svg-ico { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.logo-light { color: #fff; }
.logo-ico { width: 30px; height: 30px; }
.logo-img { width: 36px; height: 36px; object-fit: contain; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; color: var(--navy); }
.logo-light .logo-txt { color: #fff; }
.logo-txt strong { font-size: 15px; letter-spacing: .04em; font-weight: 800; }
.logo-txt small { font-size: 9px; letter-spacing: .2em; font-weight: 700; color: #8b95a5; }
.logo-light .logo-txt small { color: #c5d0de; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #eef2f6; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 76px; gap: 24px; }
.nav { display: flex; justify-content: center; gap: 26px; font-size: 14px; font-weight: 600; color: #374151; }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a.active { color: var(--blue); border-color: var(--blue); }
.nav a:hover { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 16px; color: #4b5563; font-size: 13px; font-weight: 600; }
.lang { color: #6b7280; }
.phone { display: inline-flex; align-items: center; gap: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 12px 18px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 13px;
}
.btn.white { background: #fff; color: var(--navy); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid #d7dee8; }
.btn.search {
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  background: var(--navy);
}
.hero {
  position: relative; min-height: 680px; color: #fff;
  background: #102034 center/cover no-repeat;
  display: flex; align-items: flex-end;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,16,28,.42) 0%, rgba(10,16,28,.12) 58%, rgba(10,16,28,.08) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 88px 0 0; }
.hero-top { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 20px; }
.kicker { letter-spacing: .22em; text-transform: uppercase; font-size: 12px; font-weight: 800; opacity: .88; }
.hero h1, .page-hero h1 {
  font-size: clamp(44px, 6.2vw, 72px); line-height: .94; letter-spacing: -.045em;
  margin: 14px 0 16px; font-weight: 800; max-width: 680px;
}
.hero p { max-width: 480px; color: #edf2f7; margin: 0 0 24px; font-size: 16px; }
.hero-actions { display: flex; gap: 10px; margin-bottom: 38px; }
.script {
  font-family: "Great Vibes", cursive; font-size: 54px; line-height: .95; text-align: right;
  text-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.search-wrap { transform: translateY(32px); }
.search-card {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 16px 18px 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}
.search-tabs { display: flex; gap: 22px; padding: 2px 4px 12px; }
.search-tabs a { font-size: 14px; font-weight: 700; color: #9aa3af; }
.search-tabs .on { color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 5px; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr) 46px; gap: 10px; align-items: center; }
.search-card .input { margin: 0; }
.search-card label { display: none; }
.search-card select, .search-card input {
  width: 100%; border: 1px solid var(--line); background: #f8fafc;
  border-radius: 12px; padding: 13px 12px; color: var(--ink);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 64px 0 10px; }
.stat { display: flex; gap: 12px; align-items: flex-start; }
.stat .ico {
  width: 40px; height: 40px; border-radius: 12px; color: var(--blue);
  display: grid; place-items: center; background: #eff4ff; flex: 0 0 auto;
}
.stat .ico .svg-ico { width: 20px; height: 20px; }
.stat b { display: block; font-size: 15px; }
.stat span { color: var(--muted); font-size: 13px; }
.section { padding: 46px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-head h2, .section-head h3 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.section-head a { color: #6b7280; font-weight: 600; font-size: 14px; }
.cards, .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 0; }
.card-media { position: relative; height: 176px; background: #d7dee8; border-radius: 16px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--navy);
  border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 800;
}
.badge.op { left: auto; right: 48px; background: var(--blue); color: #fff; }
.heart {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; color: #94a3b8;
}
.card-body { padding: 12px 2px 4px; }
.price { font-weight: 800; font-size: 20px; }
.card h3 { margin: 4px 0 2px; font-size: 15px; font-weight: 700; }
.meta { color: var(--muted); font-size: 13px; }
.specs { display: flex; gap: 12px; color: #6b7280; font-size: 12px; margin: 10px 0; align-items: center; }
.specs span { display: inline-flex; align-items: center; gap: 4px; }
.agent-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.agent-row img, .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #dbe4ef; }
.life-agents { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.life-card { position: relative; min-height: 340px; border-radius: 24px; overflow: hidden; color: #fff; }
.life-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.life-card .copy {
  position: relative; z-index: 1; padding: 36px; max-width: 380px; height: 100%;
  background: linear-gradient(90deg, rgba(8,16,28,.55), rgba(8,16,28,.08));
  display: flex; flex-direction: column; justify-content: center;
}
.life-card h2 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 10px; }
.agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.agent { text-align: center; }
.agent img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.agent strong { display: block; font-size: 13px; }
.blog-cta { display: grid; grid-template-columns: 1fr 1fr 1fr .95fr; gap: 18px; align-items: stretch; }
.blog-card h3 { font-size: 16px; margin: 6px 0; }
.blog-card img { height: 158px; width: 100%; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.cta-dark {
  background: var(--navy); color: #fff; border-radius: 22px; padding: 32px 26px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 100%;
}
.cta-dark h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.site-footer { background: var(--navy); color: #c5d0de; padding: 52px 0 20px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.2fr; gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.site-footer a { display: block; margin: 7px 0; color: #c5d0de; font-size: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.socials a { display: inline; margin: 0; }
.subscribe { display: flex; gap: 8px; }
.subscribe input { border: 0; border-radius: 999px; padding: 11px 14px; }
.legal { display: flex; justify-content: space-between; border-top: 1px solid #1d3558; margin-top: 30px; padding-top: 16px; font-size: 12px; }
.page-hero {
  min-height: 360px; color: #fff; display: flex; align-items: end;
  background: #0b1f3a center/cover no-repeat; position: relative;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,28,.4), rgba(8,16,28,.08)); }
.page-hero .container { position: relative; z-index: 1; padding: 86px 0 40px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; }
.crumbs { color: var(--muted); font-size: 13px; margin: 20px 0; }
.listing-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; padding: 8px 0 56px; }
.filters { background: #fff; }
.filters h3 { margin: 0; font-size: 16px; }
.filter-group { margin: 16px 0; }
.filter-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.filters select, .filters input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.detail-wrap { display: grid; grid-template-columns: 1.45fr .7fr; gap: 24px; padding: 8px 0 48px; }
.gallery { display: grid; grid-template-columns: 1.7fr .55fr .55fr; grid-template-rows: 214px 214px; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.gallery .main-wrap { grid-row: span 2; position: relative; }
.gallery .main { height: 438px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; color: var(--muted); font-size: 12px; text-align: center; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 14px; }
.flash { padding: 12px 16px; border-radius: 12px; margin: 12px 0; }
.flash.success { background: #ecfdf5; color: #047857; }
.flash.error { background: #fef2f2; color: #b91c1c; }
.paginator { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.paginator a, .paginator span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
.paginator .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.side-card .input { margin-bottom: 10px; }
select, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
@media (max-width: 980px) {
  .header-inner, .hero-top, .search-grid, .stats, .cards, .grid-4, .life-agents, .blog-cta, .footer-grid, .listing-layout, .detail-wrap, .gallery, .page-hero .container, .agents {
    grid-template-columns: 1fr;
  }
  .nav, .phone, .lang { display: none; }
  .gallery .main { height: 240px; }
  .hero { min-height: 560px; }
  .search-grid { grid-template-columns: 1fr; }
}
