@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(vendor/solved/onest-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(vendor/solved/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(vendor/solved/onest-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(vendor/solved/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #2563c9;
  --ink: #0a0a0a;
  --ink-soft: #717784;
  --surface: #f4f4f4;
  --hairline: #e6e8ec;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Onest", sans-serif;
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background: #fff;
}

a { color: inherit; text-decoration: none; }

.page {
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 40px 32px;
}

.sheet-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; margin-bottom: 96px; }
.pill { padding: 5px 12px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 12px; }
.brand { color: var(--brand); }
.logo { display: block; width: 104px; height: auto; }

h1 { font-size: 64px; font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.lead { margin-top: 14px; font-size: 18px; color: var(--ink-soft); }

.block { margin-top: 72px; }
.block.card { padding: 28px 32px 8px; background: var(--surface); border-radius: 16px; }
.lead + .block { margin-top: 56px; }
h2 { padding-bottom: 16px; font-size: 28px; font-weight: 400; border-bottom: 1px solid var(--hairline); }
.block.card h2 { border-color: #e2e4e8; }
h3 { margin-top: 32px; font-size: 18px; font-weight: 500; }

.row { display: flex; justify-content: space-between; gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.block.card .row { border-color: #e2e4e8; }
.row:last-child { border-bottom: 0; }
.estimate-total { font-weight: 600; }
.row-name { font-size: 18px; }
.row-desc { max-width: 640px; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.row-price { flex-shrink: 0; font-size: 18px; font-weight: 500; white-space: nowrap; text-align: right; }

.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th { padding: 14px 0; font-size: 14px; font-weight: 400; color: var(--ink-soft); text-align: right; border-bottom: 1px solid var(--hairline); }
.cmp td { padding: 14px 0; text-align: right; border-bottom: 1px solid var(--hairline); }
.cmp td:first-child { text-align: left; }
.cmp th:not(:first-child), .cmp td:not(:first-child) { width: 120px; }
.cmp th:nth-child(3), .cmp td:nth-child(3) { width: 180px; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp-total td { padding-top: 20px; font-weight: 600; color: var(--ink); }
.yes { color: var(--brand); }
.no { color: var(--ink-soft); }

.sheet-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin-top: 120px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.sheet-foot .contacts { text-align: right; color: var(--ink); }
.sheet-foot a:hover { color: var(--brand); }

@media screen and (max-width: 991.98px) {
  .page { padding: 32px 24px 28px; }
  .sheet-head { margin-bottom: 64px; }
  h1 { font-size: 48px; }
  .block { margin-top: 56px; }
  h2 { font-size: 24px; }
}

@media screen and (max-width: 767.98px) {
  .page { display: block; width: 100%; min-width: 0; padding: 20px 16px 24px; overflow: hidden; }
  .sheet-head { width: 100%; margin-bottom: 48px; justify-content: flex-start; gap: 20px; }
  h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .block, .lead + .block { margin-top: 44px; }
  .block.card { margin-left: -8px; margin-right: -8px; padding: 20px 16px 4px; }
  h2 { font-size: 22px; }
  .row { flex-direction: column; gap: 6px; padding: 16px 0; }
  .row-name, .row-price { font-size: 16px; }
  .row-desc { font-size: 14px; }
  .row-price { text-align: left; }
  h1, .lead, .block, .summary, .toc, .sheet-foot { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  .lead, .block-lead, .row-desc, .summary, .toc, .sheet-foot { overflow-wrap: anywhere; }
  .cmp { display: block; max-width: 100%; table-layout: fixed; overflow-x: auto; font-size: 13px; }
  .cmp th { font-size: 12px; }
  .cmp td { padding: 11px 0; }
  .cmp th:not(:first-child), .cmp td:not(:first-child) { width: auto; padding-left: 10px; }
  .sheet-foot { grid-template-columns: 1fr; margin-top: 72px; }
  .sheet-foot .contacts { text-align: left; }
}

.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.summary-name { font-size: 13px; color: var(--ink-soft); }
.summary-value { margin-top: 6px; font-size: 20px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { padding: 7px 14px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 14px; transition: border-color 0.2s, color 0.2s; }
.toc a:hover { color: var(--brand); border-color: var(--brand); }
.block-lead { max-width: 680px; padding: 20px 0 8px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.step { justify-content: flex-start; }
.step-num { width: 40px; flex-shrink: 0; font-size: 18px; color: var(--brand); }
.sketches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.sketch { border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.sketch-img { display: block; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; border-bottom: 1px solid var(--hairline); }
.sketch-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s; }
.sketch:hover .sketch-img img { transform: scale(1.02); }
.sketch-body { padding: 18px 20px 20px; }
.sketch-name { font-size: 18px; }
.sketch-name span { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink-soft); }
.sketch-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sketch-links a { padding: 6px 12px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 13px; transition: border-color 0.2s, color 0.2s; }
.sketch-links a:hover { color: var(--brand); border-color: var(--brand); }
html { scroll-behavior: smooth; }

@media screen and (max-width: 767.98px) {
  .summary { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .summary-value { font-size: 18px; }
  .sketches { grid-template-columns: minmax(0, 1fr); }
  .block-lead { font-size: 15px; }
  .step { flex-direction: row; gap: 0; }
  .step-num { width: 32px; font-size: 16px; }
}

.sketches.single { grid-template-columns: minmax(0, 1fr); }
.sketches.single .sketch { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.sketches.single .sketch-img { aspect-ratio: 16 / 10; border-bottom: 0; border-right: 1px solid var(--hairline); }
.sketches.single .sketch-body { display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.sketches.single .sketch-name { font-size: 22px; }

@media screen and (max-width: 767.98px) {
  .sketches.single .sketch { grid-template-columns: minmax(0, 1fr); }
  .sketches.single .sketch-img { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .sketches.single .sketch-body { padding: 18px 20px 20px; }
  .sketches.single .sketch-name { font-size: 18px; }
}
