: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: 20px;
  --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.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.1rem, 3.4vw, 3.4rem); }
h2 { margin-bottom: 22px; font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 80px 0; }
.section-label { margin-bottom: 18px; 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: 78px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand-mark { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; color: var(--brass); background: var(--ink); border-radius: 50%; font-family: var(--font-display); font-size: .92rem; letter-spacing: -.04em; }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.brand small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; justify-content: center; gap: clamp(14px, 1.8vw, 32px); font-size: .88rem; }
.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; font-weight: 600; }
.menu-button { display: none; border: 0; background: transparent; }

/* Hero Section */
.hero { min-height: auto; padding: 120px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-copy { position: relative; z-index: 2; padding: 10px 0; }
.hero-copy h1 { margin-bottom: 22px; max-width: 680px; word-break: normal; }
.hero-lead { max-width: 520px; margin-bottom: 26px; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .88rem; line-height: 1.2; transition: transform .18s ease, background .18s ease, color .18s ease; text-decoration: none; }
.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; }
.button-sm { min-height: 38px; padding: 6px 14px; font-size: .82rem; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--ink-soft); font-size: .86rem; }
.hero-note span { color: var(--brass-dark); font-weight: 700; }

.hero-visual { position: relative; min-height: 500px; display: flex; justify-content: flex-end; align-items: center; }
.hero-visual::before { position: absolute; z-index: -1; width: 85%; aspect-ratio: 1; top: -30px; right: -30px; content: ""; border: 1px solid rgba(143, 104, 40, .28); border-radius: 50%; }
.hero-visual img { width: 100%; max-width: 390px; height: 500px; object-fit: cover; border-radius: 195px 195px 20px 20px; box-shadow: var(--shadow); }
.hero-stamp { position: absolute; right: -12px; bottom: 18px; display: flex; width: 142px; height: 142px; flex-direction: column; align-items: center; justify-content: center; padding: 12px; color: var(--white); background: var(--ink); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; text-align: center; transform: rotate(5deg); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.hero-stamp span, .hero-stamp small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-stamp strong { margin: 3px 0 2px; color: var(--brass); font-family: var(--font-display); font-size: 1.1rem; }

/* About Section */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 70px); }
.about h2 { max-width: 720px; }
.large-copy { margin: 0; color: var(--ink-soft); font-size: 1.06rem; }
.principles { align-self: end; border-top: 1px solid var(--line); }
.principles div { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.principles strong { font-size: .92rem; }
.principles span { color: var(--ink-soft); font-size: .84rem; }

.section-heading { max-width: 900px; margin-bottom: 36px; }
.split-heading { display: grid; max-width: none; grid-template-columns: 1.4fr .65fr; align-items: end; gap: 40px; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p { margin-bottom: 2px; color: var(--ink-soft); }

/* Compact Tariffs / Services Grid (All 6 fit on one screen) */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.property-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: 16px; box-shadow: 0 8px 24px rgba(31, 41, 39, .06); border: 1px solid rgba(31, 41, 39, .08); transition: transform .2s ease, box-shadow .2s ease; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31, 41, 39, .1); }
.property-media { position: relative; height: 150px; overflow: hidden; background: var(--mist); }
.property-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.property-card:hover .property-media > img { transform: scale(1.03); }
.property-status { position: absolute; top: 10px; left: 10px; padding: 4px 10px; color: var(--ink); background: rgba(255,255,255,.94); border-radius: 999px; font-size: .7rem; font-weight: 700; backdrop-filter: blur(8px); }
.property-body { display: flex; flex-direction: column; flex-grow: 1; padding: 18px; }
.property-type { margin-bottom: 6px; color: var(--brass-dark); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.property-body h3 { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.property-location { color: var(--ink-soft); font-size: .78rem; margin-bottom: 6px; }
.property-description { margin-bottom: 12px; color: var(--ink-soft); font-size: .84rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.property-facts span { font-size: .75rem; font-weight: 600; background: var(--paper); padding: 3px 8px; border-radius: 6px; color: var(--ink-soft); }
.property-price { margin-bottom: 14px; margin-top: auto; font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); font-weight: 600; }
.property-actions { display: flex; gap: 8px; }
.property-actions .button { flex: 1 1 auto; text-align: center; }
.catalog-empty { padding: 40px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Services Grid (Dark) */
.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: 200px; padding: 28px; 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: 28px; color: var(--brass); font-family: var(--font-display); font-size: 1.05rem; }
.service-card h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; }
.service-card p { margin: 0; color: rgba(255,255,255,.64); font-size: .88rem; line-height: 1.45; }

/* Process */
.process { background: var(--mist); }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 100px); }
.process-intro { position: sticky; top: 110px; align-self: start; }
.process-intro > p { max-width: 460px; color: var(--ink-soft); font-size: .95rem; }
.text-link { display: inline-flex; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-weight: 700; text-decoration: none; font-size: .92rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; display: grid; min-height: 120px; grid-template-columns: 60px 1fr; gap: 20px; padding: 22px 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.1rem; }
.steps h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.steps p { max-width: 560px; margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* Team */
.team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.team-card { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 20px; padding: 24px; background: var(--paper); border-radius: var(--radius); }
.team-initials { display: grid; width: 100px; height: 100px; place-items: center; color: var(--brass); background: var(--ink); border-radius: 50%; font-family: var(--font-display); font-size: 1.6rem; }
.team-card h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.team-card p { margin-bottom: 10px; color: var(--ink-soft); font-size: .88rem; }
.team-card a { font-weight: 700; font-size: .92rem; }

/* Reviews */
.reviews { padding-top: 0; background: var(--white); }
.review-card { display: grid; grid-template-columns: .4fr 1.1fr auto; align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(32px, 4vw, 54px); color: var(--white); background: var(--ink); border-radius: var(--radius); }
.review-card h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 3.2vw, 3rem); font-family: var(--font-display); font-weight: 500; }
.review-card p { margin: 0; color: rgba(255,255,255,.7); font-size: .92rem; }
.rating-block { display: flex; flex-direction: column; }
.rating-block strong { font-family: var(--font-display); font-size: 4rem; font-weight: 500; line-height: 1; }
.rating-block span { margin: 6px 0 3px; color: var(--brass); letter-spacing: .12em; font-size: 1.05rem; }
.rating-block small { color: rgba(255,255,255,.65); font-size: .82rem; }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); white-space: nowrap; }

