/* Общая основа многостраничных демо-сайтов Webman (06.11.2026): сброс, кнопки, формы, окно заявки, мобильное меню,
   хлебные крошки, вопросы-ответы, появление блоков. Внешний вид сайта — в css/style.css: токены ниже и свои правила поверх. */
:root {
  --bg: #fff; --fg: #141414; --muted: #6b6b6b; --line: #e6e6e6; --soft: #f4f4f2;
  --accent: #141414; --accent-ink: #fff; --bad: #c8341f; --ok: #2f7a3e;
  --radius: 0px; --radius-btn: 0px; --wrap: 1240px; --pad: 32px; --gap: 24px;
  --font-body: system-ui, sans-serif; --font-head: var(--font-body);
  --step--1: 13px; --step-0: 16px; --step-1: 18px; --step-2: 22px; --step-3: clamp(26px, 3vw, 36px); --step-4: clamp(34px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--step-0)/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0 0 .75em; }
ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 200; background: var(--bg); padding: 10px 14px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
.narrow { max-width: 820px; }
.small { font-size: var(--step--1); color: var(--muted); }
.noscript { padding: 12px; text-align: center; background: var(--soft); }
[hidden] { display: none !important; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--accent); border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; line-height: 1.1; transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { filter: none; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 56px; font-size: var(--step-1); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* шапка: только механика, вид — в style.css */
.top { position: sticky; top: 0; z-index: 50; }
.mnav { position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); color: var(--fg); padding: 22px var(--pad) 30px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility .35s; }
.mnav.is-open { transform: none; visibility: visible; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mnav__x { width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; }
.mnav ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.mnav li a { display: block; padding: 10px 0; text-decoration: none; font-size: var(--step-2); }
.mnav__foot { margin-top: 26px; display: grid; gap: 10px; }
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(10,10,10,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.is-open { opacity: 1; visibility: visible; }

/* окно заявки */
.modal { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .25s, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.modal__box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); color: var(--fg); border-radius: var(--radius); padding: 30px 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal__x { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); }
.modal__k { margin: 0 0 6px; font-size: var(--step--1); color: var(--muted); }
.modal__t { font-size: var(--step-3); margin-bottom: 8px; padding-right: 30px; }
.modal__s { color: var(--muted); }

/* формы */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead > .btn, .lead > .small, .lead > .agree, .lead > .form-err, .lead__extra { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: var(--step--1); color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--bg); color: var(--fg); font-size: 16px; }
.field textarea { min-height: 90px; resize: vertical; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--bad); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); color: var(--muted); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.agree.is-bad { color: var(--bad); }
.form-err { margin: 0; color: var(--bad); font-size: var(--step--1); }
.done { grid-column: 1 / -1; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.done__t { font-size: var(--step-2); font-weight: 600; margin-bottom: 6px; }

/* крошки, заголовки страниц, вопросы-ответы */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 10px; font-size: var(--step--1); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.page-title { font-size: var(--step-4); margin: 6px 0 22px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; font-size: var(--step-1); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* фильтры */
.fbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.fbtn { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--bg); font-size: var(--step--1); }
.fbtn.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* источники фото */
.cr-h { font-size: var(--step-2); margin: 28px 0 12px; }
.cr-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.cr-list li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; font-size: var(--step--1); }
.cr-list--f li { grid-template-columns: 1fr; }
.cr-list img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; }

/* 404 */
.lost { padding: 60px 0 80px; }
.lost__code { font: 600 clamp(80px, 16vw, 200px)/1 var(--font-head); margin: 0; opacity: .12; }

/* появление */
.rv [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  :root { --pad: 16px; }
  .lead { grid-template-columns: 1fr; }
  .modal__box { padding: 26px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
