/* Shared client experience; existing calculation styles remain in styles.css. */
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
:focus-visible { outline: 3px solid #b86142; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 14px; z-index: 100; background: #d9ff65; color: #173e32; }
.skip-link:focus { top: 10px; }
.topbar { position: sticky; top: 0; min-height: 76px; height: auto; padding-block: 15px; }
.topbar nav { align-items: center; gap: 24px; }
.topbar nav a { min-height: 44px; display: flex; align-items: center; }
.topbar nav a:last-child { padding: 0 16px; background: var(--acid); color: var(--forest); border-radius: 4px; font-weight: 700; }
.menu-toggle { display: none; min-height: 44px; padding: 10px 14px; border: 1px solid #879e90; border-radius: 4px; background: transparent; color: white; }
.service-hero { min-height: 690px; padding-block: 80px; gap: 44px; grid-template-columns: 1.3fr .7fr; }
.service-hero h1 { font-size: clamp(42px, 4.5vw, 67px); line-height: 1.18; }
.service-hero .hero-copy > p { max-width: 620px; }
.hero-actions { gap: 12px; }
.button { gap: 16px; min-height: 48px; line-height: 1.4; }
.button.dark { background: var(--forest); color: white; }
.button.outline { background: transparent; border: 1px solid var(--forest); color: var(--forest); }
.hero-copy > .hero-caption { font-size: 13px; color: #c0d2c7; margin-top: 25px; }
.hero-proof { padding: 28px; }
.hero-proof .proof-line { grid-template-columns: 24px 1fr; }
.image-caption { color: #c0d2c7; font-size: 11px; margin: 20px 0 0; }
.content-section { padding: 88px clamp(22px,7vw,110px); }
.section-intro { max-width: 720px; margin-bottom: 38px; }
.section-intro h2, .example-section h2, .scope-section h2, .contact-section h2 { font-size: clamp(31px,3.8vw,48px); line-height: 1.24; }
.section-intro p, .example-section p, .scope-section p, .contact-section p { font-size: 15px; line-height: 1.75; color: #56635b; }
.deliverable-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.deliverable-grid article { background: var(--card); border: 1px solid var(--line); padding: 30px; }
.card-number { color: #68716a; font-size: 10px; letter-spacing: .12em; }
.deliverable-grid h3 { font: 24px/1.4 Prata,Georgia,serif; color: var(--forest); }
.deliverable-grid p { color: #59675e; line-height: 1.75; font-size: 14px; }
.example-section { padding: 70px clamp(22px,7vw,110px); background: #e7ebdf; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.example-visual { padding: 26px; border: 1px solid #bdc7b8; background: #f7f8f0; }
.example-visual svg { width: 100%; display: block; }
.example-dim { color: var(--forest); font-size: 13px; }
.muted { font-size: 13px !important; color: #677267; line-height: 1.65; }
.process-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4,1fr); counter-reset: process; gap: 30px; }
.process-list li { padding-top: 20px; border-top: 1px solid #a5b19e; counter-increment: process; }
.process-list li::before { content: '0' counter(process); display: block; color: var(--clay); font: 24px Prata,Georgia,serif; margin-bottom: 20px; }
.process-list b { font-size: 16px; color: var(--forest); }
.process-list p { line-height: 1.7; color: #59675e; font-size: 14px; }
.scope-section { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; padding: 65px clamp(22px,7vw,110px); background: var(--forest); color: #fff; }
.scope-section .eyebrow { color: var(--acid); }
.scope-section p { color: #d2dfd6; }
.scope-section a { color: #d9ff65; font-size: 14px; }
.contact-section { padding: 90px clamp(22px,7vw,110px); display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-person { margin-top: 32px; display: flex; align-items: start; flex-direction: column; gap: 8px; }
.contact-person b { font-size: 19px; color: var(--forest); }
.contact-person span { font-size: 13px; color: var(--muted); }
.contact-person a { font-size: 16px; overflow-wrap: anywhere; }
.contact-card { min-width: 0; background: #fffdf8; border: 1px solid var(--line); padding: 28px; }
.contact-card label { display: grid; gap: 9px; font-size: 14px; margin-bottom: 20px; }
.contact-card input, .contact-card textarea { width: 100%; padding: 12px; border: 1px solid #b4c0b5; border-radius: 4px; font: 16px/1.6 Manrope,Arial,sans-serif; background: white; }
.contact-card textarea { resize: vertical; }
.contact-card .form-help { font-size: 12px; margin-bottom: 0; }
#contactDraft { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
#contactDraft .hero-actions { margin-top: 12px; }
footer a { color: #dce5df; font-size: 13px; min-height: 44px; display: flex; align-items: center; }
.brief-section { padding: 56px clamp(22px,7vw,110px) 30px; background: #e8eddf; }
.brief-section h1 { color: var(--forest); font-size: clamp(34px,4vw,50px); }
.brief-section .section-intro { margin-bottom: 24px; }
.brief-section .brief-search { max-width: 100%; width: 100%; box-shadow: none; border: 1px solid #b5c2b0; margin-top: 0; }
.brief-label { padding: 14px 17px; display: block; font-size: 13px; color: var(--forest); font-weight: 700; }
.brief-search textarea { font-size: 16px; }
.brief-search-footer small { font-size: 12px; color: #566359; }
.brief-search-footer button { min-height: 48px; font-size: 13px; white-space: nowrap; }
.workspace-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 13px; }
.workspace-links a, .workspace-links button { min-height: 44px; padding: 10px 14px; background: transparent; color: var(--forest); border: 1px solid #8da18c; border-radius: 4px; text-decoration: none; cursor: pointer; }
.workspace-links span { color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.review-grid label { display: grid; gap: 7px; color: var(--forest); font-size: 12px; }
.review-grid input, .review-grid select { width: 100%; padding: 11px; border: 1px solid #aabbaa; background: white; font-size: 16px; }
.brief-analysis p, .brief-analysis li { font-size: 13px; line-height: 1.65; }
.analysis-continue { border-radius: 4px; font-size: 14px; min-height: 48px; }
.tool-page .workspace-section { padding: 45px clamp(16px,4vw,60px); }
.tool-page .workspace-section > .section-head { max-width: 860px; margin: 0 0 25px; text-align: left; }
.tool-page .workspace-section > .section-head h2 { font-size: 33px; }
.tool-page .workspace { grid-template-columns: minmax(290px,350px) minmax(0,1fr); align-items: start; }
.tool-page .inputs-panel { position: static; }
.tool-page .form-section-body label { font-size: 12px; }
.tool-page .form-section-body input, .tool-page .form-section-body select { min-height: 44px; font-size: 15px; }
.form-section-title { min-height: 48px; }
.assumption-tag { font-size: 9px; color: #806135; font-weight: 400; }
.field-help { margin: 0; color: #6b746c; font-size: 11px; line-height: 1.65; }
.assumption-consent { display: flex; gap: 10px; margin: 22px 18px 0; align-items: flex-start; color: var(--forest); font-size: 12px; line-height: 1.6; }
.assumption-consent input { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; }
.inputs-panel .form-help { padding: 0 18px; font-size: 11px; line-height: 1.6; color: #68716a; }
.calculation-stale { background: #fff0cf; color: #654619; border: 1px solid #d7b366; padding: 15px; font-size: 14px; margin-bottom: 20px; }
.results-panel.is-stale .result-grid, .results-panel.is-stale .option-tabs { opacity: .5; }
button:disabled { cursor: not-allowed; opacity: .5; }
.report-detail { margin-top: 16px; background: #fffdf8; border: 1px solid var(--line); padding: 0 15px 15px; }
.report-detail summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; cursor: pointer; padding: 18px 0 3px; color: var(--forest); font-size: 15px; font-weight: 700; }
.report-detail summary::after { content: '+'; margin-left: auto; }
.report-detail[open] summary::after { content: '−'; }
.report-detail summary small { width: 100%; font-size: 11px; font-weight: 400; color: var(--muted); }
.report-detail[open] summary { padding-bottom: 17px; }
.report-detail h4 { margin: 0; font-size: 15px; }
.comparison-note { margin-top: 15px; border: 1px solid #b0c3ae; background: #edf4e8; padding: 17px; font-size: 13px; line-height: 1.65; }
.comparison-note h4 { margin: 0 0 8px; }
.comparison-note p { margin: 7px 0; }
.comparison-note .over-budget { color: #923e2c; font-weight: 700; }
.tool-disclosure { margin: 18px clamp(16px,4vw,60px); border: 1px solid #c9d3c2; background: var(--card); scroll-margin-top: 100px; }
.tool-disclosure > summary { display: flex; flex-wrap: wrap; padding: 22px; gap: 8px; cursor: pointer; color: var(--forest); }
.tool-disclosure > summary b { font: 23px Prata,Georgia,serif; }
.tool-disclosure > summary span { width: 100%; color: var(--muted); font-size: 12px; }
.tool-disclosure > summary::after { content: 'Открыть +'; margin-left: auto; font-size: 12px; }
.tool-disclosure[open] > summary::after { content: 'Свернуть −'; }
.tool-disclosure section { padding: 28px; }
.tool-disclosure .section-head h2 { font-size: 28px; }
.tool-disclosure .section-head { margin-bottom: 25px; }
.tool-page .principles, .tool-page .boundary { padding: 45px clamp(22px,5vw,80px); }
.tool-page .principles h2 { font-size: 32px; }
.tool-page .site-data-module { margin-top: 22px; }
.tool-page .visual-note, .tool-page .blocker { font-size: 11px; }
.tool-page table { font-size: 12px; }
.tool-page th { font-size: 10px; }
.tool-page .inline-price input { min-height: 44px; font-size: 14px; }
.tool-page .material-table { max-height: 650px; }
.quantity-policy { max-width: 160px; }
@media (max-width: 1050px) {
  .service-hero { grid-template-columns: 1fr; min-height: auto; }
  .service-hero .hero-proof { max-width: 620px; width: 100%; }
  .topbar { gap: 15px; }
  .topbar nav { gap: 16px; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .deliverable-grid article { padding: 22px; }
  .contact-section, .example-section { gap: 30px; }
  .tool-page .workspace { display: block; }
  .tool-page .form-section-body { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tool-page .result-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar { padding: 12px 20px; flex-wrap: wrap; }
  .brand b { font-size: 18px; }
  .brand small { font-size: 8px; letter-spacing: .08em; }
  .menu-toggle { display: block; }
  .topbar nav { display: none; width: 100%; border-top: 1px solid #557465; padding-top: 10px; }
  .topbar nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .topbar nav a { padding: 8px; font-size: 13px; }
  .service-hero { padding: 54px 22px; gap: 36px; }
  .service-hero h1 { font-size: clamp(33px,8.8vw,50px); }
  .service-hero .hero-copy > p { font-size: 15px; }
  .service-hero .hero-caption { font-size: 12px !important; }
  .hero-proof { padding: 20px; }
  .content-section, .contact-section { padding: 50px 22px; }
  .deliverable-grid, .example-section, .scope-section, .contact-section { grid-template-columns: 1fr; }
  .example-section, .scope-section { padding: 45px 22px; gap: 28px; }
  .contact-card { padding: 20px; }
  .section-intro { margin-bottom: 24px; }
  .process-list { gap: 24px 18px; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .brief-search-footer button { white-space: normal; }
  .tool-page .form-section-body { grid-template-columns: 1fr 1fr; }
  .tool-page .form-section-body input, .tool-page .form-section-body select { font-size: 16px; }
  .tool-page .result-grid { grid-template-columns: 1fr; }
  .tool-disclosure section { padding: 18px; }
  .tool-disclosure .materials-workspace { min-width: 0; }
  .tool-page .table-wrap { max-width: 100%; }
  .tool-page .material-table { max-height: none; }
  .tool-page .material-table table { min-width: 780px; }
  .tool-page .site-source-list { grid-template-columns: 1fr; }
  .tool-page .approval-table { max-height: none; }
  .tool-page .results-panel { min-width: 0; }
}
@media (max-width: 360px) { .process-list, .review-grid { grid-template-columns: 1fr; } .brand-mark { display: none; } .contact-person a { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .brief-section, .tool-disclosure, .site-data-module, .topbar, .skip-link, .workspace-section > .section-head { display: none !important; }
  .report-detail { break-inside: auto; }
  .report-detail > * { display: block !important; }
  .report-detail .table-wrap { display: block !important; overflow: visible; max-height: none; }
  .report-detail summary::after { content: none; }
  .table-wrap, .approval-table { max-height: none; overflow: visible; }
  .results-panel.is-stale::before { content: 'ОТЧЁТ УСТАРЕЛ. ПЕРЕСЧИТАЙТЕ ИСХОДНЫЕ ДАННЫЕ.'; display: block; font-weight: bold; color: #a13c2c; }
}
