/* Layout safeguards at widths between the original desktop and phone designs. */
.header-inner>*{min-width:0}.hero-actions>.button,.cta-band>.button{max-width:100%;white-space:normal}.button>span{flex-shrink:0}.feature-tile,.catalog-card,.article-card,.content-header,.reading-heading>div,.compact-strip>div>div,.compact-strip>div>button{min-width:0}.content-header h1,.listing h1,.article-card h3,.catalog-card>span{overflow-wrap:break-word}.article-card>a{height:100%;display:flex;flex-direction:column}.article-card a>div{flex:1;display:flex;flex-direction:column;align-items:flex-start}.article-card .read-link{margin-top:auto;padding-top:20px}.article-card p{margin-bottom:10px}.article-filters{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:16px;align-items:end;margin:30px 0 15px}.article-filters label{display:block;font-size:13px;color:#665144}.article-filters input,.article-filters select{display:block;width:100%;min-width:0;height:46px;padding:10px 12px;border:1px solid #c9b5a5;border-radius:6px;background:#fffaf5;color:#34271e;font:16px Arial,sans-serif;margin-top:7px}.article-filters button{min-height:46px;border:1px solid #c9b5a5;background:#f0dfd1;border-radius:6px;padding:10px 16px;font-size:13px;color:#34271e}#article-count,#article-empty{font-size:13px;color:#675447;margin:15px 0 20px}.article-card[hidden]{display:none!important}.article-toc a{overflow-wrap:break-word}dialog .button{font-size:14px;min-height:46px;padding:12px 17px}.contact-dialog label{overflow-wrap:break-word}.contact-dialog select,.price-tools select{max-width:100%}.contact-dialog select,.contact-dialog textarea{font-size:16px}body:has(dialog[open]) .mobile-contact{visibility:hidden}.foot-row nav{flex-wrap:wrap}.line-icon{flex-shrink:0}main [data-block]{scroll-margin-top:95px}
@media(min-width:601px) and (max-width:959px){.header-inner{display:flex;gap:18px;width:calc(100% - 42px);max-width:none;height:65px}.header nav{margin-left:auto;gap:18px;font-size:12px}.header-phone{display:none}.header-city{display:none}.wordmark{flex-shrink:0}.exact-hero{max-width:none;height:auto;min-height:600px;padding-bottom:260px}.hero-content{width:calc(100% - 64px);max-width:none;padding:32px 0 0}.exact-hero h1{font-size:46px;line-height:1.02;max-width:none;margin-bottom:20px}.hero-content>p{font-size:17px;line-height:1.4;margin-bottom:20px}.hero-city{font-size:14px;margin-bottom:20px}.hero-actions .button{font-size:13px;min-height:46px;padding:12px 18px}.hero-actions .primary{width:183px}.hero-actions .outline{width:156px}.hero-reference{top:auto;bottom:0;width:100%;height:270px}.hero-reference img{width:130%;height:auto;left:-30%;top:-9.5%}.hero-reference:after{background:linear-gradient(90deg,#fbf1e8b0,#fbf1e800 35%)}.hero-fade{background:linear-gradient(180deg,var(--paper) 0%,var(--paper) 42%,#fbf1e9ed 53%,#fbf1e900 68%)}.exact-hero:before{display:none}.exact-comfort{grid-template-columns:minmax(0,1fr);gap:25px;width:calc(100% - 64px)}.comfort-reference{height:auto;aspect-ratio:644/258}.comfort-reference>img{width:159.006211%;height:auto;left:-5.434783%;top:-353.100775%}.exact-comfort>div{padding-top:0;max-width:600px}.exact-comfort h2{font-size:33px}.exact-comfort h2 br{display:none}.exact-comfort p{font-size:15px;line-height:1.65}.small-projects{grid-template-columns:minmax(0,1fr);gap:22px;width:calc(100% - 64px)}.entrance-tile{height:auto;aspect-ratio:509/123}.entrance-tile>img{width:201.178782%;height:auto;left:-6.876228%;top:-963.414634%}.melnitsa-mini{border-left:0;padding-left:0;grid-template-columns:192px minmax(0,1fr);gap:25px;height:123px;max-width:440px}.melnitsa-reference{width:192px;height:123px}.melnitsa-reference>img{width:1024px;height:1536px;left:-615px;top:-1185px}.melnitsa-mini p{font-size:14px}.melnitsa-mini img{width:192px;height:123px}.cta-band{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 22px;padding:23px;min-height:0;height:auto}.cta-band h2{font-size:29px;white-space:normal;grid-column:1}.cta-band p{grid-column:1;border:0;padding:0;font-size:13px;line-height:1.55}.cta-band .button{grid-column:2;grid-row:1/3;font-size:13px;min-height:46px;max-width:200px}.compact-strip{height:auto;min-height:59px}.compact-strip a{font-size:14px;line-height:1.3}.compact-strip small{font-size:11px;line-height:1.5}.compact-strip>div>button{font-size:13px;line-height:1.35}.six-services>a{font-size:12px}.six-services{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 0}.six-services>a:nth-child(3n){border-right:0}.six-services>a,.six-services>a:first-child{padding:0 15px 10px;min-height:84px}.line-icon{width:36px;height:36px}.inner-page .container,.inner-page .cta-band{width:calc(100% - 48px)}.inner-page .content-header h1{font-size:42px}.foot-row{flex-wrap:wrap;padding-block:18px;font-size:12px}.foot-row nav{font-size:12px;gap:18px}}
@media(min-width:601px) and (max-width:719px){.feature-tiles{grid-template-columns:1fr;gap:18px}.feature-tile{height:164px}.reference-tile:before{display:none}.reference-tile>img{visibility:visible;width:100%;height:100%;object-fit:cover;object-position:80% 43%;content:url('assets/home-concept.webp')}.reference-tile.apartment>img{content:url('assets/apartment-concept.webp')}.tile-copy h3{font-size:25px}.tile-copy{padding:20px 22px}.tile-copy>i{width:35px;height:35px;margin-bottom:10px}.circle-arrow{left:65%;width:28px;height:28px;font-size:23px}.tile-overlay{background:linear-gradient(90deg,#f5e6d9 0%,#f5e6d9de 38%,#f5e6d900 90%)}.compact-strip{grid-template-columns:1fr;gap:18px;padding:21px}.compact-strip>div+div{border-left:0;border-top:1px solid #d9bdA8;padding:18px 0 0}.exact-services>h2{font-size:31px}.header nav{gap:13px;font-size:11px}.wordmark{width:130px}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.header nav{max-height:calc(100dvh - 132px);overflow-y:auto;overscroll-behavior:contain}.hero-actions{flex-wrap:wrap}.hero-actions .button{flex:0 1 auto}.hero-actions .primary{min-width:0}.compact-strip{height:auto}.compact-strip>div>div{flex:1}.article-filters{grid-template-columns:minmax(0,1fr);gap:13px;margin-top:25px}.article-filters button{justify-self:start;min-width:110px}.article-card h3{overflow-wrap:break-word}.inner-page .cta-band{display:flex;flex-direction:column}.inner-page .content-header h1{font-size:clamp(32px,9.6vw,38px)}.content-header .button{white-space:normal;max-width:100%}.footer-note{overflow-wrap:anywhere}.contact-dialog .button{font-size:13px}.price-tools{min-width:0}.price-tools label{min-width:0}.mobile-contact>a{flex-shrink:0}.mobile-contact>.button{min-width:0}.catalog-card>span{font-size:24px}.reading-heading>div{max-width:100%}}
@media(max-width:359px){.hero-actions .button{font-size:11px;padding-inline:11px}.inner-page .content-header h1{font-size:32px}.header-inner .wordmark{width:140px}.contact-dialog{padding:20px 15px}.contact-dialog h2{font-size:25px}.cta-band{padding:22px}.cta-band .button{font-size:12px}}
@media(max-height:450px) and (max-width:959px){.header-inner{height:56px}.header nav{top:56px;max-height:calc(100dvh - 116px)}.header{position:relative}.mobile-contact{padding-top:6px;padding-bottom:6px}.mobile-contact>.button{min-height:38px}dialog{max-height:90dvh}}

.hero-reference picture{display:block;width:100%;height:100%}.hero-reference img{position:absolute;max-width:none}
@media(max-width:959px){.hero-reference img{width:100%;height:100%;left:0;top:0;object-fit:cover;object-position:60% 52%}}
@media(min-width:601px) and (max-width:959px){.hero-actions{flex-direction:row;flex-wrap:wrap;align-items:stretch}.melnitsa-mini .melnitsa-reference>img{width:1024px;height:1536px;left:-615px;top:-1185px}}

.cta-phone{display:block;margin-top:5px;font-weight:600}.cta-phone a{color:inherit;text-underline-offset:4px;white-space:nowrap}.cta-band{height:auto;min-height:71px}.header-phone a:focus-visible,.foot-row a[href^="tel:"]:focus-visible{outline:3px solid #26769f;outline-offset:4px}
/* Commercial details preserve the approved warm architecture palette. */
.commercial-offers{margin-block:42px;color:#253c42}
.commercial-offers>p,.offer-details>p,.materials-offer p{font-size:15px;line-height:1.65;max-width:78ch}
.offer-details{border-block-end:1px solid #c8c4b9;padding:18px 0}
.offer-details summary{cursor:pointer;font-size:18px;line-height:1.45;padding:6px 0;min-height:44px}
.offer-details summary:focus-visible{outline:2px solid #264e5c;outline-offset:4px}
.offer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}
.offer-card{padding:20px;background:#f4ebe0;border:1px solid #ddd3c6;min-width:0}
.offer-card h3,.materials-offer h3{font-size:21px;line-height:1.3;margin:0 0 12px}
.offer-card p{font-size:14px;line-height:1.65}
.offer-card a{display:inline-block;font-size:14px;padding-block:10px;text-underline-offset:4px}
.offer-table-wrap{overflow-x:auto;margin-block:20px}
.offer-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5}
.offer-table caption{text-align:left;font-weight:bold;padding-bottom:14px}
.offer-table th,.offer-table td{padding:12px 8px;border-bottom:1px solid #d8d0c5;text-align:left;vertical-align:top}
.offer-table th{font-weight:500}.offer-table td:last-child{white-space:nowrap}
.offer-table small{display:block;font-size:12px;line-height:1.5;color:#586364;font-weight:400}
.materials-offer{padding:24px;background:#eee4d6;margin-top:24px}
.legal-requisites{padding-block:0 24px;overflow-wrap:anywhere;font-size:12px;line-height:1.7}
.legal-requisites p{margin:4px 0}
@media(max-width:680px){.offer-grid{grid-template-columns:1fr}.offer-details summary{font-size:16px}.offer-table{font-size:12px}.offer-table th,.offer-table td{padding:10px 4px}.materials-offer{padding:18px}.commercial-offers{margin-block:28px}}
