:root {
  --c-bg: #faf5ee;
  --c-surface: #f1e6d7;
  --c-text: #2b1d14;
  --c-muted: #6a5646;
  --c-accent: #6b3f23;
  --c-accent-text: #fffaf3;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 14px; }

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

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--c-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--c-text) 12%, transparent);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-accent);
  text-decoration: none;
}
.nav { display: flex; gap: 16px; }
.nav a {
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
}
.nav a:hover { color: var(--c-accent); text-decoration: underline; }
.header__wa { display: none; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--c-accent);
  color: var(--c-accent-text);
  border: 2px solid var(--c-accent);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.88; }
.btn--ghost {
  background: transparent;
  color: var(--c-accent);
}
.btn--small { padding: 8px 18px; font-size: 0.95rem; }

/* Главный экран */
.hero { padding: 28px 0 40px; }
.hero__grid { display: grid; gap: 24px; }
.eyebrow {
  color: var(--c-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.lead { font-size: 1.1rem; color: var(--c-muted); }
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 14px;
}
.hero__hours { color: var(--c-muted); font-size: 0.95rem; margin: 0; }
.hero__media img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Секции */
.section { padding: 44px 0; }
.section--alt { background: var(--c-surface); }
.section__intro { color: var(--c-muted); max-width: 640px; margin-bottom: 24px; }

/* Меню */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.dish {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--c-surface);
  border-radius: 14px;
}
.dish h3 { margin-bottom: 4px; }
.dish p { margin: 0; color: var(--c-muted); font-size: 0.92rem; line-height: 1.4; }
.dish__price {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
}

/* О кофейне */
.about { display: grid; gap: 24px; }
.about__media img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.facts li {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 3px solid var(--c-accent);
}
.facts span { color: var(--c-muted); font-size: 0.92rem; }

/* Контакты */
.contacts { display: grid; gap: 32px; }
.contact-list { margin: 0 0 22px; display: grid; gap: 14px; }
.contact-list dt {
  color: var(--c-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-list dd { margin: 2px 0 0; font-size: 1.05rem; }
.contacts__buttons { display: flex; flex-direction: column; gap: 12px; }

/* Форма */
.form {
  background: var(--c-surface);
  padding: 22px 18px;
  border-radius: 20px;
}
.form__hint { color: var(--c-muted); font-size: 0.95rem; }
.form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 4px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid color-mix(in srgb, var(--c-text) 30%, transparent);
  border-radius: 10px;
}
.form textarea { resize: vertical; }
.form .btn { width: 100%; margin-top: 18px; }

/* Подвал */
.footer {
  padding: 24px 0 90px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: 0.9rem;
}
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer p { margin: 0; }

/* Плавающая кнопка WhatsApp */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-text);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--c-text) 35%, transparent);
}
.wa-float:hover { opacity: 0.9; }

/* Планшет и компьютер */
@media (min-width: 720px) {
  body { font-size: 18px; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }
  .header__wa { display: inline-block; }
  .nav { gap: 28px; }
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .hero__actions { flex-direction: row; }
  .section { padding: 72px 0; }
  .menu { grid-template-columns: 1fr 1fr; gap: 16px; }
  .about { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .contacts__buttons { flex-direction: row; }
  .form { padding: 28px; }
  .footer { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}