/*
Theme Name: ЖК Пушкина
Description: Сайт жилого проекта на улице Пушкина в Абакане.
Version: 0.4.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: pyatietazhka
*/
:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --paper-deep: #efede6;
  --ink: #20211e;
  --muted: #686862;
  --oxblood: #8f3228;
  --oxblood-dark: #72271f;
  --rule: #d9d7cf;
  --white: #fffefa;
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 5.2vw, 76px);
  --measure: 1320px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--oxblood); }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 4px; }
.site-shell { width: min(calc(100% - 2 * var(--gutter)), var(--measure)); margin-inline: auto; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--rule); background: var(--paper); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: clamp(24px, 4vw, 62px); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; font-size: 14px; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1px solid var(--oxblood); color: var(--oxblood); font-family: var(--serif); font-size: 19px; line-height: 1; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(17px, 2.5vw, 38px); margin-left: auto; }
.primary-nav a, .header-cta { font-size: 12px; font-weight: 600; letter-spacing: .025em; text-decoration: none; }
.primary-nav a { position: relative; padding-block: 8px; color: #4e4e48; transition: color .2s var(--ease); }
.primary-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--oxblood); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--oxblood); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { flex: 0 0 auto; padding: 11px 16px; border: 1px solid var(--ink); transition: color .2s, background .2s, border-color .2s; }
.header-cta:hover { color: var(--white); border-color: var(--oxblood); background: var(--oxblood); }

.eyebrow, .section-kicker, .fact-label, .filter, .plan-meta, .doc-meta, .footer-meta { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .11em; line-height: 1.45; text-transform: uppercase; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 12px; color: var(--oxblood); }
.eyebrow::before, .section-kicker::before { width: 27px; height: 1px; background: currentColor; content: ""; }

.hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(38px, 7vw, 100px); padding-block: clamp(48px, 7.2vw, 102px) clamp(54px, 7vw, 94px); }
.hero-copy { max-width: 570px; padding-block: 12px; }
.hero h1 { max-width: 680px; margin: 25px 0 22px; font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); font-weight: 400; letter-spacing: -.055em; line-height: 1.04; }
.hero-lede { max-width: 470px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; border: 1px solid transparent; font-size: 12px; font-weight: 700; letter-spacing: .015em; text-align: center; text-decoration: none; transition: transform .22s var(--ease), background .22s, color .22s, border-color .22s; }
.button:hover { transform: translateY(-2px); }
.button--dark { color: var(--white); border-color: var(--ink); background: var(--ink); }
.button--dark:hover { border-color: var(--oxblood); background: var(--oxblood); }
.button--light { color: var(--ink); border-color: var(--rule); background: transparent; }
.button--light:hover { color: var(--oxblood); border-color: var(--oxblood); }
.hero-visual { position: relative; margin: 0; }
.hero-visual::before { position: absolute; z-index: -1; top: -16px; right: -16px; width: 39%; height: 42%; border-top: 1px solid var(--oxblood); border-right: 1px solid var(--oxblood); content: ""; }
.hero-visual img { width: 100%; aspect-ratio: 1.29; object-fit: cover; background: var(--paper-deep); }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--rule); }
.fact { display: flex; align-items: baseline; gap: 13px; padding: 20px clamp(14px, 2vw, 27px); }
.fact + .fact { border-left: 1px solid var(--rule); }
.fact strong { color: var(--oxblood); font-family: var(--serif); font-size: clamp(23px, 2.6vw, 35px); font-weight: 400; line-height: 1; }
.fact span { color: var(--muted); font-size: 11px; }

.spread { padding-block: clamp(68px, 9vw, 132px); }
.spread--paper { background: var(--paper-deep); }
.spread--dark { color: var(--paper); background: var(--ink); }
.spread-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); align-items: end; gap: 32px; margin-bottom: clamp(32px, 4.5vw, 60px); }
.section-title { max-width: 820px; margin: 15px 0 0; font-family: var(--serif); font-size: clamp(38px, 5.1vw, 68px); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; }
.section-intro { max-width: 430px; justify-self: end; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.spread--dark .section-intro { color: #c2c0b8; }
.spread--dark .section-kicker { color: #d69283; }

.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); align-items: center; gap: clamp(42px, 7vw, 100px); }
.story-visual { position: relative; min-height: 390px; background: var(--paper); }
.story-visual img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.story-copy { max-width: 520px; }
.story-copy h3 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: 1.2; }
.story-copy p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.principles { display: grid; gap: 0; margin: 27px 0 0; padding: 0; list-style: none; }
.principles li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--rule); font-size: 13px; }
.principles li::before { position: absolute; top: 23px; left: 2px; width: 8px; height: 8px; border: 1px solid var(--oxblood); content: ""; transform: rotate(45deg); }

