/* Клиентская страница предложения: спокойная, премиальная, без интерфейса портала. */
:root {
  --brand: #1b1a1a;
  --ink: #17181b;
  --muted: #6d7179;
  --line: #e6e4df;
  --paper: #faf9f7;
  --card: #ffffff;
  --accent-soft: #f2f0eb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.preview-bar { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 14px; padding: 8px 16px; }

.cover { background: var(--brand); color: #fff; padding: 40px 0 56px; }
.cover-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.brand .logo { max-height: 44px; max-width: 220px; display: block; }
.contacts { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.contacts a { color: #fff; opacity: .8; text-decoration: none; }
.contacts a:hover { opacity: 1; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; opacity: .7; margin: 0 0 10px; }
.cover h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 0 0 12px; max-width: 900px; }
.cover .meta { opacity: .75; margin: 0; }
.cover .intro { margin-top: 24px; max-width: 720px; font-size: 17px; opacity: .92; }
.cover .intro p { margin: 0 0 10px; }

.messages { list-style: none; padding: 0; margin: 20px 0 0; }
.messages li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.messages li.error { border-color: #f1b4ad; color: #b42318; }
.accepted-note { margin-top: 24px; background: #f0f8f2; border: 1px solid #b7dcc2; border-radius: 14px; padding: 16px 20px; }
.accepted-note.warn { background: #fff8eb; border-color: #f2d49b; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.how { color: var(--muted); max-width: 720px; margin: 0 0 8px; }

.room { margin-top: 40px; }
.room h2 { font-size: 30px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.room h2 small { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-left: 8px; }

.solution { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 18px; transition: opacity .2s; }
.sol-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.sol-title { display: flex; gap: 14px; align-items: flex-start; }
.sys-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; color: var(--brand); }
.sys-icon svg { width: 24px; height: 24px; }
.sys-icon.sm { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; vertical-align: middle; margin-right: 10px; }
.sys-icon.sm svg { width: 16px; height: 16px; }
.onepage, .about, .schedule { margin-top: 48px; }
.service { margin-top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.service h2, .schedule h2 { font-size: 28px; margin: 0 0 6px; }
.service.is-removed { opacity: .55; }
.service.is-removed .removed-note { display: block; }
.service.is-removed .level.is-chosen { border-color: var(--line); box-shadow: none; }
.lv-price small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
ol.steps { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: step; display: grid; gap: 10px; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
ol.steps li[hidden] { display: none; }
ol.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
ol.steps li div { display: grid; gap: 2px; }
ol.steps li div span { color: var(--muted); font-size: 14px; }
ol.steps li i { font-style: normal; text-align: right; font-family: var(--serif); font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
ol.steps li i small { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.sum-card dt[hidden], .sum-card dd[hidden] { display: none; }
.onepage h2, .about h2 { font-size: 28px; margin: 0 0 14px; }
table.systems { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 15px; }
table.systems th, table.systems td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.systems th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
table.systems .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.systems tfoot td { font-weight: 600; border-bottom: 0; background: var(--accent-soft); }
.about { color: #3b3d42; max-width: 760px; }
.solution h3 { font-size: 23px; margin: 0 0 4px; }
.solution h3 small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.desc { margin: 0 0 4px; color: var(--muted); max-width: 640px; }
.toggle { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.toggle:hover { border-color: var(--ink); color: var(--ink); }
.opt-note { font-size: 13px; color: var(--muted); }
.removed-note { display: none; color: var(--muted); font-size: 14px; margin-top: 10px; }
.solution.is-removed { opacity: .55; }
.solution.is-removed .removed-note { display: block; }
.solution.is-removed .details { display: none; }
.solution.is-removed .level.is-chosen { border-color: var(--line); box-shadow: none; }

.levels { display: grid; gap: 10px; margin-top: 18px; }
.levels.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.levels.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.levels.n1 { grid-template-columns: minmax(0, 1fr); }
.level { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; display: grid; gap: 4px; align-content: start; transition: border-color .15s, box-shadow .15s; }
.level:hover:not(:disabled) { border-color: #b9b6ae; }
.level:disabled { cursor: default; }
.level.is-chosen { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.lv-name { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.lv-name em { font-style: normal; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.lv-note { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.lv-price { font-family: var(--serif); font-size: 22px; margin-top: 6px; font-variant-numeric: tabular-nums; }

.details { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.details[hidden] { display: none; }
.details h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
ul.eq { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
ul.eq li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f1efea; padding-bottom: 6px; }
ul.eq li i { font-style: normal; color: var(--muted); white-space: nowrap; }
dl.price-split { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 14.5px; }
dl.price-split dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
dl.price-split.small { font-size: 13.5px; color: var(--muted); }
details.why { margin-top: 14px; font-size: 14px; }
details.why summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.why p { margin: 8px 0; font-size: 13.5px; }
ul.works { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }

.terms, .accept { margin-top: 48px; }
.terms h2, .accept h2 { font-size: 28px; margin: 0 0 12px; }
.terms { color: #3b3d42; }
.accept form { display: grid; gap: 12px; max-width: 480px; }
.accept input[type=text] { font: inherit; padding: 12px 14px; border: 1px solid #d9d6cf; border-radius: 12px; background: #fff; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.accept button, .cta { display: inline-flex; justify-content: center; align-items: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 14px 22px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.accept button:hover, .cta:hover { filter: brightness(1.2); }

.summary { position: sticky; top: 24px; }
.sum-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.sum-card .eyebrow { color: var(--muted); opacity: 1; }
.sum-total { font-family: var(--serif); font-size: 36px; line-height: 1.1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.sum-card dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0 0 18px; font-size: 14.5px; }
.sum-all { margin: -8px 0 18px; padding-top: 10px; border-top: 1px solid var(--line, #e5e2dc); font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.sum-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sum-card .cta { width: 100%; }
.print { width: 100%; margin-top: 10px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 11px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.print:hover { color: var(--ink); border-color: var(--ink); }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 40px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: sticky; bottom: 0; top: auto; order: 2; }
  .sum-card { border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,.08); padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
  .sum-card .eyebrow, .sum-card dl, .sum-all, .print { display: none; }
  .sum-total { font-size: 22px; margin: 0; white-space: nowrap; }
  .sum-card .cta { width: auto; padding: 11px 16px; font-size: 14.5px; white-space: nowrap; }
}
@media (max-width: 720px) {
  ol.steps li { grid-template-columns: 30px 1fr; }
  ol.steps li i { grid-column: 2; text-align: left; }
  table.systems th:nth-child(2), table.systems td:nth-child(2), table.systems th:nth-child(3), table.systems td:nth-child(3) { display: none; }
  .sys-icon { width: 36px; height: 36px; }
  .wrap { padding: 0 16px; }
  .levels.n3, .levels.n2 { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 18px; }
  .solution { padding: 18px; }
  .cover { padding: 28px 0 40px; }
  .brand { margin-bottom: 32px; }
}
@media print {
  body { background: #fff; font-size: 12.5px; }
  .preview-bar, .toggle, .accept, .summary .cta, .print, .messages { display: none !important; }
  .cover { background: #fff; color: var(--ink); padding: 0 0 16px; border-bottom: 2px solid var(--ink); }
  .mark { background: var(--ink); color: #fff; }
  .contacts a { color: var(--ink); }
  .onepage { break-inside: avoid; }
  .layout { grid-template-columns: 1fr; padding-top: 12px; }
  .summary { position: static; }
  .solution { break-inside: avoid; border-color: #ccc; padding: 14px; }
  .solution.is-removed { display: none; }
  .level:not(.is-chosen) { display: none; }
  .levels { grid-template-columns: 1fr !important; }
  details.why { display: none; }
}

.client-invoices { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.client-invoices h2 { font-size: 22px; margin: 0 0 8px; }
.client-invoices ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.client-invoices li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.client-invoices li span { color: var(--muted); }
.client-invoices a { color: var(--ink); }
.client-invoices li .inv-title { color: var(--ink); }
