:root {
  --bg: #f6f2ec;
  --surface: #fffdf9;
  --tile: #e8e1d6;
  --text: #1f1b16;
  --muted: #6b6258;
  --line: #e2d9cc;
  --accent: #8a5a35;
  --dark: #1f1b16;
  --on-dark: #f6f2ec;
  --gap: 3px;
  --pad: 16px;
  --serif: "Cormorant Garamond", Georgia, serif;
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gap: 6px; --pad: 32px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; letter-spacing: -0.01em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 60px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 620px; text-wrap: pretty; }

/* Шапка */
/* Непрозрачная: Safari на iPhone заливает полосу под адресной строкой цветом шапки,
   только если она сплошная, иначе там просвечивает страница */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .08em; text-decoration: none; }
.logo small { display: block; font: 500 10px/1 Manrope, sans-serif; letter-spacing: .16em; white-space: nowrap; color: var(--muted); text-transform: uppercase; margin-top: -2px; }
.menu { display: none; gap: 24px; font-size: 15px; }
.menu a { text-decoration: none; color: var(--muted); transition: color .15s; }
.menu a:hover, .menu a[aria-current] { color: var(--text); }
.top .tel { display: none; margin-left: auto; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .top .wrap { gap: 28px; } .menu { display: flex; } .top .tel { display: block; } .top .btn { margin-left: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--dark);
  background: var(--dark); color: var(--on-dark); font: 600 15px/1 Manrope, sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: #ffffff1a; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

footer.site { background: var(--dark); color: #b9ae9f; font-size: 14px; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer.site .logo { color: var(--on-dark); }
footer.site p { margin: 0; max-width: 640px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
