/* «Домострой»: цельная страница компании. Стили изолированы от остальных страниц. */
.domostroy-page #main-content { background: #fff; }
.domostroy-profile {
    --ds-blue: #154692;
    --ds-navy: #123666;
    --ds-cyan: #20abd2;
    --ds-ink: #203247;
    --ds-muted: #526275;
    --ds-line: #dce5ed;
    width: 100%;
    margin: 0;
    background: #fff;
    color: var(--ds-ink);
    font: 20px/1.6 Arial, Helvetica, sans-serif;
    text-align: left;
    overflow-wrap: break-word;
}
.domostroy-profile *, .domostroy-profile *::before, .domostroy-profile *::after { box-sizing: border-box; }
.domostroy-profile :is(p,h1,h2,h3,ul,li,figure,dl,dt,dd) { margin: 0; padding: 0; text-indent: 0; }
.domostroy-profile :is(h1,h2,h3) { font-family: inherit; color: var(--ds-navy); text-transform: none; }
.domostroy-profile h2 { font-size: clamp(34px, 3.3vw, 48px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.domostroy-profile h3 { font-size: 23px; font-weight: 700; line-height: 1.35; }
.domostroy-profile a { color: var(--ds-blue); }
.domostroy-profile a:focus-visible { outline: 3px solid #087b9b; outline-offset: 5px; }
.domostroy-profile [id] { scroll-margin-top: 28px; }
.ds-shell { width: 100%; max-width: 1900px; margin-inline: auto; padding-inline: 48px; }
.ds-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0 12px; }
.domostroy-profile .ds-back { display: inline-flex; gap: 10px; align-items: center; color: var(--ds-muted); font-size: 16px; text-decoration: none; }
.domostroy-profile .ds-back:hover { color: var(--ds-blue); text-decoration: underline; }
.ds-back span { font-size: 22px; }
.ds-logo { display: block; width: 156px; height: auto; }
.ds-hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.16fr); align-items: center; gap: 42px; padding: 22px 0 40px; }
.ds-hero > *, .ds-lowrise > *, .ds-overhaul > *, .ds-programs__grid > * { min-width: 0; }
.domostroy-profile h1 { font-size: clamp(50px, 5.2vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; }
.domostroy-profile .ds-hero__title { margin-top: 18px; color: var(--ds-navy); font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; line-height: 1.22; letter-spacing: -.015em; }
.domostroy-profile .ds-hero__lead { max-width: 49ch; margin-top: 22px; font-size: 22px; }
.domostroy-profile .ds-hero__description { max-width: 52ch; margin-top: 12px; color: var(--ds-muted); font-size: 20px; line-height: 1.6; }
.ds-local-nav { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 12px; margin-top: 28px; }
.domostroy-profile .ds-local-nav a { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 2px solid var(--ds-cyan); font-size: 17px; font-weight: 700; text-decoration: none; }
.domostroy-profile .ds-local-nav a:hover { color: #08708e; border-color: var(--ds-blue); }
.ds-photo { min-width: 0; }
.ds-photo > a { position: relative; display: block; width: 100%; aspect-ratio: 1.6; overflow: hidden; background: #eaf0f5; }
.ds-photo img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.ds-photo > a:hover img { transform: scale(1.025); }
.ds-photo > a:focus-visible { outline-offset: 3px; }
.ds-photo__open { position: absolute; right: 12px; bottom: 12px; display: grid; width: 36px; height: 36px; place-items: center; background: #123666e8; color: #fff; font-size: 22px; line-height: 1; pointer-events: none; }
.domostroy-profile .ds-photo figcaption { margin-top: 9px; color: var(--ds-muted); font-size: 16px; line-height: 1.45; }
.ds-hero__media .ds-photo > a { aspect-ratio: 1.55; }
.ds-hero__media .ds-photo img { object-position: 45% center; }
.ds-hero__media .ds-photo figcaption { padding-left: 13px; border-left: 3px solid var(--ds-cyan); }
.ds-stats { padding: 32px 40px 34px; border-top: 3px solid var(--ds-cyan); background: var(--ds-navy); color: #fff; }
.ds-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ds-stat { display: flex; flex-direction: column; min-width: 0; }
.ds-stat + .ds-stat { padding-left: 28px; border-left: 1px solid #ffffff38; }
.ds-stat dt { order: 2; margin-top: 8px; color: #d9e7f5; font-size: 18px; font-weight: 400; line-height: 1.45; }
.ds-stat dd { order: 1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 9px; color: #fff; font-size: clamp(42px, 3.6vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.ds-stat dd span { font-size: 26px; font-weight: 400; letter-spacing: 0; }
.ds-section { padding-block: 60px 4px; }
.ds-section__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.ds-section__heading > div { min-width: 0; }
.ds-lowrise { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 36px; }
.ds-lowrise > .ds-photo > a { aspect-ratio: 1.56; }
.ds-lowrise__gallery { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; margin-top: 24px; }
.ds-lowrise__gallery .ds-photo > a { height: 330px; aspect-ratio: auto; }
.ds-photo--plan > a { background: #f1f5f8; padding: 15px; }
.ds-photo--plan img { object-fit: contain; }
.ds-photo--plan > a:hover img { transform: none; }
.ds-section--overhaul { margin-top: 28px; padding-top: 28px; padding-bottom: 44px; border-top: 1px solid var(--ds-line); }
.ds-overhaul { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.ds-overhaul__copy { min-width: 0; }
.ds-overhaul__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; padding-top: 4px; }
.ds-overhaul__photos .ds-photo > a { height: clamp(220px, 17.4vw, 330px); aspect-ratio: auto; max-height: 330px; }
.ds-programs { padding-block: 48px; background: #edf4f8; }
.domostroy-profile .ds-program-list { display: grid; gap: 20px; margin-top: 26px; list-style: none; font-size: 20px; line-height: 1.6; }
.ds-program-list li { position: relative; padding-left: 20px; }
.ds-program-list li::before { position: absolute; top: 9px; left: 0; width: 6px; height: 6px; content: ""; background: #1288ab; }

@media (max-width: 1050px) {
    .ds-shell { padding-inline: 32px; }
    .domostroy-profile { font-size: 19px; }
    .domostroy-profile h3 { font-size: 21px; }
    .domostroy-profile .ds-hero__lead { font-size: 20px; }
    .domostroy-profile .ds-hero__description { font-size: 18px; }
    .ds-stat dt { font-size: 16px; }
    .ds-hero { gap: 28px; }
    .ds-stats { padding-inline: 24px; }
    .ds-stats__grid { gap: 20px; }
    .ds-stat + .ds-stat { padding-left: 20px; }
    .ds-stat dd { font-size: 42px; }
    .ds-stat dd span { font-size: 20px; }
    .ds-lowrise, .ds-lowrise__gallery { gap: 28px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .ds-overhaul { gap: 28px; }
}
@media (max-width: 850px) {
    .ds-shell { padding-inline: 24px; }
    .ds-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 18px; }
    .ds-hero__copy { max-width: 720px; }
    .ds-hero__media .ds-photo > a { aspect-ratio: 1.8; }
    .ds-hero__media .ds-photo img { object-position: center 45%; }
    .ds-section { padding-top: 46px; }
    .ds-lowrise { grid-template-columns: 1fr; gap: 24px; }
    .ds-lowrise > .ds-photo > a { aspect-ratio: 1.65; }
    .ds-lowrise__gallery .ds-photo > a { height: 220px; }
    .ds-overhaul { gap: 28px; }
    .ds-overhaul { grid-template-columns: 1fr; }
    .ds-overhaul__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .ds-overhaul__photos .ds-photo > a { aspect-ratio: 1.4; }
}
@media (max-width: 600px) {
    .domostroy-profile { font-size: 18px; line-height: 1.6; }
    .domostroy-profile h2 { font-size: 32px; }
    .domostroy-profile h3 { font-size: 20px; }
    .ds-shell { padding-inline: 20px; }
    .ds-brandbar { gap: 16px; padding-top: 16px; }
    .ds-logo { width: 104px; }
    .domostroy-profile .ds-back { gap: 7px; font-size: 14px; }
    .domostroy-profile h1 { font-size: clamp(42px, 11vw, 56px); }
    .domostroy-profile .ds-hero__title { margin-top: 14px; font-size: 28px; }
    .domostroy-profile .ds-hero__lead { margin-top: 18px; font-size: 18px; }
    .domostroy-profile .ds-hero__description { font-size: 17px; }
    .ds-local-nav { column-gap: 18px; margin-top: 22px; }
    .domostroy-profile .ds-local-nav a { gap: 8px; font-size: 14px; }
    .ds-hero { padding-bottom: 28px; }
    .ds-hero__media .ds-photo > a { aspect-ratio: 1.4; }
    .ds-stats { padding: 4px 20px; }
    .ds-stats__grid { grid-template-columns: 1fr; gap: 0; }
    .ds-stat, .ds-stat + .ds-stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 0; border-left: 0; }
    .ds-stat + .ds-stat { border-top: 1px solid #ffffff38; }
    .ds-stat dt { margin: 0; font-size: 14px; }
    .ds-stat dd { font-size: 32px; column-gap: 7px; }
    .ds-stat dd span { font-size: 16px; }
    .ds-section { padding-top: 38px; }
    .ds-section__heading { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 24px; }
    .ds-lowrise > .ds-photo > a { aspect-ratio: 1.4; }
    .ds-lowrise__gallery { grid-template-columns: 1fr; gap: 20px; margin-top: 22px; }
    .ds-lowrise__gallery .ds-photo > a { height: auto; aspect-ratio: 1.55; }
    .ds-lowrise__gallery .ds-photo--plan > a { max-height: 290px; }
    .ds-overhaul__photos { grid-template-columns: 1fr; gap: 20px; }
    .ds-overhaul__photos .ds-photo > a { height: auto; aspect-ratio: 1.55; max-height: 240px; }
    .ds-section--overhaul { padding-bottom: 36px; }
    .ds-programs { padding-block: 34px; }
    .domostroy-profile .ds-photo figcaption { font-size: 14px; }
}

.domostroy-profile .ds-source-list { display: grid; gap: 10px; margin-top: 18px; list-style: none; color: var(--ds-muted); font-size: 20px; line-height: 1.55; }
.ds-source-list li { position: relative; padding-left: 20px; }
.ds-source-list li::before { position: absolute; left: 0; content: "›"; color: var(--ds-blue); font-weight: 700; }
.ds-overhaul__copy .ds-source-list { gap: 8px; }
@media (max-width: 1200px) and (min-width: 601px) {
    .ds-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
    .ds-stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 1050px) {
    .domostroy-profile .ds-source-list { font-size: 18px; }
    .ds-overhaul { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; }
}
@media (max-width: 850px) {
    .ds-overhaul { grid-template-columns: 1fr; }
    .ds-overhaul__photos { max-width: 760px; }
}
@media (max-width: 600px) {
    .domostroy-profile .ds-program-list { font-size: 18px; }
    .ds-section--overhaul { margin-top: 24px; padding-top: 24px; }
    .ds-source-list li { padding-left: 16px; }
}


.ds-programs__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px 52px;
    align-items: stretch;
}
.ds-programs__copy { grid-column: 1; grid-row: 1; }
.ds-programs__photos { display: contents; }
.ds-programs__photos > .ds-photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
}
.ds-programs__photos > .ds-photo > a { min-height: 0; height: 100%; aspect-ratio: auto; }
.ds-programs__photos > .ds-photo img { position: absolute; inset: 0; object-position: 55% center; }
.ds-programs__photo-pair { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.ds-programs__photo-pair .ds-photo > a { height: 330px; aspect-ratio: auto; }
@media (max-width: 1050px) {
    .ds-programs__grid { column-gap: 32px; }
    .ds-programs__photo-pair .ds-photo > a { height: 220px; }
}
@media (max-width: 850px) {
    .ds-programs__grid { grid-template-columns: 1fr; gap: 24px; }
    .ds-programs__photos > .ds-photo { grid-column: 1; grid-row: 3; display: block; }
    .ds-programs__photos > .ds-photo > a { height: auto; aspect-ratio: 1.55; }
}
@media (max-width: 600px) {
    .ds-programs__photo-pair { gap: 12px; }
    .ds-programs__photo-pair .ds-photo > a { height: auto; aspect-ratio: 1.25; }
}


.domostroy-profile .ds-detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ds-line); }
.ds-detail-metric { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 100px; padding-left: 80px; }
.ds-detail-metric dt { order: 2; margin-top: 7px; color: var(--ds-muted); font-size: 18px; font-weight: 400; line-height: 1.4; }
.ds-detail-metric dt img { position: absolute; left: 0; top: 50%; width: 64px; height: 64px; transform: translateY(-50%); }
.ds-detail-metric dd { order: 1; color: var(--ds-blue); font-size: 48px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.ds-detail-metric dd span { font-size: 22px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
@media (min-width: 601px) and (max-width: 1500px) {
    .ds-detail-metric { padding-left: 68px; }
    .ds-detail-metric dt img { width: 56px; height: 56px; }
    .ds-detail-metric dd { font-size: 40px; }
    .ds-detail-metric dd span { font-size: 18px; }
    .ds-detail-metric dt { font-size: 17px; }
}
@media (min-width: 851px) and (max-width: 1050px) { .domostroy-profile .ds-detail-metrics { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) {
    .domostroy-profile .ds-detail-metrics { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; padding-top: 16px; }
    .ds-detail-metric { min-height: 84px; padding-left: 68px; }
    .ds-detail-metric dt img { width: 56px; height: 56px; }
    .ds-detail-metric dd { font-size: 40px; }
    .ds-detail-metric dd span { font-size: 18px; }
    .ds-detail-metric dt { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .domostroy-profile *, .domostroy-profile *::before, .domostroy-profile *::after { scroll-behavior: auto; transition: none; }
}
