.stx-calc {
  --stx-bg: #f4f5f7;
  --stx-card: #ffffff;
  --stx-text: #17191d;
  --stx-muted: #6f747d;
  --stx-border: #e2e5e9;
  --stx-accent: #e88a1a;
  --stx-accent-dark: #bf6d0e;
  --stx-dark: #1f252b;
  --stx-radius: 18px;
  max-width: 1240px;
  margin: 32px auto;
  color: var(--stx-text);
  font-family: inherit;
  box-sizing: border-box;
}

.stx-calc *, .stx-calc *::before, .stx-calc *::after { box-sizing: border-box; }

.stx-calc__hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 22px;
  padding: 4px 2px;
}
.stx-calc__hero h2 { margin: 4px 0 8px; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.stx-calc__hero p { margin: 0; max-width: 760px; color: var(--stx-muted); font-size: 16px; line-height: 1.55; }
.stx-calc__eyebrow { color: var(--stx-accent-dark); font-weight: 750; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.stx-calc__badge { flex: 0 0 auto; border: 1px solid var(--stx-border); background: #fff; border-radius: 999px; padding: 10px 14px; font-size: 13px; color: var(--stx-muted); }

.stx-calc__layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.stx-calc__form { display: grid; gap: 16px; }
.stx-panel { background: var(--stx-card); border: 1px solid var(--stx-border); border-radius: var(--stx-radius); padding: 22px; box-shadow: 0 10px 35px rgba(24,29,34,.045); }
.stx-panel__head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.stx-panel__head > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #fff2df; color: var(--stx-accent-dark); font-weight: 800; }
.stx-panel__head h3 { margin: 0 0 2px; font-size: 20px; }
.stx-panel__head p { margin: 0; color: var(--stx-muted); font-size: 13px; }

.stx-grid { display: grid; gap: 14px; }
.stx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stx-field { display: grid; gap: 7px; min-width: 0; }
.stx-field > span { font-size: 13px; color: #555c65; font-weight: 650; }
.stx-field input, .stx-field select, .stx-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d8dce1; border-radius: 10px; background: #fff; color: var(--stx-text); font: inherit; outline: none; transition: border .15s, box-shadow .15s;
}
.stx-field textarea { resize: vertical; }
.stx-field input:focus, .stx-field select:focus, .stx-field textarea:focus { border-color: var(--stx-accent); box-shadow: 0 0 0 3px rgba(232,138,26,.12); }
.stx-hint { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f7f8fa; color: var(--stx-muted); font-size: 12px; line-height: 1.45; }
.stx-check { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 11px; border: 1px solid #d8dce1; border-radius: 10px; background: #fff; cursor: pointer; }
.stx-check input { width: 18px; height: 18px; accent-color: var(--stx-accent); }
.stx-check span { display: grid; line-height: 1.25; }
.stx-check b { font-size: 13px; }
.stx-check small { margin-top: 2px; color: var(--stx-muted); font-size: 11px; }

.stx-calc__result { position: sticky; top: 24px; display: grid; gap: 12px; }
.stx-result-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 4px; color: var(--stx-muted); font-size: 13px; }
.stx-result-head strong { color: var(--stx-text); font-size: 18px; }
.stx-package { position: relative; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--stx-border); border-radius: 16px; box-shadow: 0 10px 32px rgba(24,29,34,.05); }
.stx-package--featured { border-color: rgba(232,138,26,.45); box-shadow: 0 16px 42px rgba(232,138,26,.12); }
.stx-package__flag { position: absolute; right: 14px; top: -9px; background: var(--stx-accent); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 8px; border-radius: 999px; }
.stx-package__title { display: grid; gap: 3px; margin-bottom: 10px; }
.stx-package__title span { font-size: 17px; font-weight: 800; }
.stx-package__title small { color: var(--stx-muted); font-size: 11px; }
.stx-package__price { font-size: 29px; line-height: 1; font-weight: 850; letter-spacing: -0.035em; }
.stx-package__per { margin-top: 5px; color: var(--stx-muted); font-size: 12px; }
.stx-package details { margin-top: 13px; border-top: 1px solid var(--stx-border); padding-top: 10px; }
.stx-package summary { cursor: pointer; color: #505760; font-size: 12px; font-weight: 700; user-select: none; }
.stx-breakdown { margin-top: 8px; display: grid; gap: 6px; }
.stx-breakdown > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 11px; }
.stx-breakdown span { color: var(--stx-muted); }
.stx-breakdown b { white-space: nowrap; font-size: 11px; }
.stx-calc__note { color: var(--stx-muted); font-size: 11px; line-height: 1.45; padding: 2px 4px; }
.stx-button { width: 100%; border: 0; border-radius: 12px; background: var(--stx-accent); color: #fff; padding: 14px 18px; min-height: 50px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s; }
.stx-button:hover { background: var(--stx-accent-dark); transform: translateY(-1px); }
.stx-button:disabled { opacity: .6; cursor: wait; transform: none; }

.stx-modal[hidden] { display: none !important; }
.stx-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 18px; }
.stx-modal__backdrop { position: absolute; inset: 0; background: rgba(12,15,18,.62); backdrop-filter: blur(3px); }
.stx-modal__dialog { position: relative; z-index: 1; width: min(480px, 100%); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.stx-modal__dialog h3 { margin: 0 38px 6px 0; font-size: 24px; }
.stx-modal__dialog > p { margin: 0 0 18px; color: var(--stx-muted); font-size: 14px; line-height: 1.5; }
.stx-modal__dialog form { display: grid; gap: 13px; }
.stx-modal__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f1f3; color: #4a5057; font-size: 25px; line-height: 1; cursor: pointer; }
.stx-lead-status { min-height: 18px; color: #4e6b41; font-size: 12px; text-align: center; }
html.stx-modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .stx-calc__layout { grid-template-columns: 1fr; }
  .stx-calc__result { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stx-result-head, .stx-calc__note, .stx-calc__result > .stx-button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .stx-calc { margin: 18px auto; }
  .stx-calc__hero { display: block; }
  .stx-calc__badge { display: inline-block; margin-top: 14px; }
  .stx-grid--3, .stx-grid--2 { grid-template-columns: 1fr 1fr; }
  .stx-calc__result { grid-template-columns: 1fr; }
  .stx-package, .stx-panel { border-radius: 14px; }
}

@media (max-width: 520px) {
  .stx-grid--3, .stx-grid--2 { grid-template-columns: 1fr; }
  .stx-panel { padding: 17px; }
  .stx-calc__hero h2 { font-size: 30px; }
  .stx-package__price { font-size: 27px; }
}
.stx-consent { display: flex; gap: 9px; align-items: flex-start; color: var(--stx-muted); font-size: 11px; line-height: 1.4; }
.stx-consent input { margin-top: 2px; accent-color: var(--stx-accent); }

/* --- Служебные страницы StroyExpert31 --- */
.stx-site-page {
  --stx-accent: #e88a1a;
  --stx-accent-dark: #bf6d0e;
  --stx-text: #17191d;
  --stx-muted: #6f747d;
  --stx-border: #e2e5e9;
  max-width: 1240px;
  margin: 28px auto 54px;
  color: var(--stx-text);
  font-family: inherit;
}
.stx-site-page *, .stx-site-page *::before, .stx-site-page *::after { box-sizing: border-box; }
.stx-site-hero { padding: clamp(26px, 5vw, 58px); border-radius: 24px; background: #f4f5f7; margin-bottom: 22px; }
.stx-site-hero h2, .stx-site-cta h2, .stx-site-content-block h2, .stx-site-form-section h2 { margin: 7px 0 10px; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.stx-site-hero p, .stx-site-cta p, .stx-site-form-section p { max-width: 800px; color: var(--stx-muted); font-size: 16px; line-height: 1.6; }
.stx-site-eyebrow { color: var(--stx-accent-dark); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.stx-site-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stx-site-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 18px; border-radius: 12px; background: var(--stx-accent); color: #fff !important; font-weight: 800; text-decoration: none !important; transition: .15s ease; }
.stx-site-button:hover { background: var(--stx-accent-dark); transform: translateY(-1px); }
.stx-site-button--ghost { background: #fff; color: var(--stx-text) !important; border: 1px solid var(--stx-border); }
.stx-site-button--ghost:hover { background: #fff7eb; }
.stx-site-grid { display: grid; gap: 16px; margin: 16px 0; }
.stx-site-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stx-site-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stx-site-card { position: relative; min-width: 0; padding: 24px; border: 1px solid var(--stx-border); border-radius: 18px; background: #fff; box-shadow: 0 10px 32px rgba(24,29,34,.04); scroll-margin-top: 90px; }
.stx-site-card h3 { margin: 2px 0 9px; font-size: 21px; }
.stx-site-card p { margin: 0 0 12px; color: var(--stx-muted); line-height: 1.6; }
.stx-site-card a { color: var(--stx-accent-dark); font-weight: 750; text-decoration: none; }
.stx-site-card__num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: #fff2df; color: var(--stx-accent-dark); font-weight: 800; font-size: 12px; }
.stx-site-card--featured { border-color: rgba(232,138,26,.5); box-shadow: 0 16px 42px rgba(232,138,26,.10); }
.stx-site-content-block { margin: 22px 0; padding: clamp(24px, 4vw, 42px); border-radius: 20px; background: #1f252b; color: #fff; }
.stx-site-content-block .stx-site-eyebrow { color: #ffb75e; }
.stx-site-content-block h2 { color: #fff; }
.stx-site-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.stx-site-steps > div { display: flex; gap: 11px; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); }
.stx-site-steps b { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--stx-accent); }
.stx-site-steps span { display: grid; gap: 4px; }
.stx-site-steps small { color: rgba(255,255,255,.67); line-height: 1.45; }
.stx-site-cta { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 22px; padding: clamp(24px, 4vw, 42px); border-radius: 20px; background: #fff7eb; }
.stx-site-cta h2 { font-size: clamp(26px, 3vw, 38px); }
.stx-site-cta p { margin-bottom: 0; }
.stx-site-form-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; margin-top: 22px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--stx-border); border-radius: 20px; background: #fff; }
.stx-contact-form { display: grid; gap: 13px; padding: 22px; background: #f7f8fa; border-radius: 16px; }
.stx-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 900px) {
  .stx-site-grid--3 { grid-template-columns: 1fr 1fr; }
  .stx-site-steps { grid-template-columns: 1fr 1fr; }
  .stx-site-form-section { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stx-site-page { margin-top: 16px; }
  .stx-site-hero { border-radius: 18px; }
  .stx-site-grid--2, .stx-site-grid--3, .stx-site-steps { grid-template-columns: 1fr; }
  .stx-site-cta { display: grid; }
  .stx-site-button { width: 100%; }
  .stx-contact-form { padding: 16px; }
}

/* --- v1.6: изображения услуг и персональные контакты --- */
.stx-site-hero--media {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 26px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #f4f5f7;
}
.stx-site-hero__content { padding: clamp(26px, 5vw, 58px); align-self: center; }
.stx-site-hero__image { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }

.stx-site-card--visual { padding: 0; overflow: hidden; }
.stx-site-card__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eef0f2; }
.stx-site-card__body { padding: 22px 24px 24px; }
.stx-site-card--visual .stx-site-card__num { margin-bottom: 12px; }
.stx-service-grid .stx-site-card { transition: transform .18s ease, box-shadow .18s ease; }
.stx-service-grid .stx-site-card:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(24,29,34,.09); }

.stx-contact-profile-wrap { margin-bottom: 22px; }
.stx-contact-profile {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  min-height: 520px;
  border: 1px solid var(--stx-border);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 44px rgba(24,29,34,.06);
}
.stx-contact-profile__photo { min-height: 520px; background: #e9ebee; }
.stx-contact-profile__photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center 28%; display: block; }
.stx-contact-profile__body { padding: clamp(28px, 5vw, 58px); align-self: center; }
.stx-contact-profile__body h1,
.stx-contact-profile__body h2 { margin: 8px 0 4px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -.04em; }
.stx-contact-profile__role { margin: 0 0 18px; color: var(--stx-accent-dark); font-weight: 800; font-size: 16px; }
.stx-contact-profile__lead { max-width: 650px; margin: 0 0 22px; color: var(--stx-muted); font-size: 16px; line-height: 1.65; }
.stx-contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stx-contact-item { display: grid; gap: 3px; min-width: 0; padding: 14px 16px; border: 1px solid var(--stx-border); border-radius: 13px; background: #f8f9fa; color: var(--stx-text) !important; text-decoration: none !important; }
.stx-contact-item:hover { border-color: rgba(232,138,26,.45); background: #fff9f1; }
.stx-contact-item span { color: var(--stx-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stx-contact-item strong { overflow-wrap: anywhere; font-size: 15px; }

.stx-contact-proof {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  margin: 22px 0;
  border-radius: 20px;
  background: #1f252b;
  color: #fff;
}
.stx-contact-proof img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.stx-contact-proof > div { padding: clamp(24px, 4vw, 42px); align-self: center; }
.stx-contact-proof .stx-site-eyebrow { color: #ffb75e; }
.stx-contact-proof h2 { margin: 8px 0 10px; color: #fff; font-size: clamp(26px, 3.5vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
.stx-contact-proof p { margin: 0 0 20px; color: rgba(255,255,255,.72); line-height: 1.6; }

@media (max-width: 900px) {
  .stx-site-hero--media { grid-template-columns: 1fr; }
  .stx-site-hero__image { min-height: 300px; max-height: 420px; }
  .stx-contact-profile { grid-template-columns: .85fr 1.15fr; min-height: 460px; }
  .stx-contact-profile__photo, .stx-contact-profile__photo img { min-height: 460px; }
  .stx-contact-list { grid-template-columns: 1fr; }
  .stx-contact-proof { grid-template-columns: 1fr; }
  .stx-contact-proof img { min-height: 280px; max-height: 400px; }
}

@media (max-width: 680px) {
  .stx-contact-profile { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .stx-contact-profile__photo { min-height: 0; aspect-ratio: 4 / 4.2; }
  .stx-contact-profile__photo img { min-height: 0; height: 100%; object-position: center 22%; }
  .stx-contact-profile__body { padding: 24px 20px 26px; }
  .stx-site-hero__image { min-height: 240px; }
  .stx-site-card__body { padding: 19px 19px 21px; }
}

/* v1.7 service/legal refinements */
.stx-service-list{margin:14px 0 0;padding-left:20px}.stx-service-list li{margin:8px 0}.stx-consent a{color:inherit;text-decoration:underline;text-underline-offset:2px}.stx-privacy-page .stx-site-content-block{max-width:920px;margin-left:auto;margin-right:auto}.stx-privacy-page h3{margin-top:28px}


/* v1.8: реальные объекты */
.stx-objects-page .stx-objects-hero { margin-bottom: 30px; }
.stx-object-hero-image { display:block; min-width:0; }
.stx-object-hero-image .stx-site-hero__image { transition: transform .25s ease; }
.stx-object-hero-image:hover .stx-site-hero__image { transform: scale(1.015); }

.stx-objects-intro { max-width: 800px; margin: 34px 0 18px; }
.stx-objects-intro h2 { margin: 6px 0 10px; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.stx-objects-intro p { margin:0; color:var(--stx-muted); line-height:1.65; }

.stx-object-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.stx-object-card { overflow:hidden; min-width:0; border:1px solid var(--stx-border); border-radius:20px; background:#fff; box-shadow:0 12px 36px rgba(24,29,34,.055); }
.stx-object-media { display:grid; grid-template-columns:1.5fr .8fr; grid-template-rows:1fr 1fr; height:380px; gap:3px; background:#e7e9ec; }
.stx-object-media > a { display:block; min-width:0; min-height:0; overflow:hidden; background:#e7e9ec; }
.stx-object-media__main { grid-row:1 / 3; }
.stx-object-media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .22s ease, filter .22s ease; }
.stx-object-media a:hover img { transform:scale(1.025); filter:brightness(.98); }
.stx-object-media--2 { grid-template-columns:1.15fr .85fr; grid-template-rows:1fr; }
.stx-object-media--2 > a { grid-row:auto; }
.stx-object-body { padding:22px 24px 25px; }
.stx-object-body > span { display:block; margin-bottom:7px; color:var(--stx-accent-dark); font-size:11px; font-weight:800; letter-spacing:.075em; text-transform:uppercase; }
.stx-object-body h3 { margin:0 0 9px; font-size:23px; line-height:1.16; }
.stx-object-body p { margin:0; color:var(--stx-muted); line-height:1.62; }
.stx-object-inline-link { display:inline-block; margin-top:12px; color:var(--stx-accent-dark)!important; font-weight:800; text-decoration:none!important; }

.stx-stage-section > p { max-width:840px; color:rgba(255,255,255,.72); line-height:1.65; }
.stx-stage-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:22px; }
.stx-stage-grid figure { overflow:hidden; margin:0; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.04); }
.stx-stage-grid a { display:block; aspect-ratio:4/3; overflow:hidden; }
.stx-stage-grid img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.stx-stage-grid a:hover img { transform:scale(1.025); }
.stx-stage-grid figcaption { padding:12px 13px 14px; color:#fff; font-size:13px; font-weight:750; }

.stx-object-control { display:grid; grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr); overflow:hidden; margin:22px 0; border:1px solid var(--stx-border); border-radius:20px; background:#fff; }
.stx-object-control > img { width:100%; height:100%; min-height:360px; object-fit:cover; object-position:center 28%; display:block; }
.stx-object-control > div { padding:clamp(25px,4vw,44px); align-self:center; }
.stx-object-control h2 { margin:7px 0 10px; font-size:clamp(27px,3.4vw,41px); line-height:1.08; letter-spacing:-.03em; }
.stx-object-control p { margin:0 0 20px; color:var(--stx-muted); line-height:1.65; }

@media (max-width:900px){
  .stx-object-grid{grid-template-columns:1fr}
  .stx-stage-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .stx-object-media,.stx-object-media--2{height:auto;grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .stx-object-media__main{grid-column:1 / 3;grid-row:auto}
  .stx-object-media > a{aspect-ratio:4/3}
  .stx-object-media__main{aspect-ratio:16/10!important}
  .stx-object-body{padding:19px 19px 22px}
  .stx-object-body h3{font-size:21px}
  .stx-stage-grid{grid-template-columns:1fr}
  .stx-object-control{grid-template-columns:1fr}
  .stx-object-control > img{min-height:0;aspect-ratio:4/3}
}

/* v1.9: полный архив фотографий объектов */
.stx-all-objects{margin-top:22px}
.stx-all-objects>p{max-width:900px;color:rgba(255,255,255,.72);line-height:1.65}
.stx-photo-groups{display:grid;gap:12px;margin-top:22px}
.stx-photo-group{overflow:hidden;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.045)}
.stx-photo-group summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;cursor:pointer;color:#fff;font-weight:800;list-style:none}
.stx-photo-group summary::-webkit-details-marker{display:none}
.stx-photo-group summary:after{content:'+';display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.1);font-size:20px;line-height:1}
.stx-photo-group[open] summary:after{content:'−'}
.stx-photo-group summary b{margin-left:auto;color:rgba(255,255,255,.58);font-size:12px;font-weight:700}
.stx-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0 5px 5px}
.stx-photo-grid a{display:block;overflow:hidden;aspect-ratio:4/3;background:#31363b}
.stx-photo-grid img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease,filter .2s ease}
.stx-photo-grid a:hover img{transform:scale(1.025);filter:brightness(.96)}
@media(max-width:900px){.stx-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.stx-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stx-photo-group summary{padding:15px}.stx-photo-group summary b{display:none}}

/* v2.0: fallback layout when /obekty/ is a CPT archive */
.stx-objects-route-shell{width:min(1240px,calc(100% - 36px));margin:0 auto;padding:1px 0 46px}
@media(max-width:620px){.stx-objects-route-shell{width:min(100% - 24px,1240px)}}

/* v2.8 — геометрия, цоколь и контрольные объёмы */
.stx-field[hidden], .stx-check[hidden] { display: none !important; }
.stx-quantities-panel {
  background: #fff;
  border: 1px solid var(--stx-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 26px rgba(24,29,34,.04);
}
.stx-quantities-panel summary {
  cursor: pointer;
  color: #444b53;
  font-size: 12px;
  font-weight: 800;
  user-select: none;
}
.stx-quantities { margin-top: 10px; display: grid; gap: 7px; }
.stx-quantities > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 11px; }
.stx-quantities span { color: var(--stx-muted); }
.stx-quantities b { color: var(--stx-text); text-align: right; white-space: nowrap; font-size: 11px; }

@media (max-width: 980px) {
  .stx-quantities-panel { grid-column: 1 / -1; }
}

/* v3.1: каталог проектов */
.stx-projects-hero { margin-bottom: 26px; }
.stx-project-filter {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto auto;
  gap:12px;
  align-items:end;
  margin:0 0 22px;
  padding:16px;
  border:1px solid var(--stx-border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 28px rgba(24,29,34,.04);
}
.stx-project-filter label { display:grid; gap:6px; min-width:0; }
.stx-project-filter label span { color:var(--stx-muted); font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.stx-project-filter select { width:100%; min-height:44px; padding:8px 34px 8px 11px; border:1px solid var(--stx-border); border-radius:11px; background:#fff; color:var(--stx-text); font:inherit; }
.stx-project-filter__reset { min-height:44px; padding:8px 14px; border:1px solid var(--stx-border); border-radius:11px; background:#f7f8fa; color:var(--stx-text); font:inherit; font-weight:750; cursor:pointer; }
.stx-project-filter__reset:hover { background:#fff7eb; border-color:rgba(232,138,26,.4); }
.stx-project-filter__count { min-height:44px; display:flex; gap:5px; align-items:center; justify-content:flex-end; color:var(--stx-muted); white-space:nowrap; }
.stx-project-filter__count strong { color:var(--stx-text); font-size:20px; }

.stx-project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.stx-project-card { overflow:hidden; min-width:0; border:1px solid var(--stx-border); border-radius:20px; background:#fff; box-shadow:0 10px 34px rgba(24,29,34,.05); transition:transform .18s ease, box-shadow .18s ease; }
.stx-project-card:hover { transform:translateY(-2px); box-shadow:0 18px 46px rgba(24,29,34,.09); }
.stx-project-card[hidden] { display:none!important; }
.stx-project-card__media { position:relative; display:block; aspect-ratio:16/10; overflow:hidden; background:#eef0f2; }
.stx-project-card__media img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .25s ease; }
.stx-project-card:hover .stx-project-card__media img { transform:scale(1.025); }
.stx-project-card__media span { position:absolute; left:12px; top:12px; padding:6px 9px; border-radius:999px; background:rgba(20,23,27,.82); color:#fff; font-size:11px; font-weight:800; letter-spacing:.04em; }
.stx-project-card__body { padding:20px 20px 21px; }
.stx-project-card__body h2 { margin:0 0 12px; font-size:21px; line-height:1.18; letter-spacing:-.018em; }
.stx-project-card__body h2 a { color:var(--stx-text); text-decoration:none; }
.stx-project-card__facts { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:12px; }
.stx-project-card__facts span { padding:6px 8px; border-radius:9px; background:#f4f5f7; color:#555b64; font-size:12px; }
.stx-project-card__facts b { color:var(--stx-text); }
.stx-project-card__body p { min-height:44px; margin:0 0 15px; color:var(--stx-muted); line-height:1.5; font-size:14px; }
.stx-project-card__actions { display:flex; justify-content:space-between; gap:12px; padding-top:13px; border-top:1px solid var(--stx-border); }
.stx-project-card__actions a { color:var(--stx-accent-dark); font-weight:800; text-decoration:none; font-size:14px; }
.stx-project-empty { margin:22px 0; padding:18px; border-radius:14px; background:#fff7eb; color:var(--stx-muted); }
.stx-projects-note { margin-top:28px; }

.stx-project-breadcrumb { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 14px; color:var(--stx-muted); font-size:13px; }
.stx-project-breadcrumb a { color:var(--stx-accent-dark); font-weight:750; text-decoration:none; }
.stx-project-detail__hero { display:grid; grid-template-columns:1fr 1.05fr; gap:0; overflow:hidden; margin-bottom:24px; border:1px solid var(--stx-border); border-radius:24px; background:#f4f5f7; }
.stx-project-detail__intro { padding:clamp(28px,4.5vw,54px); align-self:center; }
.stx-project-detail__intro h1 { margin:8px 0 12px; font-size:clamp(34px,4.5vw,58px); line-height:1.02; letter-spacing:-.045em; }
.stx-project-detail__intro > p { margin:0; color:var(--stx-muted); line-height:1.62; font-size:16px; }
.stx-project-detail__cover { display:block; min-height:520px; background:#e7e9ec; }
.stx-project-detail__cover img { width:100%; height:100%; min-height:520px; display:block; object-fit:cover; }
.stx-project-detail__stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:22px 0 0; }
.stx-project-detail__stats > div { display:grid; gap:2px; padding:13px 14px; border:1px solid rgba(0,0,0,.06); border-radius:12px; background:#fff; }
.stx-project-detail__stats b { font-size:17px; line-height:1.2; }
.stx-project-detail__stats span { color:var(--stx-muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.stx-project-detail__specs, .stx-project-detail__section { margin:26px 0; }
.stx-project-detail__specs h2, .stx-project-detail__section h2 { margin:7px 0 14px; font-size:clamp(27px,3vw,40px); line-height:1.08; letter-spacing:-.03em; }
.stx-project-spec-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.stx-project-spec-grid > div { display:grid; gap:5px; padding:15px; border:1px solid var(--stx-border); border-radius:13px; background:#fff; }
.stx-project-spec-grid span { color:var(--stx-muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; font-weight:750; }
.stx-project-spec-grid strong { line-height:1.35; }
.stx-project-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.stx-project-gallery a { display:block; overflow:hidden; min-height:300px; border-radius:16px; background:#eef0f2; }
.stx-project-gallery img { width:100%; height:100%; min-height:300px; max-height:500px; object-fit:cover; display:block; transition:transform .2s ease; }
.stx-project-gallery a:hover img { transform:scale(1.018); }
.stx-project-plans { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.stx-project-plans a { display:flex; align-items:center; justify-content:center; min-height:360px; padding:12px; border:1px solid var(--stx-border); border-radius:16px; background:#fff; }
.stx-project-plans img { width:100%; max-height:700px; object-fit:contain; display:block; }
.stx-project-disclaimer { margin:18px 0 0; color:var(--stx-muted); font-size:13px; line-height:1.55; }

@media (max-width: 980px) {
  .stx-project-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stx-project-filter__count { justify-content:flex-start; }
  .stx-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stx-project-detail__hero { grid-template-columns:1fr; }
  .stx-project-detail__cover, .stx-project-detail__cover img { min-height:360px; max-height:520px; }
  .stx-project-spec-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .stx-project-filter { grid-template-columns:1fr; }
  .stx-project-filter__reset { width:100%; }
  .stx-project-grid { grid-template-columns:1fr; }
  .stx-project-card__body h2 { font-size:20px; }
  .stx-project-detail__hero { border-radius:18px; }
  .stx-project-detail__intro { padding:24px 20px; }
  .stx-project-detail__cover, .stx-project-detail__cover img { min-height:260px; }
  .stx-project-detail__stats, .stx-project-spec-grid, .stx-project-gallery, .stx-project-plans { grid-template-columns:1fr; }
  .stx-project-gallery a, .stx-project-gallery img { min-height:240px; }
  .stx-project-plans a { min-height:260px; }
}

/* v3.3 project purchase CTA */
.stx-project-card__actions { flex-wrap:wrap; justify-content:flex-start; }
.stx-project-card__actions a { padding:5px 0; }
.stx-project-card__actions .stx-project-card__buy { margin-left:auto; color:#fff; background:var(--stx-accent-dark); padding:7px 10px; border-radius:9px; line-height:1.1; }
.stx-site-button--buy { background:#2b5d43!important; color:#fff!important; border-color:#2b5d43!important; }
