/* Кофейня «Зерно» — лендинг
   Mobile-first, тёплый минимализм.
   Базовые стили — под мобильный экран, шире —
   расширяются в медиазапросах ближе к концу файла. */

:root {
  /* Тёплая палитра */
  --bg: #faf6f0;          /* тёплый кремовый фон */
  --surface: #ffffff;
  --ink: #2b2119;         /* тёмно-коричневый текст */
  --muted: #7a6a5b;       /* приглушённый коричневый */
  --line: #e7ddd0;        /* линии/границы */
  --accent: #8a5a2b;      /* обжаренное зерно */
  --accent-ink: #ffffff;
  --placeholder-bg: #f0e8dd;
  --radius: 14px;
  --space: 1rem;
  --maxw: 960px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Доступность: пропустить к меню */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .5rem .75rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 20;
}
.skip-link:focus { left: 0; }

/* Общий плейсхолдер (цены, фото, карта) */
.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* Заметная область-плейсхолдер под фото/карту */
.item-photo.placeholder,
.visit-map.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--placeholder-bg);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { color: var(--accent); font-size: 1.1rem; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 1rem;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 2.5rem 0 2rem;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  margin-bottom: .5rem;
}
.hero h1 {
  font-size: 2.1rem;
  margin-bottom: .75rem;
}
.lede {
  color: var(--muted);
  max-width: 40ch;
}

/* Заметные адрес и часы */
.key-facts {
  display: grid;
  gap: .75rem;
  margin: 1.5rem 0;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.fact-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.fact-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Кнопки */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.btn {
  display: inline-block;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .05s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #74491f; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Menu ---------- */
.menu { padding: 2rem 0; }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { font-size: 1.6rem; }
.section-note { color: var(--muted); max-width: 46ch; }

.menu-group { margin-bottom: 2.25rem; }
.group-title {
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.group-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  background: var(--placeholder-bg);
  border-radius: 999px;
  padding: .15rem .55rem;
}
.group-desc { color: var(--muted); max-width: 52ch; }

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .9rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
}
.item-photo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
}
.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
}
.item-name { font-weight: 700; }
.item-price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
}
.item-price.placeholder { font-weight: 400; }
.item-desc {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Visit ---------- */
.visit {
  padding: 2rem 0 2.5rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.visit-inner { display: grid; gap: 1.5rem; }
.visit-text h2 { font-size: 1.6rem; }
.visit-address { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.visit-hours { font-weight: 700; margin-bottom: .25rem; }
.visit-note { color: var(--muted); }
.visit-map {
  min-height: 200px;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.site-footer { padding: 1.5rem 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
}
.footer-brand { font-weight: 700; color: var(--ink); }

/* ---------- Планшет / десктоп ---------- */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .key-facts { grid-template-columns: 1fr 1fr; }
  .items { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .visit-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Уважать настройку уменьшения движения */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
