/* Демо: лендинг кофейни «Зерно» */

:root {
  --cream: #f4ede3;
  --paper: #fbf7f1;
  --coffee: #2b1d16;
  --coffee-2: #6b5446;
  --terra: #c8643b;
  --terra-dark: #a94f2b;
  --peach: #e9a07d;
  --line: #e3d6c5;
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--coffee); font: 400 16px/1.55 "Onest", system-ui, sans-serif; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.z-wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }

/* Кнопки */
.z-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--terra); color: #fff; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s, translate 0.2s; }
.z-btn:hover { background: var(--terra-dark); translate: 0 -2px; }
.z-btn-ghost { background: transparent; color: var(--coffee); box-shadow: inset 0 0 0 1.5px var(--coffee); }
.z-btn-ghost:hover { background: var(--coffee); color: var(--paper); }
.z-btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.z-btn-block { width: 100%; }

/* Шапка */
.z-header { position: sticky; top: 0; z-index: 10; background: rgb(244 237 227 / 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.z-header.is-scrolled { border-color: var(--line); }
.z-header-bar { display: flex; align-items: center; gap: 32px; height: 76px; }
.z-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; letter-spacing: -0.05em; }
.z-logo svg { width: 30px; height: 30px; fill: var(--terra); stroke: var(--paper); stroke-width: 2.2; }
.z-nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; }
.z-nav a:hover { color: var(--terra); }

/* Первый экран */
.z-hero { padding: 56px 0 72px; }
.z-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.z-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 7px 14px; border-radius: 999px;
  background: var(--paper); font-size: 14px; font-weight: 500; }
.z-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f9b5b; box-shadow: 0 0 0 4px rgb(63 155 91 / 0.18); }
.z-status.is-closed::before { background: #b9a492; box-shadow: none; }
.z-hero h1 { font-size: clamp(44px, 6.4vw, 86px); font-weight: 700; line-height: 0.98; letter-spacing: -0.055em; }
.z-lead { max-width: 520px; margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--coffee-2); }
.z-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.z-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.z-facts dt { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.z-facts dd { margin-top: 6px; font-size: 14px; color: var(--coffee-2); }

.z-hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.z-sun { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--peach), var(--terra)); }
.z-cup { position: relative; width: 74%; filter: drop-shadow(0 30px 30px rgb(43 29 22 / 0.25)); }
.z-steam path { stroke-dasharray: 60; animation: z-steam 3.2s ease-in-out infinite; opacity: 0.85; }
.z-steam path:nth-child(2) { animation-delay: 0.6s; }
.z-steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes z-steam { 0% { stroke-dashoffset: 60; opacity: 0; } 40% { opacity: 0.9; } 100% { stroke-dashoffset: -60; opacity: 0; } }
.z-tag { position: absolute; padding: 10px 16px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 30px -14px rgb(43 29 22 / 0.4); animation: z-float 5s ease-in-out infinite; }
.z-tag-1 { top: 12%; left: -2%; }
.z-tag-2 { right: 0; bottom: 14%; animation-delay: -2.5s; }
@keyframes z-float { 50% { translate: 0 -10px; } }

/* Полоса преимуществ */
.z-strip { background: var(--coffee); color: var(--paper); }
.z-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.z-strip p { padding: 28px 24px; border-left: 1px solid rgb(251 247 241 / 0.12); font-size: 14px; color: rgb(251 247 241 / 0.7); }
.z-strip p:first-child { border-left: 0; padding-left: 0; }
.z-strip b { display: block; margin-bottom: 4px; font-size: 17px; color: var(--paper); }

/* Разделы */
.z-section { padding: 96px 0; }
.z-section h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.z-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* Меню */
.z-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--paper); }
.z-tabs button { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font-weight: 500; cursor: pointer; }
.z-tabs button:hover { color: var(--terra); }
.z-tabs .is-active, .z-tabs .is-active:hover { background: var(--coffee); color: var(--paper); }
.z-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.z-menu li { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 18px; padding: 22px 0;
  border-bottom: 1px dashed var(--line); animation: z-in 0.4s ease both; }
.z-menu li[hidden] { display: none; }
.z-menu h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.z-menu em { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--terra); color: #fff;
  font-size: 12px; font-style: normal; font-weight: 600; vertical-align: 3px; }
.z-menu p { margin-top: 3px; font-size: 14.5px; color: var(--coffee-2); }
.z-menu span { font-size: 14px; color: var(--coffee-2); white-space: nowrap; }
.z-menu b { font-size: 18px; white-space: nowrap; }
@keyframes z-in { from { opacity: 0; translate: 0 8px; } }

