:root {
  --ink: #102a43;
  --ink-2: #243b53;
  --paper: #f7f8f6;
  --white: #fff;
  --accent: #ec6b4f;
  --accent-dark: #d65439;
  --aqua: #64b7b2;
  --muted: #627d98;
  --line: rgba(16, 42, 67, .13);
  --shadow: 0 22px 60px rgba(16, 42, 67, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--white); padding: 12px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header { height: 82px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: rgba(247, 248, 246, .92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 228px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--white); font-family: "Prata", serif; font-size: 15px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; line-height: 1.25; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.desktop-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.desktop-nav a, .phone-link { transition: color .2s; }
.desktop-nav a:hover, .phone-link:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { font-weight: 700; font-size: 14px; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 1px solid var(--accent); border-radius: 15px; background: var(--accent); color: var(--white); font-weight: 800; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { background: var(--accent-dark); box-shadow: 0 12px 28px rgba(236, 107, 79, .24); transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(100, 183, 178, .6); outline-offset: 3px; }
.button-small { min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 13px; }
.menu-button, .mobile-menu { display: none; }

.hero { min-height: calc(100svh - 82px); position: relative; display: grid; align-content: end; padding: clamp(72px, 10vh, 120px) clamp(20px, 6vw, 90px) 34px; overflow: hidden; color: var(--white); }
.hero-media, .hero-scrim { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { background: linear-gradient(90deg, rgba(8, 29, 47, .84) 0%, rgba(8, 29, 47, .46) 55%, rgba(8, 29, 47, .16) 100%), linear-gradient(0deg, rgba(8, 29, 47, .45), transparent 48%); }
.hero-copy, .search-panel, .trust-strip { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; margin-bottom: clamp(30px, 6vh, 70px); animation: rise .7s ease both; }
.eyebrow { margin: 0 0 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: 12px; }
.hero .eyebrow { color: #ffd3c9; }
h1, h2 { font-family: "Prata", Georgia, serif; font-weight: 400; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
h1 { max-width: 740px; font-size: clamp(42px, 6vw, 78px); }
h2 { font-size: clamp(34px, 4vw, 56px); }
.hero-copy > p:last-child { max-width: 590px; margin: 22px 0 0; font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.83); }
.search-panel { display: grid; grid-template-columns: 1fr 1fr .8fr 1.35fr; align-items: end; max-width: 1180px; padding: 10px; background: var(--white); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow); animation: rise .7s .12s ease both; }
.search-panel label { min-width: 0; padding: 8px 18px; border-right: 1px solid var(--line); }
.search-panel label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.search-panel input, .search-panel select { width: 100%; height: 34px; border: 0; background: transparent; color: var(--ink); font-weight: 800; outline: 0; }
.search-button { height: 64px; border-radius: 14px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.86); }
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip svg { width: 16px; height: 16px; color: #9de0db; }

.section { padding: clamp(72px, 10vw, 140px) clamp(20px, 6vw, 90px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading > p { max-width: 470px; margin: 0 0 7px; color: var(--muted); }
.filter-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 22px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 700; cursor: pointer; }
.filter-chip.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.apartments-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.apartment-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(16,42,67,.04); transition: transform .25s, box-shadow .25s; }
.apartment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.apartment-image { aspect-ratio: 1.42; overflow: hidden; position: relative; background: #d9e2ec; }
.apartment-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.apartment-card:hover .apartment-image img { transform: scale(1.035); }
.price-pill { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 9px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); color: var(--ink); font-size: 13px; font-weight: 800; }
.card-body { padding: 20px; }
.location-label { color: var(--accent-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.card-body h3 { min-height: 52px; margin: 8px 0 18px; font-family: "Prata", serif; font-size: 21px; line-height: 1.25; font-weight: 400; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.card-actions a { font-weight: 800; font-size: 14px; }
.card-actions a:first-child { color: var(--accent-dark); }
.card-actions a:last-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #edf6f5; color: var(--ink); }
.show-all { margin: 34px auto 0; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--ink); border-color: var(--ink); color: white; box-shadow: none; }

.advantages { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(60px, 9vw, 150px); background: var(--white); }
.advantages-copy { position: sticky; top: 132px; align-self: start; }
.advantages-copy > p:not(.eyebrow) { max-width: 500px; color: var(--muted); font-size: 18px; margin: 26px 0; }
.text-link { display: inline-flex; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-weight: 800; }
.chat-trigger { border: 0; background: transparent; color: inherit; cursor: pointer; }
.advantage-list article { display: grid; grid-template-columns: 54px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.advantage-list article:last-child { border-bottom: 1px solid var(--line); }
.advantage-list article > span { color: var(--accent); font-size: 13px; font-weight: 800; }
.advantage-list h3 { margin: 0 0 8px; font-size: 20px; }
.advantage-list p { margin: 0; color: var(--muted); }

.ratings { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(50px, 8vw, 120px); background: var(--ink); color: var(--white); }
.ratings-intro > p:not(.eyebrow) { color: #b8c8d8; margin: 20px 0 28px; }
.button-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-light:hover { background: #edf6f5; color: var(--ink); }
.ratings-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.ratings-grid article { min-height: 180px; display: flex; flex-direction: column; justify-content: center; padding: 30px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.ratings-grid article:nth-child(2n) { border-right: 0; }
.ratings-grid article:nth-child(n+3) { border-bottom: 0; }
.ratings-grid strong { font-family: "Prata", serif; font-size: 54px; font-weight: 400; line-height: 1; color: #9de0db; }
.ratings-grid span { margin-top: 13px; color: #d8e4ed; }

.contact-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 140px); }
.contact-actions { border-top: 1px solid var(--line); }
.contact-card { display: grid; grid-template-columns: 120px 1fr 30px; align-items: center; gap: 16px; min-height: 86px; border-bottom: 1px solid var(--line); transition: padding .2s, color .2s; }
.contact-card:hover { padding-left: 10px; color: var(--accent-dark); }
.contact-card span { color: var(--muted); font-size: 13px; }
.contact-card strong { font-size: 18px; word-break: break-word; }
.contact-card b { font-size: 20px; }

footer { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: end; gap: 30px; padding: 38px clamp(20px, 6vw, 90px); background: #0a1d2d; color: #c2d1df; font-size: 12px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--white); font-family: "Prata", serif; font-size: 18px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--white); }
.floating-book { display: none; }

.feedback-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 26px; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.feedback-dialog::backdrop { background: rgba(4,18,30,.7); backdrop-filter: blur(5px); }
.feedback-dialog form { position: relative; padding: clamp(28px, 6vw, 48px); }
.feedback-dialog h2 { font-size: clamp(30px, 6vw, 42px); }
.feedback-dialog form > p:not(.eyebrow) { color: var(--muted); }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #eef2f5; color: var(--ink); font-size: 26px; cursor: pointer; }
.rating-field { border: 0; padding: 8px 0 16px; margin: 0; }
.rating-field legend, .message-field { font-size: 14px; font-weight: 800; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; }
.stars label { color: #c8d2db; font-size: 38px; cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #ffb342; transform: translateY(-2px); }
.message-field { display: grid; gap: 8px; margin-bottom: 18px; }
.message-field textarea { resize: vertical; min-height: 110px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.message-field input { min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.chat-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chat-actions .button { flex: 1 1 180px; }
.chat-status { min-height: 24px; margin: 0 0 14px; color: var(--muted); font-weight: 700; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 1050px) {
  .desktop-nav, .phone-link { display: none; }
  .apartments-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { min-height: auto; padding-top: 110px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .site-header { height: 70px; padding: 0 18px; }
  .header-actions { display: none; }
  .brand { min-width: 0; }
  .menu-button { width: 44px; height: 44px; padding: 11px; display: grid; align-content: center; gap: 5px; border: 0; border-radius: 12px; background: var(--white); }
  .menu-button span { display: block; height: 2px; background: var(--ink); border-radius: 3px; }
  .mobile-menu { position: absolute; top: 70px; left: 12px; right: 12px; display: grid; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 13px 12px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border: 0; color: var(--accent-dark); }
  .hero { min-height: calc(100svh - 70px); padding: 76px 18px 24px; }
  .hero-scrim { background: linear-gradient(0deg, rgba(8,29,47,.9), rgba(8,29,47,.3)); }
  h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero-copy { margin-bottom: 30px; }
  .hero-copy > p:last-child { font-size: 16px; }
  .search-panel { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .search-panel label { padding: 8px 10px; }
  .search-panel label:nth-child(2) { border-right: 0; }
  .search-panel label:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .search-button { grid-column: 1 / -1; height: 56px; }
  .trust-strip { gap: 10px 18px; }
  .section { padding: 76px 18px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .apartments-grid { grid-template-columns: 1fr; }
  .advantages, .ratings, .contact-section { grid-template-columns: 1fr; gap: 46px; }
  .advantages-copy { position: static; }
  .ratings-grid article { min-height: 140px; padding: 22px; }
  .ratings-grid strong { font-size: 44px; }
  .contact-card { grid-template-columns: 80px 1fr 24px; }
  .contact-card strong { font-size: 15px; }
  footer { grid-template-columns: 1fr; align-items: start; padding-bottom: 32px; }
  .floating-book { position: fixed; display: flex; align-items: center; justify-content: center; left: 14px; right: 14px; bottom: 12px; z-index: 45; height: 54px; border-radius: 16px; background: var(--accent); color: var(--white); font-weight: 800; box-shadow: 0 14px 38px rgba(16,42,67,.28); }
}

@media (max-width: 400px) {
  .brand small { display: none; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .ratings-grid { grid-template-columns: 1fr; }
  .ratings-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14) !important; }
  .ratings-grid article:last-child { border-bottom: 0 !important; }
}
