/* Shared additions keep the original hero, catalogue and project artwork intact. */
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
[hidden] { display: none !important; }
input, select, textarea { font: inherit; }
:is(input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-skip { position: fixed; z-index: 100; top: 10px; left: 16px; padding: 14px 20px; background: var(--accent); color: #171a1c; transform: translateY(-160%); }
.site-skip:focus { transform: none; }
.site-header .phone-link { font-size: 11px; }
.section-wrap { width: min(1420px, calc(100% - clamp(32px, 5.4vw, 88px))); margin-inline: auto; }
.section-kicker { margin: 0 0 22px; display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.section-kicker::before { content: ''; width: 7px; height: 7px; background: var(--accent); flex: none; }
.section-title { margin: 0; max-width: 19ch; font-size: clamp(34px, 4.5vw, 68px); letter-spacing: -.055em; line-height: 1.08; font-weight: 600; text-wrap: balance; }
.section-copy { color: #aab6bb; font-size: 14px; line-height: 1.85; max-width: 45ch; }
.section-top { display: flex; gap: 28px; align-items: end; justify-content: space-between; margin-bottom: 44px; }
.text-link { display: inline-flex; gap: 30px; align-items: center; padding-block: 12px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 600; }
.text-link:hover { color: var(--accent); }
.text-link span { font-size: 22px; }
.company-photo { display: block; border: none; }
.company-photo img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.company-photo::before { inset: 0; z-index: 1; transform: none; border: 0; background: linear-gradient(transparent 65%, #071b25b3); }
.company-photo::after { z-index: 2; }
.company-placeholder-house.company-photo::after { content: none; }
.company-photo .company-photo-index { z-index: 2; color: white; background: #061923b8; padding: 8px 12px; }
.company-photo figcaption { z-index: 2; color: white; }
.home-projects { padding: clamp(64px, 7vw, 112px) 0; background: #0c1519; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.featured-card { min-width: 0; display: block; }
.featured-image { position: relative; overflow: hidden; aspect-ratio: 1.22; background: #1c292e; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.featured-image > span { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: #171a1c; font-size: 24px; }
.featured-card:hover img { transform: scale(1.035); }
.featured-meta { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0; border-bottom: 1px solid #364047; }
.featured-meta h3 { margin: 0 0 8px; font-size: 23px; font-weight: 550; letter-spacing: -.04em; }
.featured-meta p { margin: 0; color: #aab6bb; font-size: 11px; line-height: 1.8; }
.featured-meta > span { font-size: 12px; white-space: nowrap; padding-top: 6px; }
.project-disclaimer { font-size: 11px; color: #aab6bb; margin: 24px 0 0; line-height: 1.8; }
.process-section { background: #f7f5ef; color: #171a1c; padding: clamp(64px, 7vw, 112px) 0; }
.process-section .section-copy, .faq-section .section-copy { color: #596166; }
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 110px); }
.process-visual { position: relative; margin: 0; min-height: 460px; }
.process-visual img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { position: relative; padding: 26px 0 26px 26px; border-top: 1px solid #cccdc8; }
.process-list li:last-child { border-bottom: 1px solid #cccdc8; }
.process-list li::before { content: ''; position: absolute; top: 33px; left: 0; width: 7px; height: 7px; background: var(--accent); }
.process-list h3 { margin: 0 0 10px; font-size: 21px; font-weight: 550; letter-spacing: -.03em; }
.process-list p { margin: 0; color: #596166; font-size: 13px; line-height: 1.85; }
.reviews-section { padding: 64px 0; background: #e9e7df; color: #171a1c; }
.reviews-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.reviews-inner .section-title { font-size: clamp(30px, 3.4vw, 48px); }
.reviews-inner .section-copy { color: #596166; }
.faq-section { padding: clamp(64px, 7vw, 112px) 0; background: #f7f5ef; color: #171a1c; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 100px); }
.faq-list { border-top: 1px solid #cccdc8; }
.faq-list details { border-bottom: 1px solid #cccdc8; }
.faq-list summary { display: flex; justify-content: space-between; gap: 22px; padding: 24px 0; font-size: 17px; line-height: 1.5; font-weight: 550; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 24px; height: 24px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%3E%3Cpath%20d%3D%22M12%204V20M20%2012H4%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%20%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.faq-list details[open] summary::after { mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%3E%3Cpath%20d%3D%22M20%2012L4%2012%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%20%2F%3E%3C%2Fsvg%3E"); }
.faq-list details p { margin: 0 40px 25px 0; color: #596166; font-size: 13px; line-height: 1.9; }
.contact-section { background: #0b202a; padding: clamp(64px, 7vw, 112px) 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 8vw, 120px); }
.contact-details { margin-top: 40px; display: grid; gap: 12px; font-size: 14px; }
.contact-details a { width: fit-content; border-bottom: 1px solid #63747c; padding-bottom: 8px; }
.contact-details p { color: #aab6bb; font-size: 12px; line-height: 1.8; }
.enquiry-form { display: grid; gap: 20px; }
.enquiry-form label:not(.consent) { display: grid; gap: 9px; font-size: 12px; line-height: 1.5; }
.enquiry-form :is(input:not([type=checkbox]),textarea,select) { width: 100%; border: 1px solid #68767b; border-radius: 0; background: transparent; color: inherit; padding: 14px 16px; font-size: 14px; min-height: 49px; }
.enquiry-form textarea { resize: vertical; min-height: 110px; }
.enquiry-form input::placeholder, .enquiry-form textarea::placeholder { color: #aab6bb; }
.field-pair-public { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; align-items: start; gap: 12px; color: #b7c3c8; font-size: 11px; line-height: 1.8; }
.consent input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); margin: 2px 0; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.submit-enquiry { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--accent); padding: 18px 22px; background: var(--accent); color: #17120e; font-size: 13px; font-weight: 650; cursor: pointer; min-height: 54px; }
.submit-enquiry:hover { background: #ff8745; }
.submit-enquiry:disabled { opacity: .65; cursor: wait; }
.form-status { margin: 0; font-size: 13px; line-height: 1.7; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ffbda5; }
.form-status.is-success { padding: 18px; border: 1px solid #8ca494; color: #d2efdc; }
.form-hint { color: #aab6bb; font-size: 11px; line-height: 1.7; margin: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-dialog { width: min(610px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: clamp(24px, 4vw, 46px); border: 1px solid #53626a; background: #0b202a; color: var(--ink); }
.enquiry-dialog::backdrop { background: #031018bd; backdrop-filter: blur(8px); }
.enquiry-dialog h2 { font-size: clamp(28px,4vw,40px); margin: 0; font-weight: 550; letter-spacing: -.045em; }
.enquiry-dialog .section-copy { margin: 14px 0 26px; }
.enquiry-dialog > .section-kicker { padding-right: 28px; line-height: 1.7; }
.dialog-dismiss { width: 40px; height: 40px; position: absolute; right: 10px; top: 10px; color: inherit; border: 0; background: transparent; font-size: 26px; cursor: pointer; }
body.enquiry-open { overflow: hidden; }
.house-media .image-zoom { position:absolute;right:16px;top:16px;display:flex;align-items:center;gap:12px;background:#0b202ad9;color:#fff;border:1px solid #ffffff70;padding:12px 16px;font-size:11px;cursor:pointer; }
.house-media > img { position:absolute;inset:0;width:100%;height:100%; }
.media-meta span + span { text-transform:none; }
.house-page .media-tabs { display:flex;flex-wrap:wrap;gap:10px; }
.house-page .media-tab { min-width:120px;padding-inline:22px; }
.image-dialog { width:calc(100% - 28px);max-width:1500px;max-height:calc(100dvh - 28px);padding:0;border:1px solid #53626a;background:#0c1519; }
.image-dialog img { width:100%;max-height:calc(100dvh - 32px);object-fit:contain;display:block; }
.image-dialog button { position:absolute;z-index:1;top:12px;right:12px;width:44px;height:44px;border:1px solid #ffffff70;background:#0b202ae6;color:#fff;font-size:26px;cursor:pointer; }
.image-dialog::backdrop { background:#000d; }
body.image-open { overflow:hidden; }
.catalog-tools { margin-top: 44px; padding: 24px; background: #10181de8; border: 1px solid #465057; }
.catalog-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-filters label, .catalog-sort { display: grid; gap: 10px; color: #b8c3c9; font-size: 11px; }
.catalog-tools :is(input,select) { color: #f7f5ef; background: #10181d; border: 1px solid #5a666b; padding: 12px; min-height: 46px; border-radius: 0; font-size: 12px; min-width: 0; width: 100%; }
.catalog-tools select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20aria-hidden%3D%22true%22%3E%3Cpath%20d%3D%22M18%209.00005C18%209.00005%2013.5811%2015%2012%2015C10.4188%2015%206%209%206%209%22%20stroke%3D%22%23f7f5ef%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%20%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.catalog-toolbar-bottom { margin-top: 20px; padding-top: 20px; border-top: 1px solid #364047; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.catalog-count { margin: 0 auto 0 0; font-size: 12px; }
.catalog-sort { display: flex; align-items: center; gap: 12px; }
.catalog-sort select { width: auto; }
.filter-reset { background: transparent; border: none; color: #c5ced1; text-decoration: underline; text-underline-offset: 4px; padding: 12px 0; font-size: 11px; cursor: pointer; }
.catalog-empty { text-align: center; padding: 70px 24px; }
.catalog-empty h2 { font-weight: 500; font-size: 28px; }
.catalog-empty p { color: #aab6bb; font-size: 13px; line-height: 1.8; }
.related-section { padding-block: 64px; border-top: 1px solid #364047; }
.related-section h2 { margin: 0 0 28px; font-size: 30px; letter-spacing: -.04em; font-weight: 550; }
.legal-page { background: #f7f5ef; color: #171a1c; }
.legal-header { background: #0b202a; padding: 24px clamp(24px,5vw,80px); color: #f7f5ef; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-header img { width: 170px; display: block; }
.legal-header > a:last-child { font-size: 12px; }
.legal-content { width: min(800px,calc(100% - 40px)); margin: 70px auto 100px; }
.legal-content h1 { font-size: clamp(32px,5vw,55px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; }
.legal-content h2 { margin-top: 36px; font-size: 22px; font-weight: 550; }
.legal-content p { color: #596166; font-size: 14px; line-height: 1.9; }
.legal-content a { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { flex-wrap: wrap; gap: 18px; }
@media(max-width:1080px) { .catalog-filters { grid-template-columns: 1fr 1fr; } .featured-grid { gap: 14px; } .featured-meta { flex-wrap: wrap; } }
@media(max-width:760px) {
  .enquiry-form :is(input:not([type=checkbox]),textarea,select) { font-size:16px; }
  .house-page .media-tabs { flex-wrap:nowrap; }
  .house-page .media-tab { min-width:97px;padding-inline:16px; }
  .section-top { align-items: start; flex-direction: column; margin-bottom: 30px; }
  .featured-grid { grid-template-columns: 1fr; gap: 30px; }
  .featured-image { aspect-ratio: 1.45; }
  .featured-meta { flex-wrap: nowrap; padding-top: 16px; }
  .process-layout,.faq-layout,.contact-layout,.reviews-inner { grid-template-columns: 1fr; gap: 34px; }
  .process-visual { min-height: 340px; }
  .reviews-section { padding-block: 50px; }
  .contact-details { margin-top: 26px; }
  .catalog-toolbar-bottom { gap: 10px 20px; }
  .catalog-sort { width: 100%; justify-content: space-between; }
  .catalog-tools { padding: 18px; }
  .catalog-filters { gap: 14px; }
  .section-title { max-width: 20ch; }
}
@media(max-width:400px) { .field-pair-public { grid-template-columns: 1fr; } }
@media(max-width:600px) { .catalog-filters { grid-template-columns: 1fr; } }
@media(max-width:450px) { .catalog-sort { display: grid; align-items: stretch; } .catalog-sort select { width: 100%; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Единая форма основных кнопок на всех страницах сайта. */
:is(.final-action, .contact-link, .company-button, .tour-link, .submit-enquiry, .projects-outro a, .image-zoom) {
  border-radius: 40px;
  box-shadow: none;
  transition: border-radius 460ms cubic-bezier(.45, 0, .55, 1), transform 300ms ease-in-out, background-color 300ms ease-in-out, border-color 300ms ease-in-out, color 300ms ease-in-out;
}
@media (hover: hover) {
  :is(.final-action, .contact-link, .company-button, .tour-link, .submit-enquiry, .projects-outro a, .image-zoom):not(:disabled):hover { border-radius: 0; transform: none; box-shadow: none; }
}

.huge-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.16em; flex: none; }
.project-open .huge-icon { width: 18px; height: 18px; }
.menu-toggle .huge-icon, .menu-close .huge-icon, .dialog-dismiss .huge-icon, .image-dialog button .huge-icon { width: 24px; height: 24px; }
.stage-plus .huge-icon { width: 22px; height: 22px; }
.stage-plus .stage-minus-icon, .build-stages details[open] .stage-plus-icon { display: none; }
.build-stages details[open] .stage-minus-icon { display: inline-block; }

.site-header .header-actions { gap: 12px; }
.site-header :is(.header-email, .header-callback) { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; color: var(--ink); transition: background-color 250ms ease, border-radius 460ms ease-in-out; }
.site-header :is(.header-email, .header-callback) svg { display: block; width: 23px; height: 23px; }
.site-header :is(.header-email, .header-callback):hover { background: #ffffff14; border-radius: 0; }

.house-page .media-tab { border-radius: 30px; transition: border-radius 460ms cubic-bezier(.45,0,.55,1), color 300ms ease, background-color 300ms ease, border-color 300ms ease; }
@media (hover:hover) { .house-page .media-tab:hover { border-radius: 0; } }

/* Readable section actions, with the same sizing on small screens. */
main section :is(.company-button, .tour-link, .submit-enquiry, .contact-link),
.enquiry-dialog .submit-enquiry {
  font-size: 16px;
  line-height: 1.4;
  min-height: 60px;
  padding: 17px 26px;
  gap: 18px;
  max-width: 100%;
}
main section :is(.text-link, .round-link), main section .collection-intro .round-link { font-size: 16px; min-height: 52px; line-height: 1.5; }
main section .project-open { font-size: 14px; min-height: 50px; padding: 8px 9px 8px 18px; gap: 14px; transition: opacity 280ms ease, transform 360ms ease; }
main section .project-open > span { width: 36px; height: 36px; }
main section .house-media .image-zoom { font-size: 15px; min-height: 50px; padding: 13px 18px; }
main .final-action { font-size: 16px; min-height: 60px; padding: 17px 26px; }
main .projects-outro a { font-size: 18px; }

/* Photos share the same gentle corner transition as the controls. */
:is(.company-photo, .editorial-photo, .project-card, .house-media, .featured-image) { border-radius: 22px; overflow: hidden; transition: border-radius 460ms cubic-bezier(.45, 0, .55, 1); }
@media (hover: hover) and (pointer: fine) {
  :is(.company-photo, .editorial-photo, .project-card, .house-media, .featured-image):hover,
  .editorial-project:hover .editorial-photo, .featured-card:hover .featured-image { border-radius: 0; }
}