/* О нас */
.z-about { background: var(--paper); }
.z-about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.z-quote p { font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -0.035em; }
.z-quote span { display: block; margin-top: 20px; color: var(--coffee-2); }
.z-cards { display: grid; gap: 12px; }
.z-cards article { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; padding: 24px; border-radius: var(--r); background: var(--cream); }
.z-cards span { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--terra); color: #fff; font-weight: 700; }
.z-cards h3 { font-size: 19px; }
.z-cards p { font-size: 15px; color: var(--coffee-2); }

/* Как найти */
.z-visit-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; }
.z-visit { padding: 40px; border-radius: var(--r); background: var(--paper); }
.z-address { margin-top: 18px; font-size: 21px; font-weight: 600; }
.z-address small { font-size: 14px; font-weight: 400; color: var(--coffee-2); }
.z-hours { width: 100%; margin: 24px 0 32px; border-collapse: collapse; }
.z-hours th, .z-hours td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.z-hours td { text-align: right; font-weight: 600; }
.z-hours .is-today th::after { content: "сегодня"; margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: var(--coffee);
  color: var(--paper); font-size: 12px; font-weight: 500; }
.z-map { overflow: hidden; min-height: 320px; border-radius: var(--r); }
.z-map svg { display: block; width: 100%; height: 100%; }

/* Бронь */
.z-booking { background: var(--coffee); color: var(--paper); }
.z-booking .z-lead { color: rgb(251 247 241 / 0.7); }
.z-booking-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.z-form, .z-success { display: grid; gap: 16px; padding: 32px; border-radius: var(--r); background: var(--paper); color: var(--coffee); }
.z-form[hidden], .z-success[hidden] { display: none; }
.z-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.z-form label, .z-field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.z-label { font-size: 14px; font-weight: 500; }
.z-form small { font-weight: 400; color: var(--coffee-2); }
.z-form input, .z-form select { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; font-size: 16px; transition: border-color 0.2s; }
.z-form input:focus, .z-form select:focus { outline: none; border-color: var(--terra); }
.z-form .is-invalid { border-color: #c0392b; }
.z-stepper { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 6px; border: 1.5px solid var(--line);
  border-radius: 14px; background: #fff; }
.z-stepper button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--cream); font-size: 20px; cursor: pointer; }
.z-stepper button:hover { background: var(--line); }
.z-stepper output { font-size: 18px; font-weight: 700; }
.z-error { padding: 12px 16px; border-radius: 12px; background: #fbe4dc; color: #8d2e14; font-size: 14.5px; }
.z-note { font-size: 13px; color: var(--coffee-2); text-align: center; }
.z-success { justify-items: start; padding: 40px; animation: z-in 0.4s ease both; }
.z-success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #3f9b5b; color: #fff;
  font-size: 30px; font-weight: 700; }
.z-success h3 { font-size: 30px; letter-spacing: -0.04em; }
.z-success p { color: var(--coffee-2); }

/* Подвал */
.z-footer { padding: 32px 0 96px; }
.z-footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--coffee-2); }
.z-footer .z-logo { font-size: 22px; color: var(--coffee); }

/* Телефоны и планшеты */
@media (max-width: 900px) {
  .z-nav { display: none; }
  .z-header-bar { justify-content: space-between; }
  .z-hero-grid, .z-about-grid, .z-visit-grid, .z-booking-grid { grid-template-columns: 1fr; }
  .z-hero-art { max-width: 460px; width: 100%; margin-inline: auto; }
  .z-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .z-strip p:nth-child(3) { border-left: 0; padding-left: 0; }
  .z-menu { grid-template-columns: 1fr; }
  .z-booking-grid { gap: 28px; }
}

@media (max-width: 560px) {
  .z-wrap { width: min(100% - 32px, 1180px); }
  .z-hero { padding: 32px 0 56px; }
  .z-section { padding: 64px 0; }
  .z-strip-grid { grid-template-columns: 1fr; }
  .z-strip p { padding: 18px 0; border-left: 0; border-top: 1px solid rgb(251 247 241 / 0.12); }
  .z-strip p:first-child { border-top: 0; }
  .z-row { grid-template-columns: 1fr; }
  .z-menu li { grid-template-columns: 1fr auto; }
  .z-menu span { grid-row: 2; font-size: 13px; }
  .z-form, .z-visit { padding: 24px 20px; }
  .z-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .z-tabs button { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
