
/* Вывоз дивана. Оформление основной части внутри общей оболочки сайта. */
.srm-page {
  --srm-paper: #fff9f1;
  --srm-ink: #221b16;
  --srm-text: #654f40;
  --srm-accent: #a44913;
  --srm-rule: #dfcbb6;
  background: var(--srm-paper);
  color: var(--srm-ink);
  font-size: 17px;
  line-height: 1.6;
}

.srm-page [id] {
  scroll-margin-top: 112px;
}

.srm-page h1,
.srm-page h2,
.srm-page h3 {
  margin: 0;
  color: var(--srm-ink);
  letter-spacing: -.035em;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.srm-page h1 {
  font-size: clamp(44px, 5.3vw, 73px);
  font-weight: 850;
}

.srm-page h2 {
  font-size: clamp(31px, 3.5vw, 47px);
}

.srm-page h3 {
  font-size: clamp(21px, 2.1vw, 27px);
}

.srm-page p,
.srm-page dl,
.srm-page dd {
  margin: 0;
}

.srm-page p,
.srm-page dd {
  color: var(--srm-text);
}

.srm-page a:not(.phone) {
  text-underline-offset: .2em;
}

.srm-page .phone.orange {
  color: #291c12;
  background: linear-gradient(125deg, #ffac6b, #f68a3d);
  box-shadow: 0 8px 23px #bd571d24;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
}

.srm-page .phone.orange:hover {
  background: linear-gradient(125deg, #ffb882, #f39652);
}

.srm-page :focus-visible {
  outline: 3px solid #a54810;
  outline-offset: 4px;
}

.srm-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-top: 21px;
  color: #6a5240;
  font-size: 13px;
}

.srm-crumbs a,
.srm-link,
.srm-recipient a {
  text-decoration: underline;
  text-decoration-color: #b88f6d;
}

.srm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  padding-block: 36px 46px;
}

.srm-hero > * {
  min-width: 0;
}

.srm-hero h1 span {
  display: block;
  color: var(--srm-accent);
  font-size: .84em;
}

.srm-hero .srm-lead {
  max-width: 51ch;
  margin-top: 22px;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.55;
}

.srm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 23px;
  margin-top: 26px;
}

.srm-link {
  color: #874011;
  font-size: 15px;
  font-weight: 750;
}

.srm-nav {
  border-block: 1px solid var(--srm-rule);
  background: #fffdf8;
}

.srm-nav > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1px 25px;
  padding-block: 8px;
}

.srm-nav a {
  padding-block: 7px;
  color: #795137;
  font-size: 14px;
  font-weight: 750;
}

.srm-nav a:hover,
.srm-link:hover,
.srm-recipient a:hover {
  color: var(--srm-accent);
  text-decoration: underline;
}

.srm-section {
  padding-block: clamp(38px, 4.8vw, 64px);
}

.srm-construction,
.srm-price,
.srm-handover {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 83px);
}

.srm-construction > div > p,
.srm-price > div > p,
.srm-handover > div > p {
  max-width: 54ch;
  margin-top: 19px;
  font-size: 16px;
}

.srm-hinge {
  margin-top: 23px;
  padding: 18px 21px;
  border-left: 3px solid #da7a34;
  background: #faead6;
  border-radius: 0 12px 12px 0;
}

.srm-hinge h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.srm-hinge p {
  font-size: 14px;
}

.srm-page .srm-types,
.srm-page .srm-factors {
  border-top: 1px solid #bd916b;
}

.srm-types > div,
.srm-factors > div {
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr);
  align-items: start;
  gap: 15px 22px;
  padding-block: 22px;
  border-bottom: 1px solid var(--srm-rule);
}

.srm-types dt,
.srm-factors dt {
  color: #4a301d;
  font-size: clamp(18px, 1.65vw, 23px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}

.srm-types dd,
.srm-factors dd {
  font-size: 15px;
  line-height: 1.55;
}

.srm-path {
  border-block: 1px solid #e7d5c0;
  background: #f4e9da;
}

.srm-path h2 {
  max-width: 28ch;
}

.srm-path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.srm-path-list li {
  position: relative;
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid #b48c63;
}

.srm-path-list li::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b55a1c;
  content: '';
}

.srm-path-list p {
  margin-top: 12px;
  font-size: 15px;
}

.srm-price .phone {
  margin-top: 23px;
}

.srm-example-wrap {
  padding-block: 0 9px;
}

.srm-example {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(23px, 5vw, 67px);
  padding: clamp(24px, 3.45vw, 43px);
  border-radius: 22px;
  background: #332b25;
}

.srm-example h2 {
  color: #fff5e9;
  font-size: clamp(29px, 2.9vw, 40px);
}

.srm-example .srm-eyebrow {
  margin-bottom: 13px;
  color: #ffbf89;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.srm-example p {
  color: #f3e3d2;
  font-size: 16px;
}

.srm-example p + p,
.srm-handover > div > p + p {
  margin-top: 13px;
}

.srm-handover {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
}

.srm-questions {
  margin-bottom: clamp(38px, 4.8vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--srm-rule);
}

.srm-question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 22px;
}

