:root {
  --violet: #7835FF;
  --violet-2: #7C3AED;
  --violet-3: #A855F7;
  --violet-soft: #F1EAFF;
  --ink: #1F1535;
  --ink-2: #2B1F48;
  --text: #2A2340;
  --muted: #6B6680;
  --line: #E7E3F0;
  --bg: #F8F8FB;
  --card: #FFFFFF;
  --green: #12A150;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 21, 53, .06), 0 8px 24px rgba(31, 21, 53, .06);
  --grad: linear-gradient(135deg, var(--violet-2), var(--violet-3));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Golos Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: Onest, "Golos Text", sans-serif; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--violet); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font: 600 13px/1 Onest, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 26px/1 Onest, sans-serif; letter-spacing: -.01em; }
.brand-sub { font: 500 10.5px/1 "Golos Text", sans-serif; letter-spacing: .32em; text-transform: uppercase; color: #CDB8FF; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.brand-sub::before, .brand-sub::after { content: ""; width: 12px; height: 1px; background: #8E77C8; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { color: #fff; font: 600 16px/1 Onest, sans-serif; padding: 12px 16px; border-radius: 10px; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a.active:not(.cta) { color: #CDB8FF; }
.nav a.cta { background: var(--grad); padding: 16px 26px; border-radius: 12px; margin-left: 10px; box-shadow: 0 6px 18px rgba(120, 53, 255, .45); }
.nav a.cta:hover { filter: brightness(1.08); }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: #CFC7E6; font: 600 13px/1 Onest, sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: #fff; color: var(--ink); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 Onest, sans-serif; padding: 16px 26px; border-radius: 12px; border: 0; cursor: pointer; transition: transform .15s, filter .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(120, 53, 255, .35); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }

/* hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,21,53,.92) 0%, rgba(31,21,53,.72) 45%, rgba(31,21,53,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 110px 0 120px; }
.hero h1 { color: #fff; max-width: 680px; }
.hero p.lead { font-size: 20px; color: #E3DCF5; max-width: 560px; margin-bottom: 32px; }
.hero .eyebrow { color: #CDB8FF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { position: relative; z-index: 2; margin-top: -48px; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 26px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 30px/1.1 Onest, sans-serif; color: var(--ink); }
.stat span { color: var(--muted); font-size: 15px; }

section.block { padding: 90px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 560px; color: var(--muted); margin: 0; }

/* listing cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; color: inherit; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31,21,53,.06), 0 18px 40px rgba(31,21,53,.12); }
.card-img { aspect-ratio: 3 / 2; background: #ECE8F5 center/cover no-repeat; position: relative; }
.badge { position: absolute; top: 14px; left: 14px; font: 700 12px/1 Onest, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--ink); }
.badge.new { background: var(--grad); color: #fff; }
.badge.option { background: #FFF4D6; color: #7A5600; }
.badge.sold, .badge.rented { background: var(--ink); color: #fff; }
.card-type { position: absolute; bottom: 14px; left: 14px; background: rgba(31,21,53,.72); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(4px); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font: 800 24px/1.1 Onest, sans-serif; color: var(--ink); }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.card h3 { font-size: 17px; margin: 2px 0 0; }
.addr { color: var(--muted); font-size: 15px; display: flex; gap: 6px; align-items: center; }
.facts { display: flex; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; flex-wrap: wrap; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg, .addr svg { width: 17px; height: 17px; color: var(--violet); flex-shrink: 0; }
.epc { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border-radius: 5px; font: 700 12px/1 Onest, sans-serif; color: #fff; padding: 0 6px; }
.epc-A, .epc-A\+ { background: #11A04F; } .epc-B { background: #6DBE45; } .epc-C { background: #E0C21B; color: #3a3000; }
.epc-D { background: #F2A02A; } .epc-E { background: #E9672E; } .epc-F { background: #D93636; }
.card.dim .card-img { filter: grayscale(.35); }

/* live highlight */
.card.just-added, .member.just-added { animation: pop 1s cubic-bezier(.2,.9,.3,1.3) both; box-shadow: 0 0 0 3px var(--violet-3), 0 20px 50px rgba(120,53,255,.35); }
.card.just-added::after, .member.just-added::after { content: attr(data-live); position: absolute; top: 14px; right: 14px; background: #fff; color: var(--violet); font: 700 12px/1 Onest, sans-serif; padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow); }
@keyframes pop { 0% { opacity: 0; transform: translateY(24px) scale(.92); } 100% { opacity: 1; transform: none; } }

/* filters */
.page-head { background: var(--ink); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,.45), transparent 65%); }
.page-head h1 { color: #fff; font-size: clamp(32px, 4vw, 48px); position: relative; }
.page-head p { color: #D8D0EE; max-width: 640px; margin: 0; position: relative; font-size: 18px; }
.page-head .eyebrow { color: #CDB8FF; position: relative; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 28px; align-items: center; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 999px; font: 600 14px/1 Onest, sans-serif; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { margin-left: auto; color: var(--muted); font-size: 15px; }
.empty { padding: 60px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); }

/* team */
.team-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.team-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: #ECE8F5 center/cover; }
.check { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; }
.check li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237835FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.service .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--violet-soft); display: grid; place-items: center; margin-bottom: 18px; }
.service .ico svg { width: 26px; height: 26px; color: var(--violet); }
.service p { color: var(--muted); margin: 0; }
.cta-band { background: var(--grad); color: #fff; border-radius: 28px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #F1E8FF; margin: 0; max-width: 560px; font-size: 18px; }

.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.member .ph { aspect-ratio: 1; background: #ECE8F5 center/cover; position: relative; }
.member .ph .initials { position: absolute; inset: 0; display: grid; place-items: center; font: 800 54px/1 Onest, sans-serif; color: #fff; background: var(--grad); }
.member .owner { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: #fff; font: 600 12px/1 Onest, sans-serif; padding: 7px 10px; border-radius: 999px; }
.member .mb { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.member h3 { margin: 0; font-size: 19px; }
.member .role { color: var(--violet); font-weight: 600; font-size: 14px; }
.member .bio { color: var(--muted); font-size: 14px; margin: 8px 0 12px; }
.member .ct { margin-top: auto; display: grid; gap: 6px; font-size: 14px; }
.member .ct a { color: var(--text); display: flex; align-items: center; gap: 8px; word-break: break-all; }
.member .ct svg { width: 16px; height: 16px; color: var(--violet); flex-shrink: 0; }
.member .lng { font-size: 12px; color: var(--muted); letter-spacing: .08em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-soft); display: grid; place-items: center; flex-shrink: 0; }
.info-row .ico svg { width: 22px; height: 22px; color: var(--violet); }
.info-row b { display: block; color: var(--ink); font-family: Onest, sans-serif; }
.office-photo { border-radius: var(--radius); aspect-ratio: 16 / 10; background: #ECE8F5 center/cover; margin-top: 20px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font: 600 14px/1.3 Onest, sans-serif; color: var(--ink); margin-bottom: 14px; }
input, textarea, select { width: 100%; margin-top: 6px; font: 15px/1.4 "Golos Text", sans-serif; padding: 13px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: #FCFBFE; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(120,53,255,.12); }
textarea { min-height: 120px; resize: vertical; }
.thanks { background: var(--violet-soft); color: var(--ink); padding: 16px; border-radius: 12px; }

/* valuation */
.val-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.chatbot-box { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 12px; min-height: 560px; }
.chatbot-fallback { padding: 40px; text-align: center; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 14px; }
.steps li::before { content: counter(s); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 700 15px/1 Onest, sans-serif; }
.side-stack { display: grid; gap: 24px; position: sticky; top: 108px; }

/* detail */
.detail { padding: 40px 0 90px; }
.back { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-bottom: 22px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; border-radius: 24px; overflow: hidden; }
.gallery div { background: #ECE8F5 center/cover; min-height: 220px; }
.gallery div:first-child { grid-row: span 2; min-height: 460px; }
.gallery.one { grid-template-columns: 1fr; }
.gallery.two { grid-template-columns: 1.4fr 1fr; }
.gallery.two div { grid-row: auto; min-height: 460px; }
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; margin-top: 36px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.spec div { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.spec b { display: block; font: 700 18px/1.2 Onest, sans-serif; color: var(--ink); }
.spec span { color: var(--muted); font-size: 13px; }
.agent-card { display: flex; gap: 14px; align-items: center; margin: 18px 0; }
.agent-card .av { width: 64px; height: 64px; border-radius: 50%; background: #ECE8F5 center/cover; flex-shrink: 0; }

/* footer */
.site-footer { background: var(--ink); color: #CFC7E6; padding: 64px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #CFC7E6; display: block; padding: 3px 0; }
.site-footer a.brand { display: inline-flex; color: #fff; }
.site-footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #9C93B8; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.25); display: flex; align-items: center; gap: 12px; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); z-index: 100; font-weight: 500; max-width: calc(100% - 32px); visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast i { width: 10px; height: 10px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); flex-shrink: 0; }

/* admin */
.admin { padding: 40px 0 80px; }
.admin table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.admin td, .admin th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin th { background: #F4F1FA; font-family: Onest, sans-serif; }
.admin .thumb { width: 64px; height: 44px; border-radius: 8px; background: #ECE8F5 center/cover; }
.admin .tabs { display: flex; gap: 8px; margin: 20px 0; }
.admin fieldset { border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; margin: 0 0 16px; background: #fff; }
.admin legend { font: 700 14px Onest, sans-serif; padding: 0 6px; }
.small-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font: 600 13px Onest, sans-serif; }
.small-btn.danger { color: #C0262D; }

@media (max-width: 1080px) {
  .nav { position: fixed; inset: 84px 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 16px; gap: 4px; display: none; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
  .nav.open { display: flex; }
  .nav a.cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .burger { display: block; }
  .header-right { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .members { grid-template-columns: repeat(2, 1fr); }
  .team-split, .contact-grid, .val-grid, .detail-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .services { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner { height: 72px; gap: 12px; }
  .nav { inset: 72px 0 auto 0; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 21px; }
  .grid, .members { grid-template-columns: 1fr; }
  .hero .wrap { padding: 72px 0 100px; }
  .hero p.lead { font-size: 17px; }
  section.block { padding: 64px 0; }
  .cta-band { padding: 34px 26px; }
  .panel { padding: 24px; }
  form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery div:first-child { min-height: 260px; grid-row: auto; }
  .gallery div:not(:first-child) { display: none; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .stat { padding: 18px; }
  .stat b { font-size: 24px; }
}
