/* Дом в Новой Усмани — «Как устроен дом». Дополнение к site.css. */
.dh-page { padding-bottom: 0; }
.dh-header { border-bottom: 1px solid var(--line); }
.dh-header .site-header__inner { min-height: 76px; }
.dh-nav { display: flex; align-items: center; gap: 28px; font-size: var(--t-14); font-weight: 600; }
.dh-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; text-underline-offset: 6px; }
.dh-nav a:hover, .dh-nav a[aria-current="page"] { color: var(--oak); text-decoration: underline; }
.dh-nav .btn { color: var(--on-dark); }
.dh-breadcrumb { margin: 0; padding-top: 28px; color: var(--muted); font-size: var(--t-12); }
.dh-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.dh-breadcrumb li + li::before { content: "/"; margin-right: 12px; color: var(--oak-line); }
.dh-breadcrumb a { text-underline-offset: 4px; }
.dh-hero { padding: 58px 0 52px; }
.dh-hero .eyebrow { margin-bottom: 24px; }
.dh-title { max-width: 890px; font-family: var(--f-serif); font-size: clamp(2.875rem, 1.7rem + 4.2vw, 5.75rem); line-height: .99; letter-spacing: -.025em; text-wrap: balance; }
.dh-intro { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 56px; align-items: end; margin-top: 32px; }
.dh-lead { max-width: 720px; margin: 0; color: var(--ink-2); font-size: clamp(1rem, .9rem + .45vw, 1.25rem); line-height: 1.75; }
.dh-meta { margin: 0; padding-left: 24px; border-left: 1px solid var(--oak-line); color: var(--muted); font-size: var(--t-12); line-height: 1.9; }
.dh-meta strong { display: block; color: var(--ink-2); font-size: var(--t-14); font-weight: 600; }
.dh-cover { margin: 0; }
.dh-our-house { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.dh-our-house .h2 { font-size: clamp(2rem, 1.5rem + 1.5vw, 3.25rem); }
.dh-our-house figure { margin: 0; }
.dh-our-house img { width: 100%; border-radius: var(--r-md); }
.dh-our-house p { font-size: var(--t-16); }
.dh-schema-heading { max-width: 830px; }
.dh-cover__frame { overflow: hidden; border: 1px solid var(--line); background: var(--sand); border-radius: var(--r-md); }
.dh-cover__frame img { width: 100%; }
.dh-caption { margin: 12px 0 0; color: var(--muted); font-size: var(--t-12); line-height: 1.6; }
.dh-caption a { text-underline-offset: 4px; }
.dh-contents { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 28px 0; margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--t-14); }
.dh-contents a { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; }
.dh-contents a:hover { color: var(--oak); }
.dh-contents span { color: var(--oak); font-size: var(--t-12); }
.dh-section { padding: 76px 0; scroll-margin-top: 24px; }
.dh-section--border { border-top: 1px solid var(--line); }
.dh-section__head { max-width: 700px; margin-bottom: 36px; }
.dh-section__head .h2 { margin-bottom: 16px; }
.dh-section__head p { color: var(--ink-2); }
.dh-section__head p:last-child { margin-bottom: 0; }
.dh-steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 68px; align-items: start; }
.dh-steps { margin: 0; padding: 0; list-style: none; counter-reset: house-layer; }
.dh-steps > li { counter-increment: house-layer; position: relative; padding: 26px 0 26px 70px; border-top: 1px solid var(--line); }
.dh-steps > li:last-child { border-bottom: 1px solid var(--line); }
.dh-steps > li::before { content: "0" counter(house-layer); position: absolute; left: 0; top: 24px; font-family: var(--f-serif); font-size: 2.4rem; line-height: 1; color: var(--oak); font-variant-numeric: lining-nums tabular-nums; }
.dh-steps h3 { font-size: var(--t-18); line-height: 1.5; margin: 0 0 9px; }
.dh-steps p { margin: 0; color: var(--ink-2); font-size: var(--t-16); }
.dh-note { padding: 28px; background: var(--sand); border-top: 2px solid var(--oak-line); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.dh-note .eyebrow { margin-bottom: 20px; }
.dh-note h3 { font-family: var(--f-serif); font-size: 2rem; line-height: 1.08; margin: 0 0 16px; }
.dh-note p { color: var(--ink-2); font-size: var(--t-14); }
.dh-note p:last-child { margin-bottom: 0; }
.dh-material-list { display: grid; gap: 0; margin-bottom: 20px; font-size: var(--t-14); }
.dh-material-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dh-material-list li:last-child { border-bottom: 0; }
.dh-material-list span { display: block; color: var(--muted); font-size: var(--t-12); }
.dh-video-section { background: var(--graphite); color: var(--on-dark); padding: 72px 0; scroll-margin-top: 24px; }
.dh-video-section .dh-section__head { max-width: 760px; }
.dh-video-section .dh-section__head p { color: var(--on-dark-2); }
.dh-video-section .eyebrow { color: var(--gold-on-dark); }
.dh-video-section .eyebrow::after { background: var(--gold-on-dark); }
.dh-video { width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: var(--r-sm); background: #171613; }
.dh-video-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: var(--t-12); color: var(--on-dark-2); }
.dh-video-caption a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.dh-transcript { margin-top: 28px; padding-top: 18px; border-top: 1px solid #555047; font-size: var(--t-14); color: var(--on-dark-2); }
.dh-transcript summary { cursor: pointer; color: var(--on-dark); padding: 8px 0; }
.dh-transcript p { margin-top: 16px; }
.dh-transcript ol { margin: 0; padding-left: 24px; }
.dh-transcript li { padding: 4px 0; }
.dh-video-section :focus-visible { outline-color: var(--gold-on-dark); }
.dh-material { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.dh-material h3 { font-size: var(--t-18); margin-bottom: 16px; }
.dh-material p { color: var(--ink-2); font-size: var(--t-16); }
.dh-material > div { padding-top: 24px; border-top: 1px solid var(--oak-line); }
.dh-material__label { display: inline-block; margin-bottom: 18px; color: var(--oak); font-size: var(--t-12); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dh-source-note { max-width: 900px; margin: 28px 0 0; color: var(--muted); font-size: var(--t-12); line-height: 1.85; }
.dh-source-note a { text-underline-offset: 4px; }
.dh-source-note + .dh-visit { margin-top: 40px; }
.dh-visit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); margin-bottom: 80px; }
.dh-visit__content { padding: 40px; align-self: center; }
.dh-visit .h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3.25rem); }
.dh-visit p { color: var(--ink-2); font-size: var(--t-16); }
.dh-visit__media { min-height: 100%; margin: 0; }
.dh-visit__media img { width: 100%; height: 100%; object-fit: cover; }
.dh-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.dh-actions .text-link { font-size: var(--t-14); }
.dh-footer .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; }
.dh-footer .site-footer__links { max-width: 360px; }
.dh-footer p:last-child { margin-bottom: 0; }
.dh-index-hero { padding-bottom: 54px; }
.dh-index-hero .dh-lead { margin-top: 28px; max-width: 670px; }
.dh-story-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin: 0 0 80px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.dh-story-card__visual { display: flex; align-items: center; background: var(--sand); }
.dh-story-card__visual img { width: 100%; }
.dh-story-card__content { padding: 40px; align-self: center; }
.dh-story-card__date { color: var(--muted); font-size: var(--t-12); }
.dh-story-card h2 { font-family: var(--f-serif); font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); line-height: 1.08; margin: 20px 0; }
.dh-story-card h2 a { text-decoration: none; }
.dh-story-card h2 a:hover { color: var(--oak); }
.dh-story-card p { color: var(--ink-2); font-size: var(--t-16); }
.dh-story-card .text-link { margin-top: 4px; font-size: var(--t-14); }
.dh-index-footer-note { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 0 0 72px; }
.dh-index-footer-note p { margin: 0; max-width: 630px; color: var(--ink-2); }
@media (min-width: 960px) {
  .dh-section, .dh-video-section { scroll-margin-top: 92px; }
  .dh-note { position: sticky; top: 108px; }
}
@media (max-width: 959px) {
  .dh-nav { gap: 20px; }
  .dh-nav .btn { display: none; }
  .dh-intro { grid-template-columns: 1fr; gap: 24px; }
  .dh-meta { padding: 0; border: 0; }
  .dh-meta strong { display: inline; margin-right: 12px; }
  .dh-steps-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
  .dh-note { padding: 24px; }
  .dh-visit__content, .dh-story-card__content { padding: 28px; }
  .dh-story-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  .dh-our-house { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .dh-our-house figure { order: -1; }
  .dh-header .site-header__inner { min-height: 70px; gap: 16px; }
  .dh-header .brand__title { font-size: 1.0625rem; }
  .dh-header .brand__sub { font-size: .625rem; }
  .dh-nav { gap: 14px; font-size: var(--t-12); }
  .dh-breadcrumb { padding-top: 20px; }
  .dh-hero { padding: 36px 0 32px; }
  .dh-hero .eyebrow { margin-bottom: 20px; font-size: .6875rem; }
  .dh-title { font-size: clamp(2.5rem, 1.8rem + 4vw, 3.75rem); line-height: 1.02; }
  .dh-intro { margin-top: 24px; gap: 20px; }
  .dh-lead { font-size: var(--t-16); }
  .dh-meta strong { display: block; }
  .dh-contents { gap: 6px 20px; margin-top: 24px; padding: 18px 0; font-size: var(--t-12); }
  .dh-section { padding: 48px 0; }
  .dh-section__head { margin-bottom: 28px; }
  .dh-section__head p { font-size: var(--t-16); }
  .dh-steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .dh-steps > li { padding: 22px 0 22px 52px; }
  .dh-steps > li::before { top: 22px; font-size: 2rem; }
  .dh-steps h3 { font-size: var(--t-16); }
  .dh-steps p { font-size: var(--t-14); line-height: 1.75; }
  .dh-material { grid-template-columns: 1fr; gap: 20px; }
  .dh-material h3 { margin-bottom: 12px; }
  .dh-material__label { margin-bottom: 10px; }
  .dh-video-section { padding: 48px 0; }
  .dh-visit { grid-template-columns: 1fr; margin-bottom: 48px; }
  .dh-visit__media { order: -1; aspect-ratio: 16 / 9; }
  .dh-visit__content { padding: 28px 24px; }
  .dh-actions { gap: 12px 20px; }
  .dh-actions .btn { width: 100%; }
  .dh-footer .site-footer__inner { grid-template-columns: 1fr; }
  .dh-story-card { grid-template-columns: 1fr; margin-bottom: 40px; }
  .dh-story-card__content { padding: 28px 24px; }
  .dh-story-card h2 { margin: 14px 0; font-size: 2.25rem; }
  .dh-index-footer-note { align-items: flex-start; flex-direction: column; padding-bottom: 48px; font-size: var(--t-16); }
}
@media print {
  .dh-header, .dh-contents, .dh-video-section, .dh-visit, .dh-footer { display: none; }
  .dh-page { background: #fff; }
  .dh-hero { padding: 24px 0; }
  .dh-title { font-size: 38pt; }
  .dh-section { padding: 24px 0; }
  .dh-note { position: static; }
  .dh-steps > li { break-inside: avoid; }
}
