.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; }
.hero-actions > * { display: inline-flex; align-items: center; gap: 16px; min-height: 46px; font-size: 13px; font-weight: 520; }
.hero-actions svg { width: 17px; height: 17px; }
.hero-primary { color: #332725; background: #faf5ec; border-radius: 30px; padding: 0 20px; }
.hero-primary:hover { background: white; }
.hero-secondary { padding: 0; color: white; text-shadow: 0 1px 8px #241e1b; }
.hero-secondary:hover { text-decoration: underline; text-underline-offset: 5px; }
#home-search { border-radius: 18px; }
#home-search .search-submit { border-radius: 40px; }
.directions-section { padding: clamp(44px,6.5vw,100px) 0; background: #ede9e2; }
.directions-section .section-head { margin-bottom: clamp(20px,2.3vw,34px); }
.directions-section .section-head h2 { margin: 0; }
.direction-grid { display: grid; grid-template-columns: 1.12fr 1fr; grid-template-rows: repeat(2, minmax(0,1fr)); height: clamp(450px,43vw,650px); gap: clamp(10px,1.2vw,18px); }
.direction-grid .direction-card { display: block; position: relative; min-width: 0; height: 100%; aspect-ratio: auto; border-radius: 16px; overflow: hidden; color: #fff; isolation: isolate; }
.direction-grid .direction-city { grid-row: span 2; }
.direction-card img { display: block; object-fit: cover; }
.direction-card.direction-city img { object-position: 60% center; }
.direction-card.direction-country img { object-position: 50% 50%; }
.direction-card.direction-commercial img { object-position: 50% 54%; }
.direction-grid .direction-card::after { background: linear-gradient(0deg,rgba(25,17,14,.82),rgba(20,16,13,.30) 29%,transparent 62%); }
.direction-grid .direction-copy { inset: auto 72px clamp(18px,2.3vw,34px) clamp(20px,2.4vw,36px); }
.directions-section .direction-card h3 { font-size: clamp(26px,2.7vw,44px); letter-spacing: -.045em; font-weight: 430; margin: 0 0 7px; }
.directions-section .direction-city h3 { font-size: clamp(34px,3.6vw,60px); }
.direction-grid .direction-card span { color: #fffcf7; font-size: clamp(12px,1vw,15px); line-height: 1.5; }
.direction-card .direction-arrow { width: 40px; height: 40px; padding: 10px; border: 1px solid #ffffff9c; border-radius: 50%; position: absolute; bottom: clamp(18px,2.3vw,34px); right: clamp(18px,2.4vw,36px); z-index: 1; }
.direction-card:hover .direction-arrow,.direction-card:focus-visible .direction-arrow { background: #fff; color: var(--wine); }
.direction-card > picture { display: block; width: 100%; height: 100%; }
.direction-card img { width: 100%; height: 100%; }
@media (max-width:760px) {
 .hero-actions { gap: 2px 16px; margin-top: 18px; }
 .hero-actions > * { font-size: 12px; gap: 8px; }
 .hero-primary { padding: 0 14px; }
 .direction-grid { height: auto; grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
 .direction-grid .direction-card { height: auto; aspect-ratio: 1.95; }
 .direction-grid .direction-city { grid-row: auto; aspect-ratio: 1.55; }
 .directions-section .direction-card h3 { font-size: clamp(27px,7vw,39px); }
 .direction-card .direction-arrow { width: 34px; height: 34px; padding: 8px; }
}
@media (prefers-reduced-motion:reduce) {
.direction-card img { transition: none; }
.direction-card:hover img { transform: none; }
}
.search-directory { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-size: 13px; text-underline-offset: 4px; text-decoration: underline; color: var(--wine); }
.search-directory svg { width: 16px; height: 16px; }

#project-collections { padding-block: clamp(48px,6vw,96px); scroll-margin-block-start: 12px; }
.pc-heading h2 { font-size: clamp(32px,4.3vw,66px); line-height: 1.08; letter-spacing: -.06em; font-weight: 410; margin: 0 0 24px; }
.pc-themes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 clamp(20px,2.1vw,34px); }
.pc-themes label { position: relative; cursor: pointer; }
.pc-themes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-themes label > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid #cdc7bd; border-radius: 99px; font-size: 14px; }
.pc-themes input:checked + span { background: var(--wine); color: white; border-color: var(--wine); }
.pc-themes input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.pc-themes small { font-size: 12px; font-variant-numeric: tabular-nums; }
.pc-spread { display: none; grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); gap: clamp(24px,4.4vw,74px); align-items: start; }
#project-collections:has(input[value="khamovniki"]:checked) [data-theme="khamovniki"],
#project-collections:has(input[value="parks"]:checked) [data-theme="parks"],
#project-collections:has(input[value="ready"]:checked) [data-theme="ready"] { display: grid; }
.pc-spread[data-layout="district"] .pc-selection { display: contents; }
.pc-spread figure { position: relative; isolation: isolate; overflow: hidden; margin: 0; border-radius: 20px; aspect-ratio: 1.45; background: #d9d1c6; }
.pc-spread picture, .pc-spread img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-spread figure::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,#17120eee); }
.pc-spread figcaption { position: absolute; z-index: 1; bottom: 16px; left: 18px; right: 14px; color: white; font-size: 12px; line-height: 1.5; }
.pc-selection h3 { font-size: clamp(27px,3vw,46px); line-height: 1.12; letter-spacing: -.05em; font-weight: 420; }
.pc-intro p { margin: 12px 0; max-width: 42ch; color: #53564f; font-size: 15px; line-height: 1.65; }
.pc-map, .pc-source, .pc-directory, .pc-list summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.pc-map, .pc-source { color: #654d40; text-decoration: underline; text-underline-offset: 3px; }
.pc-list ul { list-style: none; margin: 0; padding: 0; }
.pc-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; border-top: 1px solid var(--line); }
.pc-project { display: grid; align-content: center; gap: 4px; min-height: 44px; padding: 11px 0; overflow-wrap: anywhere; }
.pc-project span { font-size: 17px; font-weight: 500; line-height: 1.4; }
.pc-project small { font-size: 12px; color: #53564f; line-height: 1.5; }
.pc-project:hover span, .pc-directory:hover { text-decoration: underline; text-underline-offset: 3px; }
.pc-directory { gap: 10px; margin-top: 8px; }
.pc-list summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
.pc-list details { border-top: 1px solid var(--line); }
@media (max-width:760px) {
  .pc-spread { grid-template-columns: 1fr; gap: 18px; }
  .pc-spread figure { border-radius: 15px; aspect-ratio: 1.9; }
  .pc-themes { gap: 6px; }
  .pc-themes label > span { padding-inline: 11px; font-size: 13px; }
}

.owner-section > div { min-width: 0; }
@media(max-width: 680px) {
  .approach.owner-section { grid-template-columns: minmax(0,1fr); }
  .owner-section h2 { font-size: clamp(29px,7.5vw,41px); }
  .owner-section .text-link { display: inline-flex; max-width: 100%; white-space: normal; line-height: 1.45; }
}
.owner-section .owner-choices p { max-width: 42ch; margin-bottom: 17px; color: #534e46; }
.owner-choices button {
  display: inline-flex; align-items: center; min-height: 44px; gap: 12px;
  padding: 11px 18px; border: 1px solid #b5a99e; border-radius: 30px;
  font-size: 14px; margin: 4px 6px 4px 0;
}
.owner-choices button:hover { color: white; background: var(--wine); border-color: var(--wine); }

/* The agency's form uses the same ruled paper surface on a page and in a dialog. */
.company-form, #inquiry-dialog { color: #342a28; background: #faf7f0; }
.company-form { border-radius: 3px; }
#inquiry-dialog {
  width: min(980px, calc(100vw - 48px)); padding: 0;
  max-height: calc(100dvh - 40px); border: 0; border-radius: 3px;
  overflow-y: auto; overscroll-behavior: contain;
}
#inquiry-dialog::backdrop { background: rgb(37 30 29 / 55%); }
#inquiry-dialog[open] {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr);
  align-items: start; gap: clamp(28px,4.5vw,64px);
  padding: clamp(52px,5.4vw,80px) clamp(28px,4.7vw,72px) clamp(26px,3.7vw,54px);
}
#inquiry-dialog :is(.dialog-head,.dialog-body) { display: block; margin: 0; padding: 0; border: 0; overflow: visible; }
#inquiry-dialog .dialog-head h2 { margin: 0; max-width: 16ch; font-size: clamp(29px,2.8vw,42px); line-height: 1.14; font-weight: 350; }
#inquiry-dialog .dialog-head button { position: absolute; inset: 9px 12px auto auto; min-width: 44px; min-height: 44px; }
:is(#inquiry-dialog,.company-form) .stack-field {
  display: block; margin: 0 0 17px; color: #433834; font-size: 14px; line-height: 1.5;
}
:is(#inquiry-dialog,.company-form) .stack-field small { color: #645952; font-size: 12px; }
:is(#inquiry-dialog,.company-form) .stack-field :is(input,textarea) {
  display: block; width: 100%; min-height: 44px; padding: 5px 0 8px;
  border: 0; border-bottom: 1px solid #ae9f90; border-radius: 0;
  color: #342a28; background: transparent; font-size: 16px; line-height: 1.5;
}
:is(#inquiry-dialog,.company-form) .stack-field textarea { min-height: 58px; resize: vertical; }
:is(#inquiry-dialog,.company-form) :is(input,textarea):focus-visible { outline: 2px solid #744e39; outline-offset: 2px; }
:is(#inquiry-dialog,.company-form) .consent { font-size: 12px; line-height: 1.55; color: #645952; }
:is(#inquiry-dialog,.company-form) [type=submit] { width: auto; min-height: 48px; padding: 12px 24px; border-radius: 3px; background: #49262a; }
@media(max-width: 760px) {
  #inquiry-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 16px); max-height: calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom))); }
  #inquiry-dialog[open] { grid-template-columns: minmax(0,1fr); padding: 46px 22px 24px; gap: 22px; }
  .company-form { padding: 28px 18px; }
}
