:root {
  --ink: #1f2927;
  --ink-soft: #53605d;
  --paper: #f5f6f2;
  --white: #ffffff;
  --mist: #e6ebe6;
  --sage: #aab9ae;
  --brass: #d7a84b;
  --brass-dark: #8f6828;
  --line: rgba(31, 41, 39, 0.16);
  --shadow: 0 24px 70px rgba(31, 41, 39, 0.12);
  --radius-sm: 12px;
  --radius: 24px;
  --container: min(1240px, calc(100% - 40px));
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; }
h1 { font-size: clamp(3.2rem, 7vw, 6.9rem); }
h2 { margin-bottom: 28px; font-size: clamp(2.35rem, 4.8vw, 4.8rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 120px 0; }
.section-label { margin-bottom: 24px; color: var(--brass-dark); font-size: .78rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: fixed; z-index: 30; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease; }
.site-header.scrolled { border-color: var(--line); background: rgba(245, 246, 242, .94); backdrop-filter: blur(18px); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 86px; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 13px; line-height: 1.1; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.brand-mark { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; color: var(--brass); background: var(--ink); border-radius: 50%; font-family: var(--font-display); font-size: .95rem; letter-spacing: -.04em; }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.brand small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 40px); font-size: .9rem; }
.site-nav a, .header-phone { position: relative; font-weight: 600; }
.site-nav a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; content: ""; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-phone { white-space: nowrap; }
.menu-button { display: none; border: 0; background: transparent; }

