.site-header .contacts-toggle { margin-left:auto; border:1px solid #8baaa6; background:transparent; color:#153d3d; border-radius:24px; padding:7px 16px; min-height:36px; cursor:pointer; white-space:nowrap; font:inherit; font-size:14px; }
.site-header .contacts-toggle:hover,.site-header .contacts-toggle:focus-visible { background:#e4efeb; }
.footer-brand .business-info { margin-top:16px; font-size:12px; line-height:1.6; }
.business-info a { color:inherit; text-underline-offset:3px; }
.contact-sheet,.photo-viewer { box-sizing:border-box; color:#183b3c; background:#f8faf7; border:0; border-radius:18px; }
.contact-sheet::backdrop,.photo-viewer::backdrop { background:rgba(10,27,27,.76); }
.contact-sheet { padding:clamp(20px,3vw,34px); width:min(660px,calc(100vw - 24px)); max-height:90dvh; overflow:auto; }
.contact-sheet header,.photo-toolbar,.photo-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.contact-sheet header h2 { font-size:28px; margin:0; }
.contact-sheet .contact-layout { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:22px 0; }
.contact-sheet .contact-large,.contact-sheet .contact-email { font-size:17px; overflow-wrap:anywhere; }
.contact-sheet .contact-layout h2 { font-size:18px; margin:0 0 10px; }
.contact-sheet .contact-layout p { font-size:14px; line-height:1.5; margin:8px 0; }
.contact-sheet button,.photo-viewer button { color:inherit; background:transparent; border:1px solid #c6d4d1; border-radius:50%; width:40px; height:40px; font:inherit; cursor:pointer; }
.contact-sheet button[data-dismiss],.photo-viewer button[data-dismiss] { font-size:24px; line-height:1; }
.photo-viewer { padding:12px 16px; width:min(1000px,calc(100vw - 24px)); max-height:96dvh; overflow:auto; }
.photo-viewer[open] { display:grid; gap:8px; }
.photo-index { font-size:13px; font-variant-numeric:tabular-nums; }
.photo-full { display:block; width:100%; height:min(69dvh,760px); object-fit:contain; border-radius:10px; background:#eaf0ed; }
.photo-description { font-size:14px; line-height:1.45; }
.photo-arrows { display:flex; gap:6px; flex-shrink:0; }
.photo-arrows[hidden],figure figcaption[hidden],.project-caption p[hidden],.production-photo-note[hidden] { display:none!important; }
.photo-plain { display:block; width:100%; }
[data-lightbox] { cursor:zoom-in; }
.zoom-host:not(.glass-panel) { position:relative; }
.photo-zoom { position:absolute; z-index:6; left:9px; top:9px; padding:6px; width:30px; height:30px; display:grid; place-items:center; border:1px solid #ffffff73; border-radius:50%; background:#173736b8; color:white; cursor:zoom-in; }
.photo-zoom svg { width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round; }
.photo-linked-card { min-width:0; }
.photo-linked-card > .catalog-family-card { height:100%; box-sizing:border-box; }
.preview-grid .photo-linked-card > a { display:block; overflow:hidden; border-radius:14px; }
.hero .quote-strip { border:0; margin:12px 0 0; padding:0; display:flex; justify-content:flex-end; }
.hero .quote-button { min-height:36px; width:auto; padding:6px 14px; font-size:14px; background:transparent; color:#006d71; border:1px solid #98b7b3; border-radius:20px; }
.blog-head { display:flex; justify-content:space-between; align-items:center; gap:16px; }
#blog .article-grid { margin-top:24px; }
.archive-intro { margin:24px 0 36px; }
.archive-intro h1 { font-weight:500; font-size:clamp(38px,6vw,74px); margin:0; }
.archive-group { margin:0 0 56px; }
.article-search { margin-bottom:20px; }
.article-search input { width:min(100%,30rem); padding:12px 16px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font:inherit; }
.article-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:1fr; gap:clamp(10px,1.4vw,24px); }
.article-grid > a { display:flex; flex-direction:column; min-width:0; overflow:hidden; background:#edf3ef; border:1px solid var(--line); border-radius:18px; color:inherit; text-decoration:none; }
.article-grid img { display:block; width:100%; aspect-ratio:1.9; object-fit:cover; flex:none; }
.article-grid > a > div { padding:clamp(14px,1.6vw,26px); }
.article-grid :is(h2,h3) { margin:0 0 10px; font-size:clamp(20px,1.8vw,30px); font-weight:500; line-height:1.18; letter-spacing:-.025em; overflow-wrap:anywhere; }
.article-grid p { margin:0; color:var(--muted); line-height:1.45; }
.article-grid > a:hover { background:#e3eee8; text-decoration:none; }
.article-grid > a:focus-visible, .article-search input:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }
.article-search-status:empty { margin:0; }
@media (max-width:959px) { .article-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:649px) {
  .article-grid > a { border-radius:12px; }
  .article-grid img { aspect-ratio:1.5; }
  .article-grid > a > div { padding:clamp(9px,2.5vw,16px); }
  .article-grid :is(h2,h3) { margin-bottom:7px; font-size:clamp(16px,3.5vw,20px); }
  .article-grid p { font-size:clamp(13px,2.8vw,15px); }
}
.archive-intro { max-width:72ch; margin:0 0 1.5rem; line-height:1.65; }
.archive-group h2 { font-size:clamp(23px,3vw,37px); font-weight:500; }
.archive-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(7px,1vw,16px); }
.archive-grid a { display:block; border-radius:12px; overflow:hidden; scroll-margin-top:20px; }
.archive-grid a:target { outline:3px solid #00797b; outline-offset:3px; }
.archive-grid img { display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover; }
.applications-layout > .application-mosaic { display:block; position:relative;align-self:start; width:100%; min-width:0; }
.mosaic-grid { display:grid; grid-template-columns:1.35fr 1fr; grid-template-rows:repeat(2,minmax(0,1fr)); gap:8px; aspect-ratio:1.28; }
.mosaic-tile { position:relative; display:block; overflow:hidden; border-radius:14px; isolation:isolate; }
.mosaic-tile:first-child { grid-row:span 2; }
.mosaic-tile img { position:absolute; inset:0; width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s ease; }
.mosaic-tile img.is-current { opacity:1; }
@media(prefers-reduced-motion:reduce){.mosaic-tile img{transition:none;}}
@media(max-width:720px){.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mosaic-grid{aspect-ratio:1.48}}
@media(max-width:580px){.contact-sheet .contact-layout{grid-template-columns:1fr;gap:12px}.photo-viewer{padding:10px}.site-header .contacts-toggle{font-size:12px;padding:4px 10px;min-height:32px}.site-header{gap:8px}.hero .quote-strip{justify-content:flex-start}.mosaic-tile{border-radius:11px}}
@media(max-width:370px){.site-header .identity-name{font-size:17px}.site-header .identity-mark{width:34px}.site-header .identity{gap:6px}}

/* Match the collage to the list itself; its footer link occupies a separate row. */
@media (width > 900px) {
  .applications-layout { grid-template-areas: "photos options" "more ."; row-gap: 24px; }
  .applications-layout > .application-mosaic { grid-area: photos; align-self: stretch; }
  .applications-layout .mosaic-grid { position: absolute; inset: 0; aspect-ratio: auto; }
  .applications-layout .application-options { grid-area: options; }
  .applications-layout .application-action { grid-area: more; justify-self: start; margin: 0; }
}
#production .production-gallery {
  height: 300px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
#production .production-gallery figure { min-height: 0; }
#production .production-gallery .photo-plain,
#production .production-gallery figure.production-main img,
#production .production-gallery figure:not(.production-main) img { height: 100%; }
@media (max-width: 700px) {
  #production .production-gallery { height: clamp(200px, 58vw, 300px); }
}
.archive-case-angles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.archive-case-angles .photo-plain img { height: clamp(220px, 30vw, 380px); object-fit: contain; background: #edf2ef; }

.work-grid article > .project-landing-photo { display: block; width: 100%; }

#applications { border-top: 0; padding-bottom: clamp(18px, 2.5vw, 32px); }
#projects { padding-top: clamp(24px, 3.5vw, 46px); }
.applications-layout > .application-options { display: grid; }
@media (max-width:900px) {
  .applications-layout { grid-template-areas: "photos" "more" "options"; row-gap: 14px; }
  .applications-layout .application-mosaic { grid-area: photos; }
  .applications-layout .application-action { grid-area: more; justify-self: start; margin: 0; }
  .applications-layout .application-options { grid-area: options; }
}
#photogallery { padding-block: clamp(34px,5vw,68px); }
#photogallery header { margin-bottom: 12px; align-items: baseline; }
.gallery-intro { max-width: 64ch; line-height:1.6; color:#405a59; margin:0 0 clamp(16px,2.2vw,30px); }
#photogallery .preview-grid img { aspect-ratio: 4 / 3; }
#photogallery .preview-grid a { border-radius: 14px; }
.certificate-link { text-decoration:underline; text-underline-offset:3px; }
.certificate-sheet { width:min(640px,calc(100vw - 24px)); }
.certificate-sheet header h2 { font-size:clamp(18px,3vw,24px); }
.certificate-sheet img { display:block; width:100%; height:auto; max-height:66dvh; object-fit:contain; margin:14px auto; }
.certificate-original { display:block; text-align:center; text-decoration:underline; }
@media (width > 900px) {
  .site-header .menu-button, .site-header #site-menu {display:none;}
  .site-header.wrap {gap:clamp(12px,1.5vw,28px);}
  .site-header .main-nav {display:flex;align-items:center;justify-content:center;flex:1;flex-wrap:wrap;gap:4px clamp(10px,1.3vw,24px);}
  .site-header .main-nav a {white-space:nowrap;}
}
@media (min-width:901px) and (max-width:1150px) {
  .site-header .main-nav {font-size:13px;}
  .site-header .identity-name {font-size:20px;}
}
.glass-stories h2 {margin:0 0 25px;}
.story-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,3vw,46px);}
.story-grid figure {margin:0;}
.story-grid img {display:block;width:100%;height:clamp(220px,25vw,360px);object-fit:cover;border-radius:16px;}
.story-grid h3 {font-weight:500;font-size:clamp(20px,2vw,28px);margin:20px 0 9px;}
.story-grid p {line-height:1.65;max-width:60ch;margin:0 0 12px;}
.story-grid article > a {color:#006e70;text-decoration:underline;text-underline-offset:4px;}
.triplex-model {margin:0;min-width:0;background:#edf3f0;border-radius:18px;padding:clamp(16px,2.4vw,30px);}
.triplex-model .triplex-render {display:block;width:100%;height:auto;aspect-ratio:85/48;border-radius:12px;margin:12px 0;user-select:none;-webkit-user-drag:none;touch-action:pan-y;cursor:grab;}
.triplex-model .triplex-render:active {cursor:grabbing;}
.model-controls,.model-legend {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.model-controls {margin-top:16px;border-top:1px solid #cddad6;padding-top:12px;}
.model-controls label {display:grid;gap:4px;flex:1 1 110px;font-size:14px;}
.model-controls input {width:100%;accent-color:#007b7e;}
.model-legend span {font-size:12px;display:inline-flex;align-items:center;gap:5px;}
.model-legend span::before {content:'';background:#378c92;border-radius:50%;width:8px;height:8px;}
.model-legend span:nth-child(2)::before {background:#bd882e;}
.model-legend span:nth-child(3)::before {background:#6899b0;}
#radius-form .arc-mode {grid-column:1/-1;}
#radius-form [hidden] {display:none;}
#radius-form select {width:100%;font:inherit;color:inherit;padding:10px;border:1px solid #a8beba;border-radius:8px;background:#f8faf7;}
@media(max-width:640px){.story-grid{grid-template-columns:1fr;gap:28px;}}

.telegram-links {display:grid;gap:8px;justify-items:start;min-width:0;}
.telegram-links a {color:#006e70;text-underline-offset:.18em;overflow-wrap:anywhere;}
.contact-layout .telegram-links {margin-top:16px;font-size:15px;}
.footer-contact .telegram-links {font-size:14px;}
.project-challenge {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(24px,5vw,72px);
  padding-block:clamp(26px,4vw,52px);border-top:1px solid var(--line);}
.project-challenge h2 {margin:0;font-size:clamp(23px,2.5vw,34px);line-height:1.18;font-weight:500;letter-spacing:-.03em;}
.project-challenge p {margin:0;max-width:67ch;line-height:1.65;}
.project-challenge p + p {margin-top:12px;}
.portfolio-page .page-photo a,.portfolio-page .page-photo {background:transparent;border:0;padding:0;}
.portfolio-page .work-grid .page-photo img,
.portfolio-page .page-intro.with-photo .page-photo img,
.portfolio-page .archive-case-angles .page-photo img,
#projects .project-card .project-photo img {
  display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;background:transparent;border:0;border-radius:16px;
}
.portfolio-page .page-intro.with-photo .page-photo img,.portfolio-page .archive-case-angles .page-photo img {
  width:auto;max-width:100%;max-height:min(74vh,660px);margin-inline:auto;
}
.photo-viewer .photo-full.project-full {width:auto;height:auto;max-width:100%;max-height:69dvh;justify-self:center;background:transparent;}
#projects .project-card .project-photo {display:block;position:relative;background:transparent;border:0;border-radius:16px;}
#projects .project-card .project-photo:hover img {transform:none;}
#projects .project-card .project-photo img {aspect-ratio:1;object-fit:cover;object-position:center;}
#projects .project-arrow {position:absolute;right:9px;bottom:9px;display:grid;place-items:center;width:32px;height:32px;
  border-radius:50%;background:#173c3de6;color:white;font-size:19px;line-height:1;}
.mobile-quote {display:none;}
@media(max-width:700px){
  .project-challenge {grid-template-columns:1fr;gap:14px;}
  #photogallery .gallery-intro {display:none;}
  #photogallery .preview-grid {grid-template-columns:minmax(0,1fr);gap:12px;}
  #photogallery .preview-grid img {aspect-ratio:4 / 3;}
}
@media screen and (max-width:900px){
  html:has(.mobile-quote) {scroll-padding-bottom:64px;}
  html:has(.mobile-quote):has(.legal-notice:not([hidden])) {scroll-padding-bottom:192px;}
  .mobile-actions {position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));
    z-index:15;display:grid;justify-items:end;gap:8px;width:min(520px,calc(100% - 24px));pointer-events:none;}
  .mobile-actions .legal-notice {position:static;width:100%;pointer-events:auto;}
  .mobile-actions .mobile-quote {display:inline-flex;align-items:center;min-height:40px;padding:0 15px;border-radius:24px;
    background:#006d70;color:#fff;box-shadow:0 3px 12px #173e3b28;font-size:13px;font-weight:550;pointer-events:auto;text-decoration:none;}
  body:has(.mobile-quote){padding-bottom:calc(62px + env(safe-area-inset-bottom));}
  body:has(.mobile-quote):has(.legal-notice:not([hidden])){padding-bottom:calc(192px + env(safe-area-inset-bottom));}
  .mobile-actions:has(.legal-notice[hidden]) {gap:0;}
}

.heat-material-name {display:inline-block;max-inline-size:100%;}
.heat-page .catalog-hero-copy h1 {
  max-inline-size:100%;
  hyphens:none;
  overflow-wrap:normal;
  word-break:normal;
  text-wrap:balance;
}
@media(max-width:700px) {
  .heat-page .catalog-hero-copy h1 {font-size:clamp(28px,8.2vw,38px);}
}

/* Приём заявок временно остановлен (request-form.js, REQUESTS_PAUSED) */
.requests-paused {
  margin:0 0 4px;
  padding:16px 18px;
  border-radius:10px;
  border:1px solid #e9d49a;
  background:var(--surface-warning,#FFF5D9);
  color:var(--text-primary,#183238);
  font-size:15px;
  line-height:1.6;
  max-width:none;
}
.requests-paused a {color:var(--status-warning,#805400);text-decoration:underline;text-underline-offset:3px;white-space:nowrap;}
.wizard-main > .requests-paused {margin-bottom:28px;}
form.is-paused [type="submit"]:disabled {opacity:.45;cursor:not-allowed;transform:none;}
