.section-border{border-bottom:1px solid var(--line)}
.rule{display:block;width:46px;height:3px;background:var(--accent);margin-bottom:18px}
.rule.small{width:32px;height:2px;margin:0 11px 0 0;display:inline-block;vertical-align:middle}
.eyebrow{font-size:11px;letter-spacing:.18em;color:var(--muted);font-weight:700;margin-bottom:10px}

.hero{background:var(--paper);padding:0}
.hero-grid{
  min-height:520px;
  display:grid;
  grid-template-columns:42% 58%;
  align-items:stretch;
  padding-right:0;
}
.hero-copy{padding:92px 30px 60px 0}
.hero h1,.section h2,.history-card h3{margin:0}
.hero h1{font-size:54px;line-height:.99;letter-spacing:-1.6px}

.hero-subtitle{
  font-family:var(--font-editorial);
  font-size:27px;
  line-height:1.15;
  margin:16px 0 0;
  color:#302a25;
  max-width:410px;
}
.hero-image-wrap{height:520px;background:#ece7dd;overflow:hidden}
.hero-image-wrap img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}

.section{background:var(--paper);padding:58px 0}
.section h2{font-size:40px;line-height:1.06;letter-spacing:-.5px}
.intro-section{padding:46px 0 50px}
.body-copy{color:#736a62;font-size:16px;line-height:1.54}
.body-copy p{margin:0 0 14px}
.body-copy p:last-child{margin-bottom:0}
.justify{text-align:justify;text-justify:inter-word}
.full-width-copy{width:100%;max-width:none}
.intro-section .intro-copy{margin-top:20px;padding-top:0;font-size:16px;line-height:1.58}
.single-line-title{white-space:nowrap}

.section-head{margin-bottom:28px}
.section-head .intro,.intro{color:var(--muted);font-size:16px;line-height:1.46;margin:12px 0 0}
.stacked-head{display:block;margin-bottom:28px}
.stacked-head .project-copy{margin-top:20px;font-size:16px;line-height:1.58}
.project-copy p{margin-bottom:0}
.project-gallery{display:grid;grid-template-columns:1.45fr 1fr;grid-template-rows:240px 240px;gap:16px}
.project-gallery figure{margin:0;display:flex;flex-direction:column;min-width:0}
.project-gallery figure.project-main{grid-row:1/3}
.project-gallery img{width:100%;height:100%;min-height:0;object-fit:contain;background:#f2eee6;display:block;border:1px solid #e3ddd2}

.history-head{margin-bottom:30px}
.history-intro{max-width:none;width:100%;line-height:1.55}
.history-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:32px}
.history-card{position:relative;border-top:1px solid var(--line);padding-top:22px}
.history-number{font-family:var(--font-editorial);font-size:18px;color:var(--terra);margin-bottom:10px}
.history-card img{width:100%;height:220px;object-fit:contain;background:#f0ece4;border:1px solid #e2ddd4;display:block}
.history-card h3{font-size:25px;line-height:1.08;margin:15px 0 9px}
.history-card p{font-size:14px;line-height:1.48;color:#786f67;margin:0;text-align:justify;text-justify:inter-word}

.architect-section{padding:50px 0}
.section h2.architect-title{white-space:nowrap;font-size:34px;margin-bottom:24px}
.architect-content{display:grid;grid-template-columns:200px 1fr;gap:42px;align-items:start}
.portrait-wrap{width:185px;height:155px;background:#e9e4dc;overflow:hidden}
.portrait-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.architect-copy{max-width:none;width:100%;font-size:16px;line-height:1.58}
.architect-copy p{margin:0}

.project-today-section{padding:54px 0;background:var(--paper)}
.project-today-section h2{margin-bottom:22px}
.project-today-copy{width:100%;max-width:none;font-size:16px;line-height:1.6}
.project-today-copy p{margin:0 0 16px}
.project-today-copy p:last-child{margin-bottom:0}

.panorama-experience{margin-top:38px;padding-top:32px;border-top:1px solid var(--line)}
.panorama-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin-bottom:18px}
.panorama-head h3{margin:0;font-family:var(--font-heading);font-size:30px;font-weight:500;line-height:1.1;letter-spacing:-.2px;color:var(--ink)}
.panorama-head p{margin:0;max-width:520px;color:var(--muted);font-size:14px;line-height:1.5;text-align:right}
.panorama-viewer{width:100%;height:clamp(340px,52vw,620px);overflow:hidden;background:#e9e4dc;border:1px solid var(--line)}
.panorama-switcher{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.panorama-button{min-height:44px;padding:9px 16px;border:1px solid var(--line);background:transparent;color:var(--ink);font:500 14px/1 var(--font-text);cursor:pointer}
.panorama-button:hover{border-color:var(--terra);color:var(--terra)}
.panorama-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.panorama-button[aria-pressed="true"]{border-color:var(--terra);color:var(--terra);box-shadow:inset 0 -2px 0 var(--terra)}
.panorama-fallback img{display:block;width:100%;height:auto;border:1px solid var(--line)}
.panorama-viewer .pnlm-load-button{background:rgba(34,30,27,.76);border-radius:0;font-family:var(--font-sans);font-size:15px;line-height:1.35}
.panorama-viewer .pnlm-load-button:hover{background:rgba(34,30,27,.86)}
.panorama-viewer .pnlm-controls{border-radius:0;border-color:rgba(34,30,27,.34)}
.panorama-viewer.panorama-static-fallback{position:relative;background-position:center;background-size:cover}
.panorama-viewer.panorama-static-fallback .pnlm-ui{display:none}
.panorama-viewer.panorama-static-fallback::after{content:"Интерактивный просмотр недоступен — показан статичный вид";position:absolute;right:12px;bottom:12px;padding:8px 11px;background:rgba(34,30,27,.72);color:#fff;font-size:12px;line-height:1.3}

@media(min-width:951px){.hero-image-wrap{transform:translateX(-54px)}}

@media(max-width:1100px){.section h2.architect-title{white-space:normal}}

@media(max-width:950px){
  .hero-grid{grid-template-columns:1fr;min-height:auto;padding-right:28px}
  .hero-copy{padding:60px 0 35px}
  .hero-image-wrap{height:440px}
  .single-line-title{white-space:normal}
  .project-gallery{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .project-gallery figure.project-main{grid-row:auto;grid-column:1/3}
  .project-gallery img{height:260px}
  .history-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:680px){
  .justify{text-align:left;text-justify:auto}
  .hero h1{font-size:42px}
  .hero-subtitle{font-size:23px}
  .hero-image-wrap{height:330px}
  .section{padding:42px 0}
  .section h2{font-size:34px}
  .history-grid{grid-template-columns:1fr}
  .project-gallery{display:block}
  .project-gallery figure{margin-bottom:18px}
  .project-gallery img{height:260px}
  .architect-content{grid-template-columns:1fr}
  .portrait-wrap{width:170px}
  .history-card p{text-align:left;text-justify:auto}
  .panorama-experience{margin-top:30px;padding-top:26px}
  .panorama-head{display:block;margin-bottom:15px}
  .panorama-head h3{font-size:28px}
  .panorama-head p{margin-top:8px;max-width:none;text-align:left}
  .panorama-switcher{display:grid;grid-template-columns:1fr 1fr}
  .panorama-button{width:100%}
}


/* v4.2 — unified heading typography */
.hero h1{
  font-family:var(--font-heading);
  font-size:var(--type-h1-size);
  line-height:var(--type-h1-line);
  letter-spacing:var(--type-h1-track);
}
.hero-subtitle{
  font-family:var(--font-heading);
  font-size:var(--type-subtitle-size);
  line-height:var(--type-subtitle-line);
  letter-spacing:0;
}
.section h2,
.section h2.architect-title{
  font-family:var(--font-heading);
  font-size:var(--type-h2-size);
  line-height:var(--type-h2-line);
  letter-spacing:var(--type-h2-track);
}
@media(max-width:680px){
  .hero h1{font-size:46px}
  .hero-subtitle{font-size:23px}
  .section h2,.section h2.architect-title{font-size:34px}
}

@media(min-width:681px) and (max-width:1180px){
  .hero h1{font-size:52px}
  .hero-subtitle{font-size:25px}
}
