:root {
	--navy: #123b66;
	--navy-deep: #0d3157;
	--blue: #08a8e5;
	--blue-dark: #078ac2;
	--ink: #18324d;
	--muted: #718096;
	--line: #e5edf4;
	--paper: #fff;
	--wash: #f4f8fb;
	--shadow: 0 14px 40px rgb(19 57 94 / 8%);
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--wash);
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--wash); }
body { min-width: 320px; min-height: 100vh; margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
.site-shell { width: min(1160px, calc(100% - 36px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 0 16px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand img { display: block; width: 156px; height: auto; }
.header-badge { display: inline-flex; align-items: center; gap: 9px; color: #557088; font-size: 13px; font-weight: 600; }
.header-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgb(8 168 229 / 12%); }
.intro { max-width: 760px; margin: 58px auto 37px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue-dark); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy-deep); font-size: clamp(32px, 5vw, 48px); font-weight: 750; letter-spacing: -.045em; line-height: 1.12; }
.intro__copy { margin: 15px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.search-box { display: flex; width: min(100%, 420px); height: 48px; align-items: center; gap: 11px; margin: 26px auto 0; padding: 0 15px; border: 1px solid #dce7ef; border-radius: 12px; background: var(--paper); box-shadow: 0 5px 18px rgb(19 57 94 / 4%); }
.search-box svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: #7690a4; stroke-linecap: round; stroke-width: 1.7; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-box input::placeholder { color: #91a0ae; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(8 168 229 / 14%); }
.directory { flex: 1 0 auto; }
.house-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.house-card { min-width: 0; overflow: hidden; border: 1px solid #e5edf4; border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.house-card:hover { transform: translateY(-4px); border-color: #cde8f4; box-shadow: 0 22px 48px rgb(19 57 94 / 13%); }
.house-card__link { display: flex; height: 100%; flex-direction: column; text-decoration: none; }
.house-card__link:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.house-card__visual { position: relative; display: flex; height: 190px; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(145deg, #edf8fc, #dceefa 62%, #c8e7f5); }
.house-card__visual--photo { background: #e8f0f5; }
.house-card__visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.house-card:hover .house-card__visual > img { transform: scale(1.035); }
.house-illustration { width: min(88%, 340px); height: 100%; overflow: visible; }
.illustration-sun { fill: #fff; opacity: .78; }
.illustration-ground { fill: #d0e8f3; }
.illustration-building { fill: #164879; }
.illustration-building--back { fill: #3373a4; }
.illustration-building--side { fill: #0f3c68; }
.illustration-windows { fill: #9cddf4; }
.illustration-door { fill: #0d3157; }
.house-card__number { position: absolute; top: 14px; right: 14px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgb(255 255 255 / 80%); border-radius: 50%; color: var(--navy); background: rgb(255 255 255 / 86%); font-size: 11px; font-weight: 800; }
.house-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 22px 20px; }
.house-card__location { display: flex; align-items: center; gap: 6px; margin: 0 0 9px; color: #74899c; font-size: 12px; font-weight: 650; }
.house-card__location svg { width: 16px; height: 16px; fill: none; stroke: var(--blue-dark); stroke-width: 1.5; }
.house-card h2 { margin: 0; color: var(--navy-deep); font-size: 20px; font-weight: 730; letter-spacing: -.02em; line-height: 1.3; }
.house-card__description { min-height: 42px; margin: 10px 0 19px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.house-card__button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 11px; margin-top: auto; padding: 0 16px; border-radius: 9px; color: #fff; background: var(--blue); font-size: 13px; font-weight: 750; transition: background .2s ease, gap .2s ease; }
.house-card:hover .house-card__button { gap: 15px; background: var(--blue-dark); }
.house-card__button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.empty-state { max-width: 570px; margin: 0 auto; padding: 42px 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-align: center; }
.empty-state__icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 17px; border-radius: 18px; color: var(--blue-dark); background: #e7f7fd; font-size: 35px; }
.empty-state h2 { margin: 0; color: var(--navy-deep); font-size: 20px; }
.empty-state p, .empty-search { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 54px; padding: 21px 0 25px; border-top: 1px solid var(--line); color: #8191a0; font-size: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.js .house-card { animation: card-in .45s both; }
.js .house-card:nth-child(2) { animation-delay: .06s; }
.js .house-card:nth-child(3) { animation-delay: .12s; }
.js .house-card:nth-child(4) { animation-delay: .18s; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 600px) { .site-shell { width: min(1160px, calc(100% - 56px)); } .house-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; } .house-card__visual { height: 205px; } .intro { margin-top: 70px; } }
@media (min-width: 940px) { .house-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; } .house-card__visual { height: 200px; } .intro { margin: 77px auto 43px; } }
@media (max-width: 480px) { .site-shell { width: calc(100% - 30px); } .site-header { padding-top: 19px; } .brand img { width: 130px; } .header-badge { max-width: 155px; font-size: 11px; line-height: 1.4; } .intro { margin: 46px auto 28px; } .intro__copy { font-size: 14px; } .house-card__visual { height: 180px; } .house-card__body { padding: 19px; } .site-footer { flex-direction: column; align-items: center; margin-top: 40px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