/* Footer */
.footer { padding: 70px 0 28px; color: var(--white); background: #151c1b; }
.footer h2 { margin-bottom: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.footer-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-phones { display: grid; gap: 4px; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.85rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 36px 0 44px; }
.footer-grid > div { display: grid; align-content: start; gap: 8px; }
.footer-grid span { color: rgba(255,255,255,.45); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.footer address { max-width: 470px; font-style: normal; font-size: .9rem; }
.resource-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.resource-links a { border-bottom: 1px solid rgba(255,255,255,.35); text-decoration: none; font-size: .9rem; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.55); font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-brand { color: var(--white); display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { background: var(--white); color: var(--ink); }
.admin-link { justify-self: end; color: inherit; }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(400px, calc(100% - 40px)); padding: 12px 18px; color: var(--white); background: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); }

@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .section { padding: 60px 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; cursor: pointer; }
  .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: 24px; background: var(--paper); font-family: var(--font-display); font-size: 1.8rem; }
  .site-nav.open { display: flex; }
  .hero { min-height: auto; padding-top: 100px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { min-height: 420px; justify-content: center; }
  .hero-visual img { height: 420px; border-radius: 180px 180px 20px 20px; }
  .hero-stamp { right: 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .principles { align-self: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .team-grid { grid-template-columns: 1fr; }
  .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% - 24px)); }
  .section { padding: 50px 0; }
  .header-inner { min-height: 66px; }
  .brand small { display: none; }
  .hero { padding-top: 85px; }
  .hero-copy { padding-top: 10px; }
  .hero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); letter-spacing: -.035em; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 340px; }
  .hero-visual img { height: 340px; }
  .hero-stamp { width: 120px; height: 120px; padding: 8px; bottom: 12px; }
  .hero-stamp strong { font-size: .9rem; }
  .split-heading { grid-template-columns: 1fr; gap: 10px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .review-card { grid-template-columns: 1fr; gap: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .admin-link { justify-self: center; }
}
