/* Клиентская часть: минимальная заглушка. Дизайн — на ваше усмотрение. */
:root {
  --bg: #fff; --text: #1d2330; --muted: #6b7280; --line: #e5e7eb; --accent: #2f6fed; --accent-2: #1f56c4;
  --danger: #c62828; --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.55; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.site-main { flex: 1; padding-top: 24px; padding-bottom: 48px; width: 100%; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--text); }
.menu { flex: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.menu li { position: relative; }
.menu a, .menu span { display: block; padding: 8px 12px; text-decoration: none; color: var(--text); border-radius: 6px; cursor: pointer; }
.menu a:hover, .menu span:hover { background: #f3f4f6; }
.menu .has-sub > a::after, .menu .has-sub > span::after { content: " ▾"; font-size: 12px; }
.menu .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px; min-width: 200px; flex-direction: column; z-index: 10; }
.menu .has-sub:hover .sub, .menu .has-sub:focus-within .sub { display: flex; }

.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-2); }
.btn-light { background: #f3f4f6; color: var(--text); }

.hero { padding: 48px 0; }
.hero h1 { font-size: 40px; margin: 0 0 8px; }
.branches { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.branch { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.branch h3 { margin-top: 0; }
.branch p { margin: 6px 0; }
.socials a { margin-right: 10px; }
.map { width: 100%; height: 240px; border: 0; border-radius: 8px; margin-top: 10px; }

.content img { max-width: 100%; height: auto; }
.content blockquote { border-left: 3px solid var(--line); margin: 0; padding-left: 16px; color: var(--muted); }
.content pre { background: #f6f8fa; padding: 12px; overflow-x: auto; border-radius: 6px; }
.conditions { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 24px; }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 20px 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }

.order-form, .narrow { max-width: 560px; }
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.req { color: var(--danger); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: 14px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin: 16px 0; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: #eaf7ef; border-color: #b6e2c6; }
.alert-error { background: #fdecec; border-color: #f3c0c0; }
.alert-warning { background: #fff7e0; border-color: #f1d98d; }
.muted { color: var(--muted); }

.error-page { text-align: center; padding: 60px 0; }
.big-status { font-size: 72px; font-weight: 800; color: var(--muted); margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }
.site-footer .legal p { margin: 0 0 8px; }