.catalog-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(28px, 5vw, 68px); }
.catalog-controls { align-self: start; position: sticky; top: 24px; }
.filters { display: grid; gap: 4px; margin-top: 18px; }
.filter { width: 100%; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--muted); cursor: pointer; text-align: left; transition: color .2s, padding .2s; }
.filter:hover, .filter[aria-pressed="true"] { padding-left: 16px; color: var(--oxblood); }
.filter[aria-pressed="true"] { box-shadow: inset 2px 0 var(--oxblood); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan-card { min-width: 0; border: 1px solid var(--rule); background: var(--white); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.plan-card:hover { border-color: #b9a29b; box-shadow: 0 14px 34px #20211e0d; transform: translateY(-4px); }
.plan-image { position: relative; overflow: hidden; background: var(--paper-deep); }
.plan-image img { width: 100%; aspect-ratio: 1.22; object-fit: cover; transition: transform .5s var(--ease); }
.plan-card:hover .plan-image img { transform: scale(1.025); }
.plan-body { padding: 21px 22px 23px; }
.plan-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--oxblood); }
.plan-body h4 { margin: 11px 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.2; }
.plan-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.plan-body a { display: inline-block; margin-top: 18px; font-size: 11px; font-weight: 700; text-decoration-color: var(--oxblood); text-underline-offset: 5px; }

.gallery-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; grid-auto-rows: clamp(170px, 23vw, 300px); gap: 14px; }
.gallery-tile { position: relative; overflow: hidden; margin: 0; background: var(--paper-deep); }
.gallery-tile:first-child { grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery-tile:hover img { transform: scale(1.035); }
.gallery-tile figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 34px 17px 14px; color: white; background: linear-gradient(transparent, #171713ad); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc-card { display: flex; min-height: 185px; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid var(--rule); background: var(--white); text-decoration: none; transition: border-color .2s, transform .22s var(--ease); }
.doc-card:hover { border-color: var(--oxblood); transform: translateY(-3px); }
.doc-meta { color: var(--oxblood); }
.doc-card h3 { margin: 18px 0 7px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.25; }
.doc-card p { margin: 0; color: var(--muted); font-size: 12px; }
.doc-card .doc-arrow { align-self: flex-end; margin-top: auto; color: var(--oxblood); font-size: 20px; }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; padding: 21px 42px 21px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.35; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 50%; right: 5px; color: var(--oxblood); content: "+"; font-family: var(--sans); font-size: 25px; font-weight: 300; transform: translateY(-50%); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 740px; margin: -2px 0 23px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.contact-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--oxblood); color: var(--white); }
.contact-panel .section-kicker { color: #f0c6bb; }
.contact-body { padding: clamp(30px, 5vw, 68px); }
.contact-body h2 { margin: 16px 0; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 59px); font-weight: 400; letter-spacing: -.04em; line-height: 1.12; }
.contact-body p { max-width: 470px; color: #f1ded8; font-size: 14px; line-height: 1.8; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 27px; }
.contact-links a { color: var(--white); font-size: 12px; font-weight: 600; text-underline-offset: 5px; }
.contact-panel .button--light { color: var(--white); border-color: #ffffff80; }
.contact-panel .button--light:hover { color: var(--oxblood); border-color: var(--white); background: var(--white); }

.site-footer { margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 24px; }
.footer-meta { color: var(--muted); font-size: 9px; }
.site-footer a { font-size: 11px; text-decoration: none; }
.site-footer a:hover { color: var(--oxblood); }

.plan-dialog { width: min(760px, calc(100% - 32px)); max-height: min(88vh, 900px); padding: 0; overflow: auto; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: 0 28px 100px #17171345; }
.plan-dialog::backdrop { background: #171713a6; backdrop-filter: blur(3px); }
.dialog-inner { position: relative; padding: clamp(24px, 5vw, 52px); }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; width: 38px; aspect-ratio: 1; place-items: center; border: 1px solid var(--rule); background: transparent; cursor: pointer; font-size: 21px; transition: border-color .2s, color .2s; }
.dialog-close:hover { color: var(--oxblood); border-color: var(--oxblood); }
.dialog-inner h2 { margin: 13px 48px 18px 0; font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); font-weight: 400; line-height: 1.1; }
.dialog-inner img { width: 100%; max-height: 55vh; object-fit: contain; background: var(--paper-deep); }

@media (min-width: 1500px) { .hero { min-height: 700px; } }
@media (max-width: 900px) {
  .header-inner { min-height: 74px; gap: 20px; }
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 11px; }
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 38px; }
  .catalog-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
  .catalog-grid { gap: 14px; }
  .plan-body { padding: 17px; }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --gutter: 22px; }
  html { scroll-padding-top: 20px; }
  .header-inner { min-height: 68px; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 12px; }
  .wordmark { font-size: 13px; }
  .brand-mark { width: 30px; }
  .header-cta { padding: 9px 11px; font-size: 10px; }
  .primary-nav { order: 3; width: 100%; justify-content: flex-start; gap: 22px; overflow-x: auto; padding: 3px 0 2px; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { flex: 0 0 auto; font-size: 10px; }
  .hero { grid-template-columns: 1fr; gap: 31px; padding-block: 47px 54px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 520px; margin: 18px 0 16px; font-size: clamp(46px, 13vw, 68px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { margin-top: 24px; }
  .button { min-height: 45px; padding: 11px 15px; }
  .hero-visual::before { top: -9px; right: -8px; }
  .hero-visual img { aspect-ratio: 1.18; }
  .hero-visual figcaption { font-size: 8px; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact { padding: 14px 4px; }
  .fact + .fact { border-top: 1px solid var(--rule); border-left: 0; }
  .fact strong { min-width: 54px; }
  .spread { padding-block: 62px; }
  .spread-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .section-title { margin-top: 12px; font-size: clamp(36px, 10vw, 52px); }
  .section-intro { justify-self: start; font-size: 13px; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-visual, .story-visual img { min-height: 0; }
  .story-visual img { aspect-ratio: 1.15; }
  .catalog-layout { grid-template-columns: 1fr; gap: 19px; }
  .catalog-controls { position: static; }
  .filters { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
  .filter { width: auto; flex: 0 0 auto; padding: 10px 12px; border: 1px solid var(--rule); }
  .filter:hover, .filter[aria-pressed="true"] { padding-left: 12px; }
  .filter[aria-pressed="true"] { border-color: var(--oxblood); box-shadow: inset 0 -2px var(--oxblood); }
  .catalog-grid { grid-template-columns: 1fr; gap: 14px; }
  .plan-image img { aspect-ratio: 1.4; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(145px, 42vw, 230px); gap: 9px; }
  .gallery-tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery-tile:first-child img { aspect-ratio: 1.45; }
  .gallery-tile figcaption { padding: 27px 11px 10px; font-size: 8px; }
  .document-grid { grid-template-columns: 1fr; gap: 10px; }
  .doc-card { min-height: 150px; padding: 18px; }
  .faq summary { padding-block: 18px; font-size: 21px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-body { padding: 28px 23px; }
  .footer-inner { min-height: 95px; flex-wrap: wrap; justify-content: flex-start; gap: 10px 25px; padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 50; top: 10px; left: 10px; padding: 9px 12px; color: var(--white); background: var(--ink); transform: translateY(-140%); }
.skip-link:focus { transform: none; }
.hero { isolation: isolate; }
.hero h1 { font-size: clamp(45px, 5.15vw, 77px); }
.hero h1 .hero-accent { color: var(--oxblood); }
.fact strong { white-space: nowrap; }
.story-visual { margin: 0; min-height: 0; padding: 24px 18px 12px; border: 1px solid var(--rule); background: var(--white); }
.story-visual img { height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; }
.story-visual figcaption { margin: 12px 0 0; padding: 9px 4px 0; border-top: 1px solid var(--rule); font: 10px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; }
.image-link { display: block; }
.catalog-floor { color: var(--oxblood); font-size: 12px; }
.plan-image { display: block; }
.plan-image img { object-fit: contain; background: #f2f0ea; }
.plan-meta { color: var(--oxblood); }
.plan-open { color: var(--oxblood); font-size: 12px; font-weight: 700; }
.catalog-more { display: flex; margin: 22px auto 0; cursor: pointer; }
.gallery-note { margin: 25px 0 0; font-size: 12px; color: #c2c0b8; }
.gallery-tile .image-link { height: 100%; }
.gallery-tile figcaption { display: flex; align-items: end; justify-content: space-between; gap: 9px; pointer-events: none; }
.gallery-tile figcaption span:last-child { white-space: nowrap; }
.gallery-tile .image-link:focus-visible { outline-offset: -4px; outline-color: white; }
.document-grid { margin-bottom: 40px; }
.contact-panel { display: block; }
.contact-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 32px; align-items: end; padding: clamp(42px, 7vw, 90px) 0; }
.contact-body address { font-style: normal; }
.contact-links { margin: 0; align-items: center; }
.contact-name { flex-basis: 100%; margin: 0; }
.contact-panel :focus-visible { outline-color: var(--white); }
.site-footer { margin-top: 0; }
.dialog-caption { color: var(--muted); font-size: 13px; }
@media (max-width: 680px) {
  .hero h1 { font-size: clamp(40px, 11.3vw, 67px); }
  .header-cta { font-size: 11px; }
  .contact-body { grid-template-columns: 1fr; gap: 20px; }
  .catalog-floor { display: inline-block; }
  .document-grid { margin-bottom: 28px; }
}
@media (max-width: 360px) { .hero h1 { font-size: 35px; } }
.hero-visual img { height: auto; aspect-ratio: 1.43; }
.hero h1 { font-size: clamp(42px, 4.6vw, 72px); text-wrap: balance; }
.hero-finish { margin: 13px 0 0; font-size: 13px; color: var(--oxblood); font-weight: 800; }
.gallery-grid { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); grid-auto-rows: clamp(180px, 21vw, 290px); }
@media (max-width: 680px) {
  .hero h1 { font-size: clamp(38px, 10.8vw, 64px); }
  .hero-visual img { aspect-ratio: 1.3; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .gallery-tile { aspect-ratio: 1.07; }
  .gallery-tile:first-child { aspect-ratio: 1.43; }
}
@media (max-width: 360px) { .hero h1 { font-size: 35px; } }
@media (max-width: 680px) {
  .catalog-layout, .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-controls, .catalog-main { min-width: 0; }
  .filters { flex-wrap: wrap; overflow: visible; }
  .primary-nav { flex-wrap: wrap; gap: 7px 16px; }
}

.pm-map {
  --pm-accent: #8f3228;
  --pm-ink: #28241e;
  --pm-muted: #625c53;
  --pm-rule: #dcd5ca;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 29%);
  align-items: start;
  gap: clamp(1.25rem, 3.2vw, 3.4rem);
  color: var(--pm-ink);
}

.pm-map .pm-map__figure {
  min-width: 0;
  margin: 0;
}

.pm-map [hidden] { display: none; }

.pm-map .pm-map__maps { min-width: 0; }

.pm-map .pm-map__views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.pm-map .pm-map__views[hidden] { display: none; }

.pm-map .pm-map__views button {
  min-height: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--pm-rule);
  background: #fffdfa;
  color: var(--pm-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
}

.pm-map .pm-map__views button[aria-pressed="true"] {
  border-color: var(--pm-accent);
  background: var(--pm-accent);
  color: #fff;
}

.pm-map .pm-map__site { margin-top: 1.25rem; }
.pm-map .pm-map__views:not([hidden]) ~ .pm-map__site { margin-top: 0; }

.pm-map .pm-map__canvas {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #ede9e0;
  border: 1px solid var(--pm-rule);
}

.pm-map .pm-map__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pm-map .pm-map__paper { fill: #ede9e0; }
.pm-map .pm-map__geo-land { fill: #e3dfd6; fill-rule: evenodd; }
.pm-map .pm-map__geo-grounds { fill: #deded0; fill-rule: evenodd; }
.pm-map .pm-map__geo-green { fill: #d8dfcf; fill-rule: evenodd; }
.pm-map .pm-map__geo-buildings { fill: #cfc9bc; fill-rule: evenodd; }

.pm-map .pm-map__site-ground { fill: #e9e3d7; }
.pm-map .pm-map__site-grass { fill: #d4d8bf; }
.pm-map .pm-map__site-trees { fill: #778b61; stroke: #dce2c6; stroke-width: 1.5; }
.pm-map .pm-map__site-trees circle:nth-child(3n + 1) { fill: #8da177; }
.pm-map .pm-map__site-trees circle:nth-child(3n + 2) { fill: #647c56; }
.pm-map .pm-map__site-paving { fill: none; stroke: #f6f0e3; }
.pm-map .pm-map__site-road { fill: none; stroke: #746c63; }
.pm-map .pm-map__site-lane { fill: none; stroke: #d7c8b4; stroke-width: 1.5; stroke-dasharray: 11 9; }
.pm-map .pm-map__site-drive { fill: none; stroke: #aaa18f; }
.pm-map .pm-map__site-path { fill: none; stroke: #faf2df; stroke-width: 6; }
.pm-map .pm-map__site-neighbor { fill: #b8a68c; stroke: #887560; stroke-width: 1.6; }
.pm-map .pm-map__site-roofline { fill: none; stroke: #a39178; stroke-width: 1.5; }
.pm-map .pm-map__site-house { fill: #a95a4a; stroke: #753126; stroke-width: 2; }
.pm-map .pm-map__site-house-ridge { fill: none; stroke: #c78573; stroke-width: 1.6; }

.pm-map :is(.pm-map__site-labels, .pm-map__site-street-label) {
  fill: #3c3328;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
}

.pm-map .pm-map__site-street-label { fill: #fffaf0; }
.pm-map .pm-map__site-house-label {
  fill: #542219;
  stroke: #f0e7d6;
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke;
}

.pm-map .pm-map__site-scale { font-size: 0.85em; font-weight: 600; }
.pm-map .pm-map__site-scale-bar { fill: none; stroke: #625747; stroke-width: 2; }

.pm-map :is(.pm-map__geo-streets, .pm-map__geo-local, .pm-map__geo-main, .pm-map__geo-rail) {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pm-map .pm-map__geo-streets { stroke: #f8f6ef; stroke-width: 3.6; }
.pm-map .pm-map__geo-local { stroke: #f9f7f1; stroke-width: 4; }
.pm-map .pm-map__geo-main { stroke: #fffdf8; stroke-width: 6; }
.pm-map .pm-map__geo-rail { stroke: #a6a294; stroke-width: 1.5; stroke-dasharray: 4 4; }

.pm-map .pm-map__labels {
  fill: #504c43;
  stroke: #f1ede4;
  stroke-width: 3;
  paint-order: stroke;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}

.pm-map .pm-map__north {
  position: absolute;
  inset: 0.75rem 0.9rem auto auto;
  color: var(--pm-muted);
  background: #faf7f0;
  border: 1px solid var(--pm-rule);
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pm-map .pm-map__pin {
  position: absolute;
  left: var(--pm-x);
  top: var(--pm-y);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: var(--pm-ink);
  font-family: inherit;
}

.pm-map .pm-map__pin--house { transform: translate(-50%, calc(-100% + 5px)); }
.pm-map .pm-map__pin--stop { transform: translate(-50%, -5px); }
.pm-map .pm-map__site .pm-map__pin--stop { transform: translate(-50%, calc(-100% + 5px)); }

.pm-map :is(.pm-map__pin span, .pm-map__number) {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid #a59c8d;
  border-radius: 50%;
  background: #fffdfa;
  color: var(--pm-ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.pm-map .pm-map__pin span {
  box-shadow: 0 1px 4px #47331d2e;
}

.pm-map :is(.pm-map__pin--house, .pm-map__pin--stop)::after {
  position: absolute;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.pm-map .pm-map__pin--house::after { bottom: 2px; background: var(--pm-accent); }
.pm-map .pm-map__pin--stop::after { top: 2px; }
.pm-map .pm-map__site .pm-map__pin--stop::after { inset-block: auto 2px; }

.pm-map .pm-map__pin--house span {
  width: 2.05rem;
  height: 2.05rem;
  border-color: var(--pm-accent);
  color: var(--pm-accent);
  font-size: 1.45rem;
}

.pm-map .pm-map__pin[aria-current="true"] { z-index: 2; }

.pm-map :is(.pm-map__pin[aria-current="true"] span, .pm-map__row[aria-current="true"] .pm-map__number) {
  background: var(--pm-accent);
  border-color: var(--pm-accent);
  color: #fff;
}

.pm-map .pm-map__pin:hover span,
.pm-map .pm-map__row:hover .pm-map__number {
  border-color: var(--pm-accent);
}

.pm-map :is(a, button):focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 2px;
}

.pm-map .pm-map__attribution {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin-top: 0.35rem;
  color: var(--pm-muted);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.pm-map .pm-map__attribution a { color: inherit; }
.pm-map .pm-map__site-caption { justify-content: space-between; }

.pm-map .pm-map__list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--pm-rule);
  list-style: none;
}

.pm-map .pm-map__row {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 0.12rem;
  border-bottom: 1px solid var(--pm-rule);
  color: inherit;
  text-decoration: none;
}

.pm-map .pm-map__row[aria-current="true"] .pm-map__name,
.pm-map .pm-map__row:hover .pm-map__name {
  color: var(--pm-accent);
}

.pm-map :is(.pm-map__category, .pm-map__name, .pm-map__address) {
  display: block;
  line-height: 1.3;
}

.pm-map .pm-map__category {
  margin-bottom: 0.12rem;
  color: var(--pm-muted);
  font-size: 0.75rem;
}

.pm-map .pm-map__name { font-size: 1rem; font-weight: 650; }
.pm-map .pm-map__address { margin-top: 0.12rem; color: var(--pm-muted); font-size: 0.825rem; }

.pm-map .pm-map__route {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.45rem;
  color: var(--pm-accent);
  font-size: 0.9rem;
  font-weight: 650;
  text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
  .pm-map {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .pm-map .pm-map__labels { font-size: 21px; }
  .pm-map :is(.pm-map__site-labels, .pm-map__site-street-label) { font-size: 23px; }
  .pm-map .pm-map__north { inset: 0.4rem 0.45rem auto auto; }
  .pm-map .pm-map__attribution { justify-content: flex-start; }
}

.pushkina-home {
  --paper: #fff;
  --paper-deep: #f4f5f4;
  --ink: #171a19;
  --muted: #555d59;
  --oxblood: #364e46;
  --oxblood-dark: #263a33;
  --rule: #d7dcd9;
  --white: #fff;
  --gutter: clamp(22px, 5.4vw, 86px);
  --measure: 1360px;
  background: var(--paper);
  color: var(--ink);
}

.pushkina-home .site-header { border-color: var(--ink); }
.pushkina-home .skip-link:not(:focus) { clip-path: inset(50%); }
.pushkina-home .header-inner {
  display: grid;
  grid-template-columns: minmax(155px, 1fr) auto minmax(155px, 1fr);
  gap: clamp(18px, 3vw, 48px);
  min-height: 78px;
}

.pushkina-home .wordmark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 10px;
}

.pushkina-home .wordmark-building {
  flex: none;
  width: clamp(46px, 5vw, 61px);
  height: auto;
}

.pushkina-home .wordmark-name {
  display: grid;
  gap: 4px;
  font: 400 27px/1.05 var(--serif);
  letter-spacing: -.055em;
}

.pushkina-home .wordmark-kind {
  font: 700 8px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pushkina-home .primary-nav { margin: 0; gap: clamp(13px, 2.1vw, 33px); }
.pushkina-home .primary-nav a { color: var(--ink); font-size: 12px; }
.pushkina-home .header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 13px;
  min-height: 42px;
  padding: 9px 0 9px 12px;
  border: 0;
  color: var(--ink);
  white-space: nowrap;
}

.pushkina-home .header-cta:hover { color: var(--oxblood); background: transparent; text-decoration: underline; }
.pushkina-home .header-cta span { font-size: 16px; }
.pushkina-home .section-kicker {
  color: var(--muted);
  font: 700 10px/1.4 var(--sans);
  letter-spacing: .16em;
}

.pushkina-home .section-kicker::before { display: none; }
.pushkina-home .home-cover { display: block; min-height: 0; padding: 0; }
.home-cover__heading { padding-top: clamp(31px, 3.6vw, 57px); }
.pushkina-home .home-cover__address { margin: 0 0 clamp(15px, 2vw, 27px); }
.pushkina-home .home-cover h1 {
  max-width: 1200px;
  margin: 0;
  font-size: clamp(57px, 7.25vw, 113px);
  line-height: 1.04;
  letter-spacing: -.06em;
  text-wrap: balance;
  text-align: left;
}

.pushkina-home .hero-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: clamp(20px, 4vw, 63px);
  margin-top: clamp(20px, 2.2vw, 36px);
  padding-bottom: clamp(24px, 2.6vw, 40px);
}

.pushkina-home .hero-lede {
  max-width: 370px;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.55;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: .38em;
  margin: 0;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.hero-price strong { font: 400 clamp(32px, 4vw, 58px)/1 var(--serif); letter-spacing: -.06em; }
.hero-price span { font-size: 12px; font-weight: 700; }
.pushkina-home .button { min-height: 48px; padding-inline: 17px; }
.pushkina-home .button--dark { justify-content: space-between; gap: clamp(18px, 2.6vw, 42px); }
.pushkina-home .button--dark span { font-size: 16px; font-weight: 400; line-height: 1; }
.pushkina-home .home-cover .button { white-space: nowrap; }

.home-cover__media { width: min(100%, 1800px); margin: 0 auto; }
.home-cover__image {
  position: relative;
  overflow: hidden;
  height: clamp(350px, 40vw, 670px);
  background: var(--paper-deep);
}

.home-cover__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
}

.home-cover__media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 13px 14px;
  color: var(--muted);
  font-size: 11px;
}

@media (prefers-reduced-motion: no-preference) {
  .home-cover__image img { animation: home-cover-arrival .95s var(--ease) both; }
  @keyframes home-cover-arrival {
    from { opacity: .55; transform: scale(1.026); }
    to { opacity: 1; transform: scale(1); }
  }
}

.purchase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: clamp(34px, 6vw, 92px);
  border-block: 1px solid var(--ink);
}

.purchase-option { padding-block: clamp(24px, 3.8vw, 54px); }
.purchase-option:first-child { padding-inline-end: clamp(20px, 5vw, 70px); }
.purchase-option + .purchase-option {
  padding-inline-start: clamp(20px, 5vw, 70px);
  border-inline-start: 1px solid var(--rule);
}

.purchase-option h2 {
  margin: 0 0 10px;
  font: 400 clamp(24px, 3.2vw, 44px)/1.18 var(--serif);
  letter-spacing: -.045em;
}

.purchase-option p { max-width: 400px; margin: 0; color: var(--muted); font-size: 14px; }
.purchase-option a { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; }

.pushkina-home .spread { padding-block: clamp(52px, 8vw, 115px); }
.pushkina-home .spread-head {
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .75fr);
  padding-top: 17px;
  border-top: 1px solid var(--ink);
}

.pushkina-home .section-title { font-size: clamp(39px, 5.25vw, 77px); }
.pushkina-home .section-intro { max-width: 380px; font-size: 15px; line-height: 1.65; }
.home-lots { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.home-lots .section-title { margin-top: 0; }
.home-lots .section-intro { margin-top: 14px; }
.home-lots .button { flex: none; }

.pushkina-home .story-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, .75fr);
  align-items: start;
  gap: clamp(28px, 6.5vw, 100px);
}

.pushkina-home .story-visual { padding: 0; border: 0; }
.pushkina-home .story-visual figcaption {
  margin-top: 0;
  padding: 13px 0 0;
  border: 0;
  font: 400 11px/1.5 var(--sans);
  text-transform: none;
}

.pushkina-home .story-copy { padding-top: 17px; border-top: 1px solid var(--rule); }
.pushkina-home .story-copy h3 { font-size: clamp(27px, 3.2vw, 43px); letter-spacing: -.035em; }
.pushkina-home .principles li { padding-inline-start: 0; }
.pushkina-home .principles li::before { display: none; }

.pushkina-home .home-gallery { background: var(--paper-deep); }
.pushkina-home .gallery-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  align-items: start;
  gap: clamp(16px, 2vw, 30px);
}

.pushkina-home .gallery-tile { overflow: visible; background: none; aspect-ratio: auto; }
.pushkina-home .gallery-tile:first-child { grid-column: 1; grid-row: span 2; }
.pushkina-home .gallery-tile .image-link {
  height: auto;
  aspect-ratio: 1.52;
  overflow: hidden;
  background: #e5e8e6;
}

.pushkina-home .gallery-tile:first-child .image-link { aspect-ratio: 1.21; }
.pushkina-home .gallery-tile img { width: 100%; height: 100%; aspect-ratio: auto; }
.pushkina-home .gallery-tile:first-child img { object-position: 47% 50%; }
.pushkina-home .gallery-tile .image-link:focus-visible { outline-color: var(--ink); }
.pushkina-home .gallery-tile figcaption {
  position: static;
  padding: 10px 0 0;
  background: none;
  color: var(--ink);
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.pushkina-home .gallery-tile figcaption span:last-child, .pushkina-home .gallery-note { color: var(--muted); }
.pushkina-home .gallery-note { max-width: 600px; }

.pushkina-home .pm-map {
  --pm-accent: var(--oxblood);
  --pm-ink: var(--ink);
  --pm-muted: var(--muted);
  --pm-rule: var(--rule);
}

.pushkina-home .document-grid { gap: 0; border-block: 1px solid var(--ink); }
.pushkina-home .doc-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  min-height: 143px;
  gap: 7px 12px;
  padding: clamp(15px, 2.6vw, 37px);
  border: 0;
  border-inline-end: 1px solid var(--rule);
  background: transparent;
  transition: background .22s var(--ease);
}

.pushkina-home .doc-card:last-child { border-inline-end: 0; }
.pushkina-home .doc-card:hover { background: var(--white); transform: none; }
.pushkina-home .doc-card h3 { margin: 0; }
.pushkina-home .doc-card p { grid-column: 1; }
.pushkina-home .doc-arrow { grid-area: 1 / 2; align-self: start; }
.pushkina-home .faq summary { letter-spacing: -.025em; }

.pushkina-home .contact-panel { background: #202a26; }
.pushkina-home .contact-body {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 8vw, 116px);
}

.pushkina-home .contact-panel .section-kicker,
.pushkina-home .contact-body > div > p,
.pushkina-home .contact-details :is(address, .contact-name) { color: #e1e6e3; }
.pushkina-home .contact-details { display: grid; justify-items: start; gap: 8px; margin-top: 28px; }
.pushkina-home .contact-details address { font-size: 14px; }
.pushkina-home .contact-details .contact-name { margin-top: 8px; }
.pushkina-home .contact-details .button {
  min-height: 40px;
  padding: 0;
  border: 0;
  font: 400 clamp(24px, 3vw, 38px)/1.1 var(--serif);
  letter-spacing: -.05em;
}

.pushkina-home .contact-details .button:hover { background: none; color: var(--white); text-decoration: underline; }
.pushkina-home .contact-panel .inquiry :focus-visible { outline-color: var(--oxblood); }
.pushkina-home .site-footer { border-top: 0; }
.pushkina-home .footer-inner > a:last-child { font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .pushkina-home .header-inner { grid-template-columns: auto 1fr auto; gap: 20px; }
  .pushkina-home .document-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .pushkina-home .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 15px;
    padding-block: 12px 5px;
  }

  .pushkina-home .wordmark { gap: 8px; }
  .pushkina-home .wordmark-name { font-size: 24px; }
  .pushkina-home .header-cta { font-size: 11px; }
  .pushkina-home .primary-nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 0 15px;
    overflow: visible;
    padding: 0;
  }

  .pushkina-home .primary-nav a { font-size: 11px; }
  .home-cover__heading { padding-top: 30px; }
  .pushkina-home .home-cover h1 { max-width: none; font-size: clamp(34px, 9.5vw, 60px); }
  .pushkina-home .hero-offer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 12px;
    margin-top: 18px;
  }

  .pushkina-home .hero-lede { grid-column: 1 / -1; }
  .hero-price strong { font-size: clamp(24px, 7.2vw, 42px); }
  .hero-price span { font-size: 11px; }
  .pushkina-home .home-cover .button { gap: 10px; padding-inline: 11px; }
  .home-cover__image { height: auto; aspect-ratio: 1.08; }
  .home-cover__image img { object-position: 48% 53%; }
  .home-cover__media figcaption { font-size: 10px; }
  .purchase { grid-template-columns: 1fr; }
  .purchase-option:first-child { padding-inline-end: 0; }
  .purchase-option + .purchase-option { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
  .pushkina-home :is(.spread-head, .story-grid, .document-grid, .contact-body) { grid-template-columns: 1fr; }
  .pushkina-home .section-title { font-size: clamp(33px, 8.8vw, 53px); }
  .pushkina-home .section-intro { font-size: 14px; }
  .home-lots { align-items: start; flex-direction: column; gap: 21px; }
  .pushkina-home .gallery-tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .pushkina-home .gallery-tile:first-child .image-link { aspect-ratio: 1.35; }
  .pushkina-home .gallery-tile:not(:first-child) .image-link { aspect-ratio: 1.1; }
  .pushkina-home .gallery-tile figcaption { align-items: start; gap: 4px; font-size: 10px; }
  .pushkina-home .doc-card { min-height: 0; padding: 16px 0; border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .pushkina-home .doc-card:last-child { border-bottom: 0; }
  .pushkina-home .contact-body { padding: 46px 0; }
  .pushkina-home .footer-inner { justify-content: space-between; }
  .pushkina-home .footer-meta { order: 1; width: 100%; }
}

@media (max-width: 360px) {
  .pushkina-home .header-inner { column-gap: 8px; }
  .pushkina-home .wordmark { gap: 6px; }
  .pushkina-home .wordmark-building { width: 44px; }
  .pushkina-home .wordmark-name { font-size: 21px; }
  .pushkina-home .header-cta { gap: 9px; }
  .pushkina-home .primary-nav { gap: 0 8px; }
  .pushkina-home .primary-nav a { font-size: 10px; }
  .hero-price { gap: .24em; }
  .hero-price strong { font-size: 22px; }
  .hero-price span { font-size: 10px; }
  .pushkina-home .home-cover .button { gap: 8px; padding-inline: 10px; font-size: 11px; }
}

.inquiry { min-width: 0; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--rule); background: var(--white); color: var(--ink); }
.inquiry .inquiry__note, .inquiry .inquiry__status, .inquiry .inquiry__privacy { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.inquiry .inquiry__status { padding: 9px 12px; border-inline-start: 2px solid var(--oxblood); color: var(--ink); }
.inquiry .inquiry__form .inquiry__status { margin: 0; }
.inquiry__form, .inquiry__fields { display: grid; gap: 15px; }
.inquiry__fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.inquiry__fields label { display: grid; gap: 6px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.inquiry__fields input { width: 100%; min-height: 46px; min-width: 0; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 400; }
.inquiry__fields input[aria-invalid="true"] { border-color: var(--oxblood); }
.inquiry__acknowledgment { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.inquiry__acknowledgment input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--oxblood); }
.inquiry .inquiry__lot { margin: 0; color: var(--oxblood); font-size: 14px; font-weight: 700; }
.inquiry .inquiry__privacy { margin: -5px 0 0; }
.inquiry__form .button { justify-self: start; cursor: pointer; }
.inquiry__form .button:disabled { opacity: .55; cursor: default; }