.hero { min-height: 820px; padding: 145px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr); align-items: center; gap: clamp(50px, 8vw, 120px); }
.hero-copy { position: relative; z-index: 2; padding: 45px 0; }
.hero-copy h1 { max-width: 850px; margin-bottom: 34px; }
.hero-copy h1::first-line { color: var(--ink); }
.hero-lead { max-width: 650px; margin-bottom: 36px; color: var(--ink-soft); font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; line-height: 1.2; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(215, 168, 75, .55); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-primary:hover { background: #32413e; }
.button-quiet { background: transparent; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--ink-soft); font-size: .9rem; }
.hero-note span { color: var(--brass-dark); }
.hero-visual { position: relative; min-height: 650px; }
.hero-visual::before { position: absolute; z-index: -1; width: 90%; aspect-ratio: 1; top: -70px; right: -100px; content: ""; border: 1px solid rgba(143, 104, 40, .28); border-radius: 50%; }
.hero-visual img { width: 100%; height: 650px; object-fit: cover; border-radius: 260px 260px 24px 24px; box-shadow: var(--shadow); }
.hero-stamp { position: absolute; right: -28px; bottom: 38px; display: flex; width: 174px; height: 174px; flex-direction: column; align-items: center; justify-content: center; padding: 18px; color: var(--white); background: var(--ink); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; text-align: center; transform: rotate(5deg); }
.hero-stamp span, .hero-stamp small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-stamp strong { margin: 6px 0 2px; color: var(--brass); font-family: var(--font-display); font-size: 1.25rem; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 7vw, 100px); }
.about h2 { max-width: 720px; }
.large-copy { margin: 0; color: var(--ink-soft); font-size: 1.15rem; }
.principles { align-self: end; border-top: 1px solid var(--line); }
.principles div { display: grid; gap: 3px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles strong { font-size: .95rem; }
.principles span { color: var(--ink-soft); font-size: .86rem; }

.section-heading { max-width: 900px; margin-bottom: 60px; }
.split-heading { display: grid; max-width: none; grid-template-columns: 1.4fr .65fr; align-items: end; gap: 70px; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p { margin-bottom: 6px; color: var(--ink-soft); }
.catalog-grid { display: grid; gap: 32px; max-width: 980px; margin-inline: auto; }
.property-card { display: grid; grid-template-columns: 1.15fr 1fr; min-height: auto; overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 45px rgba(31, 41, 39, .07); }
.property-media { position: relative; min-height: 320px; height: 100%; background: #eef1ec; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.property-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.property-status { position: absolute; top: 16px; left: 16px; padding: 7px 12px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 999px; font-size: .76rem; font-weight: 700; backdrop-filter: blur(8px); }
.property-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); }
.property-type { margin-bottom: 12px; color: var(--brass-dark); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.property-body h3 { margin-bottom: 10px; font-family: var(--font-display); font-size: clamp(1.45rem, 2.3vw, 2.1rem); font-weight: 500; }
.property-location { color: var(--ink-soft); margin-bottom: 8px; }
.property-description { max-width: 580px; margin-bottom: 18px; color: var(--ink-soft); font-size: .95rem; }
.property-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 20px; }
.property-facts span { font-size: .88rem; }
.property-price { margin-bottom: 20px; font-family: var(--font-display); font-size: 1.45rem; }
.gallery-toggle { align-self: flex-start; }
.property-gallery { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: var(--white); border-top: 1px solid var(--line); }
.property-gallery[hidden] { display: none; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; background: #eef1ec; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.watermark { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; color: var(--ink); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); pointer-events: none; user-select: none; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: -0.01em; z-index: 2; border: 1px solid rgba(255, 255, 255, 0.7); opacity: 0.88; transition: opacity .2s ease; }
.property-card:hover .watermark-main, .gallery-item:hover .watermark-small, .hero-visual:hover .watermark-main { opacity: 0.98; }
.watermark img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.watermark-main { right: 16px; bottom: 16px; padding: 6px 13px 6px 8px; font-size: 0.84rem; }
.watermark-main img { width: 22px; height: 22px; }
.watermark-small { right: 8px; bottom: 8px; padding: 4px 8px 4px 5px; font-size: 0.7rem; gap: 5px; background: rgba(255, 255, 255, 0.88); opacity: 0.82; }
.watermark-small img { width: 15px; height: 15px; border-radius: 3px; }
.hero-visual .watermark-main { left: 24px; right: auto; bottom: 24px; }
.catalog-empty { padding: 50px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

.services { color: var(--white); background: var(--ink); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.service-card { position: relative; min-height: 245px; padding: 38px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.service-card span { display: block; margin-bottom: 50px; color: var(--brass); font-family: var(--font-display); font-size: 1.1rem; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { margin: 0; color: rgba(255,255,255,.64); font-size: .92rem; }

.process { background: var(--mist); }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 11vw, 150px); }
.process-intro { position: sticky; top: 130px; align-self: start; }
.process-intro > p { max-width: 480px; color: var(--ink-soft); }
.text-link { display: inline-flex; gap: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-weight: 700; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; display: grid; min-height: 160px; grid-template-columns: 76px 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); counter-increment: steps; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(steps); color: var(--brass-dark); font-family: var(--font-display); font-size: 1.15rem; }
.steps h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.steps p { max-width: 580px; margin: 0; color: var(--ink-soft); }

.team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 30px; padding: 32px; background: var(--paper); border-radius: var(--radius); }
.team-initials { display: grid; width: 124px; height: 124px; place-items: center; color: var(--brass); background: var(--ink); border-radius: 50%; font-family: var(--font-display); font-size: 2rem; }
.team-card h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.team-card p { margin-bottom: 14px; color: var(--ink-soft); }
.team-card a { font-weight: 700; }

.office { background: var(--paper); }
.office-card { max-width: 1140px; margin-inline: auto; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 45px rgba(31, 41, 39, .07); overflow: hidden; }
.office-media { position: relative; min-height: 330px; max-height: 380px; height: 100%; background: #eef1ec; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.office-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.office-badge { position: absolute; top: 14px; left: 14px; padding: 6px 11px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 999px; font-size: .74rem; font-weight: 700; backdrop-filter: blur(8px); }
.office-body { display: flex; flex-direction: column; justify-content: center; padding: 24px 36px; }
.office-tag { margin-bottom: 6px; color: var(--brass-dark); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.office-body h3 { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.office-location { color: var(--ink-soft); margin-bottom: 8px; font-weight: 500; font-size: .88rem; }
.office-description { max-width: 580px; margin-bottom: 12px; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.office-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.office-facts span { font-size: .82rem; color: var(--ink); }
.office-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.office-actions .button { min-height: 42px; padding: 8px 18px; font-size: .88rem; }

.reviews { padding-top: 0; background: var(--paper); }
.review-card { display: grid; grid-template-columns: .4fr 1.1fr auto; align-items: center; gap: clamp(40px, 7vw, 90px); padding: clamp(42px, 6vw, 74px); color: var(--white); background: var(--ink); border-radius: var(--radius); }
.review-card h2 { margin-bottom: 18px; font-size: clamp(2.1rem, 4vw, 4rem); }
.review-card p { margin: 0; color: rgba(255,255,255,.7); }
.rating-block { display: flex; flex-direction: column; }
.rating-block strong { font-family: var(--font-display); font-size: 5rem; font-weight: 500; line-height: 1; }
.rating-block span { margin: 10px 0 4px; color: var(--brass); letter-spacing: .12em; }
.rating-block small { color: rgba(255,255,255,.65); }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); white-space: nowrap; }

.footer { padding: 100px 0 32px; color: var(--white); background: #151c1b; }
.footer h2 { margin-bottom: 0; }
.footer-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 50px; padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-phones { display: grid; gap: 5px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 70px; padding: 54px 0 70px; }
.footer-grid > div { display: grid; align-content: start; gap: 12px; }
.footer-grid span { color: rgba(255,255,255,.45); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer address { max-width: 470px; font-style: normal; }
.resource-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.resource-links a { border-bottom: 1px solid rgba(255,255,255,.35); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.55); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-brand { color: var(--white); }
.footer-brand .brand-mark { background: var(--white); }
.admin-link { justify-self: end; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(420px, calc(100% - 44px)); padding: 14px 20px; color: var(--white); background: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); }

@media (max-width: 980px) {
  .section { padding: 90px 0; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-phone { display: none; }
  .menu-button { z-index: 3; display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; }
  .menu-button > span:not(.visually-hidden) { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: var(--paper); font-family: var(--font-display); font-size: 2rem; }
  .site-nav.open { display: flex; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { min-height: 520px; }
  .hero-visual img { height: 520px; border-radius: 220px 220px 20px 20px; }
  .hero-stamp { right: 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .principles { align-self: auto; }
  .property-card { grid-template-columns: 1fr; }
  .property-media { min-height: 280px; aspect-ratio: 16 / 10; }
  .office-card { grid-template-columns: 1fr; }
  .office-media { min-height: 280px; aspect-ratio: 16 / 10; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .review-card { grid-template-columns: .5fr 1.5fr; }
  .review-card .button { grid-column: 1 / -1; justify-self: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 680px) {
  :root { --container: min(1240px, calc(100% - 28px)); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 74px; }
  .brand small { display: none; }
  .hero { padding-top: 105px; }
  .hero-copy { padding-top: 20px; }
  .hero-copy h1 { font-size: clamp(2.15rem, 9.5vw, 2.65rem); letter-spacing: -.045em; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 430px; }
  .hero-visual img { height: 430px; }
  .hero-stamp { width: 145px; height: 145px; bottom: 18px; }
  .split-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading { margin-bottom: 40px; }
  .property-media { min-height: 330px; }
  .property-body { padding: 30px 24px 34px; }
  .property-gallery { grid-template-columns: repeat(2, 1fr); }
  .watermark-main { right: 12px; bottom: 12px; font-size: 0.78rem; padding: 5px 10px 5px 7px; opacity: 0.92; background: rgba(255, 255, 255, 0.9); }
  .watermark-main img { width: 20px; height: 20px; }
  .watermark-small { right: 6px; bottom: 6px; font-size: 0.68rem; padding: 3px 7px 3px 5px; opacity: 0.88; background: rgba(255, 255, 255, 0.9); }
  .watermark-small img { width: 14px; height: 14px; }
  .hero-visual .watermark-main { left: 14px; right: auto; bottom: 14px; }
  .office-body { padding: 30px 24px 34px; }
  .office-actions .button { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 205px; padding: 30px; }
  .service-card span { margin-bottom: 36px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 15px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 82px 1fr; gap: 20px; padding: 22px; }
  .team-initials { width: 82px; height: 82px; font-size: 1.5rem; }
  .review-card { grid-template-columns: 1fr; }
  .review-card .button { grid-column: auto; }
  .rating-block strong { font-size: 4rem; }
  .footer { padding-top: 72px; }
  .footer-top { grid-template-columns: 1fr; padding-bottom: 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .admin-link { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