.srm-question-list details {
  min-width: 0;
  margin: 0;
}

.srm-question-list summary {
  color: var(--srm-ink);
  font-size: 16px;
  overflow-wrap: break-word;
}

.srm-question-list details p {
  font-size: 15px;
}

.srm-recipient {
  padding: clamp(23px, 2.45vw, 32px);
  border: 1px solid #dfc2a1;
  border-radius: 18px;
  background: #ffebd0;
}

.srm-recipient h3 {
  font-size: 25px;
}

.srm-recipient p {
  margin-top: 13px;
  font-size: 15px;
}

.srm-recipient a {
  color: #834012;
  font-weight: 700;
}

.srm-bottomline {
  border-top: 1px solid var(--srm-rule);
  background: #fff3e2;
}

.srm-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-block: clamp(29px, 4.2vw, 50px);
}

.srm-final h2 {
  max-width: 31ch;
  font-size: clamp(27px, 3.1vw, 38px);
}

.srm-final p {
  max-width: 73ch;
  margin-top: 13px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .srm-types > div,
  .srm-factors > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 17px;
  }
}

@media (max-width: 880px) {
  .srm-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .srm-hero-copy {
    max-width: 66ch;
  }
}

@media (max-width: 760px) {
  .srm-crumbs {
    padding-top: 16px;
    font-size: 12px;
  }

  .srm-hero {
    padding-block: 26px 32px;
  }

  .srm-hero h1 {
    font-size: clamp(37px, 8.5vw, 53px);
  }

  .srm-hero .srm-lead {
    margin-top: 17px;
  }

  .srm-actions {
    gap: 14px 18px;
    margin-top: 20px;
  }

  .srm-nav > div {
    justify-content: flex-start;
    gap: 0 22px;
    padding-block: 8px;
  }

  .srm-nav a {
    padding-block: 5px;
    font-size: 13px;
  }

  .srm-page h2 {
    font-size: clamp(29px, 6.8vw, 39px);
  }

  .srm-construction,
  .srm-price,
  .srm-handover,
  .srm-example,
  .srm-question-list,
  .srm-final {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .srm-construction > div > p,
  .srm-price > div > p,
  .srm-handover > div > p {
    margin-top: 16px;
    font-size: 15px;
  }

  .srm-path-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
    margin-top: 23px;
  }

  .srm-path-list li {
    padding: 0 0 0 20px;
    border-top: 0;
    border-left: 1px solid #b48c63;
  }

  .srm-path-list li::before {
    top: 5px;
    left: -5px;
  }

  .srm-path-list p {
    margin-top: 8px;
    font-size: 14px;
  }

  .srm-example p,
  .srm-recipient p,
  .srm-final p {
    font-size: 14px;
  }

  .srm-final {
    justify-items: start;
  }
}

/* Схема замеров внутри правой колонки первого экрана. */
.smd-figure {
  container: smd-card / inline-size;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 2vw, 25px);
  border: 1px solid #dfc8aa;
  border-radius: 22px;
  background: #fff9ef;
  color: #382b20;
  box-shadow: 0 12px 34px rgb(84 55 33 / 7%);
}

.smd-figure > figcaption {
  margin: 0;
  color: #432e20;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.smd-figure .smd-plate {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 8px 0 14px;
  border-radius: 12px;
  background: radial-gradient(ellipse at 54% 65%, #f4e5d0 0, #fff9ef 72%);
}

.smd-figure .smd-drawing {
  display: block;
  width: min(100%, 420px);
  height: auto;
  overflow: visible;
}

.smd-figure .smd-key {
  margin: 0;
  border-top: 1px solid #e6d4bc;
}

.smd-figure .smd-key > div {
  position: relative;
  display: grid;
  align-items: start;
  gap: 2px;
  min-width: 0;
  padding: 8px 0 8px 34px;
  border-bottom: 1px solid #e6d4bc;
}

.smd-figure .smd-key dt,
.smd-figure .smd-key dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
}

.smd-figure .smd-key dt {
  color: #4c3422;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.smd-figure .smd-key dd,
.smd-figure .smd-note {
  color: #69513c;
  font-size: 14px;
  line-height: 1.45;
}

.smd-figure .smd-code {
  position: absolute;
  top: 8px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 1px solid #ac6a3e;
  border-radius: 50%;
  background: #fffaf2;
  color: #73370f;
  font: 700 14px/1 Arial, sans-serif;
}

.smd-figure .smd-note {
  margin: 12px 0 0;
  color: #5c4838;
}

@container smd-card (min-width: 345px) {
  .smd-figure .smd-key > div {
    grid-template-columns: minmax(108px, .77fr) minmax(0, 1.23fr);
    gap: 12px;
    padding-block: 10px;
  }

  .smd-figure .smd-code {
    top: 9px;
  }
}

@media (min-width: 630px) and (max-width: 880px) {
  .smd-figure {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 16px 22px;
  }

  .smd-figure > figcaption {
    grid-column: 1 / -1;
  }

  .smd-figure .smd-plate,
  .smd-figure .smd-note {
    margin: 0;
  }

  .smd-figure .smd-key > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .smd-figure .smd-note {
    grid-column: 1 / -1;
  }
}
